Go to the documentation of this file.
36 const scalar mBy12 =
m/12.0;
37 const scalar mSqrLx = mBy12*
sqr(
L.
x());
38 const scalar mSqrLy = mBy12*
sqr(
L.
y());
39 const scalar mSqrLz = mBy12*
sqr(
L.
z());
43 mSqrLy + mSqrLz, 0, 0,
74 const scalar m(
dict.get<scalar>(
"mass"));
const vector L(dict.get< vector >("L"))
const Cmpt & x() const
Access to the vector x component.
A class for handling words, derived from Foam::string.
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.
const Cmpt & z() const
Access to the vector z component.
const vector & L() const
Return the lengths of the sides of the cuboid.
scalar m() const
Return the mass of the rigid-body.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Vector< scalar > vector
A scalar version of the templated Vector.
const Cmpt & y() const
Access to the vector y component.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionedScalar c
Speed of light in a vacuum.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static const Identity< scalar > I