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 66 of file sixDoFRigidBodyMotionRestraint.H.
sixDoFRigidBodyMotionRestraint | ( | const word & | name, |
const dictionary & | sDoFRBMRDict | ||
) |
Construct from the sDoFRBMRDict dictionary and Time.
Definition at line 41 of file sixDoFRigidBodyMotionRestraint.C.
References Foam::name().
|
virtual |
Destructor.
Definition at line 54 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 linearAxialAngularSpring, linearDamper, linearSpring, linearSpringDamper, softWall, sphericalAngularDamper, sphericalAngularSpring, and tabulatedAxialAngularSpring.
|
static |
Select constructed from the sDoFRBMRDict dictionary and Time.
Definition at line 34 of file sixDoFRigidBodyMotionRestraintNew.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), and sixDoFRigidBodyMotionRestraint::name().
|
inline |
Return the name.
Definition at line 128 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 linearAxialAngularSpring, linearDamper, linearSpring, linearSpringDamper, softWall, sphericalAngularDamper, sphericalAngularSpring, and tabulatedAxialAngularSpring.
|
virtual |
Update properties from given dictionary.
Reimplemented in linearAxialAngularSpring, linearDamper, linearSpring, linearSpringDamper, softWall, sphericalAngularDamper, sphericalAngularSpring, and tabulatedAxialAngularSpring.
Definition at line 60 of file sixDoFRigidBodyMotionRestraint.C.
|
inline |
Definition at line 149 of file sixDoFRigidBodyMotionRestraint.H.
References sixDoFRigidBodyMotionRestraint::sDoFRBMRCoeffs_.
|
pure virtual |
Write.
Implemented in linearAxialAngularSpring, linearDamper, linearSpring, linearSpringDamper, softWall, sphericalAngularDamper, sphericalAngularSpring, and tabulatedAxialAngularSpring.
|
protected |
Name of the restraint.
Definition at line 74 of file sixDoFRigidBodyMotionRestraint.H.
Referenced by sixDoFRigidBodyMotionRestraint::name().
|
protected |
Restraint model specific coefficient dictionary.
Definition at line 77 of file sixDoFRigidBodyMotionRestraint.H.
Referenced by sixDoFRigidBodyMotionRestraint::coeffDict().