mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
and replaced interDyMFoam with a script which reports this change. The interDyMFoam tutorials have been moved into the interFoam directory. This change is one of a set of developments to merge dynamic mesh functionality into the standard solvers to improve consistency, usability, flexibility and maintainability of these solvers. Henry G. Weller CFD Direct Ltd.
78 lines
2.0 KiB
C++
78 lines
2.0 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 ("librigidBodyMeshMotion.so");
|
|
|
|
motionSolver rigidBodyMotion;
|
|
|
|
rigidBodyMotionCoeffs
|
|
{
|
|
report on;
|
|
|
|
solver
|
|
{
|
|
type Newmark;
|
|
}
|
|
|
|
accelerationRelaxation 0.7;
|
|
|
|
bodies
|
|
{
|
|
floatingObject
|
|
{
|
|
type cuboid;
|
|
parent root;
|
|
|
|
// Cuboid dimensions
|
|
Lx 0.3;
|
|
Ly 0.2;
|
|
Lz 0.5;
|
|
|
|
// Density of the cuboid
|
|
rho 500;
|
|
|
|
// Cuboid mass
|
|
mass #calc "$rho*$Lx*$Ly*$Lz";
|
|
L ($Lx $Ly $Lz);
|
|
centreOfMass (0 0 0.25);
|
|
transform (1 0 0 0 1 0 0 0 1) (0.5 0.45 0.1);
|
|
|
|
joint
|
|
{
|
|
type composite;
|
|
joints
|
|
(
|
|
{
|
|
type Py;
|
|
}
|
|
{
|
|
type Ry;
|
|
}
|
|
);
|
|
}
|
|
|
|
patches (floatingObject);
|
|
innerDistance 0.05;
|
|
outerDistance 0.35;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|