Find answers, ask questions, and connect with our <br>community around the world.

Home Forums OpenFOAM Forum blockmesh homework

  • blockmesh homework

    Posted by Mathuru Sudeep Shankar Reddy on December 29, 2022 at 9:21 am

    /*——————————–*- C++ -*———————————-*\
    | ========= | |
    | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
    | \\ / O peration | Version: v2206 |
    | \\ / A nd | Website: http://www.openfoam.com |
    | \\/ M anipulation | |
    \*—————————————————————————*/
    FoamFile
    {
    version 2.0;
    format ascii;
    class dictionary;
    object blockMeshDict;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

    scale 1;

    vertices
    (
    (0 0 0)
    (1 0 0)
    (1 1.9 0)
    (2.5 1.9 0)
    (2.5 3 0)
    (1 3 0)
    (0 3 0)
    (0 1.9 0)
    (0 0 1)
    (1 0 1)
    (1 1.9 1)
    (2.5 1.9 1)
    (2.5 3 1)
    (1 3 1)
    (0 3 1)
    (0 1.9 1)
    );

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

    edges
    (
    );

    boundary
    (
    movingWall
    {
    type wall;
    faces
    (
    (6 14 13 12 4 5)
    );
    }
    fixedWalls
    {
    type wall;
    faces
    (
    (0 8 15 14 6 7)
    (3 4 12 11)
    (1 2 10 9)
    (0 1 9 8)
    (2 3 11 10)
    );
    }
    frontAndBack
    {
    type empty;
    faces
    (
    (0 7 6 5 4 3 2 1)
    (8 9 10 11 12 13 14 15)
    );
    }
    );

    // ************************************************************************* //

     

    It is showing the following error

    face 0 in patch 0 vertices 6((0 3 0) (0 3 1) (1 3 1) (2.5 3 1) (2.5 3 0) (1 3 0)) does not have neighbour cell face: 6(6 14 13 12 4 5)

    face 0 in patch 0 vertices 6((0 3 0) (0 3 1) (1 3 1) (2.5 3 1) (2.5 3 0) (1 3 0)) does not have neighbour cell face: 6(6 14 13 12 4 5)

    Barış Bicer replied 1 year, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Barış Bicer

    Moderator
    December 29, 2022 at 10:58 am

    Hi,

    You cant write more than 4 vertices inside () . Thats why you get this error. Your some wall face, empty faces, have 5 numbers inside ( )—> that should be 4. Because faces have only 4 vertices. Therefore check your geometry carefully and fix the number of vertices properly.

    Best.

Log in to reply.

error: Content is protected !!