CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   Boundary conditions for the group of patches (

Roman1 November 5, 2013 15:31

Boundary conditions for the group of patches
Hello everybody. Please help with resolving next problem. I use a OF case that includes very many different geometry objects, mostly boxes. Writing boundary conditions for each of them takes much time and much "paper". They all have the equal BC. Is there a method of assigning one and the same BC to a group of patches or walls (to a list of patches or to all together) ? Thanks.

ngj November 5, 2013 17:01

Good evening Roman,

You want to look into the use of regular expression for the naming of the boundaries. A good example for this is the motorBike tutorial, which you can find here (for OF2.2.0):


Good luck,


Roman1 November 6, 2013 03:07

NGJ, thanks and best regards.

All times are GMT -4. The time now is 23:24.