CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

thermo->correct

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 2, 2011, 15:38
Default thermo->correct
  #1
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Hi at all

What do those functions do?

thermo->correct();

rho = thermo->rho();

Thanks
Peter
Peter_600 is offline   Reply With Quote

Old   March 2, 2011, 19:16
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
Thermo->correct updates thermodynamic properties, thermo->rho calculates density based on the thermodynamic model.
mturcios777 is offline   Reply With Quote

Old   March 3, 2011, 08:07
Default
  #3
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Thank you very much!

When is it actually necessary to update thermodynamic properties? After mesh motion ? Topological changes?

Does the thermo-> rho step replace my rhoeqn.H file?

Thanks in advance
Peter
Peter_600 is offline   Reply With Quote

Old   March 4, 2011, 14:46
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
I guess it depends on what type of model you are running, but if you are solving energy/enthalpy/etc transport equations, then you need to update to thermodynamic properties. Temperature, density and transport properties (like alpha an mu) come from the thermodynamics. I looked at the definition of the correct() member function for hPsiThermo, and all it does is call calculate() which is defined in the following file:

http://foam.sourceforge.net/doc/Doxy...8C_source.html
(for OF 1.6)

thermo.rho() returns the density based on pressure. As such it appears to overwrite the values of the field, but we still needed to solve a transport equation for rho, since most of the equations are coupled through rho.
mturcios777 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
thermo model - where is R() defined? OMN OpenFOAM 5 June 24, 2011 07:45
thermo typr for liquid themophysical model Hrushi OpenFOAM Running, Solving & CFD 1 December 2, 2010 06:13
Accessing species thermo data in OF 1.6 dominik_christ OpenFOAM Programming & Development 0 August 16, 2009 04:02
dieselFoam: how to implement thermo for liquid/gas continuous phase natrask OpenFOAM Running, Solving & CFD 1 July 16, 2009 05:37
DimensionedFieldor thermo stuff niklas OpenFOAM Running, Solving & CFD 4 January 29, 2008 08:45


All times are GMT -4. The time now is 02:45.