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.
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.
defineTypeNameAndDebug(linearAxialAngularSpring, 0)
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...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
addToRunTimeSelectionTable(sixDoFRigidBodyMotionRestraint, linearAxialAngularSpring, dictionary)
sphericalAngularDamper(const word &name, const dictionary &sDoFRBMRDict)
Construct from components.