Translation constraint on the centre of rotation: may only move along a line. More...


Public Member Functions | |
| TypeName ("line") | |
| Runtime type information. More... | |
| line (const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion) | |
| Construct from components. More... | |
| virtual autoPtr< sixDoFRigidBodyMotionConstraint > | clone () const |
| Construct and return a clone. More... | |
| virtual | ~line () |
| Destructor. More... | |
| virtual void | setCentreOfRotation (point &) const |
| Set the centre of rotation to the projection of the. More... | |
| virtual void | constrainTranslation (pointConstraint &) const |
| Apply and accumulate translational constraints. More... | |
| virtual void | constrainRotation (pointConstraint &) const |
| Apply and accumulate rotational constraints. More... | |
| virtual bool | read (const dictionary &sDoFRBMCCoeff) |
| Update properties from given dictionary. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Public Member Functions inherited from sixDoFRigidBodyMotionConstraint | |
| 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 | ~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... | |
| const dictionary & | coeffDict () const |
Additional Inherited Members | |
Static Public Member Functions inherited from sixDoFRigidBodyMotionConstraint | |
| static autoPtr< sixDoFRigidBodyMotionConstraint > | New (const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion) |
| Select constructed from the sDoFRBMCDict dictionary and Time. More... | |
Protected Attributes inherited from sixDoFRigidBodyMotionConstraint | |
| word | name_ |
| Name of the constraint. More... | |
| dictionary | sDoFRBMCCoeffs_ |
| Constraint model specific coefficient dictionary. More... | |
| const sixDoFRigidBodyMotion & | motion_ |
| Reference to the body motion. More... | |
Translation constraint on the centre of rotation: may only move along a line.
If 'centreOfRotation' is not provided in the dictionary the centre of mass is used.
Definition at line 55 of file sixDoFRigidBodyMotionLineConstraint.H.
| line | ( | const word & | name, |
| const dictionary & | sDoFRBMCDict, | ||
| const sixDoFRigidBodyMotion & | motion | ||
| ) |
Construct from components.
Definition at line 51 of file sixDoFRigidBodyMotionLineConstraint.C.
References Foam::read().
Referenced by line::clone().


|
virtual |
Destructor.
Definition at line 65 of file sixDoFRigidBodyMotionLineConstraint.C.
References line::setCentreOfRotation().
Referenced by line::clone().


| TypeName | ( | "line" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements sixDoFRigidBodyMotionConstraint.
Definition at line 85 of file sixDoFRigidBodyMotionLineConstraint.H.
References line::constrainRotation(), line::constrainTranslation(), line::line(), line::read(), line::setCentreOfRotation(), line::write(), and line::~line().

|
virtual |
Set the centre of rotation to the projection of the.
centre of mass onto the line
Definition at line 72 of file sixDoFRigidBodyMotionLineConstraint.C.
References line::constrainTranslation().
Referenced by line::clone(), and line::~line().


|
virtual |
Apply and accumulate translational constraints.
Implements sixDoFRigidBodyMotionConstraint.
Definition at line 81 of file sixDoFRigidBodyMotionLineConstraint.C.
References pointConstraint::combine(), and line::constrainRotation().
Referenced by line::clone(), and line::setCentreOfRotation().


|
virtual |
Apply and accumulate rotational constraints.
Implements sixDoFRigidBodyMotionConstraint.
Definition at line 90 of file sixDoFRigidBodyMotionLineConstraint.C.
References line::read().
Referenced by line::clone(), and line::constrainTranslation().


|
virtual |
Update properties from given dictionary.
Reimplemented from sixDoFRigidBodyMotionConstraint.
Definition at line 97 of file sixDoFRigidBodyMotionLineConstraint.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), sixDoFRigidBodyMotionConstraint::read(), and line::write().
Referenced by line::clone(), and line::constrainRotation().


|
virtual |
Write.
Reimplemented from sixDoFRigidBodyMotionConstraint.
Definition at line 129 of file sixDoFRigidBodyMotionLineConstraint.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
Referenced by line::clone(), and line::read().


1.8.11