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

application     fireFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         150;

deltaT          0.001;

writeControl    adjustable;

writeInterval   20;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

graphFormat     raw;

runTimeModifiable no;

adjustTimeStep  yes;

maxCo           2;

maxDi           0.25;

maxDeltaT       0.01;

functions
{
    patchInlet_phi
    {
        type                surfaceFieldValue;
        libs                (fieldFunctionObjects);
        writeControl        timeStep;
        writeInterval       200;
        log                 true;
        writeFields         no;
        regionType          patch;
        name                inlet;
        operation           sum;
        fields              (phi);
    }

    wallPanel_qin
    {
        type                patchProbes;
        libs                (sampling);
        writeControl        timeStep;
        writeInterval       200;
        log                 true;
        patch               region0_to_panelRegion_wallPanel;
        probeLocations
        (
            (0.15 0.0 0.01)  // HF2
            (0.2  0.2 0.01)  // HF3
            (0.0  0.4 0.01)  // HF4
        );
        fields              (qin);
    }

    inletqr_qin
    {
        type                patchProbes;
        libs                (sampling);
        writeControl        timeStep;
        writeInterval       200;
        log                 true;
        patch               inlet;
        probeLocations
        (
            ( 0.0  0.0  0.0 ) // HF1
            ( 0.02 0.0  0.02) // HF2
            ( 0.02 0.0 -0.02) // HF3
            (-0.02 0.0  0.02) // HF4
            (-0.02 0.0 -0.02) // HF5
        );
        fields    (qr qin);
    }

    thermoCouple
    {
        type            thermoCoupleProbes;
        libs            (utilityFunctionObjects);
        writeControl    timeStep;
        writeInterval   100;

        solver          Euler;
        absTol          1e-4;
        relTol          1e-1;

        interpolationScheme cell;

        // Thermocouple properties
        rho             8908;
        Cp              440;
        d               1e-3;
        epsilon         0.9;

        radiationField  G;

        probeLocations
        (
            (-0.18 0.02 0.0)   // 0.02m    [TC11]
            (-0.18 0.1 0.0)    // 0.1m     [TC9]
            (-0.18 0.3 0.0)    // 0.3m     [TC?]
            (-0.18 0.38 0.0)   // 0.39m    [TC2]

            (0 0.38 0.0)       // 0.38m    [TC17]
            (0 0.26 0.0)       // 0.26m    [TC18]
            (0.01 0.14 0.0)    // 0.14m    [TC19]


            (-0.2 0.015 0.0)   // 0.015m   [TC12]
            (-0.2 0.0385 0.0)  // 0.0385m  [TC1]

            (0.18 0.02 0.0)    // 0.02m    [TC16]
            (0.18 0.14 0.0)    // 0.14m    [TC15]
            (0.18 0.26 0.0)    // 0.26m    [TC14]
            (0.18 0.38 0.0)    // 0.38m    [TC13]
        );
        fields  (T);
    }

    probes_O2
    {
        type                probes;
        libs                (sampling);
        writeControl        timeStep;
        writeInterval       200;
        probeLocations
        (
            (-0.1 0.02 0.0)    // Lower Gas
            (-0.1 0.38 0.0)    // Upper Gas
        );
        fields  (O2);
    }
}


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