CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/)
-   -   Trouble with my first blockMeshDict file (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/61844-trouble-my-first-blockmeshdict-file.html)

osimonsimon October 12, 2006 13:42

Hi All! I am pretty new to
 
Hi All!

I am pretty new to blockMesh. Here is the error I got after running my Dict file in blockMesh:

Reading block mesh description dictionary

Creating block mesh

Creating blockCorners

Creating curved edges

Creating blocks

Creating patches

Creating block mesh topology

Default patch type set to empty

Check block mesh topology

Basic statistics
Number of internal faces : 2
Number of boundary faces : 14
Number of defined boundary faces : 14
Number of undefined boundary faces : 0

Checking patch -> block consistency

Creating block offsets



--> FOAM FATAL ERROR : Inconsistent number of faces between block pair 0 and 1

From function blockMesh::blockMesh(IOdictionary& meshDescription)
in file createMergeList.C at line 202.

FOAM exiting

I looked into the createMergeList.C file but it seems way too complicated for me....http://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif Could someone help me with it? thank you very much!

Here is my Dict file:

FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object blockMeshDict;
}

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

convertToMeters 1;

vertices
(
(0 0 0)
(0 0 6)
(12 0 6)
(12 0 0)
(0 13 0)
(0 13 6)
(12 13 6)
(12 13 0)
(2 13 6)
(2 0 6)
(2 0 0)
(2 13 0)
(10 13 6)
(10 0 6)
(10 0 0)
(10 13 0)
);

blocks
(
hex (0 1 9 10 4 5 8 11) (2 13 6) edgeGrading (1 1 1 1 1 1 1 1 1 1 1 1)
hex (10 9 13 14 11 8 12 15) (8 13 6) edgeGrading (1 1 1 1 1 1 1 1 1 1 1 1)
hex (14 13 2 3 15 12 6 7) (2 13 6) edgeGrading (1 1 1 1 1 1 1 1 1 1 1 1)
);

edges
(
);

patches
(
patch inlet
(
(1 9 8 5)
)
patch outlet
(
(3 14 15 7)
)
patch top
(
(4 5 8 11)
(11 8 12 15)
(15 12 6 7)
)
wall LEFT
(
(0 1 5 4)
)
wall RIGHT
(
(3 7 6 2)
)
wall FLOOR
(
(0 10 9 1)
(10 14 13 9)
(14 3 2 13)
)
wall FRONT
(
(9 13 12 8)
(13 2 6 12)
)
wall BACK
(
(14 10 11 15)
(10 0 4 11)
)
);
mergePatchPairs
(
);

Basically it described a very simple model: a simple block with a rectangle inlet at the front and a same size outlet at the back. the inlet is 1/6 of the front face. I defined three blocks.

4 11 15 7
5 8 12 6

0 10 14 3
1 9 13 2

osimonsimon October 13, 2006 14:32

problem solved. This time I de
 
problem solved. This time I defined the vertices at the same order as the tutorial case (cavity grade) Fig 2.17. If define more than one blocks, the vertices has to be in the certain order...I didn't find this in the User's Guide. Hope it will be helpful for other beginners like me who encounter the same problem... THanks!


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