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

convertToMeters 300; // multiply all sizes below by 300

bottomLayerHeight  #eval {1/30};

topHeight  #eval {$bottomLayerHeight + 5.0};

// Fix the verticies

vertices
(
    ( 0.0   -2.5   0.0)
    (21.5   -2.5   0.0)
    (21.5    2.5   0.0)
    ( 0.0    2.5   0.0)

    ( 0.0   -2.5   $bottomLayerHeight)
    (21.5   -2.5   $bottomLayerHeight)
    (21.5    2.5   $bottomLayerHeight)
    ( 0.0    2.5   $bottomLayerHeight)

    ( 0.0   -2.5   $topHeight)
    (21.5   -2.5   $topHeight)
    (21.5    2.5   $topHeight)
    ( 0.0    2.5   $topHeight)

);

blocks
(
    hex (0 1 2 3 4 5  6  7) (645 150 8) simpleGrading  (1 1  3.58600)  // for a D, 30, 30, ??
    hex (4 5 6 7 8 9 10 11) (645 150 150) simpleGrading (1 1 1)  // for a D, 30, 30, 30
);

boundary
(
    outlet
    {
        type patch;
        faces
        (
            (2 1 5  6)
            (6 5 9 10)
        );
    }
    sides
    {
        type wall;
        faces
        (
            (0 4  5  1)
            (3 2  6  7)
            (4 8  9  5)
            (7 6 10 11)
        );
    }
    inlet
    {
        type patch;
        faces
        (
            (0 3  7 4)
            (4 7 11 8)
        );
    }
    ground
    {
        type wall;
        faces
        (
            (0 1 2 3)
        );
    }
    top
    {
        type wall;
        faces
        (
            (8 11 10 9)
        );
    }
);



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