Main Content

simscape.multibody.ExternalTorque Class

Namespace: simscape.multibody

Construct external torque

Since R2025a

Description

Use an object of the simscape.multibody.ExternalTorque class to construct an external torque that you can apply to a frame connector in a compiled multibody system.

Class Attributes

Sealed
true
ConstructOnLoad
true
RestrictsSubclassing
true

For information on class attributes, see Class Attributes.

Creation

Description

torque = simscape.multibody.ExternalTorque constructs an external torque of [0 0 0] N*m resolved about the axes of the frame to which the torque applies.

torque = simscape.multibody.ExternalTorque(value,ResolutionFrame) constructs an external torque with the specified value resolved about the axes of the resolution frame.

Input Arguments

expand all

Torque, specified as a simscape.Value object that represents a 3-by-1 or 1-by-3 array with a unit of torque.

Frame to resolve the applied torque, specified as either Attached or World. Attached refers to the frame connector to which you apply this torque, while World refers to the world frame.

Examples

Create External Torque

Create an external torque that has a value of [3 2 2] N*m resolved about the axes of the world frame.

torque = simscape.multibody.ExternalTorque(simscape.Value([3 2 2],"N*m"),"World")
torque = 

  ExternalTorque

  Resolution Frame: World

  Value: [3 2 2] : N*m

Version History

Introduced in R2025a