Skip to content

stefanv/vibrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages