|
[Sponsors] |
July 30, 2012, 13:31 |
How to add temperature to icoFoam - correct?
|
#1 |
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 14 |
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) 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 |
|
July 30, 2012, 15:00 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
July 31, 2012, 15:38 |
|
#3 |
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 14 |
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 |
|
July 31, 2012, 17:48 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Uli,
Ah! Now I get it... this is so basic that even I can answer
Bruno
__________________
|
|
|
|
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 |