/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;


hN  2e-4;

L   #calc "100.0*$hN";
D   #calc "1.0*$hN";
H   #calc "4.0*$hN";
z   1e-3;

nX  400;
nY  100;

vertices
(
    (0  0  0) //0 
    ($L 0  0) //1
    ($L $H 0) //2
    (0  $H 0) //3

    (0  0  $z) //4
    ($L 0  $z) //5
    ($L $H $z) //6
    (0  $H $z) //7
);

blocks
(
    hex (0 1 2 3 4 5 6 7) ($nX $nY 1) simpleGrading (7 1 1)
);

edges
(
);

boundary
(
    movingWall
    {
        type wall;
        faces
        (
            (0 1 5 4)
        );
    }
    inlet
    {
        type                  cyclic;
        neighbourPatch        outlet;
        faces
        (
            (0 4 7 3)
        );
    }
    outlet
    {
        type                  cyclic;
        neighbourPatch        inlet;
        faces
        (
            (1 5 6 2)
        );
    }
      atmosphere
    {
        type patch;
        faces
        (
            (3 2 6 7)
        );
    }
    frontAndBack
    {
        type empty;
        faces
        (
            (0 1 2 3)
            (4 5 6 7)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //
