- although this has been supported for many years, the tutorials continued to use "convertToMeters" entry, which is specific to blockMesh. The "scale" is more consistent with other dictionaries. ENH: - ignore "scale 0;" (treat as no scaling) for blockMeshDict, consistent with use elsewhere.
93 lines
1.7 KiB
C++
93 lines
1.7 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: plus |
|
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object blockMeshDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
scale 0.05;
|
|
|
|
vertices
|
|
(
|
|
(0 -1 0)
|
|
(0 0 0)
|
|
(0 1 0)
|
|
(0.1 -1 0)
|
|
(0.1 0 0)
|
|
(0.1 1 0)
|
|
(0 -1 0.1)
|
|
(0 0 0.1)
|
|
(0 1 0.1)
|
|
(0.1 -1 0.1)
|
|
(0.1 0 0.1)
|
|
(0.1 1 0.1)
|
|
);
|
|
|
|
blocks
|
|
(
|
|
hex (0 3 4 1 6 9 10 7) (1 40 1) simpleGrading (1 100 1)
|
|
hex (1 4 5 2 7 10 11 8) (1 40 1) simpleGrading (1 0.01 1)
|
|
);
|
|
|
|
edges
|
|
(
|
|
);
|
|
|
|
boundary
|
|
(
|
|
lowerWall
|
|
{
|
|
type wall;
|
|
faces
|
|
(
|
|
(0 3 9 6)
|
|
);
|
|
}
|
|
|
|
upperWall
|
|
{
|
|
type wall;
|
|
faces
|
|
(
|
|
(2 8 11 5)
|
|
);
|
|
}
|
|
|
|
front
|
|
{
|
|
type cyclic;
|
|
neighbourPatch back;
|
|
faces
|
|
(
|
|
(9 3 4 10)
|
|
(10 4 5 11)
|
|
);
|
|
}
|
|
|
|
back
|
|
{
|
|
type cyclic;
|
|
neighbourPatch front;
|
|
faces
|
|
(
|
|
(0 6 7 1)
|
|
(1 7 8 2)
|
|
);
|
|
}
|
|
);
|
|
|
|
mergePatchPairs
|
|
(
|
|
);
|
|
|
|
// ************************************************************************* //
|