43 #ifndef sixDoFRigidBodyMotionConstraint_H 44 #define sixDoFRigidBodyMotionConstraint_H 59 class sixDoFRigidBodyMotion;
86 TypeName(
"sixDoFRigidBodyMotionConstraint");
101 (name, sDoFRBMCDict, motion)
Six degree of freedom motion for a rigid body.
const word & name() const
Return the name.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ~sixDoFRigidBodyMotionConstraint()
Destructor.
Base class for defining constraints for sixDoF motions.
word name_
Name of the constraint.
const dictionary & coeffDict() const
virtual void setCentreOfRotation(point &) const
Set the centre of rotation if not the centre of mass.
virtual void write(Ostream &) const
Write.
virtual void constrainTranslation(pointConstraint &) const =0
Apply and accumulate translational constraints.
A class for handling words, derived from string.
const sixDoFRigidBodyMotion & motion_
Reference to the body motion.
Accumulates point constraints through successive applications of the applyConstraint function...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool read(const dictionary &sDoFRBMCDict)
Update properties from given dictionary.
dictionary sDoFRBMCCoeffs_
Constraint model specific coefficient dictionary.
virtual void constrainRotation(pointConstraint &) const =0
Apply and accumulate rotational constraints.
virtual autoPtr< sixDoFRigidBodyMotionConstraint > clone() const =0
Construct and return a clone.
sixDoFRigidBodyMotionConstraint(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
Construct from the sDoFRBMCDict dictionary and Time.
TypeName("sixDoFRigidBodyMotionConstraint")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, sixDoFRigidBodyMotionConstraint, dictionary,(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion),(name, sDoFRBMCDict, motion))
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< sixDoFRigidBodyMotionConstraint > New(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
Select constructed from the sDoFRBMCDict dictionary and Time.
Macros to ease declaration of run-time selection tables.