/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      binary;
    class       dictionary;
    location    "constant";
    object      SprayCloudProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solution
{
    active          true;
    coupled         true;
    transient       yes;
    cellValueSourceCorrection on;
    maxCo           0.3;

    sourceTerms
    {
        schemes
        {
            rho             explicit 1;
            U               explicit 1;
            Yi              explicit 1;
            h               explicit 1;
            radiation       explicit 1;
        }
    }

    interpolationSchemes
    {
        rho             cell;
        U               cellPoint;
        thermo:mu       cell;
        T               cell;
        Cp              cell;
        kappa           cell;
        p               cell;
    }

    integrationSchemes
    {
        U               Euler;
        T               analytical;
    }
}


constantProperties
{
    T0              300;// Temprature is same as the initial Temperature

    // place holders for rho0 and Cp0
    // - reset from liquid properties using T0
    rho0            1000; // Density of water
    Cp0             4100; // Specific Heat of water

    constantVolume  false; //
}


subModels
{
    particleForces
    {
        sphereDrag; 
        gravity; // These 2 forces as per Research paper.
    }

    injectionModels
    {
        model1
        {
            type            coneInjection; // For having full nozzle supply
            SOI             0; // Start of injection time
            massTotal       0.1288; //  total mass injected in Kg (Case 02)
            //massTotal      0.0007; //uncomment for case 1
            parcelBasisType mass;//
            injectionMethod disc; // represents the nozzle
            flowType        pressureDrivenVelocity; //  Injection pressure
            Pinj            constant 5e5; // value of Injection Pressure 
            dInner          0; // Inner diameter of the disc
            dOuter          1.54e-3; // Outer diameter of the disc or the radius of nozzle
            duration        14e-3; // duration of injection .
            position        (0.10 0.29 0.10); // position of injection
            direction       (0 -1 0);// direction of injection
            parcelsPerSecond 20000000; // number of parcels injected per second ; 
            Cd              constant 0.9; //Drag Coefficient
            flowRateProfile constant 9.2;// time and dischage from paper in Kg/s (for case 02)
            // flowRateProfile constant 0.05;  //uncomment for case 01 
            thetaInner      constant 0.0; // Inner diameter of cone
            thetaOuter      constant 22.5; // half angle of the cone (for case 02)
            //thetaOuter    constant 28; //unlock for case 01

            // Rosin Rammler values have not changed because it involves many details so change it when not getting the values.
            sizeDistribution
            {
                type        RosinRammler; // has been selected from research paper

                RosinRammlerDistribution // prediction from the paper.
                {
                    minValue        1e-06; // *************minimum Mass Median Diameter (MMD) in M
                    maxValue        500e-6; //**************maximum Mass Median Diameter (MMD) in M
                    d               500e-6; //************ Mean Mass Median Diameter
                    n               3;
                }
            }
        }
    }

    dispersionModel stochasticDispersionRAS; // from Research paper

    patchInteractionModel standardWallInteraction; //how does particle interacts with wall or patch.

    heatTransferModel RanzMarshall; // from research paper

    compositionModel singlePhaseMixture; // havenot  changed for the chlorinated water .

    phaseChangeModel liquidEvaporation; // Removed Boil Option

    surfaceFilmModel none; // The formation of film on the wall/Patch . So,I guess it is not required here.

    atomizationModel blobsSheetAtomization; // as per paper.


    breakupModel  ReitzDiwakar ; // From paper.

    stochasticCollisionModel none; // Talks about the collosions between the Particles.

    radiation       off;

   standardWallInteractionCoeffs
    {
        type            stick; // I think the droplet will stick to the wall as per our problem setup but have not discussed about it with Mentor
    }

    RanzMarshallCoeffs
    {
        BirdCorrection  true; // ****************************unaware of term
    }

    singlePhaseMixtureCoeffs
    {
        phases
        (
            liquid
            {
                H2O               1;
            }
        );
    }

    liquidEvaporationCoeffs // changed
    {
        enthalpyTransfer enthalpyDifference;

        activeLiquids    ( H2O );
    }
   blobsSheetAtomizationCoeffs // a proper set of values.
    {
       B     3; // ****************from paper for hollow cone
      angle  22.5; // half angle of Cone
    }
  

    ReitzDiwakarCoeffs // **********************not changed by default
    {
        solveOscillationEq yes;
        Cbag            6;
        Cb              0.785;
        Cstrip          0.5;
        Cs              10;
    }

/*
    ReitzKHRTCoeffs
    {
        solveOscillationEq yes;
        B0              0.61;
        B1              40;
        Ctau            1;
        CRT             0.1;
        msLimit         0.2;
        WeberLimit      6;
    }
*/
    TABCoeffs // *****************not changed not know the meaning of terms. 
    {
       
        y0              0;
        yDot0           0;
        Cmu             10;
        Comega          8;
        WeCrit          12;
    }
}


cloudFunctions
{}


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