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] Wedge shape meshing problem! (https://www.cfd-online.com/Forums/openfoam-meshing/138286-wedge-shape-meshing-problem.html)

aydemirk July 1, 2014 20:44

Wedge shape meshing problem!
 
Hi everyone. I am trying to build a wedged-shape(or you can say pyramid-shape) geometry like the one in Table 5.1 in the Manual. However I couldn't achieve this. I used the same structure given in the Manual 5.3.3 but I get an error as of below:
face 1 in patch 0 does not have neighbour cell face: 4(1 2 4 3)

I do not know what it means I checked my vertices and assigned them anti-clockwise. Here is a copy of this small mesh. Can you help me about it?

vertices
(
(0 0 0)
(11.18111 4.98 0)
(11.18111 -4.98 0)
(11.18111 -4.98 1.7)
(11.18111 4.498 1.7)
);

blocks
(
hex (0 1 2 2 3 4 4 3) (20 20 20) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
fixedWalls
{
type wall;
faces
(
(0 1 2 2)
(1 2 3 4)
(0 1 4 4)
(0 2 3 3)
);
}
fixedWalls
{
type empty;
faces
(
(3 4 4 3)
);
}

);

Victorien July 4, 2014 04:22

Hello,

I'm new to OpenFOAM but I tried to understand your problem.

I think the fifth coord is 4.98 (instead of 4.498). Then which form do you want to create with 5 points ? I thought it could be only the pyramid or the tet-wedge (according to the user guide).

And another issue is that the number of faces have to be lower than the number of vertices. (One more time, I guess, except if you create internal faces)

Maybe someone else can respond...

Victorien

aydemirk July 7, 2014 16:06

Quote:

Originally Posted by Victorien (Post 500025)
Hello,

I'm new to OpenFOAM but I tried to understand your problem.

I think the fifth coord is 4.98 (instead of 4.498). Then which form do you want to create with 5 points ? I thought it could be only the pyramid or the tet-wedge (according to the user guide).

And another issue is that the number of faces have to be lower than the number of vertices. (One more time, I guess, except if you create internal faces)

Maybe someone else can respond...

Victorien

Thank you Victorien. It was a typo mistake with the correct number I still got the error however that was only to see something else. Now I changed the structure and trying to build a mesh for a wind tunnel but thank you for the help.

jokerito August 20, 2014 10:50

problem was in the definiton of the hex block. It should work, if you use this code:

Code:

vertices
(
    (0 0 0)
    (11.18111 4.98 0)
    (11.18111 -4.98 0)
    (11.18111 -4.98 1.7)
    (11.18111 4.98 1.7)
);

blocks
(
    //hex (0 1 2 2 3 4 4 3) (20 20 20) simpleGrading (1 1 1)
    hex (0 0 4 3 0 0 1 2) (20 20 20) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    fixedWalls
    {
        type wall;
        faces
        (   
            (0 0 1 2)
            (0 0 2 3)
            (0 0 4 3)
            (0 0 1 4)
        );
    }
    fixedWalls
    {
        type empty;
        faces
        (
            (3 4 1 2)
        );
    }

);



All times are GMT -4. The time now is 17:39.