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