CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Writing a UDF for heat loss from a composite wall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2012, 08:34
Default Writing a UDF for heat loss from a composite wall
  #1
Member
 
Join Date: Jun 2011
Posts: 86
Rep Power: 15
mali28 is on a distinguished road
Hello,

I want to write a UDF file to calculate heat loss from the system to the atmosphere. The wall is insulated. The outside temperature is ambient.

The heat loss equation would be:

q = U(overall) * (Twall - Tambient);


I know the ambient temperature and overall heat transfer coefficient. q (heat flux through the wall) and Twall will be calculated by Fluent I presume.



Thank you.
mali28 is offline   Reply With Quote

Old   January 14, 2012, 21:36
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
Hi! Can you describe the system a bit more? It's not really clear, if the wall is thermally insulated (heat flux=0=adiabatic), why you are specifying a heat transfer coefficient.

Do you mean you have a composite wall with a very low thermal conductivity? If so, Fluent has a built-in functionality to calculate the fluxes through surfaces(find it in Plots).

ComputerGuy

Quote:
Originally Posted by mali28 View Post
Hello,

I want to write a UDF file to calculate heat loss from the system to the atmosphere. The wall is insulated. The outside temperature is ambient.

The heat loss equation would be:

q = U(overall) * (Twall - Tambient);


I know the ambient temperature and overall heat transfer coefficient. q (heat flux through the wall) and Twall will be calculated by Fluent I presume.



Thank you.
ComputerGuy is offline   Reply With Quote

Old   January 15, 2012, 06:52
Default
  #3
Member
 
Join Date: Jun 2011
Posts: 86
Rep Power: 15
mali28 is on a distinguished road
Quote:
Originally Posted by ComputerGuy View Post
Hi! Can you describe the system a bit more? It's not really clear, if the wall is thermally insulated (heat flux=0=adiabatic), why you are specifying a heat transfer coefficient.

Do you mean you have a composite wall with a very low thermal conductivity? If so, Fluent has a built-in functionality to calculate the fluxes through surfaces(find it in Plots).

ComputerGuy

The wall is thermally insulated but there are some heat losses through the wall. Fluent does not have the functionality to add composite wall. I first have a layer of deposit at the inside of the geometry, then I have the metal wall, then I have a thick layer of insulation. The heat will e lost from inside to outside (ambient). I can only specify one wall with one set of thermal properties and thickness.
So I have to write a UDF, through which I calculate the heat flux.

Thank you.
mali28 is offline   Reply With Quote

Old   January 15, 2012, 09:21
Default
  #4
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
Unless I understand your problem incorrectly, a 3 material wall is absolutely possible in Fluent. Simply construct your mesh such that the layers of the walls share nodes/faces at their interfaces, and Fluent will calculate heat conduction through them. You'll need to name each wall volume individually, but I guarantee multi-layered walls are perfectly acceptable and easily solved in Fluent.

ComputerGuy

Quote:
Originally Posted by mali28 View Post
The wall is thermally insulated but there are some heat losses through the wall. Fluent does not have the functionality to add composite wall. I first have a layer of deposit at the inside of the geometry, then I have the metal wall, then I have a thick layer of insulation. The heat will e lost from inside to outside (ambient). I can only specify one wall with one set of thermal properties and thickness.
So I have to write a UDF, through which I calculate the heat flux.

Thank you.
ComputerGuy is offline   Reply With Quote

Old   January 15, 2012, 09:43
Default
  #5
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
OK. Just wanted to make sure you understand that I think Fluent can do what you want without having to write a single line of UDF code.

Quote:
Originally Posted by mali28 View Post
Thanks, I think I have got the solution here:
http://cape-forum.com/index.php/topic,3.0.html
ComputerGuy is offline   Reply With Quote

Old   January 15, 2012, 10:10
Default
  #6
Member
 
Join Date: Jun 2011
Posts: 86
Rep Power: 15
mali28 is on a distinguished road
Quote:
Originally Posted by ComputerGuy View Post
OK. Just wanted to make sure you understand that I think Fluent can do what you want without having to write a single line of UDF code.
Fluent only calculates heat loss for a single wall, not an insulated wall. Because in the wall properties, I can only specify properties of one wall.
mali28 is offline   Reply With Quote

Old   January 15, 2012, 10:27
Default
  #7
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
If you can only specify "one wall," you haven't constructed the wall in such a way that Fluent understands that there are three distinct layers. Ensure you have created a named selected for each of the three wall volumes (Fluent 12+).

You might want to revisit some of the geometry creation and meshing tutorials for more help. If you think you've solved your problem, however, great.

ComputerGuy

Quote:
Originally Posted by mali28 View Post
Fluent only calculates heat loss for a single wall, not an insulated wall. Because in the wall properties, I can only specify properties of one wall.
ComputerGuy is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 12 October 1, 2018 07:36
heat flow UDF on coupled surface (wall-shadow wall) Friedmann Fluent UDF and Scheme Programming 0 August 5, 2010 11:25
Wall boundary condition – UDF Ssn FLUENT 0 January 25, 2008 04:43
UDF for fluxes normal to a wall Leverkin FLUENT 0 December 10, 2007 13:04
Seek help in writing UDF Jack Martinez FLUENT 9 June 14, 2007 11:24


All times are GMT -4. The time now is 18:56.