Main Content

simscape.multibody.UniformMass class

Package: simscape.multibody
Superclasses: simscape.multibody.Inertia

Construct uniform mass distribution with given total mass

Description

Use an object of the simscape.multibody.UniformMass class to construct a uniform mass distribution with a given total mass. If you use a UniformMass object to define the mass distribution of a solid, the solid has a constant density over the entire geometry. The density is equal to the given total mass divided by the volume of the solid. To compute the properties of a solid, such as center of mass, moments of inertia, and products of inertia, the UniformMass object uses the geometry and mass of the solid.

Class Attributes

Sealed
true
ConstructOnLoad
true
RestrictsSubclassing
true

For information on class attributes, see Class Attributes.

Creation

Description

umass = simscape.multibody.UniformMass constructs a uniform mass distribution with default values.

umass = simscape.multibody.UniformMass(mass) constructs a uniform mass distribution with the specified total mass.

Properties

expand all

Total mass, specified as a simscape.Value object that represents a scalar with a unit of mass. The scalar can be positive or negative. Use a negative value to capture the effect of a void or cavity in a compound body that comprises multiple solids. The total mass of the compound body must be positive.

Example: simscape.Value(16,"lbm")

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Version History

Introduced in R2022a