53Foam::sixDoFRigidBodyMotionConstraints::point::point
75void Foam::sixDoFRigidBodyMotionConstraints::point::setCentreOfRotation
80 CofR = centreOfRotation_;
84void Foam::sixDoFRigidBodyMotionConstraints::point::constrainTranslation
100bool Foam::sixDoFRigidBodyMotionConstraints::point::read
107 centreOfRotation_ = sDoFRBMCCoeffs_.getOrDefault
117void Foam::sixDoFRigidBodyMotionConstraints::point::write
122 os.writeEntry(
"centreOfRotation", centreOfRotation_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Accumulates point constraints through successive applications of the applyConstraint function.
void combine(const pointConstraint &)
Combine constraints.
Base class for defining constraints for sixDoF motions.
const word & name() const
Return the name.
dictionary sDoFRBMCCoeffs_
Constraint model specific coefficient dictionary.
sixDoFRigidBodyMotionConstraint(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
Construct from the sDoFRBMCDict dictionary and Time.
const sixDoFRigidBodyMotion & motion_
Reference to the body motion.
const sixDoFRigidBodyMotion & motion() const noexcept
Return const access to motion.
virtual bool read(const dictionary &sDoFRBMCDict)
Update properties from given dictionary.
Translation constraint on the centre of rotation: fixed in space.
virtual ~point()
Destructor.
virtual void setCentreOfRotation(Foam::point &) const
Set the centre of rotation to the point.
virtual void write(Ostream &) const
Write.
virtual void constrainRotation(pointConstraint &) const
Apply and accumulate rotational constraints.
virtual bool read(const dictionary &sDoFRBMCCoeff)
Update properties from given dictionary.
point(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
Construct from components.
virtual void constrainTranslation(pointConstraint &) const
Apply and accumulate translational constraints.
Six degree of freedom motion for a rigid body.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
Namespace for six DoF motion constraints.
vector point
Point is a vector.
static constexpr const zero Zero
Global zero (0).
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.