104 inline const vector&
L()
const;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Specialisation of rigidBody to construct a cuboid given the mass and lengths of the sides.
virtual tmp< vectorField > sectionMu1s(const direction axis, const scalarField &distances) const
Return the first moments of the sections of the body between.
virtual void write(Ostream &) const
Write.
virtual ~cuboid()
Destructor.
TypeName("cuboid")
Runtime type information.
virtual tmp< symmTensorField > sectionMu2s(const direction axis, const scalarField &distances) const
Return the second moments of the sections of the body between.
virtual autoPtr< rigidBody > clone() const
Return clone of this cuboid.
cuboid(const word &name, const scalar m, const vector &c, const vector &L)
Construct from name, mass, centre of mass and lengths of the sides.
virtual tmp< scalarField > sectionMu0s(const direction axis, const scalarField &distances) const
Return the zeroth moments of the sections of the body between.
const vector & L() const
Return the lengths of the sides of the cuboid.
const vector & c() const
Return the centre of mass of the rigid-body.
scalar m() const
Return the mass of the rigid-body.
const word & name() const
Return name.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for managing temporary objects.
A class for handling words, derived from string.