GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WookieLumberjack/vibration-tutorial: Interactive real-time vibration tutorial: lumped mass-spring-damper chain with live modal analysis

BranchesTags
Open more actions menu

Latest commit

 

History

1,199 Commits
1,199 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
examples
examples
 
 
native
native
 
 
packaging
packaging
 
 
scripts
scripts
 
 
src/vib_tutorial
src/vib_tutorial
 
 
tests
tests
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.python-version
.python-version
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Vibration Tutorial

An interactive, real-time teaching tool for multi-degree-of-freedom mechanical vibration. It simulates a chain of lumped masses connected by springs and dampers, animates the motion, and shows the modal-analysis solution for reference, all updating live while you change parameters.

Disclaimer: This entire project was created with Claude Code. It is for educational use only, with no warranty, and its results are not guaranteed to be technically correct (see Disclaimer and license).

ground ──[k1,c1]── m1 ──[k2,c2]── m2 ──[k3,c3]── m3 ──[k4,c4]── m4

Main window: a harmonic force tuned to mode 2 drives the chain; the modal table and mode shapes are on the right

Who it's for

Engineering students from about the third year of a degree, and engineers who want a refresher or a place to try things out. The course assumes calculus and linear differential equations, complex numbers (eiωt, a response's size and phase as one complex number), and matrices with their eigenvalues and eigenvectors. The Laplace and Fourier transforms, Lagrange's equations and the statistics of random signals are introduced on the pages that first use them. Criteria quoted from standards (API, ISO, ASTM, the Eurocodes) come with their edition and are for teaching, not design.

Quick start

Standalone builds for Windows, macOS (Apple Silicon) and Linux, which need no Python install, are on the Releases page. They aren't code-signed, so the system warns the first time you open one:

  • Windows: unzip and run vib-tutorial\vib-tutorial.exe. If SmartScreen says "Windows protected your PC", click More info → Run anyway.
  • macOS: unzip to get Vibration Tutorial.app. If macOS says the app "is damaged" or "can't be opened", run xattr -dr com.apple.quarantine "Vibration Tutorial.app" in Terminal once, then open it.
  • Linux: unpack the .tar.gz and run vib-tutorial/vib-tutorial (needs an X11 or Wayland desktop).

To run from source instead, you need uv and a Rust toolchain (uv builds the app's Rust kernels, in native/, on the first sync).

uv sync               # create .venv and install dependencies
uv run vib-tutorial   # launch the app (or: uv run python -m vib_tutorial)
uv run pytest         # run the tests
uv run ruff check     # lint (and `uv run ruff format` to format)
uv run mypy           # type-check
uvx pre-commit install  # run ruff and mypy before each commit

Contents

The course runs through 11 groups of pages, in the order the app's tabs take them: each page uses only ideas from the pages before it.

One oscillator

  • Single oscillator: one mass on a spring and a damper: free decay, resonance, half-power, beats, poles, and the damper's law: viscous, hysteretic, friction, viscoelastic
  • Pendulums: gravity as the spring, large swings that soften, and the rotational form of every one-mass formula
  • Vibration isolation: a machine on mounts: transmissibility, static deflection, damping, two stages, start-up
  • Forcing an oscillator: hits, pushes, pulses and periodic forces on the live mass: the impulse response, convolution, the Laplace transform, pulse spectra, Fourier series and resonance through a harmonic

Equations

  • Deriving the equations: free-body diagrams against Lagrange's equations: a disc rolling on a sliding block, and a double pendulum
  • Coordinates & bases: two masses whose motion is a point in a plane: any basis, the coupling it brings, the modes that remove it, and Rayleigh's quotient from one arrow
  • State-space modes: the same two masses in x and ẋ together: a basis of the state that uncouples any dampers, its modes' spirals and complex shapes
  • 3D rigid body: a body tumbling in space: its inertia tensor, principal axes, Euler's equations and the intermediate-axis flip

Modes

  • Simulation & modal analysis: one mass, then a chain of them: modes, damping, energy, forcing, absorbers, friction
  • Energy methods: Rayleigh, Dunkerley, Rayleigh–Ritz and Holzer: frequencies from the energies, and how good they are
  • FRF matrix: every receptance Hjk, and how the modes add up to it
  • Complex modes: when damping makes the modes complex, and what the usual approximation misses
  • Rigid body on mounts: a machine on four mounts in 3D: six coupled modes, the elastic center, and decoupling by tilting them

Building models

  • Modal coupling: two parts joined, one mode each: when their modes split
  • Substructuring (CMS): a chain reduced to a few modes per part, and back
  • Numerical integration: central difference, Newmark, HHT-α and Runge–Kutta against the exact update: stability, period error, numerical damping

Continuous systems

  • Continuous systems: a string, a bar or a beam cut into a chain: which of its modes to trust
  • Beams & plates: Timoshenko's thick beam, a plate's modes and nodal lines, and modal density
  • Frame builder: build a frame or truss from beams, bars and springs: assembly, supports, modes

Signals and random

  • Signals & spectra: sampling, aliasing, leakage, windows and averaging, and the transducers that make the signals
  • Random vibration: a random force or base: the response's spectrum, RMS and peaks

Rotating machines

  • Gyroscope: a spinning top: Euler's equations, steady precession, nutation and the sleeping top
  • Torsional vibration: a drive train of disks, shafts and gears, and its start-up
  • Jeffcott rotor: a spinning shaft: critical speeds, balancing, bearings, stability, rub
  • Rotor builder: build a rotor from shafts, disks, bearings and seals: its whirl modes, criticals and stability
  • Machinery diagnostics: order tracking under a run-up, gear-mesh sidebands, bearing defects by the envelope, and the cepstrum

Testing

  • Virtual modal test: measuring the FRF from force and response signals, and fitting modes
  • Model updating: comparing a model with a test, and correcting it
  • Operational modal analysis: the modes from the responses alone, the forces unknown
  • Test planning: where to put the sensors, and what the structure does as it runs
  • Variability & localization: scatter in the chain's properties by Monte Carlo, and modes localized in a mistuned ring of blades

Environments

  • Shock spectrum: a short pulse on a bank of oscillators, and on the chain
  • Quarter-car: a suspension on an ISO 8608 road: comfort, grip and travel from the road's PSD
  • Fatigue: a random stress counted by rainflow: S–N curves, Miner's rule, narrow-band and Dirlik estimates
  • Vibro-acoustics & SEA: a panel's sound: radiation efficiency, coincidence, the mass law, and energy flow between parts

Nonlinear and flow

  • Duffing & Mathieu: a nonlinear spring: jumps, chaos, and parametric resonance
  • Fluid–structure: a body in water: added mass of spheres, cylinders, tubes in pipes and plates, wet against dry
  • Self-excited vibration: negative damping and limit cycles: van der Pol, galloping, vortex-induced vibration and flutter

Control

  • Active control: velocity feedback, collocation, spillover and actuator lag, against a tuned mass damper

Appendix

  • Seismic response: the chain as a building: a design spectrum, effective modal mass, and ABS, SRSS and CQC against records
  • Nonlinearity & forces: is the structure linear (levels, sweeps, harmonics), and which force made a response

Reference

  • The window: the panes, the tabs, the Theory and Practice windows, and the themes
  • The math, briefly: the equations behind the Simulation page
  • Code layout: the modules, the Rust kernels, and scripting the core
  • Contributing: setting up, the checks before a pull request, and adding a page
  • Changelog: what changed in each release

Disclaimer and license

This software is provided for educational purposes only. It was written with an AI coding assistant, Claude Code, and although it has an automated test suite, its results are not guaranteed to be technically correct: the simulations, modal analysis, substructuring, identification and theory notes may contain errors. Validate any calculation independently (by hand, with established references or with qualified software) before relying on it, and do not use it for design, certification, safety-related or other engineering decisions.

The software is provided "as is", without warranty of any kind, express or implied, including the warranties of merchantability, fitness for a particular purpose and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability arising from the software or its use.

Released under the MIT License. Copyright (c) 2026 WookieLumberjack.

About

Interactive real-time vibration tutorial: lumped mass-spring-damper chain with live modal analysis

Topics

educationmechanical-engineeringmodal-analysispyqtgraphpyside6pythonsimulationstructural-dynamicssubstructuringvibration

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.