CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Overwriting dictionary from BC

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

Like Tree1Likes
  • 1 Post By Phicau

LinkBack Thread Tools Display Modes
Old   January 16, 2013, 08:31
Default Overwriting dictionary from BC
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 386
Rep Power: 10
Phicau is on a distinguished road
Dear all,

I am creating a custom BC that has to read a dictionary, and after some calculations, write back some new values. My dictionary is initially located in ./constant/ folder, so it is accessed easily:

    IOdictionary flowDict
Later on the code I try to write a new value:

        flowDict.set("allCheckAlpha", true);
Everything works fine, but if I run my code in parallel, this dictionary gets written within ./processor*/constant/ . Then, if I restart the simulation, it is read by default from this last location.

It would be very convenient for me not to have hundreds of flowDicts scattered around in the ./processor*/constant/ folders, but just one copy in the main constant folder.

Any clues on how to fix this issue?


mm.abdollahzadeh likes this.
Phicau is offline   Reply With Quote

Old   January 25, 2013, 05:24
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 8
JimKnopf is on a distinguished road
Afaik you could just reconstruct the constant directorie by using

reconstructPar -constant

Best regards
JimKnopf is offline   Reply With Quote


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
writing subDict in a dictionary ubaid OpenFOAM Programming & Development 3 October 25, 2014 17:17
New Boundary Condition: Reading Dictionary Problem Koga OpenFOAM Programming & Development 0 November 26, 2012 06:01
Reading from User Defined Dictionary File brosemu OpenFOAM Running, Solving & CFD 2 March 30, 2009 15:25
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
FoamX error aachenBomb case Ervin Adorean (Adorean) OpenFOAM Pre-Processing 13 March 7, 2005 04:50

All times are GMT -4. The time now is 19:09.