/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version         2;
    format          ascii;
    class           dictionary;
    object          dynamicMeshDict;
}

dynamicFvMesh   dynamicMotionSolverFvMesh;

motionSolverLibs ( "libsixDoFRigidBodyMotion.so" );

solver          sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs
{
    patches         ( CYLINDER );
    innerDistance   2.5;
    outerDistance   20;
    mass            11.4586;
    centreOfMass    ( 0.280485 0 0 );
    momentOfInertia ( 0.6414 0.6414 0.24 );
    g               ( 0 0 0 );
    rho             rhoInf;
    rhoInf          1.225;
    report          on;
    solver
    {
        type            Newmark;
        gamma           0.5;
        beta            0.25;
    }
    constraints
    {
        yLine
        {
            sixDoFRigidBodyMotionConstraint line;
            centreOfRotation ( 0.280485 0 0 );
            direction       ( 0 1 0 );
        }
        noRotation
        {
            sixDoFRigidBodyMotionConstraint orientation;
        }
    }
    restraints
    {
        verticalSpring
        {
            sixDoFRigidBodyMotionRestraint linearSpring;
            anchor          ( 0.280485 0 0 );
            refAttachmentPt ( 0.280485 0 0 );
            stiffness       10.70694631;
            damping         0;
            restLength      0;
        }
    }
}


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