34 namespace sixDoFRigidBodyMotionConstraints
95 sDoFRBMCCoeffs_.lookup(
"axis") >> axis_;
97 scalar magFixedAxis(
mag(axis_));
99 if (magFixedAxis > vSmall)
101 axis_ /= magFixedAxis;
106 <<
"axis has zero length" Six degree of freedom motion for a rigid body.
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
addToRunTimeSelectionTable(sixDoFRigidBodyMotionConstraint, axis, dictionary)
void combine(const pointConstraint &)
Combine constraints.
Base class for defining constraints for sixDoF motions.
Macros for easy insertion into run-time selection tables.
bool read(const char *, int32_t &)
Orientation constraint: may only rotate around a fixed axis.
A class for handling words, derived from string.
virtual bool read(const dictionary &sDoFRBMCCoeff)
Update properties from given dictionary.
Accumulates point constraints through successive applications of the applyConstraint function...
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool read(const dictionary &sDoFRBMCDict)
Update properties from given dictionary.
virtual ~axis()
Destructor.
axis(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
Construct from components.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void constrainTranslation(pointConstraint &) const
Apply and accumulate translational constraints.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual void constrainRotation(pointConstraint &) const
Apply and accumulate rotational constraints.
defineTypeNameAndDebug(axis, 0)