104 inline const vector&
L()
const;
TypeName("cuboid")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const word & name() const
Return name.
scalar m() const
Return the mass of the rigid-body.
virtual ~cuboid()
Destructor.
const vector & c() const
Return the centre of mass of the rigid-body.
A class for handling words, derived from string.
Specialization of rigidBody to construct a cuboid given the mass and lengths of the sides...
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const vector & L() const
Return the lengths of the sides of the cuboid.
virtual autoPtr< rigidBody > clone() const
Return clone of this cuboid.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.