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

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

actions
(
    // Inlet
    {
        name    inletFaces;
        type    faceSet;
        action  new;
        source  patchToFace;
        patch   atmosphere;
    }
    {
        name    inletFaces;
        type    faceSet;
        action  subset;
        source  cylinderToFace;
        point1  (0 0 0);
        point2  (0 0 2);
        radius  $!inletLiquid/radius;
    }

    // Nozzle wall
    {
        name    nozzleFace;
        type    faceSet;
        action  new;
        source  patchToFace;
        patch   atmosphere;
    }
    {
        name    nozzleFace;
        type    faceSet;
        action  subset;
        source  cylinderToFace;
        point1  (0 0 0);
        point2  (0 0 2);
        radius  $!inletLiquid/nozzleRadius;
    }
    {
        name    nozzleFace;
        type    faceSet;
        action  delete;
        source  faceToFace;
        set     inletFaces;
    }

    // Underwater
    {
        name    underwater;
        type    cellSet;
        action  new;
        source  cylinderToCell;
        point1  (0 0 0);
        point2  (0 0 1.45001);
        radius  0.215;
    }
    {
        name    underwater;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        set     underwater;
    }
);

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