sixDoFRigidBodyMotionRestraints model. Spherical angular spring. More...
#include <forces/sphericalAngularSpring.H>
sixDoFRigidBodyMotionRestraints model. Spherical angular spring.
Definition at line 54 of file sphericalAngularSpring.H.
Public Member Functions | |
TypeName ("sphericalAngularSpring") | |
Runtime type information.
| |
sphericalAngularSpring (const dictionary &sDoFRBMRDict) | |
Construct from components.
| |
virtual autoPtr < sixDoFRigidBodyMotionRestraint > | clone () const |
Construct and return a clone.
| |
virtual | ~sphericalAngularSpring () |
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.
|
sphericalAngularSpring | ( | const dictionary & | sDoFRBMRDict ) |
Construct from components.
Definition at line 51 of file sphericalAngularSpring.C.
Referenced by sphericalAngularSpring::clone().
~sphericalAngularSpring | ( | ) | [virtual]
|
Definition at line 67 of file sphericalAngularSpring.C.
TypeName | ( | "sphericalAngularSpring" | ) |
Runtime type information.
virtual autoPtr<sixDoFRigidBodyMotionRestraint> clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Implements sixDoFRigidBodyMotionRestraint.
Definition at line 85 of file sphericalAngularSpring.H.
References sphericalAngularSpring::sphericalAngularSpring().
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 75 of file sphericalAngularSpring.C.
References sixDoFRigidBodyMotion::centreOfMass(), Foam::endl(), Foam::Info, VectorSpace< Vector< Cmpt >, Cmpt, 3 >::nComponents, sixDoFRigidBodyMotion::omega(), sixDoFRigidBodyMotion::orientation(), sixDoFRigidBodyMotion::report(), and Vector< Cmpt >::zero.
bool read | ( | const dictionary & | sDoFRBMRCoeff ) | [virtual]
|
Update properties from given dictionary.
Reimplemented from sixDoFRigidBodyMotionRestraint.
Definition at line 123 of file sphericalAngularSpring.C.
References 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 156 of file sphericalAngularSpring.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().