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] problem generating the mesh (https://www.cfd-online.com/Forums/openfoam-meshing/225428-problem-generating-mesh.html)

tony097 March 26, 2020 10:47

problem generating the mesh
 
1 Attachment(s)
Hi everyone, it's the first time here.
I have some problems generating the mesh. below I've attached the geometry of the situation i'm trying to elaborate.

the error message is:
Inconsistent number of faces between block pair 1 and 3

From function void Foam::blockMesh::calcMergeInfo()
in file blockMesh/blockMeshMerge.C at line 217.

here is the blockMeshDict.
thank you in advance.

convertToMeters 0.01;

vertices
(
(-127 0 -7.55)
(-127 5.05 -7.55)
(-127 10.1 -7.55)
(-19 0 -7.55)
(-19 5.05 -7.55)
(-19 10.1 -7.55)
(0 -1.27 -7.55)
(0 0 -7.55)
(0 5.05 -7.55)
(0 10.1 -7.55)
(19 -1.27 -7.55)
(19 0 -7.55)
(19 5.05 -7.55)
(19 10.1 -7.55)
(63.5 -1.27 -7.55)
(63.5 0 -7.55)
(63.5 5.05 -7.55)
(63.5 10.1 -7.55)
(127 -1.27 -7.55)
(127 0 -7.55)
(127 5.05 -7.55)
(127 10.1 -7.55)
(-127 0 7.55)
(-127 5.05 7.55)
(-127 10.1 7.55)
(-19 0 7.55)
(-19 5.05 7.55)
(-19 10.1 7.55)
(0 -1.27 7.55)
(0 0 7.55)
(0 5.05 7.55)
(0 10.1 7.55)
(19 -1.27 7.55)
(19 0 7.55)
(19 5.05 7.55)
(19 10.1 7.55)
(63.5 -1.27 7.55)
(63.5 0 7.55)
(63.5 5.05 7.55)
(63.5 10.1 7.55)
(127 -1.27 7.55)
(127 0 7.55)
(127 5.05 7.55)
(127 10.1 7.55)
);

blocks
(
hex (0 3 4 1 22 25 26 23) (15 15 1) simpleGrading (0.5 1.5 1)
hex (1 4 5 2 23 26 27 24) (15 15 1) simpleGrading (0.5 0.5 1)
hex (3 7 8 4 25 29 30 26) (30 15 1) simpleGrading (0.5 1.5 1)
hex (4 8 9 5 26 30 31 27) (30 5 1) simpleGrading (0.5 0.5 1)
hex (6 10 11 7 28 32 33 29) (50 25 1) simpleGrading (2 1 1)
hex (7 11 12 8 29 33 34 30) (50 15 1) simpleGrading (2 1.5 1)
hex (8 12 13 9 30 34 35 31) (50 5 1) simpleGrading (2 0.5 1)
hex (10 14 15 11 32 36 37 33) (30 25 1) simpleGrading (1.5 1 1)
hex (11 15 16 12 33 37 38 34) (30 15 1) simpleGrading (1.5 1.5 1)
hex (12 16 17 13 34 38 39 35) (30 5 1) simpleGrading (1.5 0.5 1)
hex (14 18 19 15 36 40 41 37) (15 25 1) simpleGrading (1.5 1 1)
hex (15 19 20 16 37 41 42 38) (15 15 1) simpleGrading (1.5 1.5 1)
hex (16 20 21 17 38 42 43 39) (15 5 1) simpleGrading (1.5 0.5 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces

(
(0 22 23 1)
(1 23 24 2)
);
}
outlet
{
type patch;
faces
(
(18 40 41 19)
(19 41 42 20)
(20 42 43 21)
);
}
upperWall
{
type wall;
faces
(
(2 24 27 5)
(5 27 31 9)
(9 31 35 13)
(13 35 39 17)
(17 39 21 43)
);
}
lowerWall
{
type wall;
faces
(
(0 22 25 3)
(3 25 29 7)
(7 29 28 6)
(6 28 32 10)
(10 32 36 14)
(14 36 40 18)
);
}
frontAndBack
{
type empty;
faces
(
(0 1 4 3)
(1 2 5 4)
(3 4 8 7)
(4 5 9 8)
(6 7 11 10)
(7 8 12 11)
(8 9 13 12)
(10 11 15 14)
(11 12 16 15)
(12 13 17 16)
(14 15 19 18)
(15 16 20 19)
(16 17 21 20)
(22 23 26 25)
(23 24 27 26)
(25 26 30 29)
(26 27 31 30)
(28 29 33 32)
(29 30 34 33)
(30 31 35 34)
(32 33 37 36)
(33 34 38 37)
(34 35 39 38)
(36 37 41 40)
(37 38 42 41)
(38 39 43 42)
);
}
);

mergePatchPairs
(
);

brammekeuh987 April 3, 2020 02:36

Hi Tony

Did you found the answer yet?
Your error message is actually quite straight forward:
"Inconsistent number of faces between block pair 1 and 3"

So over here is your answer: https://www.cfd-online.com/Forums/op...ber-faces.html

In the beginning I was also struggling with these kind of problems, the best you can do is google the error message, but without any numbers or names in them. Otherwise it isn't generic enough. So for this you can google " Inconsistent number of faces between block pair and "

Back to the problem: Openfoam start calculating from 0, so the blockpairs which have a problem are:
hex (1 4 5 2 23 26 27 24) (15 15 1) simpleGrading (0.5 0.5 1)
and
hex (4 8 9 5 26 30 31 27) (30 5 1) simpleGrading (0.5 0.5 1)

So from a first guess: the grading is in both directions the same, so no issue. But as these blocks 'touch' each other, the number of cells should match for their common face. 15 15 1 and 30 5 1 don't match (at least 2 dimensions should be the same). From the looks of it, the 5 needs to be a 15.

Good luck!


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