Skip to main content
This page was machine-translated and may contain errors or omissions.

2D Simulation

How to use

What it does

Simulates several classic physical systems on a 2D plane: pendulum motion, the chaotic trajectory of the Lorenz attractor, gravitational interaction between multiple bodies, and the path distribution of a random walk. Each runs with adjustable parameters in real time, which helps make concrete ideas like sensitivity to initial conditions in chaos, or how damping decays an oscillation.

How to use it

Tabs at the top switch between pendulum, Lorenz, gravity and random walk. The pendulum takes an initial angle you can drag plus gravity and damping coefficients; the Lorenz simulation responds to parameter changes where a tiny difference produces a completely different path; gravity lets you click the canvas to add a new mass; the random walk takes a step count and can overlay the previous run for comparison.

FAQ

Which simulations does the tab bar include?

Eleven: double pendulum, Lorenz attractor, reaction-diffusion, a gravity particle sandbox, random walk, falling-sand fluid, projectile motion, light refraction, lens imaging, an ant colony and a bee swarm.

How do I control the gravity sandbox?

Left-drag sprays particles, a quick click triggers an explosion, and holding the right button attracts particles to the cursor; touch screens support the same gestures. The particle cap is 2000.

What do the feed and kill sliders do in the reaction-diffusion tab?

They are the Gray-Scott feed and kill rates; different combinations grow visibly different stripe and dot patterns, and Reseed re-randomizes the starting blobs.