CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Read_if_modified

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 20, 2013, 10:25
Default Read_if_modified
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 168
Rep Power: 3
openfoammaofnepo is on a distinguished road
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!
openfoammaofnepo is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 23:59.