Specialization of rigidBody to construct a sphere given the mass and radius.
defineTypeNameAndDebug(cuboid, 0)
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual autoPtr< rigidBody > clone() const
Return clone of this sphere.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
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.
addToRunTimeSelectionTable(rigidBody, cuboid, dictionary)