34 namespace sixDoFRigidBodyMotionRestraints
40 sixDoFRigidBodyMotionRestraint,
41 sphericalAngularDamper,
81 restraintMoment = -coeff_*motion.
omega();
86 Info<<
" moment " << restraintMoment
99 sDoFRBMRCoeffs_.lookup(
"coeff") >> coeff_;
virtual bool read(const dictionary &sDoFRBMRCoeff)
Update properties from given dictionary.
A class for handling words, derived from string.
virtual void write(Ostream &) const
Write.
Base class for defining restraints for sixDoF motions.
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)
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 restrain(const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const
Calculate the restraint position, force and moment.
vector omega() const
Return the angular velocity in the global frame.
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.
virtual ~sphericalAngularDamper()
Destructor.
sphericalAngularDamper(const word &name, const dictionary &sDoFRBMRDict)
Construct from components.