38 return body_.motionState_.Q();
43 return body_.motionState_.v();
48 return body_.motionState_.a();
53 return body_.motionState_.pi();
58 return body_.motionState_.tau();
64 return body_.motionState0_.centreOfRotation();
69 return body_.motionState0_.Q();
75 return body_.motionState0_.v();
81 return body_.motionState0_.a();
87 return body_.motionState0_.pi();
93 return body_.motionState0_.tau();
103 return body_.tConstraints_;
108 return body_.rConstraints_;
120 return body_.rotate(Q0,
pi, deltaT);
130 body_.updateAcceleration(fGlobal, tauGlobal);
135 body_.updateConstraints();
vector & v()
Return non-const access to vector.
tensor tConstraints() const
Translational constraint tensor.
tensor rConstraints() const
Rotational constraint tensor.
point & centreOfRotation()
Return the current centre of rotation.
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
const vector & pi0() const
Return the angular momentum at previous time-step.
tensor & Q()
Return the orientation.
const point & centreOfRotation() const
Return access to the centre of mass.
Tuple2< tensor, vector > rotate(const tensor &Q0, const vector &pi, const scalar deltaT) const
Apply rotation tensors to Q0 for the given torque (pi) and deltaT.
constexpr scalar pi(M_PI)
vector & pi()
Return non-const access to angular momentum.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const tensor & Q0() const
Return the orientation at previous time-step.
void updateAcceleration(const vector &fGlobal, const vector &tauGlobal)
Update and relax accelerations from the force and torque.
sixDoFRigidBodyMotion & body_
The rigid body.
const point & centreOfRotation0() const
Return the centre of rotation at previous time-step.
const vector & a0() const
Return the acceleration at previous time-step.
const vector & tau0() const
Return the torque at previous time-step.
void updateConstraints()
Update the constraints to the object.
vector & a()
Return non-const access to acceleration.
Tensor of scalars, i.e. Tensor<scalar>.
vector & tau()
Return non-const access to torque.
scalar aDamp() const
Acceleration damping coefficient (for steady-state simulations)
const vector & v0() const
Return the velocity at previous time-step.