The lab · 19 simulations · 6 domains

Physics you can touch

Every entry is a running program: written in Rust, compiled to WebAssembly, computed live in your browser. Open one, change the parameters, break it.

01Orbits and gravity

6 simulations
Three-body problem Three equal masses, no closed solution, quickly chaotic. Leapfrog Figure-eight orbit Three bodies chasing each other along one shared figure eight. Leapfrog Sun, Earth and Moon A moon orbiting a planet orbiting a star, to scale in time. Leapfrog Lagrange points The five points where a small body can ride along with two large ones. Leapfrog Galaxy collision Two disk galaxies merging, with tidal tails. Leapfrog Projectile motion Throwing parabolas, with and without air drag. Velocity Verlet

02Chaos and oscillators

9 simulations
Double pendulum Two linked pendulums, the classic picture of chaos. Runge-Kutta 4 Pendulum One pendulum, beyond the small-angle approximation. Runge-Kutta 4 Magnetic pendulum Which of three magnets does it settle on? A fractal answer. Runge-Kutta 4 Kapitza pendulum Shake the pivot fast enough and the pendulum stands upside down. Runge-Kutta 4 Lorenz attractor Three equations from convection, and the butterfly effect. Runge-Kutta 4 Van der Pol oscillator Self-sustained oscillation settling onto a limit cycle. Runge-Kutta 4 Standard map A kicked rotor, islands of order in a chaotic sea. Iterated map Phase portraits Draw any 2D system and watch its flow. ODE Lissajous figures Two perpendicular oscillations and their ratio. Runge-Kutta 4

03Patterns and reaction-diffusion

1 simulation
Gray-Scott Two chemicals producing spots, stripes and dividing cells. Reaction-diffusion

04Cellular automata

1 simulation
Game of Life Conway's four rules and everything that grows from them. Cellular automaton

05Collective behavior

1 simulation
Boids Flocking from three local rules. Agent-based

06Waves, fields and quantum

1 simulation
Double slit Two openings, one interference pattern. Field solver