CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   problem in reading the code (https://www.cfd-online.com/Forums/openfoam/147343-problem-reading-code.html)

Gary51075607 January 19, 2015 02:43

problem in reading the code
 
Hi, everyone

I am a new in learning the OpenFoam. The solver of buoyantSimpleFoam is what i am interesting in . but i can not totally understand the following code in the creatFields.H.

autoPtr<rhoThermo> pThermo(rhoThermo::New(mesh));
rhoThermo& thermo = pThermo();
thermo.validate(args.executable(), "h", "e");


Can anyone help me?

Thank you very much in advance!

Gary.


All times are GMT -4. The time now is 15:42.