scalar m() const
Return the mass of the rigid-body.
rigidBodyInertia()
Null constructor, initializes to zero.
const vector & c() const
Return the centre of mass of the rigid-body.
rigidBody(const word &name, const scalar &m, const vector &c, const symmTensor &Ic)
Construct from mass, centre of mass and moment of inertia tensor.
cuboid(const word &name, const scalar m, const vector &c, const vector &L)
Construct from name, mass, centre of mass and lengths of the sides.