mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tutorials/multiphase/interDyMFoam/ras/DTCHull: Updated to use the rigidBodyDynamics solver
This commit is contained in:
@ -16,58 +16,67 @@ FoamFile
|
|||||||
|
|
||||||
dynamicFvMesh dynamicMotionSolverFvMesh;
|
dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||||
|
|
||||||
motionSolverLibs ("libsixDoFRigidBodyMotion.so");
|
motionSolverLibs ("librigidBodyMeshMotion.so");
|
||||||
|
|
||||||
solver sixDoFRigidBodyMotion;
|
solver rigidBodyMotion;
|
||||||
|
|
||||||
sixDoFRigidBodyMotionCoeffs
|
rigidBodyMotionCoeffs
|
||||||
{
|
{
|
||||||
patches (hull);
|
|
||||||
innerDistance 0.3;
|
|
||||||
outerDistance 1;
|
|
||||||
|
|
||||||
centreOfMass (2.929541 0 0.2);
|
|
||||||
mass 412.73;
|
|
||||||
momentOfInertia (40 921 921);
|
|
||||||
rhoInf 1;
|
|
||||||
report on;
|
report on;
|
||||||
|
|
||||||
value uniform (0 0 0);
|
|
||||||
|
|
||||||
accelerationRelaxation 0.4;
|
|
||||||
|
|
||||||
solver
|
solver
|
||||||
{
|
{
|
||||||
type Newmark;
|
type Newmark;
|
||||||
}
|
}
|
||||||
|
|
||||||
constraints
|
accelerationRelaxation 0.4;
|
||||||
|
|
||||||
|
bodies
|
||||||
{
|
{
|
||||||
zAxis
|
hull
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionConstraint line;
|
type rigidBody;
|
||||||
direction (0 0 1);
|
parent root;
|
||||||
|
|
||||||
|
centreOfMass (0 0 0);
|
||||||
|
mass 412.73;
|
||||||
|
inertia (40 0 0 921 0 921);
|
||||||
|
transform (1 0 0 0 1 0 0 0 1) (2.929541 0 0.2);
|
||||||
|
|
||||||
|
joint
|
||||||
|
{
|
||||||
|
type composite;
|
||||||
|
joints
|
||||||
|
(
|
||||||
|
{
|
||||||
|
type Pz;
|
||||||
}
|
}
|
||||||
yPlane
|
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionConstraint axis;
|
type Ry;
|
||||||
axis (0 1 0);
|
|
||||||
}
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
restraints
|
restraints
|
||||||
{
|
{
|
||||||
translationDamper
|
translationDamper
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionRestraint linearDamper;
|
type linearDamper;
|
||||||
coeff 8596;
|
coeff 8596;
|
||||||
}
|
}
|
||||||
|
|
||||||
rotationDamper
|
rotationDamper
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionRestraint sphericalAngularDamper;
|
type sphericalAngularDamper;
|
||||||
coeff 11586;
|
coeff 11586;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
patches (hull);
|
||||||
|
innerDistance 0.3;
|
||||||
|
outerDistance 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,74 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object dynamicMeshDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||||
|
|
||||||
|
motionSolverLibs ("libsixDoFRigidBodyMotion.so");
|
||||||
|
|
||||||
|
solver sixDoFRigidBodyMotion;
|
||||||
|
|
||||||
|
sixDoFRigidBodyMotionCoeffs
|
||||||
|
{
|
||||||
|
patches (hull);
|
||||||
|
innerDistance 0.3;
|
||||||
|
outerDistance 1;
|
||||||
|
|
||||||
|
centreOfMass (2.929541 0 0.2);
|
||||||
|
mass 412.73;
|
||||||
|
momentOfInertia (40 921 921);
|
||||||
|
rhoInf 1;
|
||||||
|
report on;
|
||||||
|
|
||||||
|
value uniform (0 0 0);
|
||||||
|
|
||||||
|
accelerationRelaxation 0.4;
|
||||||
|
|
||||||
|
solver
|
||||||
|
{
|
||||||
|
type Newmark;
|
||||||
|
}
|
||||||
|
|
||||||
|
constraints
|
||||||
|
{
|
||||||
|
zAxis
|
||||||
|
{
|
||||||
|
sixDoFRigidBodyMotionConstraint line;
|
||||||
|
direction (0 0 1);
|
||||||
|
}
|
||||||
|
yPlane
|
||||||
|
{
|
||||||
|
sixDoFRigidBodyMotionConstraint axis;
|
||||||
|
axis (0 1 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
restraints
|
||||||
|
{
|
||||||
|
translationDamper
|
||||||
|
{
|
||||||
|
sixDoFRigidBodyMotionRestraint linearDamper;
|
||||||
|
coeff 8596;
|
||||||
|
}
|
||||||
|
rotationDamper
|
||||||
|
{
|
||||||
|
sixDoFRigidBodyMotionRestraint sphericalAngularDamper;
|
||||||
|
coeff 11586;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
Reference in New Issue
Block a user