|
[Sponsors] |
July 14, 2014, 17:21 |
Reading a field(?) within a dictionary
|
#1 |
Member
Clint Bedick
Join Date: May 2011
Posts: 43
Rep Power: 15 |
I'm having some trouble reading some dictionary entries into a model I'm working on.
This is a lagrangian simulation, and within my reactingCloud1Properties dictionary, there is a subDict called localInteractionCoeffs (already defined as 'coeffDict()'). I cannot get the data within the sub dictionary below that ("patches"). It has '(' braces instead of '{', so it isn't a dictionary entry, right? Subdict doesn't work. However, the next level down, does contain dictionary entries, which I want. I just cannot seem to figure out what type of data this is so that I could say: x = this->coeffDict().lookup("patches"); And then do another lookup or subdict to get values for a specific patch name (which I already know). Any thoughts? ---------------------------------------------------------------------- localInteractionCoeffs { particleProperties { youngsModulus (1E8 5 1); poissonsRatio (0.33); surfaceEnergy (0); } patches ( inlet { type escape; } outlet { type escape; } walls { type escape; } nozzleBottom { type escape; } coupon { type deposit; e 0.1; mu 0.1; youngsModulus 1E9; // Pa poissonsRatio 0.3; surfaceEnergy 0; // J/m2 } ); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
solid to fluid heattransfer with chtMultiRegionFoam | nakor | OpenFOAM | 11 | March 21, 2011 09:28 |
Initial field from res file by "node to node" reading | Nevel | CFX | 1 | June 16, 2009 08:59 |
reading a list of lists from a dictionary | kian | OpenFOAM Running, Solving & CFD | 2 | June 3, 2009 11:44 |
[Commercial meshers] FluentMesh conversion problem | waynezw0618 | OpenFOAM Meshing & Mesh Conversion | 12 | December 1, 2006 00:12 |
Reading a numbered selfmade dictionary | fra76 | OpenFOAM Running, Solving & CFD | 0 | April 19, 2006 11:05 |