/*--------------------------------*- 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;

cellSize        4e-3;
height          0.236;
width           0.236;
phalfWidth      #calc "0.5*$width";
mhalfWidth      #calc "-0.5*$width";

vertices
(
    ($mhalfWidth $mhalfWidth 0)
    ($phalfWidth $mhalfWidth 0)
    ($phalfWidth $phalfWidth 0)
    ($mhalfWidth $phalfWidth 0)
    ($mhalfWidth $mhalfWidth $height)
    ($phalfWidth $mhalfWidth $height)
    ($phalfWidth $phalfWidth $height)
    ($mhalfWidth $phalfWidth $height)
);


blocks
(
    hex (0 1 2 3 4 5 6 7)
    (
        #calc "ceil($width*(1/$cellSize))"
        #calc "ceil($width*(1/$cellSize))"
        #calc "ceil($height*(1/$cellSize))"
    ) simpleGrading (1 1 1)
);

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

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