CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (http://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   Meshing Error (http://www.cfd-online.com/Forums/openfoam-meshing/107691-meshing-error.html)

Sagun October 4, 2012 05:35

Meshing Error
 
Hello everyone!,

I'm trying to simulate two-phase laminar flow around a cylinder in 2-D (the z-dimension is empty). However, on doing checkMesh I get this error:

Checking topology...
Boundary definition OK.
***Total number of faces on empty patches is not divisible by the number of cells in the mesh. Hence this mesh is not 1D or 2D.

Failed 1 mesh checks.


Here is how my blockMeshDict file looks like:

convertToMeters 1;

vertices
(
(-30 15 0)
(-2.121320 15 0)
(2.121320 15 0)
(30 15 0)
(-30 2.121320 0)
(-2.121320 2.121320 0)
(2.121320 2.121320 0)
(30 2.121320 0)
(-30 -2.121320 0)
(-2.121320 -2.121320 0)
(2.121320 -2.121320 0)
(30 -2.121320 0)
(-30 -15 0)
(-2.121320 -15 0)
(2.121320 -15 0)
(30 -15 0)

(-30 15 0.5)
(-2.121320 15 0.5)
(2.121320 15 0.5)
(30 15 0.5)
(-30 2.121320 0.5)
(-2.121320 2.121320 0.5)
(2.121320 2.121320 0.5)
(30 2.121320 0.5)
(-30 -2.121320 0.5)
(-2.121320 -2.121320 0.5)
(2.121320 -2.121320 0.5)
(30 -2.121320 0.5)
(-30 -15 0.5)
(-2.121320 -15 0.5)
(2.121320 -15 0.5)
(30 -15 0.5)

(-30 15 1)
(-2.121320 15 1)
(2.121320 15 1)
(30 15 1)
(-30 2.121320 1)
(-2.121320 2.121320 1)
(2.121320 2.121320 1)
(30 2.121320 1)
(-30 -2.121320 1)
(-2.121320 -2.121320 1)
(2.121320 -2.121320 1)
(30 -2.121320 1)
(-30 -15 1)
(-2.121320 -15 1)
(2.121320 -15 1)
(30 -15 1)


);

blocks
(
hex (4 5 1 0 20 21 17 16) (50 30 1) simpleGrading (1 1 1)
hex (5 6 2 1 21 22 18 17) (20 30 1) simpleGrading (1 1 1)
hex (6 7 3 2 22 23 19 18) (50 30 1) simpleGrading (1 1 1)
hex (8 9 5 4 24 25 21 20) (50 20 1) simpleGrading (1 1 1)
hex (10 11 7 6 26 27 23 22) (50 20 1) simpleGrading (1 1 1)
hex (12 13 9 8 28 29 25 24) (50 30 1) simpleGrading (1 1 1)
hex (13 14 10 9 29 30 26 25) (20 30 1) simpleGrading (1 1 1)
hex (14 15 11 10 30 31 27 26) (50 30 1) simpleGrading (1 1 1)

hex (20 21 17 16 36 37 33 32) (50 30 1) simpleGrading (1 1 1)
hex (21 22 18 17 37 38 34 33) (20 30 1) simpleGrading (1 1 1)
hex (22 23 19 18 38 39 35 34) (50 30 1) simpleGrading (1 1 1)
hex (24 25 21 20 40 41 37 36) (50 20 1) simpleGrading (1 1 1)
hex (26 27 23 22 42 43 39 38) (50 20 1) simpleGrading (1 1 1)
hex (28 29 25 24 44 45 41 40) (50 30 1) simpleGrading (1 1 1)
hex (29 30 26 25 45 46 42 41) (20 30 1) simpleGrading (1 1 1)
hex (30 31 27 26 46 47 43 42) (50 30 1) simpleGrading (1 1 1)
);


edges
(
arc 5 6 (0 3 0)
arc 6 10 (3 0 0)
arc 9 10 (0 -3 0)
arc 9 5 (-3 0 0)

arc 21 22 (0 3 15)
arc 26 22 (3 0 15)
arc 25 26 (0 -3 15)
arc 25 21 (-3 0 15)

arc 37 38 (0 3 30)
arc 42 38 (3 0 30)
arc 41 42 (0 -3 30)
arc 41 37 (-3 0 30)
);
boundary
(
cylinder
{
type wall;
faces
(
(5 21 22 6)
(21 37 38 22)
(6 22 26 10)
(22 38 42 26)
(10 26 25 9)
(26 42 41 25)
(9 25 21 5)
(25 41 37 21)
);
}

inlet
{
type patch;
faces
(
(4 20 16 0)
(20 36 32 16)
(8 24 20 4)
(24 40 36 20)
(12 28 24 8)
(28 44 40 24)
);
}

outlet
{
type patch;
faces
(
(3 19 23 7)
(19 35 39 23)
(7 23 27 11)
(23 39 43 27)
(11 27 31 15)
(27 43 47 31)
);
}

sides
{
type empty;
faces
(
(16 17 1 0)
(32 33 17 16)
(17 18 2 1)
(33 34 18 17)
(18 19 3 2)
(34 35 19 18)
(12 13 29 28)
(28 29 45 44)
(13 14 30 29)
(29 30 46 45)
(14 15 31 30)
(30 31 47 46)
);
}

lower
{
type patch;
faces
(
(0 1 5 4)
(1 2 6 5)
(2 3 7 6)
(4 5 9 8)
(6 7 11 10)
(8 9 13 12)
(9 10 14 13)
(10 11 15 14)
);
}

atmosphere
{
type patch;
faces
(
(36 37 33 32)
(37 38 34 33)
(38 39 35 34)
(40 41 37 36)
(42 43 39 38)
(44 45 41 40)
(45 46 42 41)
(46 47 43 42)
);
}
);
mergePatchPairs
(
);



I'm very new to OpenFOAM and would really appreciate if someone can explain this error to me and how to go about fixing it.

Thanks,
Sagun

Sagun October 4, 2012 05:46

Ah please ignore this thread. I found the mistake.


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