Base class for defining constraints for sixDoF motions. More...
Public Member Functions | |
| TypeName ("sixDoFRigidBodyMotionConstraint") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, sixDoFRigidBodyMotionConstraint, dictionary,(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion),(name, sDoFRBMCDict, motion)) | |
| sixDoFRigidBodyMotionConstraint (const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion) | |
| Construct from the sDoFRBMCDict dictionary and Time. More... | |
| virtual autoPtr< sixDoFRigidBodyMotionConstraint > | clone () const =0 |
| Construct and return a clone. More... | |
| virtual | ~sixDoFRigidBodyMotionConstraint () |
| Destructor. More... | |
| const word & | name () const |
| Return the name. More... | |
| virtual void | setCentreOfRotation (point &) const |
| Set the centre of rotation if not the centre of mass. More... | |
| virtual void | constrainTranslation (pointConstraint &) const =0 |
| Apply and accumulate translational constraints. More... | |
| virtual void | constrainRotation (pointConstraint &) const =0 |
| Apply and accumulate rotational constraints. More... | |
| virtual bool | read (const dictionary &sDoFRBMCDict) |
| Update properties from given dictionary. More... | |
| const dictionary & | coeffDict () const |
| virtual void | write (Ostream &) const |
| Write. More... | |
Static Public Member Functions | |
| static autoPtr< sixDoFRigidBodyMotionConstraint > | New (const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion) |
| Select constructed from the sDoFRBMCDict dictionary and Time. More... | |
Protected Attributes | |
| word | name_ |
| Name of the constraint. More... | |
| dictionary | sDoFRBMCCoeffs_ |
| Constraint model specific coefficient dictionary. More... | |
| const sixDoFRigidBodyMotion & | motion_ |
| Reference to the body motion. More... | |
Base class for defining constraints for sixDoF motions.
Definition at line 67 of file sixDoFRigidBodyMotionConstraint.H.
| sixDoFRigidBodyMotionConstraint | ( | const word & | name, |
| const dictionary & | sDoFRBMCDict, | ||
| const sixDoFRigidBodyMotion & | motion | ||
| ) |
Construct from the sDoFRBMCDict dictionary and Time.
Definition at line 42 of file sixDoFRigidBodyMotionConstraint.C.
|
virtual |
Destructor.
Definition at line 56 of file sixDoFRigidBodyMotionConstraint.C.
| TypeName | ( | "sixDoFRigidBodyMotionConstraint" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| sixDoFRigidBodyMotionConstraint | , | ||
| dictionary | , | ||
| (const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion) | , | ||
| (name, sDoFRBMCDict, motion) | |||
| ) |
|
pure virtual |
Construct and return a clone.
Implemented in line, plane, point, axis, and orientation.
|
static |
Select constructed from the sDoFRBMCDict dictionary and Time.
Definition at line 35 of file sixDoFRigidBodyMotionConstraintNew.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::name().
Referenced by sixDoFRigidBodyMotion::addConstraints().
|
inline |
Return the name.
Definition at line 138 of file sixDoFRigidBodyMotionConstraint.H.
References sixDoFRigidBodyMotionConstraint::name_.
|
inlinevirtual |
Set the centre of rotation if not the centre of mass.
Reimplemented in point.
Definition at line 144 of file sixDoFRigidBodyMotionConstraint.H.
|
pure virtual |
Apply and accumulate translational constraints.
Implemented in line, plane, point, axis, and orientation.
|
pure virtual |
Apply and accumulate rotational constraints.
Implemented in line, plane, point, axis, and orientation.
|
virtual |
Update properties from given dictionary.
Reimplemented in line, plane, point, axis, and orientation.
Definition at line 63 of file sixDoFRigidBodyMotionConstraint.C.
Referenced by orientation::read(), axis::read(), point::read(), line::read(), and plane::read().
|
inline |
Definition at line 159 of file sixDoFRigidBodyMotionConstraint.H.
References sixDoFRigidBodyMotionConstraint::sDoFRBMCCoeffs_.
|
virtual |
Write.
Reimplemented in line, plane, point, axis, and orientation.
Definition at line 73 of file sixDoFRigidBodyMotionConstraint.C.
|
protected |
Name of the constraint.
Definition at line 75 of file sixDoFRigidBodyMotionConstraint.H.
Referenced by sixDoFRigidBodyMotionConstraint::name().
|
protected |
Constraint model specific coefficient dictionary.
Definition at line 78 of file sixDoFRigidBodyMotionConstraint.H.
Referenced by sixDoFRigidBodyMotionConstraint::coeffDict().
|
protected |
Reference to the body motion.
Definition at line 81 of file sixDoFRigidBodyMotionConstraint.H.