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(
"normal", normal_);
123 os.writeEntry(
"centreOfRotation", centreOfRotation_);
124 os.writeEntry(
"normal", normal_);
A class for handling words, derived from Foam::string.
Accumulates point constraints through successive applications of the applyConstraint function.
Base class for defining constraints for sixDoF motions.
addToRunTimeSelectionTable(sixDoFRigidBodyMotionConstraint, axis, dictionary)
virtual bool read(const dictionary &sDoFRBMCCoeff)
Update properties from given dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Translation constraint on the centre of rotation: fixed in space.
virtual void constrainRotation(pointConstraint &) const
Apply and accumulate rotational constraints.
virtual void setCentreOfRotation(point &) const
Set the centre of rotation to the projection of the.
void applyConstraint(const vector &cd)
Apply and accumulate the effect of the given constraint direction.
virtual ~plane()
Destructor.
Six degree of freedom motion for a rigid body.
virtual void constrainTranslation(pointConstraint &) const
Apply and accumulate translational constraints.
virtual bool read(const dictionary &sDoFRBMCDict)
Update properties from given dictionary.
defineTypeNameAndDebug(axis, 0)
plane(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
Construct from components.
virtual void write(Ostream &) const
Write.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...