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