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

[blockMesh] face 0 in patch 2 does not have neighbour cell face: 4(0 8 12 4) ERROR

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2022, 22:57
Default face 0 in patch 2 does not have neighbour cell face: 4(0 8 12 4) ERROR
  #1
New Member
 
Gaurav Kumar
Join Date: Jun 2022
Location: Japan
Posts: 6
Rep Power: 4
kumar.kyutech is on a distinguished road
Hi, I am trying to execute this blockMesh file. It has 3 blocks connected to one another. Kinda simple geometry but I am not sure why I am getting this error. Please help!


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

scale 0.001;

vertices
(
(0 0 0) //0hex1
(1 0 0) //1hex1
(1 20 0) //2hex3
(0 20 0) //3hex3
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
(0 0 1) //4hex1
(1 0 1) //5hex1
(1 20 1) //6hex3
(0 20 1) //7hex3
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
(0 3 0) //8hex1hex2
(1 3 0) //9hex1hex2
(0.7 18 0) //10hex2hex3
(0.3 18 0) //11hex2hex3
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
(0 3 1) //12hex1hex2
(1 3 1) //13hex1hex2
(0.7 18 1) //14hex2hex3
(0.3 18 1) //15hex2hex3
);

blocks
(
hex (0 1 9 8 4 5 12 13) (20 20 1) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (20 20 1) simpleGrading (1 1 1)
hex (11 10 2 3 15 14 6 7) (20 20 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(1 5 4 0)
);
}
atmosphere
{
type patch;
faces
(
(3 7 6 2)
);
}
walls
{
type wall;
faces
(
(0 8 12 4)
(12 8 11 15)
(11 15 7 3)
(1 5 13 9)
(9 13 14 10)
(10 14 6 2)
);
}
frontAndBack
{
type empty;
faces
(
(0 1 9 8)
(8 9 10 11)
(11 10 2 3)
(4 5 13 12)
(12 13 14 15)
(15 14 6 7)
);
}
);
mergePatchPairs
(

);
// ************************************************** *********************** //
kumar.kyutech is offline   Reply With Quote

Old   July 7, 2022, 00:00
Default
  #2
New Member
 
Gaurav Kumar
Join Date: Jun 2022
Location: Japan
Posts: 6
Rep Power: 4
kumar.kyutech is on a distinguished road
Quote:
Originally Posted by kumar.kyutech View Post
Hi, I am trying to execute this blockMesh file. It has 3 blocks connected to one another. Kinda simple geometry but I am not sure why I am getting this error. Please help!


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

scale 0.001;

vertices
(
(0 0 0) //0hex1
(1 0 0) //1hex1
(1 20 0) //2hex3
(0 20 0) //3hex3
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
(0 0 1) //4hex1
(1 0 1) //5hex1
(1 20 1) //6hex3
(0 20 1) //7hex3
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
(0 3 0) //8hex1hex2
(1 3 0) //9hex1hex2
(0.7 18 0) //10hex2hex3
(0.3 18 0) //11hex2hex3
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
(0 3 1) //12hex1hex2
(1 3 1) //13hex1hex2
(0.7 18 1) //14hex2hex3
(0.3 18 1) //15hex2hex3
);

blocks
(
hex (0 1 9 8 4 5 12 13) (20 20 1) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (20 20 1) simpleGrading (1 1 1)
hex (11 10 2 3 15 14 6 7) (20 20 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(1 5 4 0)
);
}
atmosphere
{
type patch;
faces
(
(3 7 6 2)
);
}
walls
{
type wall;
faces
(
(0 8 12 4)
(12 8 11 15)
(11 15 7 3)
(1 5 13 9)
(9 13 14 10)
(10 14 6 2)
);
}
frontAndBack
{
type empty;
faces
(
(0 1 9 8)
(8 9 10 11)
(11 10 2 3)
(4 5 13 12)
(12 13 14 15)
(15 14 6 7)
);
}
);
mergePatchPairs
(

);
// ************************************************** *********************** //
The problem is solved.
It is all about correct numbering in hex () syntax as per the faces.
kumar.kyutech is offline   Reply With Quote

Reply

Tags
blockmesh mesh conversion, openfoam


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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 15:50.