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

thermo->correct

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2011, 14:38
Default thermo->correct
  #1
Senior Member
 
Join Date: Oct 2009
Posts: 140
Rep Power: 16
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, 18:16
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
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, 07:07
Default
  #3
Senior Member
 
Join Date: Oct 2009
Posts: 140
Rep Power: 16
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, 13:46
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
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

Old   April 1, 2019, 07:58
Default
  #5
New Member
 
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7
manafaero is on a distinguished road
Dear sir

Could youplease tell me where can i find the definition of correct and update in openfoam. I am using Smagorinsky mode in incompressible LES . For eg in that files i have lines like

GenEddyVisc::correct(gradU);
updateSubGridScaleFields(gradU());

how or where can i find the definition of correct and update?
manafaero 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
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 05: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 07:45


All times are GMT -4. The time now is 10:33.