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


motionSolverLibs ("libsixDoFRigidBodyMotion.so");

dynamicFvMesh       dynamicOversetFvMesh;
//dynamicFvMesh      dynamicMotionSolverFvMesh;
dynamicOversetFvMeshCoeffs
{
//    layerRelax 0.3;
}

solver   sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs
{
patches     (cylinder);// walls cylinderoversetPatch frontAndBack   cellZonecellZonemovingzone

innerDistance   100;
outerDistance   101;

accelerationRelaxation 0.6;
accelerationDamping 0.6;

mass            9.5121;
centreOfMass    (0 0 0);
momentOfInertia (0.1 70000000000 0.1);//70000000000000,2.057121362
orientation
(
    1 0 0
    0 1 0
    0 0 1

);
velocity 	   (0 0 0);//0.05
angularMomentum (0 0 0);
g               (0 0 0);//-9.81
rho             rhoInf;
rhoInf          1675.8947;//1.924;
report          on;
reportToFile    on;

solver
    {
        type symplectic;//GrankNicolson;Newmark;
    }

constraints
{
    zLine
    {
        sixDoFRigidBodyMotionConstraint line;
        //centreOfRotation    (0.25 0.007 0.125);
        direction           (0 0 1);
    }

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

restraints
{
    verticalSpring
    {
        sixDoFRigidBodyMotionRestraint linearSpring;

        anchor          (0 0 0);
        refAttachmentPt (0 0 0);
        stiffness       758.11;//80;
        damping         2.7274;//26.386;
        restLength      0;
    }

    axialSpring
    {
        sixDoFRigidBodyMotionRestraint linearAxialAngularSpring;

        axis            (0 1 0);
        stiffness       700000000;
        damping         8000000000;
        referenceOrientation $orientation;//???
    }
}

}




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