/*--------------------------------*- C++ -*----------------------------------*\
  ==  == ====== ====   ====    |
                    \\     ||  | Multiphase Cases Repository by HZDR
  ======   //   ||  || ===//   | Website: https://doi.org/10.14278/rodare.811
  ||  ||  //    ||  // || \\   | License: Creative Commons Attribution 4.0
  ==  == ====== ====   ==  ==  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

#include "${FOAM_CASE}/constant/caseSettings"

Lx  $!hull/sectionLength;
Ly  0.5;
Lz  0.1;

Nx  30;
Ny  80;
Nz  1;

vertices
(
    (0   0   0  )
    ($Lx 0   0  )
    (0   $Ly 0  )
    ($Lx $Ly 0  )
    (0   0   $Lz)
    ($Lx 0   $Lz)
    (0   $Ly $Lz)
    ($Lx $Ly $Lz)
);

blocks
(
    hex (0 1 3 2 4 5 7 6) ($Nx $Ny $Nz)
    simpleGrading
    (
        1
        (
            (80 65 1)
            (20 35 0.2)
        )
        1
    )
);

boundary
(
    hull
    {
        type wall;
        faces
        (
            (2 6 7 3)
        );
    }

    bottom
    {
        type wall;
        faces
        (
            (0 1 5 4)
        );
    }

    inlet
    {
        type            cyclic;
        neighbourPatch  outlet;
        faces
        (
            (0 4 6 2)
        );
    }

    outlet
    {
        type            cyclic;
        neighbourPatch  inlet;
        faces
        (
            (1 3 7 5)
        );
    }

    frontAndBack
    {
        type empty;
        faces
        (
            (0 2 3 1)
            (4 5 7 6)
        );
    }
);

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