|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 ![]() |
Hi at all
What do those functions do? thermo->correct(); rho = thermo->rho(); Thanks Peter |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 29 ![]() |
Thermo->correct updates thermodynamic properties, thermo->rho calculates density based on the thermodynamic model.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Oct 2009
Posts: 140
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 29 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Manaf Muhammed
Join Date: Oct 2018
Posts: 21
Rep Power: 8 ![]() |
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? |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
thermo model - where is R() defined? | OMN | OpenFOAM | 5 | June 24, 2011 08: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 05:02 |
dieselFoam: how to implement thermo for liquid/gas continuous phase | natrask | OpenFOAM Running, Solving & CFD | 1 | July 16, 2009 06:37 |
DimensionedFieldor thermo stuff | niklas | OpenFOAM Running, Solving & CFD | 4 | January 29, 2008 08:45 |