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

[blockMesh] blockMesh problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2014, 14:57
Default blockMesh problem
  #1
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
Thamali is on a distinguished road
Hi,
I am desperate to find the reason for error of following blockMesh.below is my blockMeshDict;
Code:
convertToMeters 0.01;

vertices
(
    (0.0  10 0)
    (100 0 0)
     (100 0 1)
    (0.0  10 1)
    (0 40 0)
    (100 40 0)
    (100 40 1)
    (0 40 1)
    (0  140 0)
    (100  140 0)
    (100 140 1)
    (0 140 1)
    (0  150 0)
    (100  150 0)
    (100 150 1)
    (0 150 1)
    (0.0   170 0)
    (100  170 0)
    (100  170 1)
    (0.0   170 1)
    
   
);

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

edges
(
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 3 2 1)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (13 14 18 17)
        );
    }
     air
    {
        type patch;
        faces
        ((0 4 7 3)
            
        );
    }  
    leftWall
    {
        type wall;
        faces
        (
            (4 8 11 7)
            (8 12 15 11)
            (12 16 19 15)
        );
    }
rightWall
    {
        type wall;
        faces
        (
            (1 2 6 5)
        (5 6 10 9)
             (9 10 14 13)
            
        );
    }
upperWall
    {
        type wall;
        faces
        (
            (16 19 18 17)
                  
        );
    }
    frontAndBack
    {
        type empty;
        faces
        (
            (0 1 5 4)
            (4 5 9 8)
        (8 9 13 12)
        (12 13 17 16)
         (3 2 6 7)
            (7 6 10 11)
        (11 10 14 15)
        (15 14 18 19)
        
        );
    }
);

mergePatchPairs
(
);
and the error is;
Code:
--> FOAM FATAL ERROR: 
face 1 in patch 3 does not have neighbour cell face: 4(8 12 15 11)

    From function polyMesh::facePatchFaceCells(const faceList& patchFaces,const labelListList& pointCells,const faceListList& cellsFaceShapes,const label patchID)
    in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 127.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam222/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/opt/openfoam222/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2  Foam::polyMesh::facePatchFaceCells(Foam::List<Foam::face> const&, Foam::List<Foam::List<int> > const&, Foam::List<Foam::List<Foam::face> > const&, int) const in "/opt/openfoam222/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#3  Foam::polyMesh::setTopology(Foam::List<Foam::cellShape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::List<int>&, Foam::List<int>&, int&, int&, Foam::List<Foam::cell>&) in "/opt/openfoam222/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#4  Foam::polyMesh::polyMesh(Foam::IOobject const&, Foam::Xfer<Foam::Field<Foam::Vector<double> > > const&, Foam::List<Foam::cellShape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::PtrList<Foam::dictionary> const&, Foam::word const&, Foam::word const&, bool) in "/opt/openfoam222/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#5  Foam::blockMesh::createTopology(Foam::IOdictionary const&, Foam::word const&) in "/opt/openfoam222/platforms/linuxGccDPOpt/lib/libblockMesh.so"
#6  Foam::blockMesh::blockMesh(Foam::IOdictionary const&, Foam::word const&) in "/opt/openfoam222/platforms/linuxGccDPOpt/lib/libblockMesh.so"
#7  
 in "/opt/openfoam222/platforms/linuxGccDPOpt/bin/blockMesh"
#8  __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#9  
 in "/opt/openfoam222/platforms/linuxGccDPOpt/bin/blockMesh"
Aborted (core dumped)
I tried to figure out my error using other similar posts,but could not.
If someone can help me,I greatly appreciate it.
Thanks.
Thamali
Thamali is offline   Reply With Quote

Old   June 21, 2014, 01:34
Default solved
  #2
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
Thamali is on a distinguished road
I solved problem,changed third hex as;
Code:
hex (8 9 13 12 11 10 14 15 )
and it works.
Thamali 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] Problem and doubts with blockMesh, snappyHexMesh and multiple geometry luca1992 OpenFOAM Meshing & Mesh Conversion 0 August 23, 2017 11:40
[blockMesh] BlockMesh problem ari92 OpenFOAM Meshing & Mesh Conversion 2 May 27, 2017 10:23
[blockMesh] blockMesh problem with wedge blocks gned OpenFOAM Meshing & Mesh Conversion 0 September 14, 2016 05:49
[blockMesh] Problem with blockMesh and my shape TneurolF OpenFOAM Meshing & Mesh Conversion 4 June 25, 2013 13:52
Blockmesh problem with more than one block sven82 OpenFOAM Pre-Processing 1 June 4, 2013 17:08


All times are GMT -4. The time now is 09:41.