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

application     buoyantPimpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         1;

deltaT          0.001;

writeControl    timeStep;

writeInterval   100;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

adjustTimeStep  no;

maxCo           0.5;

functions 
{  

    volFieldValue1
	{
        type            volFieldValue;
        functionObjectLibs ("libfieldFunctionObjects.so");
		fields
        (
            T
        );
		operation       volAverage;
		regionType      all;
		postOperation   mag; 
		writeFields     false;
		scalingFactor   1.0;
		writePrecision  8;
		writeToFile     true;
		useUserTime     true;
		region          region0;
		enabled         true;
		log             true;
		timeStart       0;
		timeEnd         1;
		executeControl  timeStep;
		executeInterval 1;
		writeControl    timeStep;
		writeInterval   1;
    }
	probes
	{
		// Where to load it from
		functionObjectLibs ( "libsampling.so" );

		type        probes;

		// Name of the directory for probe data
		name        probes;

		// Fields to be probed
		fields ( 
				U 
			   );

		probeLocations
		(
		   ( 0.5 1 1)

		);
		interpolationScheme cellPoint;
	}
};
// ************************************************************************* //
