|
[Sponsors] |
January 16, 2013, 08:31 |
Overwriting dictionary from BC
|
#1 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
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: Code:
IOdictionary flowDict ( IOobject ( flowDict_, this->db().time().constant(), this->db(), IOobject::MUST_READ, IOobject::AUTO_WRITE ) ); Code:
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? Thanks! Pablo |
|
January 25, 2013, 05:24 |
|
#2 |
Member
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 16 |
Afaik you could just reconstruct the constant directorie by using
reconstructPar -constant Best regards Jim |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
writing subDict in a dictionary | ubaid | OpenFOAM Programming & Development | 3 | October 25, 2014 18: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 16: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 |