For Educators · Particle-Mesh N-Body
Particle-Mesh N-Body for a mass on a spring
Built for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs. Simulate a mass on a spring live below — adjust the inputs and watch it respond, right in your browser.
GPU N-Body — Particle Mesh (WebGPU)Live
mass deposit · Poisson solve · gradient push
Controls
The particle-mesh method scales to 100k+ bodies by solving gravity on a grid instead of pair-by-pair.
Data Inspector
Backendstarting…
Bodies65,536
Grid160×160
ComplexityO(N + G²·iters)
FPS—
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
Also for:StudentsResearchersEngineersHobbyists & MakersK-12 StudentsFirst RespondersGeneral version →
More with Particle-Mesh N-Body
Particle-Mesh N-Body for a projectile from a cannonParticle-Mesh N-Body for a bouncing ballParticle-Mesh N-Body for a pendulum clockParticle-Mesh N-Body for a car brakingParticle-Mesh N-Body for a roller-coaster loopParticle-Mesh N-Body for a satellite orbitParticle-Mesh N-Body for a skydiver's free fallParticle-Mesh N-Body for a two-cart collision
Frequently asked questions
- Is this good for educators?
- Yes — this version of "Particle-Mesh N-Body for a mass on a spring" is framed for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.