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

[blockMesh] problem generating the mesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2020, 10:47
Default problem generating the mesh
  #1
New Member
 
Italy
Join Date: Mar 2020
Posts: 1
Rep Power: 0
tony097 is on a distinguished road
Hi everyone, it's the first time here.
I have some problems generating the mesh. below I've attached the geometry of the situation i'm trying to elaborate.

the error message is:
Inconsistent number of faces between block pair 1 and 3

From function void Foam::blockMesh::calcMergeInfo()
in file blockMesh/blockMeshMerge.C at line 217.

here is the blockMeshDict.
thank you in advance.

convertToMeters 0.01;

vertices
(
(-127 0 -7.55)
(-127 5.05 -7.55)
(-127 10.1 -7.55)
(-19 0 -7.55)
(-19 5.05 -7.55)
(-19 10.1 -7.55)
(0 -1.27 -7.55)
(0 0 -7.55)
(0 5.05 -7.55)
(0 10.1 -7.55)
(19 -1.27 -7.55)
(19 0 -7.55)
(19 5.05 -7.55)
(19 10.1 -7.55)
(63.5 -1.27 -7.55)
(63.5 0 -7.55)
(63.5 5.05 -7.55)
(63.5 10.1 -7.55)
(127 -1.27 -7.55)
(127 0 -7.55)
(127 5.05 -7.55)
(127 10.1 -7.55)
(-127 0 7.55)
(-127 5.05 7.55)
(-127 10.1 7.55)
(-19 0 7.55)
(-19 5.05 7.55)
(-19 10.1 7.55)
(0 -1.27 7.55)
(0 0 7.55)
(0 5.05 7.55)
(0 10.1 7.55)
(19 -1.27 7.55)
(19 0 7.55)
(19 5.05 7.55)
(19 10.1 7.55)
(63.5 -1.27 7.55)
(63.5 0 7.55)
(63.5 5.05 7.55)
(63.5 10.1 7.55)
(127 -1.27 7.55)
(127 0 7.55)
(127 5.05 7.55)
(127 10.1 7.55)
);

blocks
(
hex (0 3 4 1 22 25 26 23) (15 15 1) simpleGrading (0.5 1.5 1)
hex (1 4 5 2 23 26 27 24) (15 15 1) simpleGrading (0.5 0.5 1)
hex (3 7 8 4 25 29 30 26) (30 15 1) simpleGrading (0.5 1.5 1)
hex (4 8 9 5 26 30 31 27) (30 5 1) simpleGrading (0.5 0.5 1)
hex (6 10 11 7 28 32 33 29) (50 25 1) simpleGrading (2 1 1)
hex (7 11 12 8 29 33 34 30) (50 15 1) simpleGrading (2 1.5 1)
hex (8 12 13 9 30 34 35 31) (50 5 1) simpleGrading (2 0.5 1)
hex (10 14 15 11 32 36 37 33) (30 25 1) simpleGrading (1.5 1 1)
hex (11 15 16 12 33 37 38 34) (30 15 1) simpleGrading (1.5 1.5 1)
hex (12 16 17 13 34 38 39 35) (30 5 1) simpleGrading (1.5 0.5 1)
hex (14 18 19 15 36 40 41 37) (15 25 1) simpleGrading (1.5 1 1)
hex (15 19 20 16 37 41 42 38) (15 15 1) simpleGrading (1.5 1.5 1)
hex (16 20 21 17 38 42 43 39) (15 5 1) simpleGrading (1.5 0.5 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces

(
(0 22 23 1)
(1 23 24 2)
);
}
outlet
{
type patch;
faces
(
(18 40 41 19)
(19 41 42 20)
(20 42 43 21)
);
}
upperWall
{
type wall;
faces
(
(2 24 27 5)
(5 27 31 9)
(9 31 35 13)
(13 35 39 17)
(17 39 21 43)
);
}
lowerWall
{
type wall;
faces
(
(0 22 25 3)
(3 25 29 7)
(7 29 28 6)
(6 28 32 10)
(10 32 36 14)
(14 36 40 18)
);
}
frontAndBack
{
type empty;
faces
(
(0 1 4 3)
(1 2 5 4)
(3 4 8 7)
(4 5 9 8)
(6 7 11 10)
(7 8 12 11)
(8 9 13 12)
(10 11 15 14)
(11 12 16 15)
(12 13 17 16)
(14 15 19 18)
(15 16 20 19)
(16 17 21 20)
(22 23 26 25)
(23 24 27 26)
(25 26 30 29)
(26 27 31 30)
(28 29 33 32)
(29 30 34 33)
(30 31 35 34)
(32 33 37 36)
(33 34 38 37)
(34 35 39 38)
(36 37 41 40)
(37 38 42 41)
(38 39 43 42)
);
}
);

mergePatchPairs
(
);
Attached Files
File Type: pdf capture.pdf (28.2 KB, 2 views)
tony097 is offline   Reply With Quote

Old   April 3, 2020, 02:36
Default
  #2
New Member
 
Bram Kerkhofs1
Join Date: Oct 2016
Posts: 20
Rep Power: 5
brammekeuh987 is on a distinguished road
Hi Tony

Did you found the answer yet?
Your error message is actually quite straight forward:
"Inconsistent number of faces between block pair 1 and 3"

So over here is your answer: Inconsistent number of faces

In the beginning I was also struggling with these kind of problems, the best you can do is google the error message, but without any numbers or names in them. Otherwise it isn't generic enough. So for this you can google " Inconsistent number of faces between block pair and "

Back to the problem: Openfoam start calculating from 0, so the blockpairs which have a problem are:
hex (1 4 5 2 23 26 27 24) (15 15 1) simpleGrading (0.5 0.5 1)
and
hex (4 8 9 5 26 30 31 27) (30 5 1) simpleGrading (0.5 0.5 1)

So from a first guess: the grading is in both directions the same, so no issue. But as these blocks 'touch' each other, the number of cells should match for their common face. 15 15 1 and 30 5 1 don't match (at least 2 dimensions should be the same). From the looks of it, the 5 needs to be a 15.

Good luck!
brammekeuh987 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[TGrid] Problem when generating volume mesh "tg-is-point-in-region" Tuck ANSYS Meshing & Geometry 1 April 16, 2017 12:19
[snappyHexMesh] SHM problem : KVLCC2 with appendage mesh sc.park OpenFOAM Meshing & Mesh Conversion 1 March 13, 2016 13:28
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 06:42
[ICEM] Problem making structured mesh on a surface froztbear ANSYS Meshing & Geometry 4 November 10, 2011 08:52


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