67 os.writeEntry(
"type",
type());
68 os.writeEntry(
"mass", m());
69 os.writeEntry(
"radius", r());
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.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual ~sphere()
Destructor.
defineTypeNameAndDebug(cuboid, 0)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
sphere(const word &name, const scalar m, const vector &c, const scalar r)
Construct from name, mass, centre of mass and radius.