/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     4.1                                |
|   \\  /    A nd           | Web:         http://www.foam-extend.org         |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

DebugSwitches
{
    // immersedBoundary 1;
    // polyMesh 2;
    // fvMesh   2;
}

application     pimpleDyMFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         30;

deltaT          0.001;

writeControl    runTime;

writeInterval   0.1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  no;

maxCo           0.9;

libs
(
    "libimmersedBoundary.so"
    "libimmersedBoundaryDynamicMesh.so"
    "liblduSolvers.so"
);

functions
(

 forces
    {
        type               forces;
        functionObjectLibs ("libforces.so");

        writeControlControl adjustableRunTime;
        writeInterval 0.005;
        patches ( naca_0012 );

        pName       p;
        UName       U;
        rhoName     rhoInf;
        rhoInf      1;

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

        Aref 1;
        Uref 1;
		lRef 1;
    }
	forces1 
{
    type          forceCoeffs;

    functionObjectLibs ("libforces.so");

    writeControl    runTime;

    writeInterval   0.005;
	patches ( "naca_0012" );
	 pName       p;
     UName       U;
     rhoName     rhoInf;
     rhoInf      1;

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

    Aref 1;
    magUInf 1;
    lRef 1;
}
   
);


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