内容如下:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.6 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // D #calc "1.0/6.0"; xmin 0.0; xmax #calc "6.0*$D"; ymin #calc "-6.0*$D"; ymax #calc "30.0*$D"; zmin 0.0; zmax #calc "6.0*$D"; convertToMeters 0.01; vertices ( ($xmin $ymin $zmin) ($xmax $ymin $zmin) ($xmax $ymax $zmin) ($xmin $ymax $zmin) ($xmin $ymin $zmax) ($xmax $ymin $zmax) ($xmax $ymax $zmax) ($xmin $ymax $zmax) ); blocks ( hex (0 1 2 3 4 5 6 7) (30 180 30) simpleGrading (1 1 1) ); edges ( ); patches ( patch inlet ( (0 1 5 4) ) patch outlet ( (3 2 6 7) ) wall walls ( (0 4 7 3) (4 5 6 7) (1 5 6 2) (0 1 2 3) ) ); mergePatchPairs ( ); // ************************************************************************* //