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

Writing dictionary at run time.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2015, 03:26
Default Writing dictionary at run time.
  #1
Member
 
Divyaprakash
Join Date: Jun 2014
Posts: 71
Rep Power: 12
Divyaprakash is on a distinguished road
I want to write the following dictionary at run time. Can someone guide me on which syntax to use?

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
);
}
)

As far as I understand, the dictionary should be within curly braces, then why are some entries such as defaultFieldValues have entries within parenthesiss.

Last edited by Divyaprakash; June 22, 2015 at 05:42.
Divyaprakash is offline   Reply With Quote

Reply

Tags
dictionaries, run time


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
time step directories naming issue Andrea_85 OpenFOAM 3 April 3, 2014 09:38
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 11:41.