/*--------------------------------*- 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      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh       dynamicMotionSolverFvMesh;
motionSolverLibs    ( sixDoFRigidBodyMotion );
motionSolver        sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs
{
    rho                     rhoInf;
    rhoInf                  1.225;

    initialLinearVelocity   ( 0 0 0 );
    initialAngularVelocity  ( 0 -0.5 0 );

    patches                 ( savonius );
    innerDistance           0.15;
    outerDistance           0.35;

    mass                    0.1405;
    centreOfMass            ( 0.02125 0.15 0.041 );
    momentOfInertia         ( 0.001138 0.0001117 0.001080 );

    g                       ( 0 0 0 );
    report                  on;

    solver
    {
        type    Newmark;
        gamma   0.5;
        beta    0.25;
    }

    accelerationRelaxation  0.7;
    accelerationDamping     0.9;

    constraints
    {
        hingePoint
        {
            sixDoFRigidBodyMotionConstraint  point;
            centreOfRotation  ( 0.02125 0.15 0.041 );
        }

        hingeAxis
        {
            sixDoFRigidBodyMotionConstraint  axis;
            axis  ( 0 1 0 );
        }
    }

  restraints
    {
        generatorLoad
        {
            type        sixDoFRigidBodyMotionRestraint;
            sixDoFRigidBodyMotionRestraint sphericalAngularDamper;
            coeff       0.0000628; // Derived N.m.s/rad to reach equilibrium at TSR 0.7
        }
    }
}
