Contenuto principale

simscape.multibody.UniformSolid Class

R2026b

Namespace: simscape.multibody
Superclasses: simscape.multibody.Component

Solid with specified geometry and uniform density

Since R2026b

Description

Use an object of the simscape.multibody.UniformSolid class to model a solid body with a specified geometry and uniform density. The object computes the mass distribution from the geometry and density. The solid has a reference frame R that defines the origin and orientation for the geometry.

Class Attributes

Sealed
true
ConstructOnLoad
true

For information on class attributes, see Class Attributes.

Creation

Description

solid = simscape.multibody.UniformSolid creates a uniform solid with default property values.

solid = simscape.multibody.UniformSolid(geometry,density) creates a uniform solid with the specified geometry and density.

example

Properties

expand all

Density of the solid, specified as a simscape.Value object that must have a scalar and density unit.

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

The reference frame connector on this component, returned as the string R. Use this frame connector to connect this object to other components.

Methods

expand all

Examples

collapse all

This example shows how to create a solid with uniform density using a brick geometry and an aluminum density.

Create a brick geometry for the solid with dimensions [0.1 0.05 0.02] m.

brick = simscape.multibody.Brick(simscape.Value([0.1 0.05 0.02],"m"));

Create a solid with uniform density using the brick geometry and a density of 2700 kg/m^3, which corresponds to aluminum.

solid = simscape.multibody.UniformSolid(brick,simscape.Value(2700,"kg/m^3"))
solid =
  UniformSolid with properties:

           Geometry: [1x1 simscape.multibody.Brick]
            Density: 2700 (kg/m^3)
    FrameConnectors: "R"

Version History

Introduced in R2026b