- 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.
124 lines
2.3 KiB
C++
124 lines
2.3 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 1;
|
|
|
|
vertices
|
|
(
|
|
( 0.00 0.0 0)
|
|
( 1.00 0.0 0)
|
|
( 1.00 1.0 0)
|
|
( 0.00 1.0 0)
|
|
( 0.00 0.0 1)
|
|
( 1.00 0.0 1)
|
|
( 1.00 1.0 1)
|
|
( 0.00 1.0 1)
|
|
|
|
//- 0 degrees
|
|
( 0.25 0.25 0)
|
|
( 0.75 0.25 0)
|
|
( 0.75 0.75 0)
|
|
( 0.25 0.75 0)
|
|
( 0.25 0.25 1)
|
|
( 0.75 0.25 1)
|
|
( 0.75 0.75 1)
|
|
( 0.25 0.75 1)
|
|
|
|
//- 45 degrees rotated
|
|
// ( 0.25 0.5 0)
|
|
// ( 0.5 0.25 0)
|
|
// ( 0.75 0.5 0)
|
|
// ( 0.5 0.75 0)
|
|
// ( 0.25 0.5 1)
|
|
// ( 0.5 0.25 1)
|
|
// ( 0.75 0.5 1)
|
|
// ( 0.5 0.75 1)
|
|
);
|
|
|
|
blocks
|
|
(
|
|
hex (0 1 2 3 4 5 6 7) (18 18 1) simpleGrading (1 1 1)
|
|
|
|
hex (8 9 10 11 12 13 14 15) movingZone (20 20 1) simpleGrading (1 1 1)
|
|
);
|
|
|
|
edges
|
|
(
|
|
);
|
|
|
|
boundary
|
|
(
|
|
free
|
|
{
|
|
type overset;
|
|
faces
|
|
(
|
|
(8 12 15 11)
|
|
(10 14 13 9)
|
|
(11 15 14 10)
|
|
( 9 13 12 8)
|
|
);
|
|
}
|
|
|
|
walls
|
|
{
|
|
type patch;
|
|
faces
|
|
(
|
|
(3 7 6 2)
|
|
(1 5 4 0)
|
|
);
|
|
}
|
|
|
|
// Populated by subsetMesh
|
|
hole
|
|
{
|
|
type patch;
|
|
faces ();
|
|
}
|
|
|
|
frontAndBack
|
|
{
|
|
type empty;
|
|
faces
|
|
(
|
|
(0 3 2 1)
|
|
(4 5 6 7)
|
|
( 8 11 10 9)
|
|
(12 13 14 15)
|
|
);
|
|
}
|
|
|
|
left1
|
|
{
|
|
type patch;
|
|
faces
|
|
(
|
|
(0 4 7 3)
|
|
);
|
|
}
|
|
right1
|
|
{
|
|
type patch;
|
|
faces
|
|
(
|
|
(2 6 5 1)
|
|
);
|
|
}
|
|
);
|
|
|
|
// ************************************************************************* //
|