This example shows two models of a double 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 each spring is 1 meter. This is shown in the block annotations for Spring1 and Spring2. The annotations on the Integrator blocks show the initial positions of the masses relative to a single fixed point in space.