Main Content

simscape.multibody.UniformDensity Class

Namespace: simscape.multibody
Superclasses: simscape.multibody.Inertia

Construct uniform mass distribution with given density

Since R2022a

Description

Use an object of the simscape.multibody.UniformDensity class to construct a uniform mass distribution with a given density. If you define the mass distribution of a solid by using a UniformDensity object, the solid has a constant density over the entire geometry. To compute the properties of a solid, such as the center of mass, moments of inertia, and products of inertia, the UniformDensity 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

udmass = simscape.multibody.UniformDensity constructs a uniform mass distribution with default values.

udmass = simscape.multibody.UniformDensity(density) constructs a uniform mass distribution with the specified density.

Properties

expand all

Density, specified as a simscape.Value object that represents a scalar with a unit of density.

Example: simscape.Value(2700,"kg/m^3")

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Version History

Introduced in R2022a