/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      reactingCloud1Properties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solution
{
    active          yes;

    transient       no; 
    calcFrequency   5;
    maxTrackTime    5.0;
    maxCo           0.2;

    coupled         true;
    cellValueSourceCorrection off;

    sourceTerms
    {
        resetOnStartup  false;
        schemes
        {
            rho             semiImplicit 0.1;	
            U               semiImplicit 0.1;
            Yi              semiImplicit 0.1;
            h               semiImplicit 0.1;
            radiation       semiImplicit 0.1;
        }
    }

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

    integrationSchemes
    {
        U               Euler;
        T               analytical;
    }
}


constantProperties
{
    rho0            846.6;
    T0              600; //373;
    Cp0             1710;  //(J/(kg*K))

    constantVolume  false;
}


subModels
{
    particleForces
    {
        sphereDrag;
    }
    injectionModels
    {

        model1
        {
            type            coneNozzleInjection;
            SOI             0;
            massFlowRate       0.00125;
            parcelBasisType mass;
            injectionMethod disc;
            flowType        constantVelocity;
            UMag            25.0;
            outerDiameter   0.005;
            innerDiameter   0.0;
            duration        1;
            position        ( 0.01 0.0231 0.0096 );
            direction       ( 1 0.9239 0.3827 );
            parcelsPerSecond 1000;     
            flowRateProfile table
            (
                (0              1.0)
                (1              1.0)
            );    
            Cd              constant 0.9;

            thetaInner      constant 0.0;
            thetaOuter      constant 10.0;

            sizeDistribution
            {
                type        RosinRammler;

                RosinRammlerDistribution
                {
                    minValue        1e-06;
                    maxValue        0.00004;
                    d               0.00002;
                    n               3.5;
                }
            }
        }

        model2
        {
            type            coneNozzleInjection;
            SOI             0;
            massFlowRate       0.00125;
            parcelBasisType mass;
            injectionMethod disc;
            flowType        constantVelocity;
            UMag            25.0;
            outerDiameter   0.005;
            innerDiameter   0.0;
            duration        1;
            position        ( 0.01 0.0096 0.0231 );
            direction       ( 1 0.3827 0.9239 );
            parcelsPerSecond 1000;      
            flowRateProfile table
            (
                (0              1.0)
                (1              1.0)
            );

            Cd              constant 0.9;

            thetaInner      constant 0.0;
            thetaOuter      constant 10.0;

            sizeDistribution
            {
                type        RosinRammler;

                RosinRammlerDistribution
                {
                    minValue        1e-06;
                    maxValue        0.00004;
                    d               0.00002;
                    n               3.5;
                }
            }
        }

    }

    dispersionModel none;

    patchInteractionModel standardWallInteraction;

    heatTransferModel RanzMarshall;

    compositionModel singleMixtureFraction;

    phaseChangeModel liquidEvaporation;//liquidEvaporationNew;

    devolatilisationModel none;

    surfaceReactionModel none;

    stochasticCollisionModel none;

    surfaceFilmModel none;

    radiation       off;

    standardWallInteractionCoeffs
    {
        type            rebound;
    }

    RanzMarshallCoeffs
    {
        BirdCorrection  off;
    }

    singleMixtureFractionCoeffs
    {
        phases
        (
            gas
            {
            }
            liquid
            {
                PHC3H7 1;
                CYC9H18 0;
            }
            solid
            {
            }
        );
        YGasTot0        0;
        YLiquidTot0     1;
        YSolidTot0      0;
    }

    liquidEvaporationCoeffs
    {
        enthalpyTransfer enthalpyDifference;
        activeLiquids   ( PHC3H7 );
        //activeLiquids   ( PHC3H7 CYC9H18);
    }

    liquidEvaporationNewCoeffs
    {
        enthalpyTransfer enthalpyDifference;
        activeLiquids   (  PHC3H7 );
    }

}


cloudFunctions
{
/*
    patchPostProcessing1
    {
        type            patchPostProcessing;
        maxStoredParcels 100;
        patches         ( outlet );
    }

    particleTracks1
    {
        type            particleTracks;
        trackInterval   5;
        maxSamples      1000000;
        resetOnWrite    yes;
    }
*/
}


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