46 #ifndef sixDoFRigidBodyMotionConstraint_H 47 #define sixDoFRigidBodyMotionConstraint_H 62 class sixDoFRigidBodyMotion;
89 TypeName(
"sixDoFRigidBodyMotionConstraint");
173 virtual void write(Ostream&)
const;
Six degree of freedom motion for a rigid body.
const sixDoFRigidBodyMotion & motion() const noexcept
Return const access to motion.
const word & name() const
Return the name.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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 Foam::string.
const sixDoFRigidBodyMotion & motion_
Reference to the body motion.
virtual bool read(const dictionary &sDoFRBMCDict)
Update properties from given dictionary.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
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))
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
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.