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

application     pisoFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         500;

deltaT          0.025;

writeControl    adjustableRunTime;

writeInterval   10;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;
adjustTimeStep  yes;


// ************************************************************************* //
functions
{

forces
{
type			forces;
functionObjectLibs 	("libforces.so");
writeControl 		timeStep;
writeInterval		10;

patches 		( "cylinder" );
pName 			p;
UName 			U;
rho 		rhoInf;
log 			true; 
CofR 			(0 0 0); 
rhoInf 			1.225; 
}

forceCoeffs
{
type 			forceCoeffs ;
functionObjectLibs 	( "libforces.so" );
writeControl 		timeStep;
writeInterval 		10;

patches 		( "cylinder" );
pName			p;
UName 			U;
rho 		rhoInf;
log 			true;

liftDir 		(0 1 0);
dragDir 		(1 0 0);
CofR 			(0 0 0);
pitchAxis 		(0 0 1);

magUInf 		1;
rhoInf			1.225;
lRef 			1;
Aref 			2;
}

}
