|January 20, 2012, 05:36||
how can I declare variables - please help
Join Date: Jan 2012
Posts: 9Rep Power: 7
I would like to declare a variable in blockMeshDict.
It should look like this:
with "int" it doesn't seem to work.
Thank you very much
|January 20, 2012, 06:21||
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216Rep Power: 11
as far as I know creating blockMeshDict files including variables doesn't
work, though the file itself is written in C++ style.
If you want to use variables you better write yourself a small tool
(I'm not aware of one existing)
that creates a blockMeshDict file and with this tool you can create
insert values and variables in a blockMeshDict file, which are dependent
on each other.
For the case that I'm wrong, I would also be interested in how to include
variables in a different manor.
EDIT: This looks more like a topic for the blockMesh sub Forum than for
the running/solving sub Forum
|January 20, 2012, 06:40||
Join Date: Mar 2011
Posts: 174Rep Power: 8
I think that the "m4" macros are what you are looking for.
Just look for the corresponding tutorials
.../tutorials> find ./ -name *m4
and also in the forum.
I have not used this my self but it looks easy to understand.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Sgimpi||pere||OpenFOAM||27||September 24, 2011 07:57|
|$FOAM_USER_APPBIN & LIBBIN variables not set||rassilon||OpenFOAM Installation||2||February 16, 2010 21:54|
|Ld_library_path||scottneh||OpenFOAM||9||November 21, 2009 10:15|
|PHI file structure||Eugene||Phoenics||9||November 2, 2001 23:00|
|Saving variables on a user patch with physical coordinates||Zoltan Turzo||CFX||2||April 20, 2000 15:05|