CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/)
-   -   Inconsistent number of faces (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/109787-inconsistent-number-faces.html)

hiasl November 26, 2012 20:25

Inconsistent number of faces
 
I want to create a axisymmetric mesh consisting of a wedge-part with a block added on the outer side. I need this to get two different patches on one side, to be able to realize two velocityfields and two boundaryconditions there.
Can anyone give me advice? Thank you!

Code:

Create time

Creating block mesh from
    "/tmp/OpenFOAM/matthias-2.1.1/tutorials/incompressible/icoFoam/cavity/consta                                                                                        nt/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Creating block mesh topology
--> FOAM Warning :
    From function polyMesh::polyMesh(... construct from shapes...)
    in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 888
    Found 2 undefined faces in mesh; adding to default patch.

Check topology

        Basic statistics
                Number of internal faces : 2
                Number of boundary faces : 14
                Number of defined boundary faces : 14
                Number of undefined boundary faces : 0
        Checking patch -> block consistency

Creating block offsets
Creating merge list

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

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

FOAM exiting


aljazari November 28, 2012 15:11

Quote:

Originally Posted by hiasl (Post 394301)
I want to create a axisymmetric mesh consisting of a wedge-part with a block added on the outer side. I need this to get two different patches on one side, to be able to realize two velocityfields and two boundaryconditions there.
Can anyone give me advice? Thank you!

Code:

Create time

Creating block mesh from
    "/tmp/OpenFOAM/matthias-2.1.1/tutorials/incompressible/icoFoam/cavity/consta                                                                                        nt/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Creating block mesh topology
--> FOAM Warning :
    From function polyMesh::polyMesh(... construct from shapes...)
    in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 888
    Found 2 undefined faces in mesh; adding to default patch.

Check topology

        Basic statistics
                Number of internal faces : 2
                Number of boundary faces : 14
                Number of defined boundary faces : 14
                Number of undefined boundary faces : 0
        Checking patch -> block consistency

Creating block offsets
Creating merge list

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

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

FOAM exiting


Attach your blockMeshDict as well.

hiasl November 28, 2012 19:47

Thanks you for the answer!
In the meanwhile I solved the problem - it's all about the order of the vertices in the hex-blockdefinitions. Also you have to keep the same kind of order for every block, even the starting point of each patch (in the hex-def.) is important.


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