34 namespace sixDoFRigidBodyMotionRestraints
40 sixDoFRigidBodyMotionRestraint,
79 restraintForce = -coeff_*motion.v();
84 Info<<
" force " << restraintForce
97 sDoFRBMRCoeffs_.lookup(
"coeff") >> coeff_;
virtual void restrain(const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const
Calculate the restraint position, force and moment.
linearDamper(const word &name, const dictionary &sDoFRBMRDict)
Construct from components.
A class for handling words, derived from string.
Base class for defining restraints for sixDoF motions.
virtual bool read(const dictionary &sDoFRBMRCoeff)
Update properties from given dictionary.
bool report() const
Return the report Switch.
A list of keyword definitions, which are a keyword followed by any number of values (e...
addToRunTimeSelectionTable(sixDoFRigidBodyMotionRestraint, linearAxialAngularSpring, dictionary)
virtual ~linearDamper()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(linearAxialAngularSpring, 0)
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &sDoFRBMRDict)
Update properties from given dictionary.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool read(const char *, int32_t &)
Six degree of freedom motion for a rigid body.