void merge(const subBody &)
Merge a body into this parent body.
TypeName("rigidBody")
Runtime type information.
This specialized rigidBody holds the original body after it has been merged into a master.
virtual autoPtr< rigidBody > clone() const
Return clone of this rigidBody.
virtual bool massless() const
Return false as this body is not massless.
scalar m() const
Return the mass of the rigid-body.
virtual void write(Ostream &) const
Write.
const word & name() const
Return name.
friend Ostream & operator<<(Ostream &, const rigidBody &)
const symmTensor & Ic() const
Return the inertia tensor of the rigid-body about the centre of mass.
declareRunTimeSelectionTable(autoPtr, rigidBody, dictionary,(const word &name, const dictionary &dict),(name, dict))
rigidBody(const word &name, const scalar &m, const vector &c, const symmTensor &Ic)
Construct from mass, centre of mass and moment of inertia tensor.
static autoPtr< rigidBody > New(const word &name, const scalar &m, const vector &c, const symmTensor &Ic)
Select constructed from components.
const vector & c() const
Return the centre of mass of the rigid-body.