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

application     pimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         100;

deltaT          1e-4;

writeControl    adjustableRunTime;

writeInterval   0.5;

purgeWrite      0;

writeFormat     ascii;

writePrecision  8;

timeFormat      general;

timePrecision   8;

runTimeModifiable true;

adjustTimeStep  yes;

maxCo			1;

functions
{
    forceCoeffs
    {
        type            forceCoeffs;
        libs            ("libforces.so");
		patches			("bristle");
		
		pRef			0;
		U				U;
		
		CofR			(0 0 0);
		liftDir			(0 1 0);
		dragDir			(1 0 0);
		magUInf			1;
		rho				rhoInf;
		rhoInf			1;
		lRef			1;
		Aref			1;
		
        executeControl  writeTime;
        writeControl    writeTime;
    }
	
	forces
	{
		type			forces;
		libs			("libforces.so");
		patches			("bristle");
		
		CofR			(0 0 0);
		liftDir			(0 1 0);
		dragDir			(1 0 0);
		magUInf			1;
		rho				rhoInf;
		rhoInf			1;
		
		executeControl	writeTime;
		writeControl	writeTime;
	}
}





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