|January 16, 2013, 08:31||
Overwriting dictionary from BC
Join Date: Jan 2011
Location: London, UK
Posts: 251Rep Power: 7
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 ( IOobject ( flowDict_, this->db().time().constant(), this->db(), IOobject::MUST_READ, IOobject::AUTO_WRITE ) );
flowDict.set("allCheckAlpha", true); flowDict.Foam::regIOobject::write();
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?
|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|