addToRunTimeSelectionTable(rigidBody, cuboid, dictionary)
virtual autoPtr< rigidBody > clone() const
Return clone of this sphere.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
virtual ~sphere()
Destructor.
defineTypeNameAndDebug(cuboid, 0)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
Specialization of rigidBody to construct a sphere given the mass and radius.