/*--------------------------------*- C++ -*----------------------------------*\
  ==  == ====== ====   ====    |
                    \\     ||  | Multiphase Code Repository by HZDR
  ======   //   ||  || ===//   | Website: https://doi.org/10.14278/rodare.767
  ||  ||  //    ||  // || \\   | License: GPL-3.0-or-later
  ==  == ====== ====   ==  ==  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

backgroundMesh
{
    length  0.02;
    rA     0.01905;
    lengthCells 20;
    rAcells 40;
}

convertToMeters 1;

vertices
(
    (                      0                   0 -1)
    ($!backgroundMesh/length                   0 -1)
    (                      0 $!backgroundMesh/rA -1)
    ($!backgroundMesh/length $!backgroundMesh/rA -1)

    (                      0                   0  0)
    ($!backgroundMesh/length                   0  0)
    (                      0 $!backgroundMesh/rA  0)
    ($!backgroundMesh/length $!backgroundMesh/rA  0)
);

blocks
(
    hex (0 1 3 2 4 5 7 6)
    ($!backgroundMesh/lengthCells $!backgroundMesh/rAcells 1)
    simpleGrading (1 0.5 1)

);

boundary
(
    inlet
    {
        type mappedInternal;
        distance 0.05;
        faces
        (
            (0 4 6 2)
        );
    }

    outlet
    {
        type patch;
        faces
        (
            (1 5 7 3)
        );
    }

    walls
    {
        type wall;
        faces
        (
            (3 2 6 7)
            (1 0 4 5)
        );
    }

    front
    {
        type symmetry;
        faces
        (
            (4 5 7 6)
        );
    }

    back
    {
        type symmetry;
        faces
        (
            (0 1 3 2)
        );
    }
);

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