simscape.multibody.ExternalForce Class
Namespace: simscape.multibody
Description
Use an object of the simscape.multibody.ExternalForce
class to construct an
external force 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
constructs an external force of force
= simscape.multibody.ExternalForce[0 0 0]
N
resolved along the axes of the frame to which the force
applies.
constructs an external force with the specified value that is resolved along the axes of
the specified resolution frame.force
= simscape.multibody.ExternalForce(value
,ResolutionFrame
)
Input Arguments
Examples
Create External Force
Create an external force that has a value of 5
N
resolved along the x
-direction of the world
frame.
force = simscape.multibody.ExternalForce(simscape.Value([5 0 0],"N"),"World")
force = ExternalForce Resolution Frame: World Value: [5 0 0] : N
Version History
Introduced in R2025a