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

application     buoyantBoussinesqSimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         10000;

deltaT          1;

writeControl    timeStep;

writeInterval   500;

purgeWrite      3;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

functions
{

    actualProbe
    {
        type            probes;
        libs            (sampling);
        writeControl    timeStep;
        writeInterval   1;

        fields          (T U);

        probeLocations
        (
            (-0.4 0 0.05)
            (-0.4 0 0.10)
            (-0.4 0 0.15)
            (-0.4 0 0.20)
            (-0.4 0 0.25)
            (-0.4 0 0.30)
            (-0.4 0 0.35)
            (-0.4 0 0.40)
            (-0.4 0 0.45)
            (-0.4 0 0.50)
            (-0.4 0 0.55)
            (-0.4 0 0.60)
            (-0.4 0 0.65)
            (-0.4 0 0.70)
            (-0.4 0 0.75)
            (-0.4 0 0.80)
            (-0.4 0 0.85)
            (-0.4 0 0.90)
            (-0.4 0 0.95)
        );
    }

    z0probes
    {
        type            probes;
        libs            (sampling);
        writeControl    timeStep;
        writeInterval   1;

        fields          (T U);

        probeLocations
        (
            (0 0 0.05)
            (0 0 0.10)
            (0 0 0.15)
            (0 0 0.20)
            (0 0 0.25)
            (0 0 0.30)
            (0 0 0.35)
            (0 0 0.40)
            (0 0 0.45)
            (0 0 0.50)
            (0 0 0.55)
            (0 0 0.60)
            (0 0 0.65)
            (0 0 0.70)
            (0 0 0.75)
            (0 0 0.80)
            (0 0 0.85)
            (0 0 0.90)
            (0 0 0.95)
        );
    }

    fieldAverage
    {
        type            fieldAverage;
        libs            ("libfieldFunctionObjects.so");
        writeControl    writeTime;
	timeStart	800;
        fields
        (
            U
            {
                mean        on;
                prime2Mean  off;
                base        time;
            }

            T
            {
                mean        on;
                prime2Mean  off;
                base        time;
            }
        );
    }
}

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