drod31 / vibrations

Mechanical Vibrations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Mechanical Vibrations


Languages

Language:Python 100.0%