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

application     interFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         1.5;

deltaT          1e-6;

writeControl    runTime;

writeInterval   5e-3;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;



maxCo           0.05;
maxAlphaCo      0.05;

maxDeltaT       8e-5;

functions
{
    cylinder
    {
        libs            ("libforces.so");

        type            forces;
        patches         (cylinder);  
        pName           p;           
        UName           U;
        rhoName         rhoInf;      
        rhoInf          1;          
        log             true;
        writeControl    timeStep; 
        CofR            (0 0 0);    


         momentAxis      (0 0 1);

    }
}

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