View Model Statistics

This example shows how you can use model statistics to determine the effect of a change on model complexity.

  1. Open the Simple Mechanical SystemSimple Mechanical System example model.

  2. To view model statistics, in the top menu bar of the model window, select Analysis > Simscape > Statistics Viewer.

    The Simscape Statistics window opens, displaying the name of the model and an overview of the models statistics in a collapsed state.

  3. Click to expand all nodes.

    You can see that, after variable elimination, the model contains seven continuous differential variables, no algebraic variables, no discrete variables, and no zero-crossing signals.

  4. Replace the Translational Damper block D in the model diagram with a Translational Friction block, as shown in the following figure.

  5. Select Analysis > Simscape > Statistics Viewer to refresh the model statistics.

    The revised model contains six algebraic variables, seven differential variables, and three zero-crossing signals. This happened because you replaced a linear block (Translational Damper) with a nonlinear one (Translational Friction). Therefore the linear optimization that the solver initially performed on the model no longer applies.

Related Examples

More About

Was this topic helpful?