mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- 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.
69 lines
1.8 KiB
C++
69 lines
1.8 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;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
backgroundMesh
|
|
{
|
|
xMin -1;
|
|
xMax 1;
|
|
yMin -1;
|
|
yMax 1;
|
|
zMin -1;
|
|
zMax 1;
|
|
xCells 20;
|
|
yCells 20;
|
|
zCells 20;
|
|
}
|
|
|
|
scale 1;
|
|
|
|
vertices
|
|
(
|
|
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMin)
|
|
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMin)
|
|
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMin)
|
|
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMin)
|
|
|
|
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMax)
|
|
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMax)
|
|
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMax)
|
|
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMax)
|
|
);
|
|
|
|
blocks
|
|
(
|
|
hex (0 1 2 3 4 5 6 7)
|
|
(
|
|
$:backgroundMesh.xCells
|
|
$:backgroundMesh.yCells
|
|
$:backgroundMesh.zCells
|
|
)
|
|
simpleGrading (1 1 1)
|
|
);
|
|
|
|
edges
|
|
(
|
|
);
|
|
|
|
boundary
|
|
(
|
|
);
|
|
|
|
mergePatchPairs
|
|
(
|
|
);
|
|
|
|
// ************************************************************************* //
|