sixDoFRigidBodyMotionRestraints model. Axial angular spring with moment values drawn from an interpolation table. Linear damping. More...
#include <forces/tabulatedAxialAngularSpring.H>
sixDoFRigidBodyMotionRestraints model. Axial angular spring with moment values drawn from an interpolation table. Linear damping.
Definition at line 56 of file tabulatedAxialAngularSpring.H.
Public Member Functions | |
TypeName ("tabulatedAxialAngularSpring") | |
Runtime type information.
| |
tabulatedAxialAngularSpring (const dictionary &sDoFRBMRDict) | |
Construct from components.
| |
virtual autoPtr < sixDoFRigidBodyMotionRestraint > | clone () const |
Construct and return a clone.
| |
virtual | ~tabulatedAxialAngularSpring () |
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.
|
tabulatedAxialAngularSpring | ( | const dictionary & | sDoFRBMRDict ) |
Construct from components.
Definition at line 53 of file tabulatedAxialAngularSpring.C.
Referenced by tabulatedAxialAngularSpring::clone().
~tabulatedAxialAngularSpring | ( | ) | [virtual]
|
Definition at line 71 of file tabulatedAxialAngularSpring.C.
TypeName | ( | "tabulatedAxialAngularSpring" | ) |
Runtime type information.
virtual autoPtr<sixDoFRigidBodyMotionRestraint> clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 95 of file tabulatedAxialAngularSpring.H.
References tabulatedAxialAngularSpring::tabulatedAxialAngularSpring().
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 79 of file tabulatedAxialAngularSpring.C.
References Foam::acos(), sixDoFRigidBodyMotion::centreOfMass(), Foam::endl(), Foam::Info, Foam::mag(), Foam::min(), sixDoFRigidBodyMotion::omega(), sixDoFRigidBodyMotion::orientation(), Foam::mathematicalConstant::pi(), 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 tabulatedAxialAngularSpring.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 226 of file tabulatedAxialAngularSpring.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().