CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/)
-   -   Define patches after MirrorMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/117122-define-patches-after-mirrormesh.html)

janepen May 2, 2013 11:05

Define patches after MirrorMesh
 
Hi, I am trying to create a mesh with four identical cylinders in a domain. Then I want to define different patch name for these four cylinders.

I firstly create a cylinder in a quarter domain (1/4), and defined the patch name for this cylinder (namely, 'pile1'). I then mirror twice to get the whole domain with four cylinders inside.

Finally, the patch 'pile1' contains four cylinders, which is not what I want to.
Anyone can help me to solve this problem? thanks.

John

janepen May 3, 2013 06:17

I have solved my problem, thank you anyway.

Simply select the pile1 patch, copy it to four patches with different name, then
divide the number of faces by the number of cylinders, and change the start face accordingly.

Wish it helps your problem.

ngj May 3, 2013 07:17

Hi John,

Another way could have been to use the createPatch utility. If I remember correctly, then you can select some boundary faces and assign these to a different patch. This could avoid problems in the manual typing of the startFace and number of faces.

See the dictionary here:

Code:

<OF-path>/applications/utilities/mesh/manipulation/createPatch/createPatchDict
Kind regards

Niels


All times are GMT -4. The time now is 16:34.