Axial angular spring with moment values obtained from a Function1 and linear damping. More...
Public Member Functions | |
TypeName ("axialAngularSpring") | |
Runtime type information. More... | |
axialAngularSpring (const word &name, const dictionary &sDoFRBMRDict) | |
Construct from components. More... | |
virtual autoPtr< sixDoFRigidBodyMotionRestraint > | clone () const |
Construct and return a clone. More... | |
virtual | ~axialAngularSpring () |
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... | |
Axial angular spring with moment values obtained from a Function1 and linear damping.
Definition at line 55 of file axialAngularSpring.H.
axialAngularSpring | ( | const word & | name, |
const dictionary & | sDoFRBMRDict | ||
) |
Construct from components.
Definition at line 51 of file axialAngularSpring.C.
References axialAngularSpring::read().
Referenced by axialAngularSpring::clone().
|
virtual |
Destructor.
Definition at line 69 of file axialAngularSpring.C.
TypeName | ( | "axialAngularSpring" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 90 of file axialAngularSpring.H.
References axialAngularSpring::axialAngularSpring().
|
virtual |
Calculate the restraint position, force and moment.
Global reference frame vectors.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 75 of file axialAngularSpring.C.
References Foam::acos(), sixDoFRigidBodyMotion::centreOfRotation(), Foam::endl(), Foam::Info, Foam::mag(), Foam::min(), sixDoFRigidBodyMotion::omega(), sixDoFRigidBodyMotion::orientation(), sixDoFRigidBodyMotion::report(), Foam::rotationTensor(), Foam::sign(), and Foam::Zero.
|
virtual |
Update properties from given dictionary.
Reimplemented from sixDoFRigidBodyMotionRestraint.
Definition at line 131 of file axialAngularSpring.C.
References Foam::abort(), Foam::dimForce, Foam::dimLength, Foam::e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, Foam::I, Foam::mag(), Function1< Type >::New(), Foam::nl, sixDoFRigidBodyMotionRestraint::read(), Foam::sqrt(), and Foam::unitRadians.
Referenced by axialAngularSpring::axialAngularSpring().
|
virtual |
Write.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 192 of file axialAngularSpring.C.
References Foam::writeEntry().