Go to the documentation of this file.
49 #ifndef sixDoFRigidBodyMotion_H
50 #define sixDoFRigidBodyMotion_H
98 point initialCentreOfMass_;
101 point initialCentreOfRotation_;
130 inline tensor rotationTensorX(scalar deltaT)
const;
134 inline tensor rotationTensorY(scalar deltaT)
const;
138 inline tensor rotationTensorZ(scalar deltaT)
const;
150 void applyRestraints();
153 void updateAcceleration(
const vector& fGlobal,
const vector& tauGlobal);
170 inline const point& initialCentreOfRotation()
const;
173 inline const tensor& initialQ()
const;
176 inline const tensor& Q()
const;
179 inline const vector& a()
const;
185 inline const vector& tau()
const;
191 inline point& initialCentreOfRotation();
194 inline tensor& initialQ();
237 inline scalar
mass()
const;
263 inline const vector&
v()
const;
272 inline bool report()
const;
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for managing temporary objects.
const tensor & orientation() const
point velocity(const point &pt) const
const Time & time() const
void addRestraints(const dictionary &dict)
sixDoFRigidBodyMotion(const Time &)
void write(Ostream &) const
void update(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)
Generic templated field type.
void addConstraints(const dictionary &dict)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
bool read(const dictionary &dict)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Holds the motion state of sixDoF object. Wrapped up together to allow rapid scatter to other processo...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const point & initialCentreOfMass() const
Six degree of freedom motion for a rigid body.
point transform(const point &initialPoints) const
constexpr scalar pi(M_PI)
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...
const point & centreOfRotation() const
point centreOfMass() const
const diagTensor & momentOfInertia() const
const sixDoFRigidBodyMotionState & state() const