Main Content

computeDynamics

Class: simscape.multibody.CompiledMultibody
Namespace: simscape.multibody

Compute dynamics results of multibody model

Since R2024a

Description

dynamicsResult = computeDynamics(cmb,state,jointActuation) computes the dynamics results of the multibody model, cmb, with the state, state, and the given joint actuations, jointActuation. For an example on how to solve dynamics problems of a multibody model, see Examples.

Input Arguments

expand all

Compiled multibody system, specified as a simscape.multibody.CompiledMultibody object.

State of the compiled multibody system, specified as a simscape.multibody.State object. The state object includes the position and velocity of every joint primitive in the compiled multibody system.

Joint primitive actuations, specified as a simscape.multibody.JointActuationDictionary object. The JointActuationDictionary object stores the forces and torque to apply to the desired joint primitives in the compiled multibody system.

Output Arguments

expand all

Dynamics results of the multibody model, returned as a simscape.multibody.DynamicsResult object. You can use the DynamicsResult object to query the dynamics results, such as the accelerations of desired joint primitives.

Attributes

Accesspublic

To learn about attributes of methods, see Method Attributes.

Version History

Introduced in R2024a