Main Content

Mass-Spring-Damper in Simulink and Simscape

This example compares a mass-spring-damper model that uses Simscape™ blocks and physical connections to a model that uses Simulink® blocks and signals.

The Simulink model uses signal connections, which define data flows between blocks. The Simscape model uses physical connections, which permit bidirectional flows of energy between components. Using physical connections, you can add stages to the mass-spring-damper by copying and pasting components. Using input/output connections requires rederiving and reimplementing the equations.

The initial deflection for the spring is 1 m, shown in the block annotations for the Spring and one of the Integrator blocks.

Model

Simulation Results from Simscape Logging

See Also

Topics