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

[blockMesh] Inconsistent number of faces between block pair 0 and 5

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2015, 05:11
Default Inconsistent number of faces between block pair 0 and 5
  #1
New Member
 
rafath
Join Date: Jun 2014
Location: mumbai
Posts: 24
Rep Power: 12
R_21 is on a distinguished road
Hi,
I have been trying to create a geometry for my flat plate simulation required for my problem. I am new to blockMesh (previously was using gmsh and couldn't use for the current case.)
I am attaching my blockmesh dict. I dont understand how to apply the grading in the mesh. Also, tried using the calculator for grading by setting the mesh cell size as 0.05 and applying the number of cells for each block.


[PHP]vertices
(
(0 44.8345 0) //Point 0
(39.75 44.8345 0) //Point 1
(39.75 44.8345 1) //Point 2
(0 44.8345 1) //Point 3
(49.75 44.8345 0) //Point 4
(49.75 44.8345 1) //Point 5
(50.25 44.8345 0) //Point 6
(50.25 44.8345 1) //Point 7
(60.25 44.8345 0) //Point 8
(60.25 44.8345 1) //Point 9
(100 44.8345 0) //Point 10
(100 44.8345 1) //Point 11
(0 50.0635 0) //Point 12
(39.75 50.1655 0) //Point 13
(39.75 50.1655 1) //Point 14
(0 50.0635 1) //Point 15
(39.75 50.0635 0) //Point 16
(49.75 50.0635 0) //Point 17
(49.75 50.0635 1) //Point 18
(39.75 50.0635 1) //Point 19
(49.75 50.1655 0) //Point 20
(50.25 50.1655 0) //Point 21
(50.25 50.1655 1) //Point 22
(49.75 50.1655 1) //Point 23
(50.25 49.9365 0) //Point 24
(60.25 49.9365 0) //Point 25
(60.25 49.9365 1) //Point 26
(50.25 49.9365 1) //Point 27
(60.25 50.0635 0) //Point 28
(60.25 50.0635 1) //Point 29
(100 50.0635 0) //Point 30
(100 50.0635 1) //Point 31
(0 55.1655 0) //Point 32
(0 55.1655 1) //Point 33
(39.75 55.1655 0) //Point 34
(39.75 55.1655 1) //Point 35
(49.75 55.1655 0) //Point 36
(49.75 55.1655 1) //Point 37
(50.25 55.1655 0) //Point 38
(50.25 55.1655 1) //Point 39
(60.25 55.1655 0) //Point 40
(60.25 55.1655 1) //Point 41
(100 55.1655 0) //Point 42
(100 55.1655 1) //Point 43
(0 100 0) //Point 44
(0 100 1) //Point 45
(39.75 100 0) //Point 46
(39.75 100 1) //Point 47
(49.75 100 0) //Point 48
(49.75 100 1) //Point 49
(50.25 100 0) //Point 50
(50.25 100 1) //Point 51
(60.25 100 0) //Point 52
(60.25 100 1) //Point 53
(100 100 0) //Point 54
(100 100 1) //Point 55
(50.25 49.8345 0) //Point 56
(50.25 49.8345 1) //Point 57
(60.25 49.8345 0) //Point 58
(60.25 49.8345 1) //Point 59
(0 50.1655 0) //Point 60
(0 50.1655 1) //Point 61
(50.25 50.0635 0) //Point 62
(50.25 50.0635 1) //Point 63
(49.75 49.8345 0) //Point 64
(49.75 49.8345 1) //Point 65
(49.75 49.9365 0) //Point 66
(49.75 49.9365 1) //Point 67
(100 49.8345 0) //Point 68
(100 49.8345 1) //Point 69
(100 49.9365 0) //Point 70
(100 49.9365 1) //Point 71

);

blocks
(
hex (0 1 2 3 12 16 19 15) (795 105 1) simpleGrading (1 1 1)
hex (1 4 5 2 16 17 18 19) (200 105 1) simpleGrading (1 1 1)
hex (4 6 7 5 64 56 57 65) (10 100 1) simpleGrading (1 1 1)
hex (6 8 9 7 56 58 59 57) (200 100 1) simpleGrading (1 1 1)
hex (8 10 11 9 58 68 69 59) (795 100 1) simpleGrading (1 1 1)
hex (12 16 19 15 60 13 14 61) (795 2 1) simpleGrading (1 1 1)
hex (13 20 23 14 34 36 37 35) (200 100 1) simpleGrading (1 1 1)
hex (17 62 63 18 20 21 22 23) (10 2 1) simpleGrading (1 1 1)
hex (20 21 22 23 36 38 39 37) (10 100 1) simpleGrading (1 1 1)
hex (21 28 29 22 38 40 41 39) (200 100 1) simpleGrading (1 1 1)
hex (24 25 26 27 21 28 29 22) (200 5 1) simpleGrading (1 1 1)
hex (25 70 71 26 28 30 31 29) (795 3 1) simpleGrading (1 1 1)
hex (28 30 31 29 40 42 43 41) (795 102 1) simpleGrading (1 1 1)
hex (32 34 35 33 44 46 47 45) (795 897 1) simpleGrading (1 1 1)
hex (34 36 37 35 46 48 49 47) (200 897 1) simpleGrading (1 1 1)
hex (36 38 39 37 48 50 41 49) (10 897 1) simpleGrading (1 1 1)
hex (38 40 41 39 50 52 53 51) (200 897 1) simpleGrading (1 1 1)
hex (40 42 43 41 52 54 55 53) (795 897 1) simpleGrading (1 1 1)
hex (58 68 69 59 25 70 71 26) (795 2 1) simpleGrading (1 1 1)
hex (60 13 14 61 32 34 35 33) (795 100 1) simpleGrading (1 1 1)
hex (64 56 57 65 66 24 27 67) (10 2 1) simpleGrading (1 1 1)
hex (66 24 27 67 17 62 63 18) (10 3 1) simpleGrading (1 1 1)

);


Can someone please help !!! Would appreciate any suggestions
R_21 is offline   Reply With Quote

Old   May 24, 2015, 06:12
Default
  #2
New Member
 
rafath
Join Date: Jun 2014
Location: mumbai
Posts: 24
Rep Power: 12
R_21 is on a distinguished road
NO worries, Figured it out
R_21 is offline   Reply With Quote

Old   July 13, 2015, 13:20
Post Inconsistent number of faces between block pair 0 and 1
  #3
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 11
AJAY BHANDARI is on a distinguished road
Hi R21,

I am getting the same problem .See my problem.
Create time

Creating block mesh from
"/home/ajay/OpenFOAM/ajay-2.4.0/run/tutorials/incompressible/porousSimpleFoam/tumormagdoom/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Creating block mesh topology

Check topology

Basic statistics
Number of internal faces : 24
Number of boundary faces : 30
Number of defined boundary faces : 30
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list

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

From function blockMesh::calcMergeInfo()
in file blockMesh/blockMeshMerge.C at line 221.

FOAM exiting
Here s my blockMeshDict file

convertToMeters 0.001;

vertices
(
(0 0 0) //0
(0.5 0.5 0) //1
(-0.5 0.5 0) //2
(-0.5 -0.5 0) //3
(0.5 -0.5 0) //4
(1.414 1.414 0) //5
(-1.414 1.414 0) //6
(-1.414 -1.414 0) //7
(1.414 -1.414 0) //8
(2.828 2.828 0) //9
(-2.828 2.828 0) //10
(-2.828 -2.828 0) //11
(2.828 -2.828 0) //12
(0.5 0.5 1) //13
(-0.5 0.5 1) //14
(-0.5 -0.5 1) //15
(0.5 -0.5 1) //16
(1.414 1.414 1) //17
(-1.414 1.414 1) //18
(-1.414 -1.414 1) //19
(1.414 -1.414 1) //20
(2.828 2.828 1) //21
(-2.828 2.828 1) //22
(-2.828 -2.828 1) //23
(2.828 -2.828 1) //24
(0 0 1) //25
(-10 -5 0) //26
(10 -5 0) //27
(10 5 0) //28
(-10 5 0) //29
(-10 -5 1) //30
(10 -5 1) //31
(10 5 1) //32
(-10 5 1) //33
);

blocks
(
hex (1 2 3 4 13 14 15 16) porosity (15 10 1) simpleGrading (1 1 1)
hex (1 5 6 2 13 17 18 14) porosity (15 10 1) simpleGrading (1 1 1)
hex (2 6 7 3 14 18 19 15) porosity (15 10 1) simpleGrading (1 1 1)
hex (3 7 8 4 15 19 20 16) porosity (15 10 1) simpleGrading (1 1 1)
hex (4 8 5 1 16 20 17 13) porosity (15 10 1) simpleGrading (1 1 1)
hex (5 9 10 6 17 21 22 18) porosity (15 10 1) simpleGrading (1 1 1)
hex (6 10 11 7 18 22 23 19) porosity (15 10 1) simpleGrading (1 1 1)
hex (7 11 12 8 19 23 24 20) porosity (15 10 1) simpleGrading (1 1 1)
hex (12 9 5 8 24 21 17 20) porosity (15 10 1) simpleGrading (1 1 1)
hex (9 28 29 10 21 32 33 22) porosity (15 10 1) simpleGrading (1 1 1)
hex (10 29 26 11 22 33 30 23) inlet (15 10 1) simpleGrading (1 1 1)
hex (11 26 27 12 23 30 31 24) porosity (15 10 1) simpleGrading (1 1 1)
hex (12 27 28 9 24 31 32 21) outlet (15 10 1) simpleGrading (1 1 1)
);

edges
(
arc 5 6 (0 2 0)
arc 6 7 (-2 0 0)
arc 7 8 (0 -2 0)
arc 8 5 (2 0 0)
arc 9 10 (0 4 0)
arc 10 11 (-4 0 0)
arc 11 12 (0 -4 0)
arc 12 9 (4 0 0)
arc 17 18 (0 2 1)
arc 18 19 (-2 0 1)
arc 19 20 (0 -2 1)
arc 20 17 (2 0 1)
arc 21 22 (0 4 1)
arc 22 23 (-4 0 1)
arc 23 24 (0 -4 1)
arc 24 21 (4 0 1)
);

boundary
(
inlet
{
type inlet;
faces
(
(26 30 33 29)
);
}
outlet
{
type outlet;
faces
(
(28 32 31 27)
);
}

top
{
type wall;
faces
(
(29 33 32 28)
);
}

bottom
{
type wall;
faces
(
(27 31 30 26)
);
}

frontAndBack
{
type empty;
faces
(
(1 2 3 4) //from first block
(13 14 15 16)
(1 5 6 2) //from second block
(13 17 18 14)
(2 6 7 3) //from third block
(14 18 19 15)
(3 7 8 4) //from fourth block
(15 19 20 16)
(4 8 5 1) //from fifth block
(16 20 17 13)
(5 9 10 6) //from sixth block
(17 21 22 18)
(6 10 11 7) //from seventh block
(18 22 23 19)
(7 11 12 8) //from eighth block
(19 23 24 20)
(12 9 5 8) //from ninth block
(24 21 17 20)
(9 28 29 10) //from tenth block
(21 32 33 22)
(10 29 26 11) //from eleventh block
(22 33 30 23)
(11 26 27 12) //from twelvth block
(23 30 31 24)
(12 27 28 9) //from thirteen block
(24 31 32 21)
);
}
);

mergePatchPairs

Plz suggest the solution
Regards\
AJAY

AJAY BHANDARI 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
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 10:42
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49


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