CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Is it possible to overwrite parameters read from controlDict? (https://www.cfd-online.com/Forums/openfoam-programming-development/142740-possible-overwrite-parameters-read-controldict.html)

CFDUser_ October 8, 2014 10:02

Is it possible to overwrite parameters read from controlDict?
 
Dear All,

Is it possible to overwrite parameters read from controlDict?

Thanks & Regards,
CFDUser_

kmooney October 9, 2014 16:30

Most likely! What are you trying to over-write?

wyldckat October 11, 2014 10:29

Quick answer: Look for the methods present in and inherited by the class "Time", on the Doxygen generated code documentation, which is also available online: http://foam.sourceforge.net/docs/cpp/
The variable that instantiates this class "Time" is/was usually called "runTime".
I'm not providing a direct link to said page, because the link will be outdated as soon as a new version of OpenFOAM is released :(

Quote:

Originally Posted by kmooney (Post 513610)
Most likely! What are you trying to over-write?

My question was going to be the same :)

CFDUser_ November 16, 2014 15:22

Dear All,

This is not a problem for me any more but I would like to write simple answer which will make readers think in proper way.

Question is "Is it possible to overwrite parameters read from controlDict? "

If I were one of the replier, my answer will be something like this:

"controlDict variables are read with const reference means cannot be modified during simulation. Also the are read with readIfModified tag, means after every time step it will check for if modified condition and update automatically.
Why/what you want to modify?"

Thanks & Regards,
CFDUser_


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