Files
OpenFOAM-6/applications/test/rigidBodyDynamics/spring
2018-05-09 16:04:46 +01:00

45 lines
730 B
Plaintext

solver
{
type Newmark;
}
bodies
{
weight
{
type rigidBody;
mass 9.6;
centreOfMass (0 0 0);
inertia (0.1052 0 0 0.1052 0 0.1778);
parent root;
transform (1 0 0 0 1 0 0 0 1) (0 0 0);
joint
{
type Pz;
}
}
}
restraints
{
spring
{
type linearSpring;
body weight;
anchor (0 0 0.5);
refAttachmentPt (0 0 0);
stiffness 5000;
damping 50;
restLength 0.4;
}
}
g (0 0 0);
deltaT 0.002;
// It is necessary to iterate for the Newmark solver
nIter 2;
endTime 4;