CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Reading a field(?) within a dictionary

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 14, 2014, 17:21
Default Reading a field(?) within a dictionary
  #1
Member
 
Clint Bedick
Join Date: May 2011
Posts: 30
Rep Power: 5
ecbmxer is on a distinguished road
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
}
);
}
ecbmxer is offline   Reply With Quote

Reply

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
solid to fluid heattransfer with chtMultiRegionFoam nakor OpenFOAM 11 March 21, 2011 10: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
FluentMesh conversion problemwaiting for help waynezw0618 OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 December 1, 2006 00:12
Reading a numbered selfmade dictionary fra76 OpenFOAM Running, Solving & CFD 0 April 19, 2006 11:05


All times are GMT -4. The time now is 18:57.