CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

Trouble with my first blockMeshDict file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 12, 2006, 13:42
Default Hi All! I am pretty new to
  #1
New Member
 
Simon Zhang
Join Date: Mar 2009
Posts: 18
Rep Power: 8
osimonsimon is on a distinguished road
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.... 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 is offline   Reply With Quote

Old   October 13, 2006, 14:32
Default problem solved. This time I de
  #2
New Member
 
Simon Zhang
Join Date: Mar 2009
Posts: 18
Rep Power: 8
osimonsimon is on a distinguished road
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!
osimonsimon is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to declare a prism block in the blockMeshDict file callega OpenFOAM Pre-Processing 6 June 1, 2015 12:38
Graphical viewer for blockMeshDict grtabor OpenFOAM Pre-Processing 22 March 14, 2013 04:05
MergePatchPairs in blockMeshDict lord_kossity OpenFOAM Native Meshers: blockMesh 0 April 15, 2008 02:28
trouble of reading ICEM mesh file into fluent hannah FLUENT 0 February 26, 2008 13:41
BlockMeshDict keywords msrinath80 OpenFOAM Native Meshers: blockMesh 2 September 20, 2007 09:14


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