CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   About the thermo.rho() (http://www.cfd-online.com/Forums/openfoam-solving/102234-about-thermo-rho.html)

Qingang Xiong May 25, 2012 12:20

About the thermo.rho()
 
Dear,
Have anyone using reactingFoam? There is a line in the "createFields.H" that load as :
00020 volScalarField rho
00021 (
00022 IOobject
00023 (
00024 "rho",
00025 runTime.timeName(),
00026 mesh
00027 ),
00028 thermo.rho()
00029 );

But I haven't found function rho() in class "hsCombustionThermo". What about this? Thank you for help.:p

mturcios777 May 25, 2012 13:25

The termo models have several levels of templatization: have a look at
http://www.openfoam.org/docs/user/thermophysical.php

I've been making some modifications to the thermo models. I believe hsCombustion inherits from hsPsiThermo (possibly hsRhoThermo) and you'll find the rho member function there. As always, the online DOxygen documentation is super helpful in cases such as these.

Qingang Xiong May 29, 2012 12:38

Quote:

Originally Posted by mturcios777 (Post 363148)
The termo models have several levels of templatization: have a look at
http://www.openfoam.org/docs/user/thermophysical.php

I've been making some modifications to the thermo models. I believe hsCombustion inherits from hsPsiThermo (possibly hsRhoThermo) and you'll find the rho member function there. As always, the online DOxygen documentation is super helpful in cases such as these.

Dear mturcios777,
Thank you for your help. I understand the structure of this thermo class.:D


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