CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   rhoThermo.correct()'s definition (https://www.cfd-online.com/Forums/openfoam-programming-development/155268-rhothermo-correct-s-definition.html)

sharonyue June 28, 2015 05:38

rhoThermo.correct()'s definition
 
Hello guys,

Im looking for rhoThermo.correct()'s definition.

In class rhoThermo.H, fluidThermo.H, basicTHermo.H,C. I did not find the definition. I only find a declaration in basicThermo.H:

Code:

virtual void correct() = 0;
Anyone know where is the definition of this function?

Thanks

sharonyue June 30, 2015 09:44

Hello?....

Okay, I solved this, There is an rhoThermos.C file, which use makeThermo.H to add runtime selection mechanism. If in the case, heRhoThermo is defined, it will look for this correct() function in heRhoThermo.C file.


All times are GMT -4. The time now is 22:48.