Currently supported solvers: symplectic, Newmark, CrankNicolson The symplectic solver should only be used if iteration over the forces and body-motion is not required. Newmark and CrankNicolson both require iteration to provide 2nd-order behavior. See applications/test/rigidBodyDynamics/spring for an example of the application of the Newmark solver. This development is sponsored by Carnegie Wave Energy Ltd.
39 lines
691 B
Plaintext
39 lines
691 B
Plaintext
solver
|
|
{
|
|
type Newmark;
|
|
}
|
|
|
|
// It is necessary to iterate for the Newmark solver
|
|
nIter 2;
|
|
|
|
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;
|
|
}
|
|
}
|