CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Trouble with my first blockMeshDict file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2006, 14:42
Default Trouble with my first blockMeshDict file
  #1
New Member
 
Simon Zhang
Join Date: Mar 2009
Posts: 18
Rep Power: 17
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, 15:32
Default problem solved. This time I de
  #2
New Member
 
Simon Zhang
Join Date: Mar 2009
Posts: 18
Rep Power: 17
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


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