Go to the documentation of this file.
67 os.writeEntry(
"type",
type());
68 os.writeEntry(
"mass", m());
69 os.writeEntry(
"L",
L());
const vector L(dict.get< vector >("L"))
cuboid(const word &name, const scalar m, const vector &c, const vector &L)
Specialization of rigidBody to construct a cuboid given the mass and lengths of the sides.
defineTypeNameAndDebug(cuboid, 0)
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
virtual void write(Ostream &) const
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,...
addToRunTimeSelectionTable(rigidBody, cuboid, dictionary)