Base class for defining restraints for sixDoF motions. More...


Public Member Functions | |
| TypeName ("sixDoFRigidBodyMotionRestraint") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, sixDoFRigidBodyMotionRestraint, dictionary,(const word &name, const dictionary &sDoFRBMRDict),(name, sDoFRBMRDict)) | |
| sixDoFRigidBodyMotionRestraint (const word &name, const dictionary &sDoFRBMRDict) | |
| Construct from the sDoFRBMRDict dictionary and Time. More... | |
| virtual autoPtr< sixDoFRigidBodyMotionRestraint > | clone () const =0 |
| Construct and return a clone. More... | |
| virtual | ~sixDoFRigidBodyMotionRestraint () |
| Destructor. More... | |
| const word & | name () const |
| Return the name. More... | |
| virtual void | restrain (const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const =0 |
| Calculate the restraint position, force and moment. More... | |
| virtual bool | read (const dictionary &sDoFRBMRDict) |
| Update properties from given dictionary. More... | |
| const dictionary & | coeffDict () const |
| virtual void | write (Ostream &) const =0 |
| Write. More... | |
Static Public Member Functions | |
| static autoPtr< sixDoFRigidBodyMotionRestraint > | New (const word &name, const dictionary &sDoFRBMRDict) |
| Select constructed from the sDoFRBMRDict dictionary and Time. More... | |
Protected Attributes | |
| word | name_ |
| Name of the restraint. More... | |
| dictionary | sDoFRBMRCoeffs_ |
| Restraint model specific coefficient dictionary. More... | |
Base class for defining restraints for sixDoF motions.
Definition at line 64 of file sixDoFRigidBodyMotionRestraint.H.
| sixDoFRigidBodyMotionRestraint | ( | const word & | name, |
| const dictionary & | sDoFRBMRDict | ||
| ) |
Construct from the sDoFRBMRDict dictionary and Time.
Definition at line 39 of file sixDoFRigidBodyMotionRestraint.C.
|
virtual |
Destructor.
Definition at line 52 of file sixDoFRigidBodyMotionRestraint.C.
| TypeName | ( | "sixDoFRigidBodyMotionRestraint" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| sixDoFRigidBodyMotionRestraint | , | ||
| dictionary | , | ||
| (const word &name, const dictionary &sDoFRBMRDict) | , | ||
| (name, sDoFRBMRDict) | |||
| ) |
|
pure virtual |
Construct and return a clone.
Implemented in sphericalAngularSpring, sphericalAngularDamper, linearSpring, linearDamper, linearAxialAngularSpring, and axialAngularSpring.
|
static |
Select constructed from the sDoFRBMRDict dictionary and Time.
Definition at line 31 of file sixDoFRigidBodyMotionRestraintNew.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookup(), sixDoFRigidBodyMotionRestraint::name(), and Foam::nl.
Referenced by sixDoFRigidBodyMotion::addRestraints().


|
inline |
Return the name.
Definition at line 126 of file sixDoFRigidBodyMotionRestraint.H.
References sixDoFRigidBodyMotionRestraint::name_.
Referenced by sixDoFRigidBodyMotionRestraint::New().

|
pure virtual |
Calculate the restraint position, force and moment.
Global reference frame vectors.
Implemented in sphericalAngularSpring, sphericalAngularDamper, linearSpring, linearDamper, linearAxialAngularSpring, and axialAngularSpring.
|
virtual |
Update properties from given dictionary.
Reimplemented in sphericalAngularSpring, sphericalAngularDamper, linearSpring, linearDamper, linearAxialAngularSpring, and axialAngularSpring.
Definition at line 58 of file sixDoFRigidBodyMotionRestraint.C.
Referenced by axialAngularSpring::read(), linearAxialAngularSpring::read(), linearDamper::read(), linearSpring::read(), sphericalAngularDamper::read(), and sphericalAngularSpring::read().

|
inline |
Definition at line 147 of file sixDoFRigidBodyMotionRestraint.H.
References sixDoFRigidBodyMotionRestraint::sDoFRBMRCoeffs_.
|
pure virtual |
Write.
Implemented in sphericalAngularSpring, sphericalAngularDamper, linearSpring, linearDamper, linearAxialAngularSpring, and axialAngularSpring.
|
protected |
Name of the restraint.
Definition at line 72 of file sixDoFRigidBodyMotionRestraint.H.
Referenced by sixDoFRigidBodyMotionRestraint::name().
|
protected |
Restraint model specific coefficient dictionary.
Definition at line 75 of file sixDoFRigidBodyMotionRestraint.H.
Referenced by sixDoFRigidBodyMotionRestraint::coeffDict().