- Summary
- A mass of constant velocity colliding on spring is modeled in simulink. Result expected was to be of sinusoidal displacement of spring. However result found was different.

I am new to Simulink and I wanted to start practicing using a spring mass damper system. My first tutorial was this:

Later, I wanted to model a spring system where a mass moving at a known velocity hits the spring. The governing equation and a similar modeling method given in the previous youtube link was also prepared:

Here is the Matlab Simulink model:

The result I expected was a sinusoidal displacement of the spring. However the result was totally different:

If someone can tell what exactly is my mistake and the correction, that will be of huge help. Thanks.

Later, I wanted to model a spring system where a mass moving at a known velocity hits the spring. The governing equation and a similar modeling method given in the previous youtube link was also prepared:

Here is the Matlab Simulink model:

The result I expected was a sinusoidal displacement of the spring. However the result was totally different:

If someone can tell what exactly is my mistake and the correction, that will be of huge help. Thanks.