/*--------------------------------*- 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/fluid";
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// User input

convertToMeters 1;

// x coordinates
x1      0.34;

// y coordinates
y1      2;

// z coordinates
z1      $x1;

// Number of cells
dx      0.01;

nx      #calc "int($x1 / $dx)";
ny      #calc "int($y1 / $dx)";
nz      1;

vertices
(
    (0   0   0  )   // pt 0
    ($x1 0   0  )   // pt 1
    ($x1 $y1 0  )   // pt 2
    (0   $y1 0  )   // pt 3

    (0   0   $z1)   // pt 4
    ($x1 0   $z1)   // pt 5
    ($x1 $y1 $z1)   // pt 6
    (0   $y1 $z1)   // pt 7
);

blocks
(
    hex (0 1 2 3 4 5 6 7) ($nx $ny $nz) simpleGrading (1 1 1)
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (2 3 7 6)
        );
    }

    outlet
    {
        type patch;
        faces
        (
            (0 1 5 4)
        );
    }

    film
    {
        type            mappedExtrudedWall;
        neighbourRegion film;
        neighbourPatch  surface;
        isExtrudedRegion no;
        faces
        (
            (0 4 7 3)
        );
    }

    right
    {
        type wall;
        faces
        (
            (1 2 6 5)
        );
    }

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


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