45#ifndef sixDoFRigidBodyMotionRestraint_H
46#define sixDoFRigidBodyMotionRestraint_H
60class sixDoFRigidBodyMotion;
84 TypeName(
"sixDoFRigidBodyMotionRestraint");
139 vector& restraintPosition,
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Base class for defining restraints for sixDoF motions.
virtual void write(Ostream &) const =0
Write.
static autoPtr< sixDoFRigidBodyMotionRestraint > New(const word &name, const dictionary &sDoFRBMRDict)
Select constructed from the sDoFRBMRDict dictionary and Time.
word name_
Name of the restraint.
const word & name() const
Return the name.
virtual void restrain(const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const =0
Calculate the restraint position, force and moment.
virtual bool read(const dictionary &sDoFRBMRDict)
Update properties from given dictionary.
declareRunTimeSelectionTable(autoPtr, sixDoFRigidBodyMotionRestraint, dictionary,(const word &name, const dictionary &sDoFRBMRDict),(name, sDoFRBMRDict))
virtual autoPtr< sixDoFRigidBodyMotionRestraint > clone() const =0
Construct and return a clone.
virtual ~sixDoFRigidBodyMotionRestraint()
Destructor.
TypeName("sixDoFRigidBodyMotionRestraint")
Runtime type information.
dictionary sDoFRBMRCoeffs_
Restraint model specific coefficient dictionary.
const dictionary & coeffDict() const
Six degree of freedom motion for a rigid body.
A class for handling words, derived from Foam::string.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.