CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Boundary condition & Patch name (https://www.cfd-online.com/Forums/openfoam-pre-processing/157599-boundary-condition-patch-name.html)

GiuMan August 3, 2015 06:46

Boundary condition & Patch name
 
Morning to everyone,

the problem I have is really simple.
If I have an high number of patch with the same pre-name, for example:
body_top
body_side
body_under
and so on, how can I impose the same condition on all this patch?

Can i use something like
body_*
to set the boundary conditions?

Thanks,

GM

tomf August 6, 2015 05:04

Hi,

The correct syntax (for zeroGradient) would be:

Code:

"body_.*"
{
    type zeroGradient;
}

Regards,
Tom

jherb August 6, 2015 05:11

http://www.cfd-online.com/Forums/ope...ches-once.html


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