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

application     reactingMultiphaseEulerFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         0.5;

deltaT          0.0001;

writeControl    adjustableRunTime;

writeInterval   0.5;

purgeWrite      0;

writeFormat     ascii;

writePrecision  9;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo           0.5;

maxDeltaT       0.001;

functions
{
    volumeDensity.diameter.bubbles
    {
        type            sizeDistribution;
        functionObjectLibs ( "libreactingEulerFoamFunctionObjects.so" );
        writeControl    runTime;
        writeInterval   0.5;
        log             yes;
        functionType    volume;
        coordinateType  diameter;
        regionType      cellZone;
        name            x349;
        populationBalance bubbles;
    }
    volumeDensity_bulk.diameter.bubbles
    {
        type            sizeDistribution;
        functionObjectLibs ( "libreactingEulerFoamFunctionObjects.so" );
        writeControl    runTime;
        writeInterval   0.5;
        log             yes;
        functionType    volume;
        coordinateType  diameter;
        regionType      cellZone;
        name            x349_bulk;
        populationBalance bubbles;
    }
    volumeDensity_wall.diameter.bubbles
    {
        type            sizeDistribution;
        functionObjectLibs ( "libreactingEulerFoamFunctionObjects.so" );
        writeControl    runTime;
        writeInterval   0.5;
        log             yes;
        functionType    volume;
        coordinateType  diameter;
        regionType      cellZone;
        name            x349_wall;
        populationBalance bubbles;
    }
    outflow
    {
        type            surfaceFieldValue;
        functionObjectLibs ( "libfieldFunctionObjects.so" );
        log             yes;
        writeFields     false;
        regionType      patch;
        name            outlet;
        operation       sum;
        fields          ( alphaRhoPhi.gas alphaRhoPhi.gas2 alphaRhoPhi.liquid );
    }
    inflow
    {
        type            surfaceFieldValue;
        functionObjectLibs ( "libfieldFunctionObjects.so" );
        log             yes;
        writeFields     false;
        regionType      patch;
        name            inlet;
        operation       sum;
        fields          ( alphaRhoPhi.gas alphaRhoPhi.gas2 alphaRhoPhi.liquid );
    }
    #includeFunc writeObjects(d.gas, d.gas2)
}


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