CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] FOAM FATAL IO ERROR: Block hex is inside-out (https://www.cfd-online.com/Forums/openfoam-meshing/227257-foam-fatal-io-error-block-hex-inside-out.html)

flowwwww May 22, 2020 00:42

FOAM FATAL IO ERROR: Block hex is inside-out
 
Hello everyone,


I am trying to mesh a very simple shape that involve three different hexes. I set the blockMesh file and run it, but i am dealing with an error message that dont let me obtain my shape.
My blockMeshDict is the following.
Code:

convertToMeters 1;

vertices
(
    (0 0 0)
    (0 3.7 0)
    (1.11 3.7 0)
    (1.11 0 0)
    (0 0 0.54)
    (0 3.7 0.54)
    (1.11 3.7 0.54)
    (1.11 0 0.54)
    (1.11 3.31 0)
    (19.34 3.31 0)
    (19.34 0 0)
    (1.11 3.31 0.54)
    (19.34 3.31 0.54)
    (19.34 0 0.54)
    (19.34 3.7 0)
    (21.74 3.7 0)
    (21.74 0 0)
    (19.34 3.7 0.54)
    (21.74 3.7 0.54)
    (21.74 0 0.54)
);

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

edges
(
);

boundary
(
    box
    {
        type wall;
        faces
        (
            (0 1 2 3)
            (3 8 9 10)
            (10 14 15 16)
            (0 16 4 19)
            (1 2 5 6)
            (8 9 11 12)
            (14 15 18 17)
            (2 6 8 11)
            (14 17 9 12)     
        );
    }
    symmetry
    {
        type symmetryPlane;
        faces
        (
            (4 5 18 19)     
        );
    }

    doorin
    {
        type patch;
        faces
        (
      (0 1 4 5)
        );
    }
    doorout
    {
        type patch;
        faces
        (
          (15 16 18 19) 
        );
    }

);

mergePatchPairs
(
);

The error message is the following.


Code:

Create time

Not deleting polyMesh directory
    "/home/felipe/Escritorio/arriba9/constant/polyMesh"
    because it contains blockMeshDict
Creating block mesh from
    "/home/felipe/Escritorio/arriba9/constant/polyMesh/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
--> FOAM Warning :
    From function Foam::vector Foam::cellModel::centre(const labelList&, const pointField&) const
    in file meshes/meshShapes/cellModel/cellModel.C at line 70
    zero or negative pyramid volume: -0.36963 for face 0
--> FOAM Warning :
    From function Foam::vector Foam::cellModel::centre(const labelList&, const pointField&) const
    in file meshes/meshShapes/cellModel/cellModel.C at line 70
    zero or negative pyramid volume: -0.36963 for face 1
--> FOAM Warning :
    From function Foam::vector Foam::cellModel::centre(const labelList&, const pointField&) const
    in file meshes/meshShapes/cellModel/cellModel.C at line 70
    zero or negative pyramid volume: -0.36963 for face 2
--> FOAM Warning :
    From function Foam::vector Foam::cellModel::centre(const labelList&, const pointField&) const
    in file meshes/meshShapes/cellModel/cellModel.C at line 70
    zero or negative pyramid volume: -0.36963 for face 3
--> FOAM Warning :
    From function Foam::vector Foam::cellModel::centre(const labelList&, const pointField&) const
    in file meshes/meshShapes/cellModel/cellModel.C at line 70
    zero or negative pyramid volume: -0.36963 for face 4
--> FOAM Warning :
    From function Foam::vector Foam::cellModel::centre(const labelList&, const pointField&) const
    in file meshes/meshShapes/cellModel/cellModel.C at line 70
    zero or negative pyramid volume: -0.36963 for face 5


--> FOAM FATAL IO ERROR:
Block hex (0 1 2 3 4 5 6 7) (11 37 5) simpleGrading (1(1) 1(1) 1(1)) is inside-out

file: /home/felipe/Escritorio/arriba9/constant/polyMesh/blockMeshDict.blocks at line 47.

    From function void Foam::blockDescriptor::check(const Foam::Istream&)
    in file blockDescriptor/blockDescriptor.C at line 83.

FOAM exiting


Best regards!

hityo October 21, 2021 08:32

Hello,

It seems you have changed the position of the Vertices.


All times are GMT -4. The time now is 08:38.