CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to add temperature to icoFoam - correct?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2012, 12:31
Default How to add temperature to icoFoam - correct?
  #1
uli
New Member
 
Join Date: Jun 2012
Posts: 25
Rep Power: 13
uli is on a distinguished road
hi all

going through the tutorial http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

I did not completely understand the implementation of the energy equation.

Code:
            fvm::ddt(T)
             + fvm::div(phi, T)
             - fvm::laplacian(DT, T)
with phi = rho*U is equal to



whereas the energy equation is:



for a 2D flow not considerung the pressure terms, the dissipation function and with DT = thermal diffusivity = lambda/(rho * c_p)

Where is my mistake?

thank you
Uli
Attached Images
File Type: png energyeq_OF.png (9.5 KB, 209 views)
File Type: png energyeq_WEIG.png (6.7 KB, 202 views)
uli is offline   Reply With Quote

Old   July 30, 2012, 14:00
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Uli,

I'm unable to answer your question, but I can make the following affirmation: that tutorial is basically an "how to copy-paste-modify code from scalarTransportFoam into icoFoam".
Here's a step-by-step explanation about scalarTransportFoam: http://openfoamwiki.net/index.php/ScalarTransportFoam

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 31, 2012, 14:38
Default
  #3
uli
New Member
 
Join Date: Jun 2012
Posts: 25
Rep Power: 13
uli is on a distinguished road
hi Bruno, thanks for your response.

according to the ScalarTransportFoam the code is correct. Then in this case phi must be U and not rho * U.
I thought it's rho * U because here it is: http://www.openfoam.org/docs/user/fvSchemes.php (chapter 4.4.5)

Uli
uli is offline   Reply With Quote

Old   July 31, 2012, 16:48
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Uli,

Ah! Now I get it... this is so basic that even I can answer
  • Incompressible solvers assume constant rho, therefore only present in the viscosity.
  • Compressible solvers need "rho" as a field, therefore present in "rho * U".
Best regards,
Bruno
__________________
wyldckat 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 06:36
Temperature gradient in CFX Chander CFX 5 January 7, 2015 03:00
icofoam with temperature and 3D model hsingtzu OpenFOAM Running, Solving & CFD 0 March 8, 2012 17:13
Is my UDF correct ehooi FLUENT 0 January 5, 2011 02:56
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 00:07


All times are GMT -4. The time now is 17:15.