/*--------------------------------*- C++ -*----------------------------------*\
  Guide 13 - monitoring functions for a NEW damBreakLaminar copy.
  Save as <case>/system/functions BEFORE run_case.sh.
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      functions;
}

// Water inventory integral(alpha.water dV) [m3] at every time step
#includeFunc volIntegrate(alpha.water)

// Height of the water above four stations on the floor [m] (integral method):
// left wall (residual column), mid-tank, behind the obstacle, right wall
interfaceHeight1
{
    type            interfaceHeight;
    libs            ("libfieldFunctionObjects.so");
    alpha           alpha.water;
    locations       ((0.0073 0.001 0.0073) (0.146 0.001 0.0073) (0.45 0.001 0.0073) (0.577 0.001 0.0073));
}

// Largest velocity magnitude in the domain [m/s]
#includeFunc cellMaxMag(name=UmaxMag, U)

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