sixDoFRigidBodyMotionRestraints model. Linear axial angular spring. More...
Public Member Functions | |
TypeName ("linearAxialAngularSpring") | |
Runtime type information. More... | |
linearAxialAngularSpring (const word &name, const dictionary &sDoFRBMRDict) | |
Construct from components. More... | |
virtual autoPtr< sixDoFRigidBodyMotionRestraint > | clone () const |
Construct and return a clone. More... | |
virtual | ~linearAxialAngularSpring () |
Destructor. More... | |
virtual void | restrain (const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const |
Calculate the restraint position, force and moment. More... | |
virtual bool | read (const dictionary &sDoFRBMRCoeff) |
Update properties from given dictionary. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from sixDoFRigidBodyMotionRestraint | |
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 | ~sixDoFRigidBodyMotionRestraint () |
Destructor. More... | |
const word & | name () const |
Return the name. More... | |
const dictionary & | coeffDict () const |
Additional Inherited Members | |
Static Public Member Functions inherited from sixDoFRigidBodyMotionRestraint | |
static autoPtr< sixDoFRigidBodyMotionRestraint > | New (const word &name, const dictionary &sDoFRBMRDict) |
Select constructed from the sDoFRBMRDict dictionary and Time. More... | |
Protected Attributes inherited from sixDoFRigidBodyMotionRestraint | |
word | name_ |
Name of the restraint. More... | |
dictionary | sDoFRBMRCoeffs_ |
Restraint model specific coefficient dictionary. More... | |
sixDoFRigidBodyMotionRestraints model. Linear axial angular spring.
Definition at line 53 of file linearAxialAngularSpring.H.
linearAxialAngularSpring | ( | const word & | name, |
const dictionary & | sDoFRBMRDict | ||
) |
Construct from components.
Definition at line 53 of file linearAxialAngularSpring.C.
References Foam::read(), and linearAxialAngularSpring::~linearAxialAngularSpring().
Referenced by linearAxialAngularSpring::clone().
|
virtual |
Destructor.
Definition at line 71 of file linearAxialAngularSpring.C.
References linearAxialAngularSpring::restrain().
Referenced by linearAxialAngularSpring::clone(), and linearAxialAngularSpring::linearAxialAngularSpring().
TypeName | ( | "linearAxialAngularSpring" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 88 of file linearAxialAngularSpring.H.
References linearAxialAngularSpring::linearAxialAngularSpring(), linearAxialAngularSpring::read(), linearAxialAngularSpring::restrain(), linearAxialAngularSpring::write(), and linearAxialAngularSpring::~linearAxialAngularSpring().
|
virtual |
Calculate the restraint position, force and moment.
Global reference frame vectors.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 79 of file linearAxialAngularSpring.C.
References Foam::acos(), sixDoFRigidBodyMotion::centreOfRotation(), Foam::endl(), Foam::Info, Foam::mag(), Foam::min(), sixDoFRigidBodyMotion::omega(), sixDoFRigidBodyMotion::orientation(), linearAxialAngularSpring::read(), sixDoFRigidBodyMotion::report(), Foam::rotationTensor(), Foam::sign(), and Foam::Zero.
Referenced by linearAxialAngularSpring::clone(), and linearAxialAngularSpring::~linearAxialAngularSpring().
|
virtual |
Update properties from given dictionary.
Reimplemented from sixDoFRigidBodyMotionRestraint.
Definition at line 145 of file linearAxialAngularSpring.C.
References Foam::abort(), Foam::e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::I, Foam::mag(), Foam::nl, sixDoFRigidBodyMotionRestraint::read(), Foam::sqrt(), and linearAxialAngularSpring::write().
Referenced by linearAxialAngularSpring::clone(), and linearAxialAngularSpring::restrain().
|
virtual |
Write.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 185 of file linearAxialAngularSpring.C.
References Foam::writeEntry().
Referenced by linearAxialAngularSpring::clone(), and linearAxialAngularSpring::read().