|
[Sponsors] |
Programmatically create fvSolution dictionary |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 3, 2009, 09:22 |
Hi all,
I'm trying to program
|
#1 |
Member
Ivor Clifford
Join Date: Mar 2009
Location: Switzerland
Posts: 94
Rep Power: 17 |
Hi all,
I'm trying to programmatically create the fvSolution dictionary on OF-1.4.1-dev but I'm getting stuck with the individual solver entries since they consist of a keyword, token and dictionary, e.g. T PCG { ...... } I am able to create an entry with either the token ( T PCG; )or dictionary ( T { .... } ) but not one with both. I'm trying to avoid using the low level stream classes (ITstream, etc). I had a look in the FoamX source code for ideas on how they do it and they seem to have rewritten a lot of the working code using the low level stream classes for creating the dictionaries so I didn't have much luck there. My guess is I need to use the dictionary::add(const tokenList&) method but I don't know how to retrieve the token list for the subdictionary. Any suggestions would be appreciated. Thanks Ivor |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FvSolution pRefCell and pRefValue | maka | OpenFOAM Pre-Processing | 5 | February 17, 2015 03:00 |
General help for fvSchemes and fvSolution settings | harly | OpenFOAM Running, Solving & CFD | 4 | September 7, 2009 10:31 |
Dictionary | maka | OpenFOAM Bugs | 3 | February 18, 2009 10:26 |
[swak4Foam] FunkySetFields dictionary | gschaider | OpenFOAM Community Contributions | 14 | December 3, 2008 21:13 |
What must be defined in fvSolution | Marco Kupiainen (Kupiainen) | OpenFOAM Running, Solving & CFD | 1 | February 21, 2005 05:03 |