Mechanical Vibrations
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Mechnical vibrations simulator

This script illustrates mechnical vibrations, described by

mu'' + yu' + ku = F cos(wt).

Modelled as a mass attached to a spring and a dash pot, m is the mass, y the damping from the dash pot, k the restoring force of the spring, F the driving force and w the frequency.

This demo is inspired by a series of blog posts on John Cook's Endeavour.

How to run

python ./

To see all options:

python ./ -h

Saving as a video

python ./ -o vibrations.mp4