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

dynamicFvMesh   dynamicMotionSolverFvMesh;

motionSolverLibs   ("librigidBodyMeshMotion.so");

motionSolver    rigidBodyMotion;

report          on;

solver
{
    type Newmark;
}

accelerationRelaxation 0.4;

bodies
{
    hull
    {
        type            rigidBody;
        parent          root;

        centreOfMass    (0 0 0);
        mass            823.0451;
        inertia         (136.7 0 0 2725.117 0 2725.117);
        transform       (1 0 0 0 1 0 0 0 1) (3.53151899 0 0.2304076);

        joint
        {
            type    composite;
            joints
            (
                {
                    type Pz;
                }
                {
                    type Ry;
                }
            );
        }

        patches         (hull);
        innerDistance   0.3;
        outerDistance   1;
    }
}

restraints
{
    translationDamper
    {
        type linearDamper;
        body hull;
        coeff 8596;
    }

    rotationDamper
    {
        type sphericalAngularDamper;
        body hull;
        coeff 11586;
    }
}


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