CFD Online URL
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Writing a UDF for heat loss from a composite wall

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 11, 2012, 08:34
Default Writing a UDF for heat loss from a composite wall
  #1
Senior Member
 
Join Date: Jun 2011
Posts: 108
Rep Power: 5
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: 178
Rep Power: 6
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
Senior Member
 
Join Date: Jun 2011
Posts: 108
Rep Power: 5
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: 178
Rep Power: 6
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:40
Default
  #5
Senior Member
 
Join Date: Jun 2011
Posts: 108
Rep Power: 5
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

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

Old   January 15, 2012, 09:43
Default
  #6
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 178
Rep Power: 6
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
  #7
Senior Member
 
Join Date: Jun 2011
Posts: 108
Rep Power: 5
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
  #8
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 178
Rep Power: 6
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

Thread Tools
Display Modes

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 On
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 9 January 28, 2013 14:11
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 21:26.