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

#includeFunc    patchAverage(name=inletVelocity, patch=inlet, fields=(U.water))

#includeFunc    cutPlaneSurface
(
    name=surfaceCentre,
    point=(0 0 0),
    normal=(0 0 1),
    fields=( p_rgh U.water U.air alpha.water alpha.air ),
    writeControl=runTime,
    writeInterval=1,
    surfaceFormat=raw,
    interpolationScheme=cell
)

#includeFunc    trackPhaseStructures
(
    name=trackBubble,
    writeControl=runTime,
    writeInterval=0.2,
    alpha=alpha.air,
    U=U.water,
    tolerance=0.5,
    maxVolume=1,
    minVolume=0,
    writeIndexField=false
)

#includeFunc    phaseStructureProperties
(
    name=bubbleProperties,
    phaseName=alpha.air,
    velocityName=U.air,
    threshold=0.48
)

#includeFunc    stopAtFile(action=noWriteNow)

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