CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Use of regular expressions for patch names in boundary conditions (http://www.cfd-online.com/Forums/openfoam/72559-use-regular-expressions-patch-names-boundary-conditions.html)

terrybarnaby February 10, 2010 03:53

Use of regular expressions for patch names in boundary conditions
 
Hi,

I would like to use regular expressions to define the boundary conditions on a set of patches. Does anyone know if this possible in OpenFOAM 1.6 ?

I have tried:

boundaryField
{
car_.*
{
type zeroGradient;
}
}

But this does not work.

terrybarnaby February 10, 2010 11:40

Ah I have just found out how.
You need double quotes as:

boundaryField
{
"car_.*"
{
type zeroGradient;
}
}

Cheers

Terry


All times are GMT -4. The time now is 03:27.