Main Content

simscape.multibody.Cylinder Class

Namespace: simscape.multibody
Superclasses: simscape.multibody.Geometry

Create cylindrical geometry

Since R2022a

Description

Use an object of the simscape.multibody.Cylinder class to represent cylindrical geometry. To specify the dimensions of the geometry, use the Radius and Length properties. The reference frame of the cylinder is located at the centroid of the cylinder, and the axis of the cylinder is aligned with the z-axis of the reference frame.

Example of cylindrical geometry

Class Attributes

Sealed
true
ConstructOnLoad
true
RestrictsSubclassing
true

For information on class attributes, see Class Attributes.

Creation

Description

cylinder = simscape.multibody.Cylinder creates a cylindrical geometry with default values.

cylinder = simscape.multibody.Cylinder(radius,length) creates a cylindrical geometry with the specified radius and length.

Properties

expand all

Radius of the cylindrical geometry, specified as a simscape.Value object that represents a scalar with a unit of length.

Cylinder with an arrow representing the radius

Example: simscape.Value(10, "mm")

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Length of the cylindrical geometry, specified as a simscape.Value object that represents a scalar with a unit of length. The length of the cylinder is aligned with the z-axis of the reference frame.

Cylinder with line indicating the length

Example: simscape.Value(30,"mm")

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Version History

Introduced in R2022a