Python animation for mechanical vibrations

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.

Tagged with:
Posted in Python
One comment on “Python animation for mechanical vibrations
  1. Bart Jongejan says:

    The uncoiled ends stretch as much as the coiled part, so what is the idea with coiling?

1 Pings/Trackbacks for "Python animation for mechanical vibrations"
  1. [...] And here is a video of the mass-spring-dashpot system in action made using the code discussed here. [...]