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

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 3 Post By hjasak
  • 1 Post By Turbulence
  • 2 Post By Rider
  • 1 Post By Rider
  • 1 Post By AtoHM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2006, 13:27
Default Inconsistent number of faces
  #1
New Member
 
Giuseppe Noviello
Join Date: Mar 2009
Location: Palese bari
Posts: 19
Rep Power: 17
derath is on a distinguished road
Hi to all
Which means this error of blockMesh?
> FOAM FATAL ERROR : Inconsistent number of faces between block pair 2 and 4

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

FOAM exiting
Someone can help me?
Thanks in advantage
Giuseppe
derath is offline   Reply With Quote

Old   June 5, 2006, 13:29
Default It means you've got 2 blocks y
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
It means you've got 2 blocks you are trying to connect to each other in blockMesh but they haven't got the matching number of cells in this direction or that the scaling is different.

Hrv
aow, mgnisia and MTomić like this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   July 17, 2012, 09:10
Default Trouble with blockMesh: inconsistent number of faces between block pairs 0 and 1
  #3
New Member
 
Deepak Cheekati
Join Date: Jul 2012
Location: Chennai, India
Posts: 21
Rep Power: 13
Turbulence is on a distinguished road
Hi all,
I tried to manipulate the blockMeshDict, but I am not able to get rid of this problem.
"inconsistent number of faces between block pairs 0 and 1"
Can anyone help?

blockMeshDict:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(

(-1 39.8 -0.5)
(81 39.8 -0.5)
(-1 40.2 -0.5)
(81 40.2 -0.5)
(-1 39.8 1)
(-1 39.8 52)
(81 39.8 52)
(81 39.8 1)
(-1 40.2 1)
(-1 40.2 52)
(81 40.2 52)
(81 40.2 1)
(-1 81.2 1)
(-1 81.2 52)
(81 81.2 52)
(81 81.2 1)
(-1 -1.2 1)
(-1 -1.2 52)
(81 -1.2 52)
(81 -1.2 1)
);

blocks
(
hex (0 4 7 1 2 8 11 3) (410 2 5) simpleGrading (1 1 1)

hex (4 5 6 7 8 9 10 11) (410 2 170) simpleGrading (1 1 1)

hex (8 9 10 11 12 13 14 15) (410 205 170) simpleGrading (1 1 1)

hex (16 17 18 19 4 5 6 7) (410 205 170) simpleGrading (1 1 1)

);

boundary
(
bPlane
{
type patch;
faces
(
(0 4 7 1)
);
}
tPlane
{
type patch;
faces
(
(2 3 11 8)
);
}
fPlane
{
type patch;
faces
(
(0 2 8 4)
);
}

backPlane
{
type patch;
faces
(
(1 7 11 3)
);
}

lPlane
{
type patch;
faces
(
(0 1 3 2)
);
}


FPlane
{
type patch;
faces
(
(4 8 9 5)
(8 12 13 9)
(16 4 5 17)
);
}

BackPlane
{
type patch;
faces
(
(7 6 10 11)
(10 14 15 11)
(19 18 6 7)
);
}


LuPlane
{
type patch;
faces
(
(8 11 15 12)
);
}

LbPlane
{
type patch;
faces
(
(16 19 7 4)
);
}

RPlane
{
type patch;
faces
(
(5 6 10 9)
(9 10 14 13)
(17 18 6 5)
);
}

TuPlane
{
type patch;
faces
(
(12 15 14 13)
);
}


blPlane

{

type patch;
faces

(
(16 17 18 19)
);

}

);

................

Thank You
Shri Hari likes this.
Turbulence is offline   Reply With Quote

Old   July 17, 2012, 10:07
Default
  #4
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Could you post a drawing ? (about the geometry that you want to create with blockMesh)
Rider is offline   Reply With Quote

Old   July 17, 2012, 10:31
Default
  #5
New Member
 
Deepak Cheekati
Join Date: Jul 2012
Location: Chennai, India
Posts: 21
Rep Power: 13
Turbulence is on a distinguished road
PFA the image.Will this do?
Attached Images
File Type: jpg Photo0221.jpg (90.0 KB, 1374 views)
Turbulence is offline   Reply With Quote

Old   July 17, 2012, 10:54
Default
  #6
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Ok, this is the geometry that I had deduced with the points

The problem is in the syntax of blocks. The correct syntax is :

Code:
hex (0 1 3 2 4 7 11 8) 

hex (4 7 11 8 5 6 10 9) 

hex (16 19 7 4 17 18 6 5) 

hex (8 11 15 12 9 10 14 13)
arsenis and Shri Hari like this.
Rider is offline   Reply With Quote

Old   July 17, 2012, 13:39
Default
  #7
New Member
 
Deepak Cheekati
Join Date: Jul 2012
Location: Chennai, India
Posts: 21
Rep Power: 13
Turbulence is on a distinguished road
Hi Rider,
Thank you very much
Could you explain me how to number,so that I wont make this mistake again..

Thank You
Turbulence.
Turbulence is offline   Reply With Quote

Old   July 18, 2012, 02:35
Default
  #8
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Hi Turbulence,

You will find the explanation of the rule to use (with illustration) on the following link:

http://www.openfoam.org/docs/user/blockMesh.php



Rider.
Shri Hari likes this.
Rider is offline   Reply With Quote

Old   July 18, 2012, 04:46
Default
  #9
New Member
 
Deepak Cheekati
Join Date: Jul 2012
Location: Chennai, India
Posts: 21
Rep Power: 13
Turbulence is on a distinguished road
Thank you very much Rider
Turbulence is offline   Reply With Quote

Old   July 18, 2012, 05:01
Default
  #10
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Your welcome
Rider is offline   Reply With Quote

Old   November 26, 2019, 09:17
Default Inconsistent number of faces between block pair 0 and 1
  #11
New Member
 
Sama
Join Date: Jan 2019
Posts: 16
Rep Power: 7
Samsam2 is on a distinguished road
I have same problem and dont know what is wrong with my mesh. I get error of "Inconsistent number of faces between block pair 0 and 1". Here is copy of my blockmesh dict:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}

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

scale 1;

vertices
(
(-296 -296.6 -5000)
(-296 -296.6 2192)
(-296 -296.6 2792)
(-296 -296.6 2992)
(-296 296.6 2992)
(-296 296.6 2792)
(-296 396.6 2792)
(-296 396.6 2192)
(-296 296.6 2192)
(-296 296.6 -5000)
(296 -296.6 -5000)
(296 -296.6 2192)
(296 -296.6 2792)
(296 -296.6 2992)
(296 296.6 2992)
(296 296.6 2792)
(296 396.6 2792)
(296 396.6 2192)
(296 296.6 2192)
(296 296.6 -5000)

);
blocks
(
hex (0 9 8 1 10 19 18 11) (16 16 194) simpleGrading (1 1 1)
hex (1 8 5 2 11 18 15 12) (16 16 22) simpleGrading (1 1 1)
hex (2 5 4 3 12 15 14 13) (16 16 5) simpleGrading (1 1 1)
hex (8 7 6 5 18 17 16 15) (16 2 22) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
frontAndBack
{
type wall;
faces
(
(10 11 18 19)
(11 12 15 18)
(12 13 14 15)
(18 15 16 17)
(9 8 1 0)
(8 5 2 1)
(5 4 3 2)
(7 6 5 8)
);
}
walls
{
type wall;
faces
(
(0 1 11 10)
(1 2 12 11)
(2 3 13 12)
(15 14 4 5)
(16 15 5 6)
(18 17 7 8)
(19 18 8 9)
);
}
outlet
{
type patch;
faces
(
(0 10 19 9)
);
}
inletone
{
type patch;
faces
(
(3 13 14 4)
);
}
inlettwo
{
type patch;
faces
(
(17 16 6 7)
);
}
);

Could you please help me how to solve this problem?
Thanks alot!
Samsam2 is offline   Reply With Quote

Old   July 9, 2020, 10:52
Default Inconsistent number of specified cell
  #12
New Member
 
George
Join Date: Jul 2020
Location: TU Delft, The Netherlands
Posts: 18
Rep Power: 5
gpouliasis is on a distinguished road
I am reviving this thread, since i found a problem that is not listed here. It could help somebody.

This errror can appear also if the number of specified cell in the same direction is different. In example:
(50 10 1)
(50 20 1)

It is logical, but still i made it wrong the first time
gpouliasis is offline   Reply With Quote

Old   September 11, 2021, 10:33
Unhappy same problem
  #13
New Member
 
Pradeep Mamillapalli
Join Date: Aug 2021
Posts: 2
Rep Power: 0
pradeep_m is on a distinguished road
Creating block offsets
Creating merge list

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

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

FOAM exiting


blockMesh file

convertToMeters 1;

vertices
(
(0 0 -0.01) //0
(0.1 0 -0.01) //1
(0.234 0.02127 -0.01) //2
(0.279 0.308 -0.01) //3
(0.659 0.308 -0.01) //4
(0.8545 0 -0.01) //5
(0 0.321 -0.01) //6
(0.1 0.321 -0.01) //7
(0.234 0.321 -0.01) //8
(0.279 0.321 -0.01) //9
(0.659 0.321 -0.01) //10
(0.8545 0.321 -0.01) //11
(0 0 0.01) //12
(0.1 0 0.01) //13
(0.234 0.02127 0.01) //14
(0.279 0.308 0.01) //15
(0.659 0.308 0.01) //16
(0.8545 0 0.01) //17
(0 0.321 0.01) //18
(0.1 0.321 0.01) //19
(0.234 0.321 0.01) //20
(0.279 0.321 0.01) //21
(0.659 0.321 0.01) //22
(0.8545 0.321 0.01) //23


);

blocks
(
hex (0 1 7 6 12 13 19 18) (110 110 1) simpleGrading (1 1 1)
hex (1 2 8 7 13 14 20 19) (110 456 1) simpleGrading (1 1 1)
hex (2 3 9 8 14 15 21 20) (110 300 1) simpleGrading (1 1 1)
hex (3 4 10 9 15 16 22 21) (110 1454 1) simpleGrading (1 1 1)
hex (4 5 11 10 16 17 23 22) (110 718 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 12 18 6)
);
}
outlet
{
type patch;
faces
(
(5 11 23 17)
);
}
bottom
{
type symmetryPlane;
faces
(
(0 1 13 12)
);
}
top
{
type patch;
faces
(
(6 18 19 7)
(7 19 20 8)
(8 20 21 9)
(9 21 22 10)
(10 22 23 11)
);
}
obstacle
{
type wall;
faces
(
(1 2 14 13)
(2 3 15 14)
(3 4 16 15)
(4 5 17 16)
);
}
);

mergePatchPairs
(
);


can anyone please address my problem?
pradeep_m is offline   Reply With Quote

Old   September 11, 2021, 10:42
Default
  #14
New Member
 
Pradeep Mamillapalli
Join Date: Aug 2021
Posts: 2
Rep Power: 0
pradeep_m is on a distinguished road
geometry attached here
Attached Images
File Type: jpg WhatsApp Image 2021-09-11 at 20.10.33.jpg (89.0 KB, 58 views)
pradeep_m is offline   Reply With Quote

Old   January 31, 2023, 16:07
Default
  #15
New Member
 
Andrew Mills
Join Date: Oct 2019
Posts: 6
Rep Power: 6
Drew.M is on a distinguished road
I know this is old but, the link is no longer working. Is there an updated link @rider???

Thanks!
Drew.M is offline   Reply With Quote

Old   February 1, 2023, 02:51
Default
  #16
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
https://www.openfoam.com/documentati...ckmesh-utility
Drew.M likes this.
AtoHM 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
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 09:23
parallel run OpenFoam Srinath Reddy OpenFOAM Running, Solving & CFD 13 February 27, 2019 09:15
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 08:14
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37


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