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/)
-   -   Read_if_modified (http://www.cfd-online.com/Forums/openfoam-programming-development/121061-read_if_modified.html)

openfoammaofnepo July 20, 2013 09:25

Read_if_modified
 
Hi All,

In createFields.H, I write the following lines:


IOdictionary additionalControlsDict
(
IOobject
(
"additionalControls",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);

dimensionedScalar relax(additionalControlsDict.lookup("relax"));

Then in I use this quantity in fireFoam.C. However, when I modify the value of this quantity, I found that the solver did not use the new at all, and it still used the old one. Could anybody tell me if there is something I forget to change in the code? Thank you very much!


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