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, 13:31
Default How to add temperature to icoFoam - correct?
  #1
uli
New Member
 
Join Date: Jun 2012
Posts: 25
Rep Power: 14
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, 211 views)
File Type: png energyeq_WEIG.png (6.7 KB, 204 views)
uli is offline   Reply With Quote

Old   July 30, 2012, 15:00
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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, 15:38
Default
  #3
uli
New Member
 
Join Date: Jun 2012
Posts: 25
Rep Power: 14
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, 17:48
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 07:36
Temperature gradient in CFX Chander CFX 5 January 7, 2015 04:00
icofoam with temperature and 3D model hsingtzu OpenFOAM Running, Solving & CFD 0 March 8, 2012 18:13
Is my UDF correct ehooi FLUENT 0 January 5, 2011 03:56
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 01:07


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