Documentation

Mass-Spring-Damper in Simulink and Simscape

This example shows two models of a mass-spring-damper, one using Simulink® input/output blocks and one using Simscape™ physical networks.

The Simulink model uses signal connections, which define how data flows from one block to another. The Simscape model uses physical connections, which permit a bidirectional flow of energy between components. Physical connections make it possible to add further stages to the mass-spring-damper simply by using copy and paste. Input/output connections require rederiving and reimplementing the equations.

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

Model

Simulation Results from Simscape Logging

Was this topic helpful?