PPolySim OS

Particle / N-Body Simulator

Simulate gravity, orbital mechanics, and impulse-based collisions in real time. Switch between an orbital system and a colliding gas, and watch kinetic energy evolve.

Particle / N-Body StudioLive

Controls

Presets

▶ Run in Python

Data Inspector

Bodies0
Kinetic energy0.00e+0
Mean speed0.0
Max speed0.0

Governing equation

Reading this result: Moderate mutual gravity (G=60) lets the 120 bodies form loose orbiting structures instead of collapsing outright.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

This engine integrates Newtonian mechanics with a semi-implicit (symplectic) Euler scheme and resolves circle–circle collisions with impulse-based response and positional correction. Pairwise gravity uses softening to avoid singularities, so orbits stay stable over long runs.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Physics simulations

Frequently asked questions

Is this particle simulation tool really free?
Yes. Particle / N-Body Simulator runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.