FoamFile
{
    version 2.0;
    format ascii;
    class dictionary;
    object controlDict;
}

application     buoyantSimpleFoam;
startFrom       latestTime;
startTime       0;
stopAt          endTime;
endTime         10000;
deltaT          1;
writeControl    timeStep;
writeInterval   1000;
purgeWrite      2;
writeFormat     binary;
writePrecision  8;
writeCompression off;
timeFormat      general;
timePrecision   6;
runTimeModifiable true;

functions
{
    comfort
    {
        type            comfort;
        libs            (fieldFunctionObjects);
        clothing        0.5;
        metabolicRate   1.2;
        extWork         0;
        relHumidity     50;
        pSat            0;
        tolerance       1e-4;
        maxClothIter    200;
        executeControl  writeTime;
        writeControl    writeTime;
    }
    comfortISO
    {
        type            comfortISO;
        libs            (comfortISO);
        clothing        0.5;
        metabolicRate   1.2;
        extWork         0;
        relHumidity     50;
        pSat            0;
        tolerance       1e-4;
        maxClothIter    200;
        Trad            298.06;   // area-weighted mean of the measured room surfaces (24.91 degC)
        executeControl  writeTime;
        writeControl    writeTime;
    }
    poles
    {
        type            sets;
        libs            (sampling);
        executeControl  writeTime;
        writeControl    writeTime;
        setFormat       csv;
        interpolationScheme cellPoint;
        fields          (T U k PMV PPD DR PMV_ISO PPD_ISO DR_ISO Tu_ISO Trad_ISO Top_ISO);
        sets
        {
            pole1 { type uniform; axis z; start (0.86 1.87 0.005); end (0.86 1.87 2.425); nPoints 244; }
            pole2 { type uniform; axis z; start (1.74 1.88 0.005); end (1.74 1.88 2.425); nPoints 244; }
            pole3 { type uniform; axis z; start (2.58 1.88 0.005); end (2.58 1.88 2.425); nPoints 244; }
            pole4 { type uniform; axis z; start (3.66 1.88 0.005); end (3.66 1.88 2.425); nPoints 244; }
            pole5 { type uniform; axis z; start (4.56 1.87 0.005); end (4.56 1.87 2.425); nPoints 244; }
            pole6 { type uniform; axis z; start (2.63 0.42 0.005); end (2.63 0.42 2.425); nPoints 244; }
            pole7 { type uniform; axis z; start (2.63 1.15 0.005); end (2.63 1.15 2.425); nPoints 244; }
            pole8 { type uniform; axis z; start (2.63 2.61 0.005); end (2.63 2.61 2.425); nPoints 244; }
            pole9 { type uniform; axis z; start (2.63 3.21 0.005); end (2.63 3.21 2.425); nPoints 244; }
        }
    }
    occupiedZone
    {
        type            volFieldValue;
        libs            (fieldFunctionObjects);
        regionType      cellZone;
        name            occupied;
        operation       volAverage;
        writeFields     false;
        executeControl  writeTime;
        writeControl    writeTime;
        fields          (T PMV PPD DR PMV_ISO PPD_ISO DR_ISO Tu_ISO Trad_ISO);
    }
    probesMon
    {
        type            probes;
        libs            (sampling);
        writeControl    timeStep;
        writeInterval   10;
        fields          (T U);
        probeLocations  ((2.58 1.88 0.1) (2.58 1.88 1.1) (2.58 1.88 2.2) (0.86 1.87 0.1) (4.56 1.87 1.7));
    }
    outletT
    {
        type            surfaceFieldValue;
        libs            (fieldFunctionObjects);
        regionType      patch;
        name            outlet;
        operation       areaAverage;
        fields          (T);
        writeControl    timeStep;
        writeInterval   10;
        writeFields     false;
    }
    heatBalance
    {
        type            wallHeatFlux;
        libs            (fieldFunctionObjects);
        writeControl    writeTime;
        writeFields     false;
    }
    residuals
    {
        type            solverInfo;
        libs            (utilityFunctionObjects);
        fields          (U p_rgh h k epsilon omega);
        writeControl    timeStep;
    }
}
