Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 614 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 614 Bytes

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 ./vibrations.py

To see all options:

python ./vibrations.py -h

Saving as a video

python ./vibrations.py -o vibrations.mp4