CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   meaning of two mesh key in createFields (http://www.cfd-online.com/Forums/openfoam-programming-development/119681-meaning-two-mesh-key-createfields.html)

AmirBaqa1987 June 22, 2013 08:28

meaning of two mesh key in createFields
 
Hi
Dear Foamer


what do 2 terms of "mesh" in the createFields.H mean ?

IOobject
(
"U",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);


Best Regards

nimasam June 22, 2013 12:03

Dear Behnoud

i suggest you that consider some time for reading C++ and knowing the meaning of constructor
in brief, when you are going to create an object of class, you introduce it by its constructor, now you are going to introduce a volVectorField which construct from two objects IOobject and mesh


All times are GMT -4. The time now is 00:54.