CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] mergePatchPairs with multiple areas (https://www.cfd-online.com/Forums/openfoam-meshing/159746-mergepatchpairs-multiple-areas.html)

bjoern1 September 22, 2015 02:50

mergePatchPairs with multiple areas
 
Hi together!

I try to use mergePatchPairs to arrange a block-structured grid.
It looks somehow like this:

block2 | block5 |block4
------------------------------------
block1 | oldBlock |block3
-------------(sym.)---------------

The idea is that the blocks 1-5 have a coarser grid.
When I use mergePatchPairs like this

Code:

mergePatchPairs
(
(oldInlet A1East)
(oldOutlet A3West)
(oldTopbottom A5South)
)

I get the following error:

Code:

--> FOAM FATAL ERROR:
Duplicate point found in cut face. Error in the face cutting algorithm for global face 4(9160 9164 9165 9161) local face 4(13 12 18 19)
Slave size: 25 Master size: 228 index: 10.

I think its because of the edges marked with an "x" in the following picture:

block2 | block5 |block4
----------x--------------x----------
block1 | oldBlock |block3
-------------(sym.)---------------

Can someone help me out? I searched the forum but didnt really find an answer. Is it possible to run mergePatchPairs twice?

Thanks a lot in advance!

Björn

bjoern1 October 1, 2015 07:07

Just in case that somebody has similar problems. My work-around was the following: I merged the oldBlock, block1 and block3 with mergePatchPairs. Then I created a new case with block2, block5 and block4 and used mergeMeshes and stitchMesh to stitch the both cases together. In another case I used AMI boundaries to create the mesh.


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