sixDoFRigidBodyMotionRestraints model. Linear Spring-Damper system. More...
Public Member Functions | |
TypeName ("linearSpringDamper") | |
Runtime type information. More... | |
linearSpringDamper (const word &name, const dictionary &sDoFRBMRDict) | |
Construct from components. More... | |
virtual autoPtr< sixDoFRigidBodyMotionRestraint > | clone () const |
Construct and return a clone. More... | |
virtual | ~linearSpringDamper () |
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... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
static autoPtr< sixDoFRigidBodyMotionRestraint > | New (const word &name, const dictionary &sDoFRBMRDict) |
Select constructed from the sDoFRBMRDict dictionary and Time. More... | |
![]() | |
word | name_ |
Name of the restraint. More... | |
dictionary | sDoFRBMRCoeffs_ |
Restraint model specific coefficient dictionary. More... | |
sixDoFRigidBodyMotionRestraints model. Linear Spring-Damper system.
Spring-damper system for restraint. Acts as a "soft" rope when the distance between anchor and refAttachmentPt exceed the restLength, a system of spring-damper is activated to simulate a soft rope de-acceleration
Definition at line 60 of file linearSpringDamper.H.
linearSpringDamper | ( | const word & | name, |
const dictionary & | sDoFRBMRDict | ||
) |
Construct from components.
Definition at line 53 of file linearSpringDamper.C.
References Foam::name(), linearSpringDamper::read(), and Foam::Zero.
|
virtual |
Destructor.
Definition at line 68 of file linearSpringDamper.C.
TypeName | ( | "linearSpringDamper" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 137 of file linearSpringDamper.H.
|
virtual |
Calculate the restraint position, force and moment.
Global reference frame vectors.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 74 of file linearSpringDamper.C.
References Foam::endl(), Foam::Info, Foam::mag(), sixDoFRigidBodyMotion::mass(), sixDoFRigidBodyMotion::report(), Foam::sqr(), sixDoFRigidBodyMotion::time(), TimeState::timeOutputValue(), sixDoFRigidBodyMotion::transform(), sixDoFRigidBodyMotion::velocity(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), Vector< Cmpt >::z(), and Foam::Zero.
|
virtual |
Update properties from given dictionary.
Reimplemented from sixDoFRigidBodyMotionRestraint.
Definition at line 158 of file linearSpringDamper.C.
References kEpsilonLopesdaCosta< BasicTurbulenceModel >::read().
Referenced by linearSpringDamper::linearSpringDamper().
|
virtual |
Write.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 176 of file linearSpringDamper.C.
References os().