/*--------------------------------*- C++ -*----------------------------------*\
  ==  == ====== ====   ====    |
                    \\     ||  | Multiphase Code Repository by HZDR
  ======   //   ||  || ===//   | Website: https://doi.org/10.14278/rodare.767
  ||  ||  //    ||  // || \\   | License: GPL-3.0-or-later
  ==  == ====== ====   ==  ==  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      functions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#includeFunc    residuals
(
    name=residualsFluid,
    region=fluid,
    fields=( p_rgh e.liquid h.gas H2O.gas O2.gas )
)

#includeFunc    residuals
(
    name=residualsFilm,
    region=film,
    fields=( alpha e U )
)

#includeFunc yPlus(name=yPlus, region=fluid, phase=gas, executeAtStart=no)

#includeFunc patchFlowRate
(
    name=inflow,
    region=fluid,
    patch=inlet,
    alphaRhoPhi.gas,
    alphaRhoPhi.liquid
)

#includeFunc patchFlowRate
(
    name=outflow,
    region=fluid,
    patch=outlet,
    alphaRhoPhi.gas,
    alphaRhoPhi.liquid
)

#includeFunc patchFlowRate
(
    name=outflowFilm,
    region=film,
    patch=outlet,
    alphaRhoPhi
)

#includeFunc volIntegrate
(
    name=condensationRate,
    region=fluid,
    weightField=alpha.gas,
    transferRate:film
)

#includeFunc    graphCell
(
    name=filmThickness,
    region=film,
    start=(1e-3 -0.1 0.17),
    end=  (1e-3  2.1 0.17),
    axis=y,
    fields=( delta alpha U T ),
    setFormat=csv,
    separator=" "
)

#includeFunc    graphCell
(
    name=outletProfiles,
    region=fluid,
    start=(-0.1  0.1 0.17),
    end=  ( 0.35 0.1 0.17),
    axis=y,
    fields=( alpha.liquid U.gas U.liquid T.gas T.liquid ),
    setFormat=csv,
    separator=" "
)

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