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

[blockMesh] FATAL ERROR: face 6 in patch 2 does not have neighbour cell face: 4(8 9 21 20)

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2010, 15:59
Default FATAL ERROR: face 6 in patch 2 does not have neighbour cell face: 4(8 9 21 20)
  #1
Member
 
Robin Gilbert
Join Date: Jan 2010
Posts: 66
Rep Power: 16
robingilbert is on a distinguished road
Hello I was trying to make an I-shaped room and i got the following error:
FATAL ERROR: face 6 in patch 2 does not have neighbour cell face: 4(8 9 21 20)

This is how my blockMeshDict looks like:
convertToMeters 1;

vertices
(
(0 0 0)
(3 0 0)
(3 1 0)
(2 1 0)
(2 2 0)
(3 2 0)
(3 3 0)
(0 3 0)
(0 2 0)
(1 2 0)
(1 1 0)
(0 1 0)
(0 0 1)
(3 0 1)
(3 1 1)
(2 1 1)
(2 2 1)
(3 2 1)
(3 3 1)
(0 3 1)
(0 2 1)
(1 2 1)
(1 1 1)
(0 1 1)
);

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

edges
(
);

patches
(
wall floor
(
(13 1 0 12)
)
wall ceiling
(
(18 6 7 19)
)
wall fixedWalls
(
(6 5 17 18)
(4 3 15 16)
(2 1 13 14)
(7 8 20 19)
(9 10 22 21)
(11 0 12 23)
(8 9 21 20)
(4 5 17 16)
(11 10 22 23)
(3 2 14 15)
)
);

mergePatchPairs
(
(9 4 16 21 8 5 17 20)
(10 3 15 22 11 2 14 23)
);

Please help me....I am new to OpenFOAM as well as C++
deoga likes this.
robingilbert is offline   Reply With Quote

Old   January 18, 2010, 18:41
Default
  #2
Member
 
Alan Russell
Join Date: Aug 2009
Location: Boise, Idaho USA
Posts: 61
Rep Power: 17
AlanR is on a distinguished road
Robin,

Without going through all of your vertices, blocks, etc., myself, you probably have things in the wrong order. It's very easy to get the order of vertices mixed up in a patch, which will give you fatal errors. First, I would start with one block at a time. I like to number the vertices so that the hex block numbers are consecutive - it's easier to keep track of that way. So you will have 24 vertices and your first block will be hex (0 1 2 3 4 5 6 7) (30 10 10) simpleGrading (1 1 1). Next, try just running blockMesh on one block at a time - blockMesh is very fast, so this will save you debugging time. Once you get all three blocks individually correct, you have problems with mergePatchPairs. Each patch that you want to merge must be individually named. You need something like wall fixedWall1 (6 5 17 18) wall fixedWall2 (4 3 115 16). Then, your mergePatchPairs will look like mergePatchPairs ( (fixedWall2 fixedWall1) (fixedWall3 fixedWall4) etc). Be careful with the order of mergePatchPairs - there is a note in the User Guide about which goes first.
So, break things down, order vertices so the blockMeshDict is easy to debug, and build up your geometry one step at a time. I'm still relatively new at this myself - spending a little time on learning blockMesh is worth the effort. It works quite well once you get used to it. Below is a simple geometry model multiple blocks and merged patch pairs as an example.
Good luck,
Alan

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

convertToMeters 1;

vertices
(
(0 0 0) //a
(2 0 0)
(2 1 0)
(0 1 0)
(0 0 1)
(2 0 1)
(2 1 1)
(0 1 1)
(0 1 0) //b
(2 1 0)
(2 2 0)
(0 2 0)
(0 1 1)
(2 1 1)
(2 2 1)
(0 2 1)
(2 1 0) //c
(3 1 0)
(3 2 0)
(2 2 0)
(2 1 1)
(3 1 1)
(3 2 1)
(2 2 1)
(3 1 0) //d
(5 1 0)
(5 2 0)
(3 2 0)
(3 1 1)
(5 1 1)
(5 2 1)
(3 2 1)
(3 0 0) //e
(5 0 0)
(5 1 0)
(3 1 0)
(3 0 1)
(5 0 1)
(5 1 1)
(3 1 1)

);

blocks
(
hex (0 1 2 3 4 5 6 7) (10 4 4) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (10 4 4) simpleGrading (1 1 1)
hex (16 17 18 19 20 21 22 23) (5 4 4) simpleGrading (1 1 1)
hex (24 25 26 27 28 29 30 31) (10 4 4) simpleGrading (1 1 1)
hex (32 33 34 35 36 37 38 39) (10 4 4) simpleGrading (1 1 1)
);

edges
(
);

patches
(
patch inlet
(
(0 4 7 3)
(8 12 15 11)

)
patch outlet
(
(25 26 30 29)
(33 34 38 37)

)
wall upper
(
(11 15 14 10)
(19 23 22 18)
(27 31 30 26)
)
wall lower
(
(0 1 5 4)
(1 2 6 5)
(16 17 21 20)
(32 33 37 36)
(32 36 39 35)

)
wall front
(
(4 5 6 7)
(12 13 14 15)
(20 21 22 23)
(28 29 30 31)
(36 37 38 39)
)
wall back
(
(0 3 2 1)
(8 11 10 9)
(16 19 18 17)
(24 27 26 25)
(32 35 34 33)
)

patch i1
(
(3 7 6 2)
)

patch i2
(
(8 9 13 12)
)

patch i3
(
(9 10 14 13)
)

patch i4
(
(16 20 23 19)
)

patch i5
(
(17 18 22 21)
)

patch i6
(
(24 28 31 27)
)

patch i7
(
(24 25 29 28)
)

patch i8
(
(35 39 38 34)
)

);

mergePatchPairs
(
(i2 i1)
(i3 i4)
(i6 i5)
(i7 i8)
);

// ************************************************** *********************** //
AlanR is offline   Reply With Quote

Old   January 18, 2010, 21:10
Default
  #3
Member
 
Robin Gilbert
Join Date: Jan 2010
Posts: 66
Rep Power: 16
robingilbert is on a distinguished road
Hi Alan,

Thanks... I got it running. the error was with the meshpatchpairs.... I dint know that i had to name it!!! thank you.
robingilbert is offline   Reply With Quote

Old   April 14, 2016, 22:23
Default Error in blockMesh
  #4
Member
 
Milad
Join Date: Jul 2015
Location: USA
Posts: 45
Rep Power: 11
mizzou is on a distinguished road
Guys,

I would be so grateful if anybody could help me. I just got this error when I execute the blockMesh:

--> FOAM FATAL ERROR:
face 1 in patch 0 does not have neighbour cell face: 4(12 15 19 16)

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.


My blockMeshDict is as follows:

convertToMeters 1;

vertices
(
(0 0 -0.001) //0
(1 0 -0.001) //1
(1 0.005 -0.001) //2
(0 0.005 -0.001) //3
(0 0 0.001) //4
(1 0 0.001) //5
(1 0.005 0.001) //6
(0 0.005 0.001) //7
(0 0.01 -0.001) //8
(1 0.01 -0.001) //9
(1 0.01 0.001) //10
(0 0.01 0.001) //11
(0 0.015 -0.001) //12
(1 0.015 -0.001) //13
(1 0.015 0.001) //14
(0 0.015 0.001) //15
(0 0.02 -0.001) //16
(1 0.02 -0.001) //17
(1 0.02 0.001) //18
(0 0.02 0.001) //19
);

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

boundary
(
inlet_water
{
type patch;
faces
(
(3 7 11 8)
(12 15 19 16)
);
}
inlet_air
{
type patch;
faces
(
(0 4 7 3)
(8 11 15 12)
);
}
outlet_water
{
type patch;
faces
(
(1 2 6 5)
(9 13 14 10)
);
}
outlet_air
{
type patch;
faces
(
(2 9 10 6)
(13 17 18 14)
);
}
lowerWall
{
type wall;
faces
(
(0 1 5 4)
);
}
topWall
{
type wall;
faces
(
(17 16 19 18)
);
);
}
outlet_air
{
type patch;
faces
(
(2 9 10 6)
(13 17 18 14)
);
}
lowerWall
{
type wall;
faces
(
(0 1 5 4)
);
}
topWall
{
type wall;
faces
(
(17 16 19 18)
);
}
);

mergePatchPairs
(
);
mizzou is offline   Reply With Quote

Old   April 15, 2016, 05:19
Default
  #5
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

From the definition of your last block, you have (12 13 17 16 15 14 19 18).

If you look up the way OF looks at a block, then you will see that there is no face that can be defined by (12 15 19 16)

There are two possible solutions:
1. Assuming your block definition is correct, then the face should be (12 15 18 16).

2. Assuming your face definition is correct, then the block should be (12 13 17 16 15 14 18 19)

Cheers,
Antimony
mizzou and sourav90 like this.
Antimony is offline   Reply With Quote

Old   April 15, 2016, 22:15
Default
  #6
Member
 
Milad
Join Date: Jul 2015
Location: USA
Posts: 45
Rep Power: 11
mizzou is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

From the definition of your last block, you have (12 13 17 16 15 14 19 18).

If you look up the way OF looks at a block, then you will see that there is no face that can be defined by (12 15 19 16)

There are two possible solutions:
1. Assuming your block definition is correct, then the face should be (12 15 18 16).

2. Assuming your face definition is correct, then the block should be (12 13 17 16 15 14 18 19)

Cheers,
Antimony
Thank you so much Antimony, it worked.
mizzou is offline   Reply With Quote

Old   June 20, 2016, 13:31
Default
  #7
New Member
 
mohd nor hazwan bin hadzir
Join Date: May 2016
Posts: 8
Rep Power: 10
M.N Hazwan Hadzir is on a distinguished road
--> FOAM FATAL ERROR:
Trying to specify a boundary face 4(6 7 15 14) on the face on cell 6 which is either an internal face or already belongs to some other patch. This is face 0 of patch 17 named G_zone.


///////////////////////////////////////////////

im not understand, what the meaning specific a boundary face??
my program is like this..


vertices
(


(0 0 -1) // 0
(43 0 -1) // 1
(86 0 -1) // 2
(129 0 -1) // 3
(172 0 -1) // 4
(215 0 -1) // 5
(258 0 -1) // 6
(301 0 -1) // 7
(0 1 -1) // 8
(43 1 -1) // 9
(86 1 -1) // 10
(129 1 -1) // 11
(172 1 -1) // 12
(215 1 -1) // 13
(258 1 -1) // 14
(301 1 -1) // 15

(0 0 1) // 16
(43 0 1) // 17
(86 0 1) // 18
(129 0 1) // 19
(172 0 1) // 20
(215 0 1) // 21
(258 0 1) // 22
(301 0 1) // 23
(0 1 1) // 24
(43 1 1) // 25
(86 1 1) // 26
(129 1 1) // 27
(172 1 1) // 28
(215 1 1) // 29
(258 1 1) // 30
(301 1 1) // 31

);

blocks
(
hex (0 1 9 8 16 17 25 24) (60 20 1) simpleGrading (1 1 1)
hex (1 2 10 9 17 18 26 25) (60 20 1) simpleGrading (1 1 1)
hex (2 3 11 10 18 19 27 26) (60 20 1) simpleGrading (1 1 1)
hex (3 4 12 11 19 20 28 27) (60 20 1) simpleGrading (1 1 1)
hex (4 5 13 12 20 21 29 28) (60 20 1) simpleGrading (1 1 1)
hex (5 6 14 13 21 22 30 29) (60 20 1) simpleGrading (1 1 1)
hex (6 7 15 14 22 23 31 30) (60 20 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 16 24 8)
);
}
outlet
{
type patch;
faces
(
(7 23 31 15)
);
}

lowerWall_A
{
type patch;
faces
(
(0 1 17 16)
);
}

upperWall_A
{
type patch;
faces
(
(8 9 25 24)
);
}

lowerWall_B
{
type patch;
faces
(
(1 2 18 17)
);
}

upperWall_B
{
type patch;
faces
(
(9 10 26 25)
);
}

lowerWall_C
{
type patch;
faces
(
(2 3 19 18)
);
}

upperWall_C
{
type patch;
faces
(
(10 11 27 26)
);
}

lowerWall_D
{
type patch;
faces
(
(3 4 20 19)
);
}

upperWall_D
{
type patch;
faces
(
(11 12 28 27)
);
}

lowerWall_E
{
type patch;
faces
(
(4 5 21 20)
);
}

upperWall_E
{
type patch;
faces
(
(12 13 29 28)
);
}

lowerWall_F
{
type patch;
faces
(
(5 6 22 21)
);
}

upperWall_F
{
type patch;
faces
(
(13 14 30 29)
);
}

lowerWall_G
{
type patch;
faces
(
(6 7 15 14)
);
}

upperWall_G
{
type patch;
faces
(
(30 31 15 14)
);
}
A_zone
{
type wall;
faces
(
(0 1 9 8)
(16 17 25 24)
);
}
G_zone
{
type wall;
faces
(
(6 7 15 14)
(6 7 15 14)
);
}
front
{
type empty;
faces
(

(1 2 10 9)
(2 3 11 10)
(3 4 12 11)
(4 5 13 12)
(5 6 14 13)


);
}
Back
{
type empty;
faces
(

(17 18 26 25)
(18 19 27 26)
(19 20 28 27)
(20 21 29 28)
(21 22 30 29)

);
}

);

mergePatchPairs
(
);

// ************************************************** *********************** //
M.N Hazwan Hadzir is offline   Reply With Quote

Old   June 21, 2016, 04:17
Default --> FOAM FATAL ERROR: Trying to specify a boundary face..
  #8
New Member
 
mohd nor hazwan bin hadzir
Join Date: May 2016
Posts: 8
Rep Power: 10
M.N Hazwan Hadzir is on a distinguished road
Hallo, everyone,
my name is hazwan,
im is new in OpenFoam using,

I got some problem during make meshing,
--> FOAM FATAL ERROR:
Trying to specify a boundary face 4(6 7 15 14) on the face on cell 6 which is either an internal face or already belongs to some other patch. This is face 0 of patch 28 named G1.

below is my program,
im dont what is the meaning of " trying to specify a boundary face"

anybody can help me to solve this problem?


vertices
(


(0 0 -1) // 0
(43 0 -1) // 1
(86 0 -1) // 2
(129 0 -1) // 3
(172 0 -1) // 4
(215 0 -1) // 5
(258 0 -1) // 6
(301 0 -1) // 7
(0 1 -1) // 8
(43 1 -1) // 9
(86 1 -1) // 10
(129 1 -1) // 11
(172 1 -1) // 12
(215 1 -1) // 13
(258 1 -1) // 14
(301 1 -1) // 15

(0 0 1) // 16
(43 0 1) // 17
(86 0 1) // 18
(129 0 1) // 19
(172 0 1) // 20
(215 0 1) // 21
(258 0 1) // 22
(301 0 1) // 23
(0 1 1) // 24
(43 1 1) // 25
(86 1 1) // 26
(129 1 1) // 27
(172 1 1) // 28
(215 1 1) // 29
(258 1 1) // 30
(301 1 1) // 31

);

blocks
(
hex (0 1 9 8 16 17 25 24) (60 20 1) simpleGrading (1 1 1)
hex (1 2 10 9 17 18 26 25) (60 20 1) simpleGrading (1 1 1)
hex (2 3 11 10 18 19 27 26) (60 20 1) simpleGrading (1 1 1)
hex (3 4 12 11 19 20 28 27) (60 20 1) simpleGrading (1 1 1)
hex (4 5 13 12 20 21 29 28) (60 20 1) simpleGrading (1 1 1)
hex (5 6 14 13 21 22 30 29) (60 20 1) simpleGrading (1 1 1)
hex (6 7 15 14 22 23 31 30) (60 20 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 16 24 8)
);
}
outlet
{
type patch;
faces
(
(7 23 31 15)
);
}

lowerWall_A
{
type patch;
faces
(
(0 1 17 16)
);
}

upperWall_A
{
type patch;
faces
(
(8 9 25 24)
);
}

lowerWall_B
{
type patch;
faces
(
(1 2 18 17)
);
}

upperWall_B
{
type patch;
faces
(
(9 10 26 25)
);
}

lowerWall_C
{
type patch;
faces
(
(2 3 19 18)
);
}

upperWall_C
{
type patch;
faces
(
(10 11 27 26)
);
}

lowerWall_D
{
type patch;
faces
(
(3 4 20 19)
);
}

upperWall_D
{
type patch;
faces
(
(11 12 28 27)
);
}

lowerWall_E
{
type patch;
faces
(
(4 5 21 20)
);
}

upperWall_E
{
type patch;
faces
(
(12 13 29 28)
);
}

lowerWall_F
{
type patch;
faces
(
(5 6 22 21)
);
}

upperWall_F
{
type patch;
faces
(
(13 14 30 29)
);
}

lowerWall_G
{
type patch;
faces
(
(6 7 15 14)
);
}

upperWall_G
{
type patch;
faces
(
(30 31 15 14)
);
}

A1
{
type empty;
faces
(
(0 1 9 8)
);
}

A2
{
type empty;
faces
(
(16 17 25 24)
);
}

B1
{
type empty;
faces
(
(1 2 10 9)
);
}

B2
{
type empty;
faces
(
(17 18 26 25)
);
}

C1
{
type empty;
faces
(
(2 3 11 10)
);
}

C2
{
type empty;
faces
(
(18 19 27 26)
);
}

D1
{
type empty;
faces
(
(3 4 12 11)
);
}

D2
{
type empty;
faces
(
(19 20 28 27)
);
}

E1
{
type empty;
faces
(
(4 5 13 12)
);
}
E2
{
type empty;
faces
(
(20 21 29 28)
);
}
F1
{
type empty;
faces
(
(5 6 14 13)
);
}
F2
{
type empty;
faces
(
(21 22 30 29)
);
}
G1
{
type ;
faces
(
(6 7 15 14)
);
}
G2
{
type empty;
faces
(
(22 23 31 30)
);
}

);

mergePatchPairs
(
(F1 G1)
);

// ************************************************** *********************** //
M.N Hazwan Hadzir is offline   Reply With Quote

Old   June 21, 2016, 04:44
Default
  #9
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

Your "lowerWall_G" and "G1" have the exact same face definition. A face can be specified as belonging only to one patch...

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   June 21, 2016, 05:29
Default
  #10
New Member
 
mohd nor hazwan bin hadzir
Join Date: May 2016
Posts: 8
Rep Power: 10
M.N Hazwan Hadzir is on a distinguished road
Dear Antimon,

thank you very much.. it's work for the last problem..
M.N Hazwan Hadzir is offline   Reply With Quote

Old   June 21, 2016, 06:45
Default
  #11
New Member
 
mohd nor hazwan bin hadzir
Join Date: May 2016
Posts: 8
Rep Power: 10
M.N Hazwan Hadzir is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

Your "lowerWall_G" and "G1" have the exact same face definition. A face can be specified as belonging only to one patch...

Cheers,
Antimony

sir, i want to ask u one more question..
what the problem when after i run the blockMesh and proceed to paraFoam..
this error is come out?

--> FOAM FATAL IO ERROR:
Cannot find patchField entry for lowerWall_A

file: /home/hazwanhadzir/Desktop/MY_master/mhdFoam_0/hartmann/0/p.boundaryField from line 25 to line 46.
M.N Hazwan Hadzir is offline   Reply With Quote

Old   June 21, 2016, 06:58
Default
  #12
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

It means that you have not specified that patch in the boundary file.

Essentially, every patch entry in the boundary file under constant/polyMesh, must be mentioned in each of your boundary condition files.

Cheers,
Antimony
M.N Hazwan Hadzir likes this.
Antimony is offline   Reply With Quote

Old   June 21, 2016, 07:17
Default
  #13
New Member
 
mohd nor hazwan bin hadzir
Join Date: May 2016
Posts: 8
Rep Power: 10
M.N Hazwan Hadzir is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

It means that you have not specified that patch in the boundary file.

Essentially, every patch entry in the boundary file under constant/polyMesh, must be mentioned in each of your boundary condition files.

Cheers,
Antimony
ok thank you..
i will try it again..
M.N Hazwan Hadzir is offline   Reply With Quote

Old   June 25, 2016, 09:13
Default
  #14
New Member
 
Madeleine
Join Date: Jun 2016
Posts: 14
Rep Power: 10
Madi is on a distinguished road
Hello,

I have kind of the same problem. I try to build a channel with an indented wall (see picture). Now i try to define these new walls. but the following error occured:

face 15 in patch 2 does not have neighbour cell face: 4(28 2 10 26)

Can someone help me please. Thanks.

here is my blockMesh file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

backgroundMesh
{
x0 3.91; // Einlaufbereich
x1 9.91; //Bereich Rechen 1.5m vor Rechen
x2 12.91; //Bereich Rechen 1.5m nach Rechen (Verfeinerungsbereich) (Rechen genau in der Mitte bei 11.410)
x3 18.91; //Auslaufbereich

y0 -0.9025;
y1 0.7975;
y2 -0.9275;
y3 0.8225;
y4 -0.9525;
y5 0.8475;
y6 -0.900;
y7 -0.875;
y8 -0.925;

z0 0;
z1 0.85; //Wasserstandshöhe
z2 1.700;
}



convertToMeters 1;

vertices
(
($:backgroundMesh.x0 $:backgroundMesh.y0 $:backgroundMesh.z0) //0
($:backgroundMesh.x0 $:backgroundMesh.y1 $:backgroundMesh.z0) //1
($:backgroundMesh.x1 $:backgroundMesh.y0 $:backgroundMesh.z0) //2
($:backgroundMesh.x1 $:backgroundMesh.y1 $:backgroundMesh.z0) //3
($:backgroundMesh.x2 $:backgroundMesh.y0 $:backgroundMesh.z0) //4
($:backgroundMesh.x2 $:backgroundMesh.y1 $:backgroundMesh.z0) //5
($:backgroundMesh.x3 $:backgroundMesh.y0 $:backgroundMesh.z0) //6
($:backgroundMesh.x3 $:backgroundMesh.y1 $:backgroundMesh.z0) //7

($:backgroundMesh.x0 $:backgroundMesh.y2 $:backgroundMesh.z1) //8
($:backgroundMesh.x0 $:backgroundMesh.y3 $:backgroundMesh.z1) //9
($:backgroundMesh.x1 $:backgroundMesh.y2 $:backgroundMesh.z1) //10
($:backgroundMesh.x1 $:backgroundMesh.y3 $:backgroundMesh.z1) //11
($:backgroundMesh.x2 $:backgroundMesh.y2 $:backgroundMesh.z1) //12
($:backgroundMesh.x2 $:backgroundMesh.y3 $:backgroundMesh.z1) //13
($:backgroundMesh.x3 $:backgroundMesh.y2 $:backgroundMesh.z1) //14
($:backgroundMesh.x3 $:backgroundMesh.y3 $:backgroundMesh.z1) //15

($:backgroundMesh.x0 $:backgroundMesh.y4 $:backgroundMesh.z2) //16
($:backgroundMesh.x0 $:backgroundMesh.y5 $:backgroundMesh.z2) //17
($:backgroundMesh.x1 $:backgroundMesh.y4 $:backgroundMesh.z2) //18
($:backgroundMesh.x1 $:backgroundMesh.y5 $:backgroundMesh.z2) //19
($:backgroundMesh.x2 $:backgroundMesh.y4 $:backgroundMesh.z2) //20
($:backgroundMesh.x2 $:backgroundMesh.y5 $:backgroundMesh.z2) //21
($:backgroundMesh.x3 $:backgroundMesh.y4 $:backgroundMesh.z2) //22
($:backgroundMesh.x3 $:backgroundMesh.y5 $:backgroundMesh.z2) //23

($:backgroundMesh.x1 $:backgroundMesh.y8 $:backgroundMesh.z2) //24//Tor
($:backgroundMesh.x2 $:backgroundMesh.y8 $:backgroundMesh.z2) //25
($:backgroundMesh.x1 $:backgroundMesh.y6 $:backgroundMesh.z1) //26
($:backgroundMesh.x2 $:backgroundMesh.y6 $:backgroundMesh.z1) //27
($:backgroundMesh.x1 $:backgroundMesh.y7 $:backgroundMesh.z0) //28
($:backgroundMesh.x2 $:backgroundMesh.y7 $:backgroundMesh.z0) //29



);

blocks
(
hex (0 2 3 1 8 10 11 9) (10 10 10) simpleGrading (1 1 1) // Block1 Einlauf Wasser
hex (8 10 11 9 16 18 19 17) (10 10 10) simpleGrading (1 1 1) // Block Einlauf Luft
hex (28 29 5 3 26 27 13 11) (10 10 10) simpleGrading (1 1 1) //Rechen (11.410) Wasser
hex (26 27 13 11 24 25 21 19) (10 10 10) simpleGrading (1 1 1) // Rechen Luft
hex (4 6 7 5 12 14 15 13) (10 10 10) simpleGrading (1 1 1) // Auslauf Wasser
hex (12 14 15 13 20 22 23 21) (10 10 10) simpleGrading (1 1 1) // Auslauf Luft

);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 8 9 1)
);
}
/*InletAir
{
type patch;
faces
(
(8 16 17 9)
);

}*/

outlet
{
type patch;
faces
(
(6 7 15 14)
);
}

/*OutletWater
{
type patch;
faces
(
(6 7 15 14)
);

}*/

walls
{
type wall;
faces
(
(0 2 10 8) // Rückwand
(8 10 18 16)
(28 29 27 26)//(2 4 12 10)
(26 27 25 24)//(10 12 20 18)
(4 6 14 12)
(12 14 22 20)//ab hier Boden
(0 1 3 2)
(28 3 5 29)//(2 3 5 4)
(4 5 7 6) // ab hier Vorderwand
(1 9 11 3)
(9 17 19 11)
(3 11 13 5)
(11 19 21 13)
(5 13 15 7)
(13 21 23 15)
(28 2 10 26)//indentedWall
(26 10 18 24)
(29 4 12 27)
(27 12 20 25)
/*(8 16 17 9)//inletA
(14 15 23 22) //outletA*/
);
}


atmosphere
{
type patch;
faces
(
(16 18 19 17)
(24 25 21 19)//(18 20 21 19)
(20 22 23 21)
(8 16 17 9)//inletA
(14 15 23 22) //outletA
);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //
Attached Images
File Type: jpg Rinne.jpg (21.4 KB, 49 views)
Madi is offline   Reply With Quote

Old   June 25, 2016, 23:07
Default
  #15
New Member
 
mohd nor hazwan bin hadzir
Join Date: May 2016
Posts: 8
Rep Power: 10
M.N Hazwan Hadzir is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

It means that you have not specified that patch in the boundary file.

Essentially, every patch entry in the boundary file under constant/polyMesh, must be mentioned in each of your boundary condition files.

Cheers,
Antimony
I try to make help from my friends,
He told me, my block mesh (Geometry) is OK, nothing error,
but when i'm try with my PC, during insert ParaFoam command
its error, as i told you before..

have u face with this problem before?
M.N Hazwan Hadzir is offline   Reply With Quote

Old   June 27, 2016, 07:21
Default
  #16
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

@Madi: You get the error because none of the blocks that you have defined have all of 28 2 10 and 26. If you want to create a face, then the first rule is that all the vertices specifying the face must be part of a the block to which the face belongs.

@Hadzir: What exactly is the error message you get?

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   July 5, 2016, 16:31
Post Error in blockMesh
  #17
New Member
 
Sudheer Reddy B
Join Date: Oct 2015
Location: San Antonio, Texas
Posts: 9
Rep Power: 11
sudheer717 is on a distinguished road
Send a message via Skype™ to sudheer717
Hi guys,

I am very new to OpenFoam. I am trying to create a thermal plume rising from the floor of a heated room. I have gone through the hotroom tutorial and I need to modify the boundaries and mesh.

In the tutorial, the whole floor is at higher temperature than the rest of the domain. What I am trying to do is to heat only a certain portion of the floor (lets say a square tile located at the center of the floor). For that I have modified the meshdict and encountered the following error. Any help is appreciated.

Thank you

Error message:

--> FOAM FATAL ERROR:
face 0 in patch 0 does not have neighbor cell face: 8(4 8 9 10 14 13 15 5)

Meshfile:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 0 0) //0
(20 0 0) //1
(20 30 0) //2
(0 30 0) //3
(0 0 20) //4
(20 0 20) //5
(20 30 20) //6
(0 30 20) //7
(0 0 10) //8
(9.5 0 10) //9
(9.5 0 10.5) //10
(9.5 0 9.5) //11
(10.5 0 9.5) //12
(10.5 0 10) //13
(10.5 0 10.5) //14
(20 0 10) //15
);

blocks
(
hex (0 1 2 3 4 5 6 7) (100 100 100) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
floor
{
type wall;
faces
(
(4 8 9 10 14 13 15 5)
(8 0 1 15 13 12 11 9)
);
}

tile
{
type patch;
faces
(
(10 9 11 12 13 14)
);
}

ceiling
{
type wall;
faces
(
(3 7 6 2)
);
}

fixedWalls
{
type wall;
faces
(
(0 8 4 7 3)
(2 6 5 15 1)
(0 3 2 1)
(4 5 6 7)
);
}
);

mergePatchPairs
(
);
sudheer717 is offline   Reply With Quote

Old   July 10, 2016, 23:11
Default
  #18
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

Please refer to my reply to Madi. it is the same in your case.

If you want to specify a subset of your block to be something different, I suggest you use the combination of topoSet and createPatch.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   July 15, 2016, 19:58
Default Mesh is not OK
  #19
Member
 
Milad
Join Date: Jul 2015
Location: USA
Posts: 45
Rep Power: 11
mizzou is on a distinguished road
Hello everyone,

What is the problem for this mesh? I can execute blockMesh but after executing checkMesh, I got "Failed 5 mesh checks." And when I see my geometry in paraview, it has a problem in some part. Any comment is highly appreciated.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 0 -0.001) //0
(0.5 0 -0.001) //1
(0.5 0.001 -0.001) //2
(0 0.001 -0.001) //3
(0 0 0.001) //4
(0.5 0 0.001) //5
(0.5 0.001 0.001) //6
(0 0.001 0.001) //7
(0 0.0035 -0.001) //8
(0.5 0.0035 -0.001) //9
(0.5 0.0055 -0.001) //10
(0 0.0055 -0.001) //11
(0 0.0035 0.001) //12
(0.5 0.0035 0.001) //13
(0.5 0.0055 0.001) //14
(0 0.0055 0.001) //15
(0 0.0075 -0.001) //16
(0.5 0.0075 -0.001) //17
(0.5 0.0011 -0.001) //18
(0 0.0011 -0.001) //19
(0 0.0075 0.001) //20
(0.5 0.0075 0.001) //21
(0.5 0.011 0.001) //22
(0 0.011 0.001) //23
(1 0.0075 -0.001) //24
(1 0.011 -0.001) //25
(1 0.0075 0.001) //26
(1 0.011 0.001) //27
(0.52 0 -0.001) //28
(0.54 0 -0.001) //29
(0.54 0.001 -0.001) //30
(0.52 0.001 -0.001) //31
(0.52 0 0.001) //32
(0.54 0 0.001) //33
(0.54 0.001 0.001) //34
(0.52 0.001 0.001) //35
(0.52 0.0035 -0.001) //36
(0.54 0.0035 -0.001) //37
(0.52 0.0035 0.001) //38
(0.54 0.0035 0.001) //39
(0.598 0 -0.001) //40
(0.6 0 -0.001) //41
(0.6 0.001 -0.001) //42
(0.598 0.001 -0.001) //43
(0.598 0 0.001) //44
(0.6 0 0.001) //45
(0.6 0.001 0.001) //46
(0.598 0.001 0.001) //47
(0.598 0.0035 -0.001) //48
(0.6 0.0035 -0.001) //49
(0.598 0.0035 0.001) //50
(0.6 0.0035 0.001) //51
(0.658 0 -0.001) //52
(0.66 0 -0.001) //53
(0.66 0.001 -0.001) //54
(0.658 0.001 -0.001) //55
(0.658 0 0.001) //56
(0.66 0 0.001) //57
(0.66 0.001 0.001) //58
(0.658 0.001 0.001) //59
(0.658 0.0035 -0.001) //60
(0.66 0.0035 -0.001) //61
(0.658 0.0035 0.001) //62
(0.66 0.0035 0.001) //63
(0.718 0 -0.001) //64
(0.72 0 -0.001) //65
(0.72 0.001 -0.001) //66
(0.718 0.001 -0.001) //67
(0.718 0 0.001) //68
(0.72 0 0.001) //69
(0.72 0.001 0.001) //70
(0.718 0.001 0.001) //71
(0.718 0.0035 -0.001) //72
(0.72 0.0035 -0.001) //73
(0.718 0.0035 0.001) //74
(0.72 0.0035 0.001) //75
(0.778 0 -0.001) //76
(0.78 0 -0.001) //77
(0.78 0.001 -0.001) //78
(0.778 0.001 -0.001) //79
(0.778 0 0.001) //80
(0.78 0 0.001) //81
(0.78 0.001 0.001) //82
(0.778 0.001 0.001) //83
(0.778 0.0035 -0.001) //84
(0.78 0.0035 -0.001) //85
(0.778 0.0035 0.001) //86
(0.78 0.0035 0.001) //87
(0.838 0 -0.001) //88
(0.84 0 -0.001) //89
(0.84 0.001 -0.001) //90
(0.838 0.001 -0.001) //91
(0.838 0 0.001) //92
(0.84 0 0.001) //93
(0.84 0.001 0.001) //94
(0.838 0.001 0.001) //95
(0.838 0.0035 -0.001) //96
(0.84 0.0035 -0.001) //97
(0.838 0.0035 0.001) //98
(0.84 0.0035 0.001) //99
(0.898 0 -0.001) //100
(0.9 0 -0.001) //101
(0.9 0.001 -0.001) //102
(0.898 0.001 -0.001) //103
(0.898 0 0.001) //104
(0.9 0 0.001) //105
(0.9 0.001 0.001) //106
(0.898 0.001 0.001) //107
(0.898 0.0035 -0.001) //108
(0.9 0.0035 -0.001) //109
(0.898 0.0035 0.001) //110
(0.9 0.0035 0.001) //111
(0.958 0 -0.001) //112
(0.96 0 -0.001) //113
(0.96 0.001 -0.001) //114
(0.958 0.001 -0.001) //115
(0.958 0 0.001) //116
(0.96 0 0.001) //117
(0.96 0.001 0.001) //118
(0.958 0.001 0.001) //119
(0.958 0.0035 -0.001) //120
(0.96 0.0035 -0.001) //121
(0.958 0.0035 0.001) //122
(0.96 0.0035 0.001) //123
(1 0 -0.001) //124
(1 0 0.001) //125
(1 0.001 -0.001) //126
(1 0.001 0.001) //127
(1 0.0035 -0.001) //128
(1 0.0035 0.001) //129
);

blocks
(
hex (0 1 2 3 4 5 6 7) (500 2 1) simpleGrading (1 1 1) //1
hex (3 2 9 8 7 6 13 12) (500 5 1) simpleGrading (1 1 1) //2
hex (8 9 10 11 12 13 14 15) (500 4 1) simpleGrading (1 1 1) //3
hex (11 10 17 16 15 14 21 20) (500 4 1) simpleGrading (1 1 1) //4
hex (16 17 18 19 20 21 22 23) (500 7 1) simpleGrading (1 1 1) //5
hex (17 24 25 18 21 26 27 22) (500 7 1) simpleGrading (1 1 1) //6
hex (1 28 31 2 5 32 35 6) (20 2 1) simpleGrading (1 1 1) //7
hex (2 31 36 9 6 35 38 13) (20 5 1) simpleGrading (1 1 1) //8
hex (28 29 30 31 32 33 34 35) (2 2 1) simpleGrading (1 1 1) //9
hex (29 40 43 30 33 44 47 34) (58 2 1) simpleGrading (1 1 1) //10
hex (30 43 48 37 34 47 50 39) (58 5 1) simpleGrading (1 1 1) //11
hex (40 41 42 43 44 45 46 47) (2 2 1) simpleGrading (1 1 1) //12
hex (41 52 55 42 45 56 59 46) (58 2 1) simpleGrading (1 1 1) //13
hex (42 55 60 49 46 59 62 51) (58 5 1) simpleGrading (1 1 1) //14
hex (52 53 54 55 56 57 58 59) (2 2 1) simpleGrading (1 1 1) //15
hex (53 64 67 54 57 68 71 58) (58 2 1) simpleGrading (1 1 1) //16
hex (54 67 72 61 58 71 74 63) (58 5 1) simpleGrading (1 1 1) //17
hex (64 65 66 67 68 69 70 71) (2 2 1) simpleGrading (1 1 1) //18
hex (65 76 79 66 69 80 83 70) (58 2 1) simpleGrading (1 1 1) //19
hex (66 79 84 73 70 83 86 75) (58 5 1) simpleGrading (1 1 1) //20
hex (76 77 78 79 80 81 82 83) (2 2 1) simpleGrading (1 1 1) //21
hex (77 88 91 78 81 92 95 82) (58 2 1) simpleGrading (1 1 1) //22
hex (78 91 96 85 82 95 98 87) (58 5 1) simpleGrading (1 1 1) //23
hex (88 89 90 91 92 93 94 95) (2 2 1) simpleGrading (1 1 1) //24
hex (89 100 103 90 93 104 107 94) (58 2 1) simpleGrading (1 1 1) //25
hex (90 103 108 97 94 107 110 99) (58 5 1) simpleGrading (1 1 1) //26
hex (100 101 102 103 104 105 106 107) (2 2 1) simpleGrading (1 1 1) //27
hex (101 112 115 102 105 116 119 106) (58 2 1) simpleGrading (1 1 1) //28
hex (102 115 120 109 106 119 122 111) (58 5 1) simpleGrading (1 1 1) //29
hex (112 113 114 115 116 117 118 119) (2 2 1) simpleGrading (1 1 1) //30
hex (113 124 126 114 117 125 127 118) (40 2 1) simpleGrading (1 1 1) //31
hex (114 126 128 121 118 127 129 123) (40 5 1) simpleGrading (1 1 1) //32

);

edges
(
);

boundary
(
inlet_water
{
type patch;
faces
(
(0 4 7 3)
(3 7 12 8)
(8 12 15 11)
);
}
inlet_air
{
type patch;
faces
(
(11 15 20 16)
(16 20 23 19)
);
}
outlet_air
{
type patch;
faces
(
(24 25 27 26)
);
}
outlet_water
{
type patch;
faces
(
(124 126 127 125)
(126 128 129 127)
);
}
front_mesh
{
type wall;
faces
(
(9 10 14 13)
(10 17 21 14)
);
}
bottomMesh_h
{
type wall;
faces
(
(9 36 38 13)
(31 30 34 35)
(37 48 50 39)
(43 42 46 47)
(49 60 62 51)
(55 54 58 59)
(61 72 74 63)
(67 66 70 71)
(73 84 86 75)
(79 78 82 83)
(109 120 122 111)
(115 114 118 119)
(121 128 129 123)
);
}
bottomMesh_v_front
{
type wall;
faces
(
(31 36 38 35)
(43 48 50 47)
(55 60 62 59)
(67 72 74 71)
(79 84 86 83)
(91 96 98 95)
(103 108 110 107)
(115 120 122 119)
);
}
bottomMesh_v_back
{
type wall;
faces
(
(30 37 39 34)
(42 49 51 46)
(54 61 63 58)
(66 73 75 70)
(78 85 87 82)
(90 97 99 94)
(102 109 111 106)
(114 121 123 118)
);
}
top_mesh
{
type wall;
faces
(
(17 24 26 21)
);
}
lowerWall
{
type wall;
faces
(
(0 1 5 4)
(41 52 56 45)
(76 77 81 80)
(1 28 32 5)
(52 53 57 56)
(77 88 92 81)
(28 29 33 32)
(53 64 68 57)
(88 89 93 92)
(29 40 44 33)
(64 65 69 68)
(89 100 104 93)
(40 41 45 44)
(65 76 80 69)
(101 112 116 105)
(100 101 105 104)
(112 113 117 116)
(113 124 125 117)
);
}
topWall
{
type wall;
faces
(
(18 19 23 22)
(25 18 22 27)
);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //
Attached Images
File Type: png Screenshot from 2016-07-15 17:56:10.png (639 Bytes, 14 views)
File Type: png Screenshot from 2016-07-15 17:56:40.png (1.6 KB, 22 views)
File Type: png Screenshot from 2016-07-15 17:57:19.png (1.5 KB, 15 views)
mizzou is offline   Reply With Quote

Old   February 16, 2017, 19:43
Default Another blockMesh neighbor cell face error
  #20
New Member
 
Randal Samstag
Join Date: Jan 2015
Location: Bainbridge Island, WA US
Posts: 8
Rep Power: 11
rsamstag is on a distinguished road
Here is another neighbor cell face error.
Anybody see the problem?
Thanks so much.

Randal

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

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 0 -0.1) //0
(8.65 0 -0.1)//1
(8.65 0.9 -0.1)//3
(0 0.9 -0.1)//4
(8.65 1 -0.1)//5
(0 1 -0.1)//6
(0 0 0.1)//7
(8.65 0 0.1)//8
(8.65 0.9 0.1)//9
(0 0.9 0.1)//10
(8.65 1 0.1)//11
(0 1 0.1)//12
(0.1 0 -0.1)//13
(0.1 0 0.1)//14
);

blocks
(
hex (0 1 2 3 6 7 8 9) (200 36 1) simpleGrading (1 1 1)
hex (3 2 4 5 9 8 10 11) (200 4 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch; //0
faces
(
(3 9 11 5)
);
}
outlet
{
type patch; //1
faces
(
(2 4 10 8)
);
}
bottomOutlet
{
type patch; //2
faces
(
(0 6 13 12)
);
}
bottomWall
{
type wall; //3
faces
(
(12 13 7 1)
);
}
endWall
{
type wall;
faces
(
(1 2 8 7)
);
}
top
{
type patch;
faces
(
(5 11 10 4)
);
}
frontAndBack
{
type empty;
faces
(
(0 3 2 1)
(6 7 8 9)
(3 5 4 2)
(9 8 10 11)
);
}
);


mergePatchPairs
(
);

// ************************************************** *********************** //
rsamstag is offline   Reply With Quote

Reply

Tags
fatal error


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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 06:37
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[swak4Foam] get the value of a field in the neighbour cell of a patch face miles_davis OpenFOAM Community Contributions 7 October 5, 2011 12:57
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
Warning 097- AB Siemens 6 November 15, 2004 05:41


All times are GMT -4. The time now is 04:35.