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] Error: face does not have neighbour cell face (https://www.cfd-online.com/Forums/openfoam-meshing/222597-error-face-does-not-have-neighbour-cell-face.html)

kelvinaaa November 30, 2019 21:43

Error: face does not have neighbour cell face
 
Hello, I have written the blockMeshDict file as follows

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

convertToMeters 1;

vertices
(
(0 0 0) //0
(1.25 0 0) //1
(1.25 0.8 0) //2
(0 0.8 0) //3
(0 0 0.2) //4
(1.25 0 0.2) //5
(1.25 0.8 0.2) //6
(0 0.8 0.2) //7
(1.43 0.0405 0) //8
(1.43 0.0405 0.2) //9
(1.637 0.144 0) //10
(1.65 0.15 0) //11
(1.551 0.352 0) //12
(1.541 0.347 0) //13
(1.637 0.144 0.2) //14
(1.65 0.15 0.2) //15
(1.551 0.352 0.2) //16
(1.541 0.347 0.2) //17
(1.532 0.365 0) //18
(1.56 0.347 0) //19
(1.56 0.8 0) //20
(1.322 0.8 0) //21
(1.532 0.365 0.2) //22
(1.56 0.347 0.2) //23
(1.56 0.8 0.2) //24
(1.322 0.8 0.2) //25
(1.745 0 0) //26
(1.745 0.8 0) //27
(1.745 0 0.2) //28
(1.745 0.8 0.2) //29
(2.5 0 0) //30
(2.5 0.8 0) //31
(2.5 0 0.2) //32
(2.5 0.8 0.2) //33
(1.373 0.265 0) //34
(1.369 0.285 0) //35
(1.25 0.285 0) //36
(1.25 0.265 0) //37
(0 0.285 0) //38
(0 0.265 0) //39
(1.373 0.265 0.2) //40
(1.369 0.285 0.2) //41
(1.25 0.285 0.2) //42
(1.25 0.265 0.2) //43
(0 0.285 0.2) //44
(0 0.265 0.2) //45
);

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

);

edges
(
arc 1 8 (1.34 0.0102 0)
arc 5 9 (1.34 0.0102 0.2)
);

boundary
(
leftWall
{
type wall;
faces
(
(0 1 37 39)
(39 37 36 38)
(38 36 2 3)
(1 8 34 37)
(37 34 35 36)
(36 35 2 2)
(8 10 13 34)
(34 13 18 35)
(35 18 21 2)
(10 11 12 13)
(18 19 20 21)
(19 26 27 20)
(26 30 31 27)
);
}
rightWall
{
type wall;
faces
(
(4 5 43 45)
(45 43 42 44)
(44 42 6 7)
(5 9 40 43)
(43 40 41 42)
(42 41 6 6)
(9 14 17 40)
(40 17 22 41)
(41 22 25 6)
(14 15 16 17)
(22 23 24 25)
(23 28 29 24)
(28 32 33 29)
);
}
lowerWall
{
type wall;
faces
(
(0 1 5 4)
(1 8 9 5)
(8 10 14 9)
(10 11 15 14)
(11 12 16 15)
(12 13 17 16)
(18 13 17 22)
(18 19 23 22)
(19 26 28 23)
(26 30 32 28)
);
}
endWall
{
type wall;
faces
(
(0 4 7 3)
);
}
frontWall
{
type wall;
faces
(
(30 32 33 31)
);
}
atmosphere
{
type patch;
faces
(
(3 31 33 7)
);
}
);

mergePatchPairs
(
);

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

However, I get the following problem even I have checked that there should be fine of the vertices ordering. I have followed all the same ordering.

/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 7-ca808c8420bf
Exec : blockMesh
Date : Dec 01 2019
Time : 10:38:52
Host : "kelvin-VirtualBox"
PID : 12546
I/O : uncollated
Case : /home/kelvin/OpenFOAM/kelvin-7/run/damBreak
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Creating block mesh from
"/home/kelvin/OpenFOAM/kelvin-7/run/damBreak/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches

Creating block mesh topology


--> FOAM FATAL ERROR:
face 7 in patch 1 does not have neighbour cell face: 4(40 17 22 41)

From function Foam::labelList Foam::polyMesh::facePatchFaceCells(const faceList&, const labelListList&, const faceListList&, Foam::label) const
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 118.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::polyMesh::facePatchFaceCells(Foam::List<Foam ::face> const&, Foam::List<Foam::List<int> > const&, Foam::List<Foam::List<Foam::face> > const&, int) const at ??:?
#3 Foam::polyMesh::setTopology(Foam::List<Foam::cellS hape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::List<int>&, Foam::List<int>&, int&, int&, Foam::List<Foam::cell>&) at ??:?
#4 Foam::polyMesh::polyMesh(Foam::IOobject const&, Foam::Field<Foam::Vector<double> >&&, Foam::List<Foam::cellShape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::PtrList<Foam::dictionary> const&, Foam::word const&, Foam::word const&, bool) at ??:?
#5 Foam::blockMesh::createTopology(Foam::IOdictionary const&, Foam::word const&) at ??:?
#6 Foam::blockMesh::blockMesh(Foam::IOdictionary const&, Foam::word const&) at ??:?
#7 ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/blockMesh"
#8 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#9 ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/blockMesh"
Aborted (core dumped)

Would all please help me to get rid of the problem? Many Thanks for all kindly help.


All times are GMT -4. The time now is 12:47.