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 ERROR: face 1 in patch 0 does not have neighbour cell face (https://www.cfd-online.com/Forums/openfoam-meshing/227609-foam-fatal-error-face-1-patch-0-does-not-have-neighbour-cell-face.html)

m409 June 3, 2020 12:55

--> FOAM FATAL ERROR: face 1 in patch 0 does not have neighbour cell face
 
Hi guys,

I am trying to create a pipe using blockMeshDict. I need the pipe to be split into 3 blocks. But I am getting the following error:

--> FOAM FATAL ERROR:
face 1 in patch 0 does not have neighbour cell face: 4(5 6 12 9)


This is my blockMeshDict file. I still find writing my own mesh a bit tricky, could anyone give me a hand?

Code:

convertToMeters 1;
 
vertices
(

(0.0005 0 0)                //0
(0 0.0005 0)                //1
(-0.0005 0 0)                //2
(0 -0.0005 0)                //3

(0.0005 0 0.048)        //4
(0 0.0005 0.048)        //5
(-0.0005 0 0.048)        //6
(0 -0.0005 0.048)        //7

(0.0005 0 0.216)        //8
(0 0.0005 0.216)        //9
(-0.0005 0 0.216)        //10       
(0 -0.0005 0.216)        //11

(0.0005 0 0.24)                //12
(0 0.0005 0.24)        //13
(-0.0005 0 0.24)        //14
(0 -0.0005 0.24)        //15

);
 
blocks
(
hex (0 1 2 3 4 5 6 7)          (25  1 140)
simpleGrading        (
                                        1
                                        (
                                                (0.2 0.3 4)
                                                (0.6 0.4 1)
                                                (0.2 0.3 0.25)
                                        )
                                        1
                                )
hex (4 5 6 7 8 9 10 11)          (25  1 260)
simpleGrading        (
                                        1
                                        (
                                                (0.2 0.3 4)
                                                (0.6 0.4 1)
                                                (0.2 0.3 0.25)
                                        )
                                        1
                                )
hex (8 9 10 11 12 13 14 15) (25  1 140)
simpleGrading        (
                                        1
                                        (
                                                (0.2 0.3 4)
                                                (0.6 0.4 1)
                                                (0.2 0.3 0.25)
                                        )
                                        1
                                )
);
 
edges
(
arc 0 1 (0.000353553 0.000353553 0)
arc 1 2 (-0.000353553 0.000353553 0)
arc 2 3 (-0.000353553 -0.000353553 0)
arc 3 0 (0.000353553 -0.000353553 0)

arc 4 5 (0.000353553 0.000353553 0.048)
arc 5 6 (-0.000353553 0.000353553 0.048)
arc 6 7 (-0.000353553 -0.000353553 0.048)
arc 7 4 (0.000353553 -0.000353553 0.048)

arc 8 9  (0.000353553 0.000353553 0.216)
arc 9 10 (-0.000353553 0.000353553 0.216)
arc 10 11 (-0.000353553 -0.000353553 0.216)
arc 11 8 (0.000353553 -0.000353553 0.216)

arc 12 13 (0.000353553 0.000353553 0.24)
arc 13 14 (-0.000353553 0.000353553 0.24)
arc 14 15 (-0.000353553 -0.000353553 0.24)
arc 15 12 (0.000353553 -0.000353553 0.24)
);
 
boundary
(

    Heated
    {
          type wall;
          faces 
          (
              (4 5 9 8)
                          (5 6 12 9)
                          (6 7 11 12)
                          (7 6 11 8)
          );
      }
    WallOutlet
    {
          type wall;
          faces 
          (
              (11 8 12 15)
                          (8 9 13 12)
                          (9 10 14 13)
                          (10 11 15 14)
          );
      }
    WallInlet
    {
          type wall;
          faces 
          (
              (3 0 4 7)
                          (3 7 6 2)
                          (1 2 6 5)
                          (0 1 5 4)
          );
      }
    inlet
    {
          type patch;
          faces 
          (
              (0 3 2 1)
          );
      }
    outlet
    {
          type patch;
          faces 
          (
              (12 13 14 15)
          );
      }
);
 
mergePatchPairs
(
);

Thank you!

Lisandro Maders June 19, 2020 20:07

The combination (5 6 12 9) does not give you a proper face!

Draw your points and faces and you will realize it.

Cheers,


All times are GMT -4. The time now is 21:28.