64 const scalar
m(
dict.get<scalar>(
"mass"));
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
scalar m() const
Return the mass of the rigid-body.
rigidBodyInertia()
Null constructor, initializes to zero.
scalar r() const
Return the radius of the sphere.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static const Identity< scalar > I
const vector & c() const
Return the centre of mass of the rigid-body.
A class for handling words, derived from Foam::string.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
sphere(const word &name, const scalar m, const vector &c, const scalar r)
Construct from name, mass, centre of mass and radius.
const dimensionedScalar c
Speed of light in a vacuum.