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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2016, 07:46
Default Inconsistent number of faces
  #1
Nkl
Member
 
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 12
Nkl is on a distinguished road
Hi everyone.

I don't really understand where in my mesh there is no consistency.

I get this error message when I try to run blockMesh for this mesh region:
Inconsistent number of faces between block pair 4 and 6.

Here is my blockMeshDict file:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
    (0 0 0)
    (24.35 0 0)
    (26 0 0)
    (28.50 0 0)
    (0 250 0)
    (24.35 250 0)
    (26 250 0)
    (28.50 250 0)
    (0 10250 0)
    (24.35 10250 0)
    (26 10250 0)
    (28.50 10250 0)
    (24.35 10471.50 0)
    (26 10471.50 0)
    (28.50 10471.50 0)
    (0 10495.20 0)
    (0 10496.85 0) 
    (0 10498.35 0)
    (0 0 0.3)
    (24.35 0 0.3)
    (26 0 0.3)
    (28.50 0 0.3)
    (0 250 0.3)
    (24.35 250 0.3)
    (26 250 0.3)
    (28.50 250 0.3)
    (0 10250 0.3)
    (24.35 10250 0.3)
    (26 10250 0.3)
    (28.50 10250 0.3)
    (24.35 10471.50 0.3)
    (26 10471.50 0.3)
    (28.50 10471.50 0.3)
    (0 10495.20 0.3)
    (0 10496.85 0.3) 
    (0 10498.35 0.3)
);

blocks
(
    hex (0 1 5 4 18 19 23 22) (24 250 1) simpleGrading (1 1 1)
    hex (2 3 7 6 20 21 25 24) (2 250 1) simpleGrading (1 1 1)
    hex (4 5 9 8 22 23 27 26) (24 100 1) simpleGrading (1 1 1)
    hex (6 7 11 10 24 25 29 28) (2 100 1) simpleGrading (1 1 1)
    hex (8 9 12 15 26 27 30 33) (24 245 1) simpleGrading (1 1 1)
    hex (10 11 14 13 28 29 32 31) (2 221 1) simpleGrading (1 1 1)
    hex (12 13 16 15 30 31 34 33) (2 26 1) simpleGrading (1 1 1)
    hex (13 14 17 16 31 32 35 34) (2 28 1) simpleGrading (1 1 1)
);

edges
(
    arc 15 12 (17.21805012 10488.71805 0)
    arc 33 30 (17.21805012 10488.71805 0.3)
    arc 16 13 (18.38477631 10489.88478 0)
    arc 34 31 (18.38477631 10489.88478 0.3)    
    arc 17 14 (20.152543226 10491.65254326 0)
    arc 35 32 (20.152543226 10491.65254326 0.3)   
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 1 19 18)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (2 3 21 20)
        );
    }
    walls
    {
        type wall;
        faces
        (
            (1 5 23 19)
            (5 9 27 23)
            (9 12 30 27)
            (12 13 31 30)
            (13 10 28 31)
            (10 6 24 28)
            (6 2 20 24)
            (3 7 25 21)
            (7 11 29 25)
            (11 14 32 29)
            (14 17 35 32)
        );
    }
    left
    {
        type symmetryPlane;
        faces
        (
            (4 0 18 22)
            (8 4 22 26)
            (15 8 26 33)
            (16 15 33 34)
            (17 16 34 35)  
        );
    }
    frontAndBack
    {
        type empty;
        faces
        (
            (0 4 5 1)
            (2 6 7 3)
            (4 8 9 5)
            (6 10 11 7)
            (8 15 12 9)
            (10 13 14 11)
            (12 15 16 13)
            (13 16 17 14)
            (18 22 23 19)
            (20 24 25 21)
            (22 26 27 23)
            (24 28 29 25)
            (26 33 30 27)
            (28 31 32 29)
            (30 33 34 31)
            (31 34 35 32)
        );
    }        
);

mergePatchPairs
(
);

// ************************************************************************* //
Thanks in advance for the help!
Nkl is offline   Reply With Quote

Old   February 18, 2016, 01:53
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Basically on the line connecting vertices 30 and 33 in block 4 you have 24 cells, while on block 6 you have 26 cells.

Hence you have the error message.

Cheers,
Antimony

P.S. You will have a similar issue with blocks 6 and 7 that you would need to correct for as well
Antimony is offline   Reply With Quote

Old   February 18, 2016, 06:58
Default
  #3
Nkl
Member
 
Nikola
Join Date: Sep 2013
Location: Madrid, Spain
Posts: 60
Rep Power: 12
Nkl is on a distinguished road
Thanks!

That actually solved the problem
Nkl 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 05:32.