CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Is it possible to overwrite parameters read from controlDict?

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

Like Tree1Likes
  • 1 Post By kmooney

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2014, 10:02
Default Is it possible to overwrite parameters read from controlDict?
  #1
Member
 
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13
CFDUser_ is on a distinguished road
Dear All,

Is it possible to overwrite parameters read from controlDict?

Thanks & Regards,
CFDUser_
CFDUser_ is offline   Reply With Quote

Old   October 9, 2014, 16:30
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17
kmooney is on a distinguished road
Most likely! What are you trying to over-write?
wyldckat likes this.
kmooney is offline   Reply With Quote

Old   October 11, 2014, 10:29
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 View Post
Most likely! What are you trying to over-write?
My question was going to be the same
wyldckat is offline   Reply With Quote

Old   November 16, 2014, 15:22
Default
  #4
Member
 
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13
CFDUser_ is on a distinguished road
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_
CFDUser_ is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do we read meshes? yzeyue Main CFD Forum 1 March 11, 2014 06:53
[PyFoam] read result values with pyFoam ilpaso OpenFOAM Community Contributions 6 February 20, 2014 16:46
Parameters for multigrid solver HaZe OpenFOAM Running, Solving & CFD 3 January 28, 2012 02:05
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 UDS_rambler FLUENT 2 November 22, 2011 09:46
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51


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