simscape.multibody.DynamicsResult Class
Namespace: simscape.multibody
Description
Use an object of the simscape.multibody.DynamicsResult
class to store the
dynamics results of a multibody model.
After you create a DynamicsResult
object, subsequent changes to the
assembly, the state of joints, or the actuation forces or torque do not affect the
DynamicsResult
object. To capture these changes, create a new
DynamicsResult
object.
Use the DynamicsResult
object to query the dynamics results, such as the
accelerations of the joint primitives. You can use a DynamicsResult
object
with only the simscape.multibody.CompiledMultibody
object that you used to create the
DynamicsResult
object. Passing a DynamicsResult
object to
a method of a different CompiledMultibody
object generates an error.
Class Attributes
Sealed | true |
ConstructOnLoad | true |
RestrictsSubclassing | true |
For information on class attributes, see Class Attributes.
Creation
To create a simscape.multibody.DynamicsResult
object for a compiled
multibody system, use the computeDynamics
method.
Examples
Version History
Introduced in R2024a