Mass m = 1.0 kg and gravity g = 9.81 m/s² are fixed. Simulation runs 0 to 10 s with dt = 1 ms. Stick-slip requires μ_s > μ_k, so μ_k is automatically clamped below μ_s.
top: schematic (mass + spring + pull arrow) / middle: blue = mass position x(t), grey = pulling end v·t (staircase stick + abrupt slip) / bottom: orange = spring force F(t), red dashed = static break-away threshold F_s
Stick-slip is a self-excited vibration of a dry-friction system in which the spring end is pulled at constant velocity, supplying energy continuously. The motion alternates periodically between stick and slip phases.
Spring force (difference between pulling-end v·t and mass position x) and slip-phase equation of motion:
$$F(t) = k\,(v\,t - x),\qquad m\,\ddot{x} = k\,(v\,t - x) - \mu_k\,m\,g\,\mathrm{sgn}(\dot{x})$$Stick-to-slip transition and re-stick condition:
$$|F| > \mu_s\,m\,g \;\Rightarrow\; \text{slip},\qquad \dot{x} \to 0 \;\wedge\; |F| \le \mu_s\,m\,g \;\Rightarrow\; \text{stick}$$Jump amplitude and stick duration (simplified):
$$\Delta x \approx \frac{2(\mu_s - \mu_k)\,m\,g}{k},\qquad t_\text{stick} = \frac{\mu_s\,m\,g}{k\,v}$$Slip duration (half-cycle approximation) and oscillation frequency:
$$t_\text{slip} \approx \frac{\pi}{\omega_n},\qquad \omega_n = \sqrt{k/m},\qquad f = \frac{1}{t_\text{stick} + t_\text{slip}}$$