FoamFile
{
	version	2.0;
	class	dictionary;
	format	ascii;
	location	"system";
	object	controlDict;
}
application	simpleFoam;
startFrom	latestTime;
startTime	0;
stopAt	endTime;
endTime	1000.0;
deltaT	1.0;
writeControl	timeStep;
writeInterval	1.0;
purgeWrite	4;
timeFormat	general;
timePrecision	6;
writeFormat	ascii;
writePrecision	7;
writeCompression	uncompressed;
runTimeModifiable	true;
libs	( "libturbulenceModels.dll" "libfvOptions.dll" "libturbulenceModelSchemes.dll" );
functions
{

forceCoeffs1
{
    // Mandatory entries
    type            forceCoeffs;
    libs            ("libforces.so");
    patches         (wall_surface_body);


    // Optional entries

    // Field names
    p               p;
    U               U;
    rho             rhoInf;

    rhoInf          1.0;
    log             true;

    // Reference pressure [Pa]
    pRef            0;

    // Include porosity effects?
    porosity        no;

    // Store and write volume field representations of forces and moments
    writeFields     yes;

    // Centre of rotation for moment calculations
    CofR            (0 0 0);

    // Lift direction
    liftDir         (0 0 1);

    // Drag direction
    dragDir         (1 0 0);

    // Pitch axis
    pitchAxis       (0 1 0);

    // Freestream velocity magnitude [m/s]
    magUInf         1.0;

    // Reference length [m]
    lRef            1;

    // Reference area [m2]
    Aref            1.0;

    // Spatial data binning
    // - extents given by the bounds of the input geometry
    binData
    {
        nBin        20;
        direction   (1 0 0);
        cumulative  yes;
    }
}

}
