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

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

type basicMultiphaseSystem;

phases (airC airD water);

populationBalances ();

airC
{
    #includeEtc "caseDicts/multimorph/continuousIsothermalPhase.cfg"
}

airD
{
    type                pureIsothermalPhaseModel;
    diameterModel       constant;

    d                   3.5e-3;

    residualAlpha       1e-5;
}

water
{
    #includeEtc "caseDicts/multimorph/continuousIsothermalPhase.cfg"
}

// Blending between flow morphologies
blending
{
    #includeEtc "caseDicts/multimorph/blending.cfg"
}

// Drag model
drag
{
    airC_water
    {
        type            resolutionAdaptiveInterface;

        // resolutionAdaptiveInterface
        resolvingDrag
        {
            type            StrubeljTiselj;
            Tau             1e8;
        }

        underResolvingDrag
        {
            type            IshiiMishima;
            Cd              0.8;
            LMax            0.025; // Inlet diameter
            residualSlip    1e-3;
        }
    }

    airD_dispersedIn_airC
    {
        #includeEtc "caseDicts/multimorph/residualDrag.cfg"
        value           1e-3;
    }

    airD_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/drag.cfg"
    }
}

// Heat transfer
heatTransfer
{}

// Interface compression
// Attention: Turning on interface compression also turns on the surface tension
//            force if a surface tension model is present
interfaceCompression
{
    airC_water
    {
        #includeEtc "caseDicts/multimorph/interfaceCompression.cfg"
    }
}

// Method to detect the interface for turbulence damping
interfaceIndicatorMethod
{
    type                gradAlpha;
    delta               cubeRootVol;
}

// Lift model
lift
{
    airD_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/lift.cfg"
    }
}

// Phase transfer
phaseTransfer
{
    airC_dispersedIn_airD
    {
        type            superposition;

        models          (disintegration entrainment);

        disintegration
        {
            type        disintegrationToDisperse;
            timeScale   0.1;
        }

        entrainment
        {
            type        CastroEntrainment;

            threshold   0.1;

            Sl0         2.6e-3;
            N           10;
        }
    }

    airD_dispersedIn_airC
    {
        type            accumulationToContinuous;
        timeScale       0.1;
    }
}

// Surface tension coefficient
surfaceTension
{
    airC_water
    {
        type            constant;
        sigma           $!fluidProperties/surfaceTension;
    }

    airD_water
    {
        type            constant;
        sigma           $!fluidProperties/surfaceTension;
    }
}

// Turbulent dispersion
turbulentDispersion
{
    airD_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/turbulentDispersion.cfg"
    }
}

// Under resolution
underResolution
{
    airC_water
    {
        #includeEtc "caseDicts/multimorph/underResolution.cfg"
    }
}

// Virtual mass
virtualMass
{
    airD_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/virtualMass.cfg"
    }
}

// Wall lubrication
wallLubrication
{
    airD_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/wallLubrication.cfg"
    }
}

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