CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   neighbour cell bug (https://www.cfd-online.com/Forums/openfoam-bugs/153191-neighbour-cell-bug.html)

Elisa-L May 20, 2015 03:33

neighbour cell bug
 
Hello,

When I start a blockMesh command for my Wind tunnel modelisation, I have always the same error, even if I remake the whole code I still have this error on the same cell, whatever I change in the code :eek:...
This error always appears:

--> FOAM FATAL ERROR: face 24 in patch 0 does not have neighbour cell face: 4(27 218 129 28) 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

However, the checkMesh command says my mesh is ok...
So I wonder if this is a bug or if I am just to stupid to make a right code :( ... Could you help me please?


ps: I use OpenFoam 2.1.1
Elisa L.

Elisa-L May 21, 2015 04:24

1 Attachment(s)
Hey,
As I am completely lost now, I will explain the détails of my problems, if anyone could help I'd be grateful because as it is needed for my job I really need help!

My problem:

I wrote a code corresponding to a simple Wind tunnel at the beggining and I slowly added geometrical caracteristics like spline and arc. My Wind tunnel worked. And now, I have to add some shutters at the inlet. So, the problems began: I had to implement the shutters in the actual inlet, so to do it the simplest way, I cut the inlet in two parts, in some way I reduced the previous "inlet" and added, before it, the part which contains the shutters. Now that I had created the points for the shutters, I had to create the blocks (the parts between the shutters) and the "walls" of all the shutters. I created it the simplest way again: first I made simple blocks and big simple faces, then it didn't work so I divided, step by step, the part with the shutters to have the same "cut lines" everywhere in this part...

Now the real problem is: at the beggining I had trouble with a face, that didn't have neighbours... as shown below:

Quote:

--> FOAM FATAL ERROR: face 24 in patch 0 does not have neighbour cell face: 4(27 218 129 28) 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
So I divided some parts... And I had the same exact message!it was about the same face again, the first face in the list of shutter faces...
And now that I had changed all the code and even divided some parts in triangular (and so it is for the first face of the shutter faces)... I have the same message! What did I do wrong? Please help me! Even my professor can't tell!

I attach my code for your consideration, some parts are in french but I don't think it is really annoying as it is just for some indications (shutter = registre).


All times are GMT -4. The time now is 02:00.