/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object dynamicMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dynamicFvMesh dynamicMotionSolverFvMesh; motionSolverLibs ("librigidBodyMeshMotion.so"); solver rigidBodyMotion; rigidBodyMotionCoeffs { report on; solver { type Newmark; } test true; nIter 2; accelerationRelaxation 0.4; bodies { body1 { type rigidBody; parent root; centreOfMass (0.5 0 0); mass 412.73; inertia (40 0 0 921 0 921); transform (1 0 0 0 1 0 0 0 1) (0.5 0 0); joint { type composite; joints ( { type Py; } { type Rz; } ); } patches (body1); innerDistance 0.1; outerDistance 1; } body2 { $body1; parent body1; centreOfMass (1.5 0 0); transform (1 0 0 0 1 0 0 0 1) (1 0 0); patches (body2); } body3 { $body1; parent body2; centreOfMass (2.5 0 0); transform (1 0 0 0 1 0 0 0 1) (1 0 0); patches (body3); } } restraints { spring1 { type linearSpring; body body1; anchor (0 0.5 0); refAttachmentPt (0 0 0); stiffness 1e5; damping 0; restLength 0.4; } } } // ************************************************************************* //