openfoam/tutorials/mesh/moveDynamicMesh/simpleHarmonicMotion/0.org/pointDisplacement

74 lines
2.1 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 pointVectorField;
location "0.01";
object pointDisplacement;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 0 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
stationaryWalls
{
type fixedValue;
value uniform (0 0 0);
}
movingBlock
{
type uncoupledSixDoFRigidBodyDisplacement;
centreOfMass (0.5 0.5 0.5);
momentOfInertia (0.1052 0.1052 0.1778);
mass 9.6;
velocity (0 0 0);
acceleration (0 0 0);
angularMomentum (0 0 0);
torque (0 0 0);
gravity (0 0 0);
rhoInf 1;
report on;
restraints
{
topSpring
{
sixDoFRigidBodyMotionRestraint linearSpring;
anchor (0.5 0.5 1);
refAttachmentPt $centreOfMass;
stiffness 5000;
damping 50;
restLength 0.4;
}
}
constraints
{
fixedOrientation
{
sixDoFRigidBodyMotionConstraint orientation;
}
zLine
{
sixDoFRigidBodyMotionConstraint line;
direction (0 0 1);
}
}
value uniform (0 0 0);
}
}
// ************************************************************************* //