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/)
-   -   Setting up fields in OpenFoam (http://www.cfd-online.com/Forums/openfoam-programming-development/119659-setting-up-fields-openfoam.html)

AB08 June 21, 2013 05:34

Setting up fields in OpenFoam
 
Hi....m very new to OpenFoam................. can sm1 tell me what does.......The last two lines of the following does????

IOdictionary transportProperties
(
IOobject
(
"transportProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE

)
);

Lieven June 21, 2013 06:36

Hi AB08,

They basically do what they say. You are creating an IOobject with the properties that:
IOobject::MUST_READ_IF_MODIFIED: if you change the file during the simulation, it is read again automatically
IOobject::NO_WRITE: the IOdictionary is never written automatically. Basically meaning that OpenFOAM will not overwrite your input file.

Cheers,

Lieven

AB08 June 21, 2013 15:41

Thanx a lot Lieven........ :)


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