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