|
[Sponsors] |
April 24, 2013, 10:46 |
How to define macros in Dictionary files?
|
#1 | |
Senior Member
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 13 |
Hi Foamers,
as the newest version of OpenFOAM 2.2.x supports Dictionary Macro Expansion, I wonder if it can be used for blockMeshDict: .... xSize 10; ySize 18; zSize 15; ... hex (0 22 24 11 37 47 35 40) (xSize ySize zSize) simpleGrading (0.5 0.5 1); .... But when runing blockMesh, it says Quote:
Best, David Edit1: Using predefined variables needs '$' . Edit2: It would be great if mathematical operation is supported via macros, e.g. a 5; b 6; c = $a + $b; Last edited by keepfit; April 24, 2013 at 15:30. |
||
Tags |
dictionary, macros |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run time Selection Mechanism - Some help required to understand | jaswi | OpenFOAM Programming & Development | 3 | October 29, 2015 13:42 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 10:46 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 11:48 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 12:24 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 20:51 |