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

[Other] inconsistent number of faces for a cylinder

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2016, 22:12
Default inconsistent number of faces for a cylinder
  #1
New Member
 
Sergio
Join Date: Jul 2016
Location: Venezuela
Posts: 13
Rep Power: 9
sergiopb91 is on a distinguished road
Hi to all.

I'm trying to make a simple cylinder but I get the following error:

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

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

I read that this error occurs when there is difference number of cells between blocks. But I have the same number of cells for the blocks:

convertToMeters 0.001;

vertices
(
(0 11.3137085 11.3137085)
(0 11.3137085 -11.3137085)
(0 -11.3137085 -11.3137085)
(0 -11.3137085 11.3137085)
(0 12.02081528 12.02081528)
(0 12.02081528 -12.02081528)
(0 -12.02081528 -12.02081528)
(0 -12.02081528 12.02081528)
(60 11.3137085 11.3137085)
(60 11.3137085 -11.3137085)
(60 -11.3137085 -11.3137085)
(60 -11.3137085 11.3137085)
(60 12.02081528 12.02081528)
(60 12.02081528 -12.02081528)
(60 -12.02081528 -12.02081528)
(60 -12.02081528 12.02081528)
);

blocks
(
hex (0 4 7 3 8 12 15 11) (100 50 50) simpleGrading (1 1 1)
hex (1 5 4 0 9 13 12 8) (100 50 50) simpleGrading (1 1 1)
hex (2 6 5 1 10 14 13 9) (100 50 50) simpleGrading (1 1 1)
hex (3 7 6 2 11 15 14 10) (100 50 50) simpleGrading (1 1 1)
hex (3 2 1 0 11 10 9 8) (100 50 50) simpleGrading (1 1 1)


);

edges
(
arc 3 0 (0 0 16)
arc 0 1 (0 16 0)
arc 1 2 (0 0 -16)
arc 2 3 (0 -16 0)
arc 7 4 (0 0 17)
arc 4 5 (0 17 0)
arc 5 6 (0 0 -17)
arc 6 7 (0 -17 0)
arc 11 8 (60 0 16)
arc 8 9 (60 16 0)
arc 9 10 (60 0 -16)
arc 10 11 (60 -16 0)
arc 15 12 (60 0 17)
arc 12 13 (60 17 0)
arc 13 14 (60 0 -17)
arc 14 15 (60 -17 0)
);

boundary
(
inlet
{
type patch;
faces
(
(7 3 0 4)
(4 0 1 5)
(5 1 2 6)
(6 2 3 7)
(0 3 2 1)
);
}
outlet
{
type patch;
faces
(
(15 11 8 12)
(12 8 9 13)
(13 9 10 14)
(14 10 11 15)
(8 11 10 9)
);
}
Wall
{
type wall;
faces
(
(7 4 12 15)
(4 5 13 12)
(5 6 14 13)
(6 7 15 14)

);
}
);

mergePatchPairs
(
);

Someone can help me? and tell me which is the error.
Thanks in advantage
sergiopb91 is offline   Reply With Quote

Old   August 17, 2016, 06:11
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Your block 1 is defined as:

Quote:
hex (1 5 4 0 9 13 12 8) (100 50 50) simpleGrading (1 1 1)
This means that for the edge connecting vertices 0 and 1, there are 50 divisions.

However, in your block 4, defined as:

Quote:
hex (3 2 1 0 11 10 9 8) (100 50 50) simpleGrading (1 1 1)
There are 100 divisions for the edge connecting vertices 0 and 1.

Consequently you have the problem of inconsistent number of faces between the two blocks...

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   August 17, 2016, 10:19
Default
  #3
New Member
 
Sergio
Join Date: Jul 2016
Location: Venezuela
Posts: 13
Rep Power: 9
sergiopb91 is on a distinguished road
It's already working.

Thank you very much for your help Antimony.
sergiopb91 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] Layers not growing at all zonda OpenFOAM Meshing & Mesh Conversion 12 June 6, 2020 11:28
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 10:49
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
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 11:14.