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/)
-   -   [blockMesh] mergePatchPairs Problems (https://www.cfd-online.com/Forums/openfoam-meshing/97694-mergepatchpairs-problems.html)

Smed February 22, 2012 16:57

mergePatchPairs Problems
 
1 Attachment(s)
I am trying to mesh the attached drawing. Below is my blockMeshDict file which is receiving a fatal error when I try to run blockMesh. The error says "point 10 already marked for removal" and I'm not sure what this means. Any help getting this to work would be appreciated.

Quote:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

//convertToMeters 0.1;

vertices
(
//front
(0 0 0) //0
(1 0 0)
(2 0 0)
(0 1 0)
(1 1 0)
(2 1 0)
(0 2 0)
(1 2 0)

(0 0 1)
(1 0 1)
(2 0 1)
(0 1 1)
(1 1 1)
(2 1 1)
(0 2 1)
(1 2 1)

(2 2 0)
(2 2 1)
(1 1.5 0)
(1 1.5 1)
(2 1.5 0)
(2 1.5 1)
);

blocks
(
hex (0 1 7 6 8 9 15 14) (10 20 1) simpleGrading (1 1 1)
hex (1 2 5 4 9 10 13 12) (10 10 1) simpleGrading (1 1 1)
hex (18 20 16 7 19 21 17 15) (10 10 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 3 11 8)
(3 6 14 11)
);
}
outlet1
{
type patch;
faces
(
(2 5 13 10)
);
}
shell
{
type wall;
faces
(
(6 7 15 14)
(7 16 17 15)
(16 20 21 17)
(20 18 19 21)
(18 4 12 19)
(4 5 13 12)

(1 2 10 9)
(0 1 9 8)
);
}

frontAndBack
{
type empty;
faces
(
(0 1 7 6)
(1 2 5 4)
(8 9 15 14)
(9 10 13 12)

(18 20 16 7)
(19 21 17 15)
);
}
);

patches
(
patch slave
(
(1 7 15 9)
)

patch master1
(
(1 4 12 9)
)

patch master2
(
(18 7 15 19)
)
);

mergePatchPairs
(
(master1 slave)
(master2 slave)
);

// ************************************************** *********************** //

anon_a February 23, 2012 06:40

I can't look in detail to what you have done right now, but I have to say that when I use mergePatchPairs, I define the "master" and "slave" patches the other way around. The master is the one that remains in the end, not the one that is merged.

Smed February 23, 2012 07:59

anon_a, that was exactly what was wrong. My "master" and "slave" patch definitions were backward. Thanks for your help!


All times are GMT -4. The time now is 19:25.