Go to the documentation of this file.
35 aRelax_ =
dict.lookupOrDefault<scalar>(
"accelerationRelaxation", 1.0);
36 aDamp_ =
dict.lookupOrDefault<scalar>(
"accelerationDamping", 1.0);
51 motionState_.write(os);
68 if (!restraints_.empty())
75 word restraintType = restraints_[rI].type();
83 restraints_[rI].write(os);
91 if (!constraints_.empty())
98 word constraintType = constraints_[rI].type();
106 constraints_[rI].sixDoFRigidBodyMotionConstraint::write(os);
108 constraints_[rI].write(os);
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar aDamp_
Acceleration damping coefficient (for steady-state simulations)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
PtrList< sixDoFRigidBodyMotionRestraint > restraints_
Motion restraints.
void addRestraints(const dictionary &dict)
Add restraints to the motion, public to allow external.
Switch report_
Switch to turn reporting of motion data on and off.
void write(Ostream &) const
Write.
void addConstraints(const dictionary &dict)
Add restraints to the motion, public to allow external.
scalar aRelax_
Acceleration relaxation coefficient.
bool read(const dictionary &dict)
Read coefficients dictionary and update system parameters,.
A list of keyword definitions, which are a keyword followed by any number of values (e....
diagTensor momentOfInertia_
Moment of inertia of the body in reference configuration.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & indent(Ostream &os)
Indent stream.
scalar mass_
Mass of the body.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
PtrList< sixDoFRigidBodyMotionConstraint > constraints_
Motion constaints.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual const fileName & name() const
Return the name of the stream.