/*--------------------------------*- 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");

application     overInterDyMFoam;

startFrom       latestTime;

startTime       0.0;

stopAt          endTime;

endTime         2;

deltaT          0.0001;

writeControl    adjustable;

writeInterval   0.0001;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  false;

maxCo           2.0;

maxAlphaCo      1.0;

maxDeltaT       0.001;

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

//    rho         rhoInf;
//    rhoInf      1.293;

    cofRname	bodypart;	// 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.
   }
}
// ************************************************************************* //
