sixDoFRigidBodyMotionSolver: use point-edge rather than face-cell wave to calculate point distance to surface.
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
/*--------------------------------*- 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 motionProperties;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dynamicFvMesh dynamicMotionSolverFvMesh;
|
|
|
|
motionSolverLibs ("libsixDoFRigidBodyMotion.so");
|
|
|
|
solver sixDoFRigidBodyMotion;
|
|
|
|
sixDoFRigidBodyMotionCoeffs
|
|
{
|
|
patches (floatingObject);
|
|
innerDistance 0.05;
|
|
outerDistance 0.35;
|
|
|
|
centreOfMass (0.5 0.5 0.5);
|
|
momentOfInertia (0.08622222 0.08622222 0.144);
|
|
mass 9.6;
|
|
report on;
|
|
accelerationRelaxation 0.7;
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|