Ball in Tube Spring Model

This model contains all equations of the Ball in Tube Model except for one single change: The dynamics of the ball bouncing back up once it falls to the ground.

Instead of overriding the ball’s position and speed once the ball falls below the fan, the fourth system equation is overwritten by an extended version

\dot{x}_4 = \frac{K x_3}{m} - \frac{D x_4}{m} + \frac{k_L}{m}\left(\frac{k_V x_1 - A_B x_4}{A_{Sp}}\right)^2-g .

This inserts a spring with the stiffness K and the damping D on the ground of the tube.