Go to the documentation of this file.
67 os.writeEntry(
"type",
type());
68 os.writeEntry(
"mass", m());
69 os.writeEntry(
"radius", r());
Specialization of rigidBody to construct a sphere given the mass and radius.
defineTypeNameAndDebug(cuboid, 0)
virtual void write(Ostream &) const
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
virtual autoPtr< rigidBody > clone() const
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)
addToRunTimeSelectionTable(rigidBody, cuboid, dictionary)