35 return body_.motionState_.
Q();
40 return body_.motionState_.
v();
45 return body_.motionState_.
a();
66 return body_.motionState0_.
Q();
72 return body_.motionState0_.
v();
78 return body_.motionState0_.
a();
84 return body_.motionState0_.
pi();
100 return body_.tConstraints_;
105 return body_.rConstraints_;
117 return body_.rotate(Q0, pi, deltaT);
127 body_.updateAcceleration(fGlobal, tauGlobal);
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.
const vector & a() const
Return access to acceleration.
A 2-tuple for storing two objects of different types.
const vector & v() const
Return access to velocity.
const vector & tau() const
Return access to torque.
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.
const vector & pi() const
Return access to angular momentum.
vector & pi()
Return non-const access to angular momentum.
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 tensor & Q() const
Return access to the orientation.
const vector & tau0() const
Return the torque at previous time-step.
vector & a()
Return non-const access to acceleration.
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.