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

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

dynamicFvMesh       dynamicMotionSolverFvMesh;

motionSolverLibs    (sixDoFRigidBodyMotionSedFoam);

motionSolver        sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs
{

    patches         (cylinder);
    innerDistance   0.002;
    outerDistance   0.027;
        
    accelerationRelaxation 1e-1;
    accelerationDamping 1e-1;
    
    //  mass reduced by Buoyancy: (rhosolid - rhofluid ) * VolumeSphere
    mass            0.000471483;
    velocity        ( 0 -0. -0. );
    centreOfMass    ( 0 0.0 0.0005 );     
    momentOfInertia ( 1717 591 1717);
    rho             rhoInf;
    rhoInf          2500;
    g               (0 -9.81 0);
    report          on;
    reportToFile    on;
    
    solver
    {
        type Newmark;
    }
    
 constraints
    {

        
//        fixedPoint
 // {
   //     sixDoFRigidBodyMotionConstraint point;
     //    centreOfRotation (0. 0.000 0.000);
       // }
        

        fixedLine
        {
            sixDoFRigidBodyMotionConstraint line;
            //centreOfRotation (0.5 0.45 0.1);
            direction (0 1 0);
        }

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




        
    }

}

