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

type populationBalanceMultiphaseSystem;

phases (air1 air2 air3 air4 water);

populationBalances (air);

air1
{
    type            pureIsothermalPhaseModel;

    diameterModel   velocityGroup;

    velocityGroupCoeffs
    {
        populationBalance    air;

        shapeModel           spherical;

        sizeGroups
        (
            #include "sizeGroups.air1"
        );
    }

    residualAlpha   1e-6;
}

air2
{
    type            pureIsothermalPhaseModel;

    diameterModel   velocityGroup;

    velocityGroupCoeffs
    {
        populationBalance    air;

        shapeModel           spherical;

        sizeGroups
        (
            #include "sizeGroups.air2"
        );
    }

    residualAlpha   1e-6;
}

air3
{
    type            pureIsothermalPhaseModel;

    diameterModel   velocityGroup;

    velocityGroupCoeffs
    {
        populationBalance    air;

        shapeModel           spherical;

        sizeGroups
        (
            #include "sizeGroups.air3"
        );
    }

    residualAlpha   1e-6;
}

air4
{
    type            pureIsothermalPhaseModel;

    diameterModel   velocityGroup;

    velocityGroupCoeffs
    {
        populationBalance    air;

        shapeModel           spherical;

        sizeGroups
        (
            #include "sizeGroups.air4"
        );
    }

    residualAlpha   1e-6;
}

water
{
    type            pureIsothermalPhaseModel;

    diameterModel   constant;

    constantCoeffs
    {
        d               1e-4;
    }

    residualAlpha   1e-6;
}

// Blending between flow morphologies
blending
{
    default
    {
        type            continuous;
        phase           water;
    }
}

// Drag model
drag
{
    air1_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/drag.cfg"
    }

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

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

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

// Heat transfer
heatTransfer
{}

// Interface compression
interfaceCompression
{}

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

    air2_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/lift.cfg"
    }

    air3_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/lift.cfg"
    }

    air4_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/lift.cfg"
    }
}

// Phase transfer
phaseTransfer
{}

// Population balance coefficients for breakup, coalescence, drift etc.
populationBalanceCoeffs
{
    air
    {
        continuousPhase water;

        coalescenceModels
        ();

        binaryBreakupModels
        ();

        breakupModels
        ();

        driftModels
        ();

        nucleationModels
        ();
    }
}

// Surface tension coefficient
surfaceTension
{
    air1_water
    {
        type            constant;
        sigma           0.0712;
    }

    air2_water
    {
        type            constant;
        sigma           0.0712;
    }

    air3_water
    {
        type            constant;
        sigma           0.0712;
    }

    air4_water
    {
        type            constant;
        sigma           0.0712;
    }
}

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

    air2_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/turbulentDispersion.cfg"
    }

    air3_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/turbulentDispersion.cfg"
    }

    air4_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/turbulentDispersion.cfg"
    }
}

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

    air2_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/virtualMass.cfg"
    }

    air3_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/virtualMass.cfg"
    }

    air4_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/virtualMass.cfg"
    }
}

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

    air2_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/wallLubrication.cfg"
    }

    air3_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/wallLubrication.cfg"
    }

    air4_dispersedIn_water
    {
        #includeEtc "caseDicts/baseline/wallLubrication.cfg"
    }
}

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