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

libs            (overset fvMotionSolvers    "librigidBodyDynamicsCOM.so"
    "libforcesCOM.so"
    "librigidBodyMeshMotionCOM.so");

DebugSwitches
{
    overset                 0;
    dynamicOversetFvMesh    0;
    cellVolumeWeight        0;
}

application     overPimpleDyMFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         0.25;

deltaT          0.00001;

writeControl    adjustable;

writeInterval   0.00025;

purgeWrite      0;

writeFormat     ascii;

writePrecision  8;

writeCompression off;

timeFormat      general;

timePrecision   8;

runTimeModifiable true;

adjustTimeStep  false;

maxCo          	1;

maxDeltaT       0.00005;

functions
{
   totalforce
   {
    type            forces;
    libs            ("libforcesCOM.so");
    patches         (wingR wingL robobody);
   
    writeControl        runTime;
    writeInterval       0.001;

    rho         rhoInf;
    rhoInf      1.293;

    cofRname	robobodypart;	// Open this body file and read the center of rotation. this file will be updated every time step.
    CofR        (0 0 0);	//  If cofRname exists, this value is neglected.
   }
}

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