/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2312                                 |
|   \\  /    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         8;

deltaT          0.002;

writeControl    adjustableRunTime;

writeInterval   0.05;

purgeWrite      0;

writeFormat     ascii;

writePrecision  7;

writeCompression no;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo           1;

maxDeltaT       0.05;

functions
{
torque_rotor
    {
        type            forceCoeffs;
        libs            ("libforces.so");
        patches         (savonius);
        rho             rhoInf;
        rhoInf          1.225;
        CofR            (0.0215 0.15 0.041); 
        liftDir         (0 0 1);
        dragDir         (1 0 0);
        pitchAxis       (0 1 0);       // Y-axis = rotation axis!
        magUInf         5.0;           
        lRef            0.082;         
        Aref            0.0246;        
        writeControl    timeStep;
        writeInterval   1;
    }
raw_forces_rotor
    {
        type            forces;
        libs            ("libforces.so");
        patches         (savonius);
        rho             rhoInf;
        rhoInf          1.225;
        CofR            (0.02125 0.15 0.041); 
        writeControl    timeStep;
        writeInterval   1;
    }
}
// ************************************************************************* //
