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