Go to the documentation of this file.
37 namespace sixDoFRigidBodyMotionConstraints
43 sixDoFRigidBodyMotionConstraint,
79 CofR = centreOfRotation_;
106 centreOfRotation_ = sDoFRBMCCoeffs_.getOrDefault
109 motion_.initialCentreOfMass()
112 sDoFRBMCCoeffs_.readEntry(
"direction", direction_);
114 scalar magDir(
mag(direction_));
118 direction_ /= magDir;
123 <<
"line direction has zero length"
136 os.writeEntry(
"centreOfRotation", centreOfRotation_);
137 os.writeEntry(
"direction", direction_);
virtual void constrainRotation(pointConstraint &) const
A class for handling words, derived from Foam::string.
Accumulates point constraints through successive applications of the applyConstraint function.
virtual bool read(const dictionary &sDoFRBMCCoeff)
Base class for defining constraints for sixDoF motions.
addToRunTimeSelectionTable(sixDoFRigidBodyMotionConstraint, axis, dictionary)
line(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
virtual void setCentreOfRotation(point &) const
void combine(const pointConstraint &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void constrainTranslation(pointConstraint &) const
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Translation constraint on the centre of rotation: fixed in space.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Six degree of freedom motion for a rigid body.
virtual bool read(const dictionary &sDoFRBMCDict)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
defineTypeNameAndDebug(axis, 0)
word name(const expressions::valueTypeCode typeCode)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void write(Ostream &) const