CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Including lists in a dictionary.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2015, 07:14
Default Including lists in a dictionary.
  #1
Member
 
Divyaprakash
Join Date: Jun 2014
Posts: 71
Rep Power: 12
Divyaprakash is on a distinguished road
Hi,

I need to create a dictionary at run time. I have found the syntax for writing a dictionary within a dictionary on these forums but I need to include a list within a dictionary. How do I do that.
Here's the dictionary which I intend to write at run time. Please tell me about which syntax is to be used for including a list.

defaultFieldValues
(
volScalarFieldValue FOAM_MASK 0
);

regions
(
cylinderToCell
{
p1 (0.1 0 0);
p2 (0.1 0 0.01);
radius 0.05;
fieldValues
(
volScalarFieldValue FOAM_MASK 1
);
}
)
Divyaprakash is offline   Reply With Quote

Reply

Tags
dictionary, lists, run time, syntax


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 Off
Pingbacks are On
Refbacks are On


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 a list of lists from a dictionary kian OpenFOAM Running, Solving & CFD 2 June 3, 2009 11:44
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


All times are GMT -4. The time now is 08:37.