34 namespace sixDoFRigidBodyMotionConstraints
40 sixDoFRigidBodyMotionConstraint,
76 CofR = centreOfRotation_;
103 centreOfRotation_ = sDoFRBMCCoeffs_.lookupOrDefault
106 motion_.initialCentreOfMass()
109 sDoFRBMCCoeffs_.lookup(
"direction") >> direction_;
111 scalar magDir(
mag(direction_));
115 direction_ /= magDir;
120 <<
"line direction has zero length" 133 writeEntry(os,
"centreOfRotation", centreOfRotation_);
Six degree of freedom motion for a rigid body.
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.
virtual bool read(const dictionary &sDoFRBMCCoeff)
Update properties from given dictionary.
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 &)
A class for handling words, derived from string.
virtual void constrainTranslation(pointConstraint &) const
Apply and accumulate translational constraints.
Accumulates point constraints through successive applications of the applyConstraint function...
errorManip< error > abort(error &err)
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void setCentreOfRotation(point &) const
Set the centre of rotation to the projection of the.
virtual bool read(const dictionary &sDoFRBMCDict)
Update properties from given dictionary.
virtual void constrainRotation(pointConstraint &) const
Apply and accumulate rotational constraints.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual ~line()
Destructor.
dimensioned< scalar > mag(const dimensioned< Type > &)
Translation constraint on the centre of rotation: fixed in space.
line(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
Construct from components.
defineTypeNameAndDebug(axis, 0)