70 inline symmTensor I(
const scalar
m,
const scalar
r)
const;
108 inline scalar
r()
const;
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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 Foam::string.
virtual ~sphere()
Destructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
sphere(const word &name, const scalar m, const vector &c, const scalar r)
Construct from name, mass, centre of mass and radius.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...