CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   substitute patch name (http://www.cfd-online.com/Forums/openfoam-pre-processing/112839-substitute-patch-name.html)

marco.müller February 6, 2013 07:55

substitute patch name
 
Hi,

is it possible to substitute patch names in boundary condition files, so I only have to enter them once in an include-file. If I try the following it does not work:

"include-file", i. e.:

flowVelocity (0 0 -10);
pressure 0;
turbulentKE 0.24;
turbulentOmega 1.78;
xyz patchname-from-snappy;
#inputMode merge


boundary condition file, i. e. "p":

#include "include/initialConditions"

dimensions [0 2 -2 0 0 0 0];

internalField uniform $pressure;

boundaryField
{

...

$xyz
{
type zeroGradient;
}
}



Thanks
Marco


All times are GMT -4. The time now is 17:45.