simscape.multibody.ExternalForceTorqueDictionary Class
Namespace: simscape.multibody
Description
Use an object of the simscape.multibody.ExternalForceTorqueDictionary
class
to store external forces and torques to apply to a compiled multibody model. This object
functions like a dictionary in that you can store the forces and torques and their
corresponding frame connectors as key-value pairs. The keys are the paths to the frame
connectors, appended with the letter f
for force or t
for torque, respectively. To construct external forces and torques, use these classes:
Class Attributes
Sealed | true |
ConstructOnLoad | true |
RestrictsSubclassing | true |
For information on class attributes, see Class Attributes.
Creation
Description
creates an external force and torque dictionary.dict
= simscape.multibody.ExternalForceTorqueDictionary
You can use dict(keys) = Values
to pair an external force or torque
with the path of corresponding frame connector as the key-value pair. If you assign
multiple values to the same key, the last value you assign overwrites the previous values
of the key.
Examples
Version History
Introduced in R2025a