Stéfan van der Walt wrote some Python code to animate the system described in yesterday’s post on mechanical vibrations.
Stéfan posted his code on github. It currently illustrates undamped free vibrations, but could be modified to work with damped or driven vibrations.
The code includes an option to save the output as an mp4 file. You must have ffmpeg installed to save a matplotlib animation as mp4.
The uncoiled ends stretch as much as the coiled part, so what is the idea with coiling?