sixDoFRigidBodyMotionRestraints model. Linear spring. More...
Public Member Functions | |
TypeName ("linearSpring") | |
Runtime type information. More... | |
linearSpring (const word &name, const dictionary &sDoFRBMRDict) | |
Construct from components. More... | |
virtual autoPtr< sixDoFRigidBodyMotionRestraint > | clone () const |
Construct and return a clone. More... | |
virtual | ~linearSpring () |
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 | ~sixDoFRigidBodyMotionRestraint () |
Destructor. More... | |
const word & | name () const |
Return the name. More... | |
const dictionary & | coeffDict () const |
Private Attributes | |
point | anchor_ |
Anchor point, where the spring is attached to an immovable. More... | |
point | refAttachmentPt_ |
Reference point of attachment to the solid body. More... | |
scalar | stiffness_ |
Spring stiffness coefficient (N/m) More... | |
scalar | damping_ |
Damping coefficient (Ns/m) More... | |
scalar | restLength_ |
Rest length - length of spring when no forces are applied to it. 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.
Definition at line 52 of file linearSpring.H.
linearSpring | ( | const word & | name, |
const dictionary & | sDoFRBMRDict | ||
) |
Construct from components.
Definition at line 51 of file linearSpring.C.
References Foam::read().
Referenced by linearSpring::clone().
|
virtual |
Destructor.
Definition at line 69 of file linearSpring.C.
TypeName | ( | "linearSpring" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 91 of file linearSpring.H.
References linearSpring::linearSpring().
|
virtual |
Calculate the restraint position, force and moment.
Global reference frame vectors.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 76 of file linearSpring.C.
References Foam::endl(), Foam::Info, Foam::mag(), sixDoFRigidBodyMotion::report(), sixDoFRigidBodyMotion::transform(), sixDoFRigidBodyMotion::velocity(), and Vector< scalar >::zero.
|
virtual |
Update properties from given dictionary.
Reimplemented from sixDoFRigidBodyMotionRestraint.
Definition at line 107 of file linearSpring.C.
References sixDoFRigidBodyMotionRestraint::read().
|
virtual |
Write.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 124 of file linearSpring.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
|
private |
Anchor point, where the spring is attached to an immovable.
object
Definition at line 60 of file linearSpring.H.
|
private |
Reference point of attachment to the solid body.
Definition at line 63 of file linearSpring.H.
|
private |
Spring stiffness coefficient (N/m)
Definition at line 66 of file linearSpring.H.
|
private |
Damping coefficient (Ns/m)
Definition at line 69 of file linearSpring.H.
|
private |
Rest length - length of spring when no forces are applied to it.
Definition at line 72 of file linearSpring.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.