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] How to merge the master and slave patch? (https://www.cfd-online.com/Forums/openfoam-meshing/143299-how-merge-master-slave-patch.html)

sharonyue October 21, 2014 05:01

How to merge the master and slave patch?
 
Hi guys,

I made a mesh by snappyHexMesh, this is a snippet of the code:
Code:

baffles
        {
            level      (1 1);
            faceZone baffle;
            faceType baffle;
            cellZone heater;
            cellZoneInside inside;
        }

After its done, in my boundary file this is:
Code:

baffles_BAFFLES
    {
        type            wall;
        nFaces          1220;
        startFace      291324;
    }
    baffles_BAFFLES_slave
    {
        type            wall;
        nFaces          1220;
        startFace      292544;
    }

How can I merge this two exactly same patches? Thanks.

BTW,I tried createPatch, cuz the nFaces is not zero, so the slave patch is still there.

Phicau October 21, 2014 05:22

Hi sharonyue,

since they are consecutive, you can try this:

Code:

    baffles
    {
        type            wall;
        nFaces          2440;
        startFace      291324;
    }

Best,

Pablo

sharonyue October 21, 2014 05:24

Quote:

Originally Posted by Phicau (Post 515322)
Hi sharonyue,

since they are consecutive, you can try this:

Code:

    baffles
    {
        type            wall;
        nFaces          2440;
        startFace      291324;
    }

Best,

Pablo

So just delete it manually? I try it now, and give u a feedback! Thanks!

It works!!!Thanks very much!


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