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/)
-   -   [Other] blockMeshDict not Matching Boundary (https://www.cfd-online.com/Forums/openfoam-meshing/131708-blockmeshdict-not-matching-boundary.html)

HassanDarian March 19, 2014 13:30

blockMeshDict not Matching Boundary
 
Hi,

I'm running a OpenFOAM tutorial example, as I tried to edit the blockMeshDict I noticed that the blockMeshDict and boundary files within polymesh do not match, can anyone help me reverse engineer the blockMeshDict from the boundary:

The boundary file is:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5
(
base
{
type patch;
nFaces 44;
startFace 4900;
}
outlet
{
type patch;
nFaces 50;
startFace 4944;
}
sides
{
type patch;
nFaces 100;
startFace 4994;
}
frontAndBack
{
type empty;
nFaces 5000;
startFace 5094;
}
inlet
{
type patch;
nFaces 6;
startFace 10094;
}
)
// ************************************************** *********************** //

a starting place for the blockMeshDict :

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1;
vertices
(
(-0.5 0 -0.01)
( 0.5 0 -0.01)
( 0.5 1 -0.01)
(-0.5 1 -0.01)
(-0.5 0 0.01)
( 0.5 0 0.01)
( 0.5 1 0.01)
(-0.5 1 0.01)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (50 50 1) simpleGrading (1 1 1)
);
edges
(
);
boundary
(
base
{
type patch;
faces
(
(0 1 5 4)
);
}
outlet
{
type patch;
faces
(
(3 2 6 7)
);
}
sides
{
type patch;
faces
(
(1 5 6 2)
(0 4 7 3)
);
}
frontAndBack
{
type empty;
faces
(
(0 1 2 3)
(4 5 6 7)
);
}
);
mergePatchPairs
(
);
// ************************************************** *********************** //

Many Thanks


All times are GMT -4. The time now is 23:09.