/*--------------------------------*- 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;
    location    "system";
    object      createZonesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

stirrer
{
    type        union;

    blades
    {
        type        surface;
        surface     triSurface;
        file        "stirrer6.obj";
    }

    disk1
    {
        type        surface;
        surface     disk;
        origin      (0 0 0.24);
        normal      (0 0 1);
        radius      ${${FOAM_CASE}/system/blockMeshDict!rdisk};
    }

    disk2
    {
        type        surface;
        surface     disk;
        origin      (0 0 0.72);
        normal      (0 0 1);
        radius      ${${FOAM_CASE}/system/blockMeshDict!rdisk};
    }
}

sparger
{
    type    difference;

    outerRadius
    {
        type        surface;
        surface     disk;
        origin      (0 0 0.14);
        normal      (0 0 1);
        radius      ${${FOAM_CASE}/system/blockMeshDict!rspg};
    }

    innerRadius
    {
        type        surface;
        surface     disk;
        origin      (0 0 0.14);
        normal      (0 0 1);
        radius      #calc "${${FOAM_CASE}/system/blockMeshDict!rspg} - 0.01";
    }
}

baffles
{
    type        surface;
    surface     triSurface;
    file        "baffles.obj";
}

rotatingZone
{
    type        union;

    low
    {
        type        surface;
        surface     cylinder;

        point1      (0 0 0.19);
        point2      (0 0 0.29);
        radius      ${${FOAM_CASE}/system/blockMeshDict!rzone};
    }

    high
    {
        type        surface;
        surface     cylinder;

        point1      (0 0 0.67);
        point2      (0 0 0.77);
        radius      ${${FOAM_CASE}/system/blockMeshDict!rzone};
    }
}

rotatingCellZone
{
    type        union;
    name        rotatingZone;

    low
    {
        type        cylinder;
        zoneType    cell;

        point1      (0 0 0.19);
        point2      (0 0 0.29);
        radius      ${${FOAM_CASE}/system/blockMeshDict!rzone};
    }

    high
    {
        type        cylinder;
        zoneType    cell;

        point1      (0 0 0.67);
        point2      (0 0 0.77);
        radius      ${${FOAM_CASE}/system/blockMeshDict!rzone};
    }
}

waterZone
{
    type        cylinder;
    zoneType    cell;
    name        waterZone;

    point1      (0 0 0);
    point2      (0 0 1.34);
    radius      ${${FOAM_CASE}/system/blockMeshDict!R};
}

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