sixDoFRigidBodyMotionRestraints model. Linear axial angular spring. More...
#include <forces/linearAxialAngularSpring.H>
sixDoFRigidBodyMotionRestraints model. Linear axial angular spring.
Definition at line 54 of file linearAxialAngularSpring.H.
Public Member Functions | |
TypeName ("linearAxialAngularSpring") | |
Runtime type information.
| |
linearAxialAngularSpring (const dictionary &sDoFRBMRDict) | |
Construct from components.
| |
virtual autoPtr < sixDoFRigidBodyMotionRestraint > | clone () const |
Construct and return a clone.
| |
virtual | ~linearAxialAngularSpring () |
virtual void | restrain (const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const |
Calculate the restraint position, force and moment.
| |
virtual bool | read (const dictionary &sDoFRBMRCoeff) |
Update properties from given dictionary.
| |
virtual void | write (Ostream &) const |
Write.
|
linearAxialAngularSpring | ( | const dictionary & | sDoFRBMRDict ) |
Construct from components.
Definition at line 52 of file linearAxialAngularSpring.C.
Referenced by linearAxialAngularSpring::clone().
~linearAxialAngularSpring | ( | ) | [virtual]
|
Definition at line 69 of file linearAxialAngularSpring.C.
TypeName | ( | "linearAxialAngularSpring" | ) |
Runtime type information.
virtual autoPtr<sixDoFRigidBodyMotionRestraint> clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 88 of file linearAxialAngularSpring.H.
References linearAxialAngularSpring::linearAxialAngularSpring().
void restrain | ( | const sixDoFRigidBodyMotion & | motion, |
vector & | restraintPosition, | ||
vector & | restraintForce, | ||
vector & | restraintMoment | ||
) | const [virtual]
|
Calculate the restraint position, force and moment.
Global reference frame vectors.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 77 of file linearAxialAngularSpring.C.
References Foam::acos(), sixDoFRigidBodyMotion::centreOfMass(), Foam::endl(), Foam::Info, Foam::mag(), Foam::min(), sixDoFRigidBodyMotion::omega(), sixDoFRigidBodyMotion::orientation(), sixDoFRigidBodyMotion::report(), Foam::rotationTensor(), Foam::sign(), and Vector< Cmpt >::zero.
bool read | ( | const dictionary & | sDoFRBMRCoeff ) | [virtual]
|
Update properties from given dictionary.
Reimplemented from sixDoFRigidBodyMotionRestraint.
Definition at line 147 of file linearAxialAngularSpring.C.
References Foam::abort(), e, Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::I, Foam::mag(), Foam::nl, sixDoFRigidBodyMotionRestraint::read(), and Foam::sqrt().
void write | ( | Ostream & | os ) | const [virtual]
|
Write.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 202 of file linearAxialAngularSpring.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().