Base class for defining restraints for sixDoF motions. More...
#include <forces/sixDoFRigidBodyMotionRestraint.H>
Base class for defining restraints for sixDoF motions.
Definition at line 64 of file sixDoFRigidBodyMotionRestraint.H.
Public Member Functions | |
TypeName ("sixDoFRigidBodyMotionRestraint") | |
Runtime type information. | |
declareRunTimeSelectionTable (autoPtr, sixDoFRigidBodyMotionRestraint, dictionary,(const dictionary &sDoFRBMRDict),(sDoFRBMRDict)) | |
sixDoFRigidBodyMotionRestraint (const dictionary &sDoFRBMRDict) | |
Construct from the sDoFRBMRDict dictionary and Time. | |
virtual autoPtr < sixDoFRigidBodyMotionRestraint > | clone () const =0 |
Construct and return a clone. | |
virtual | ~sixDoFRigidBodyMotionRestraint () |
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. | |
const dictionary & | coeffDict () const |
virtual void | write (Ostream &) const =0 |
Write. |
Static Public Member Functions | |
static autoPtr < sixDoFRigidBodyMotionRestraint > | New (const dictionary &sDoFRBMRDict) |
Select constructed from the sDoFRBMRDict dictionary and Time. |
Protected Attributes | |
dictionary | sDoFRBMRCoeffs_ |
Restraint model specific coefficient dictionary. |
sixDoFRigidBodyMotionRestraint | ( | const dictionary & | sDoFRBMRDict | ) |
Construct from the sDoFRBMRDict dictionary and Time.
Definition at line 37 of file sixDoFRigidBodyMotionRestraint.C.
|
virtual |
Definition at line 54 of file sixDoFRigidBodyMotionRestraint.C.
TypeName | ( | "sixDoFRigidBodyMotionRestraint" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
sixDoFRigidBodyMotionRestraint | , | ||
dictionary | , | ||
(const dictionary &sDoFRBMRDict) | , | ||
(sDoFRBMRDict) | |||
) |
|
pure virtual |
Construct and return a clone.
Implemented in tabulatedAxialAngularSpring, linearSpring, linearAxialAngularSpring, and sphericalAngularSpring.
|
static |
Select constructed from the sDoFRBMRDict dictionary and Time.
Definition at line 31 of file newSixDoFRigidBodyMotionRestraint.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, and dictionary::lookup().
Referenced by sixDoFRigidBodyMotion::addRestraints().
|
pure virtual |
Calculate the restraint position, force and moment.
Global reference frame vectors.
Implemented in tabulatedAxialAngularSpring, linearSpring, linearAxialAngularSpring, and sphericalAngularSpring.
|
virtual |
Update properties from given dictionary.
Reimplemented in tabulatedAxialAngularSpring, linearSpring, linearAxialAngularSpring, and sphericalAngularSpring.
Definition at line 61 of file sixDoFRigidBodyMotionRestraint.C.
References dictionary::subDict(), and Foam::type().
Referenced by sphericalAngularSpring::read(), linearAxialAngularSpring::read(), linearSpring::read(), and tabulatedAxialAngularSpring::read().
|
inline |
Definition at line 137 of file sixDoFRigidBodyMotionRestraint.H.
References sixDoFRigidBodyMotionRestraint::sDoFRBMRCoeffs_.
|
pure virtual |
Write.
Implemented in tabulatedAxialAngularSpring, linearSpring, linearAxialAngularSpring, and sphericalAngularSpring.
|
protected |
Restraint model specific coefficient dictionary.
Definition at line 72 of file sixDoFRigidBodyMotionRestraint.H.
Referenced by sixDoFRigidBodyMotionRestraint::coeffDict().