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...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Specialization of rigidBody to construct a sphere given the mass and radius.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.