Cosmoscalibrating field
FORMpaused · 60 fps
a living field of charges
N0
kT0
ms0
t0

Cosmos — interactive physics simulation hub

Physics simulation hub
One swarm. Every law.

Every simulation is the same swarm of charges obeying different laws. Scroll to change the physics — or open the lab and take the controls.

7laws of motion
76physics labs
9kmax charges
60fps target
Begin the descentOpen the lab ⌁76 Physics Labs ↓
Move to disturbHold to attractRelease to burstPress ? for keys
01 · Gravitation

Every point pulls on every other.

Law
F = −G·M·m / r²
Ω(r) = √(GM / r³) ∝ r^−3/2

Orbits wind tight near the centre and drift wide at the edge — Kepler’s shear, live. The spiral arms are density waves, not rigid spokes.

Keplerian shear1–6 armstilted disc
Enter Orbital Lab →
02 · Waves

Many sources. One field.

Superposition
ψ(r,t) = Σᵢ A sin(k·rᵢ − ωt)
k = 2π / λ

Coherent emitters drift across a lattice seen in perspective. Ridges and nodes emerge where they reinforce and cancel. Disturb it and watch it heal.

1–4 sourcesλ · ω tunableperspective lattice
Enter Wave Tank →
03 · Electrostatics

Lines of force, made visible.

Coulomb · Gauss
E = Σ kqᵢ r̂ᵢ / rᵢ²
∮ E·dA = Q / ε₀

Field lines are traced with a second-order Runge–Kutta integrator every frame, and charges stream along them. Line density is field strength. Flip a charge and the topology snaps.

RK2 tracerlive topologydrop your own charge
Enter Field Lab →
04 · Fluid dynamics

A cylinder, a current, a vortex street.

Navier–Stokes · Strouhal
∂u/∂t + (u·∇)u = −∇p/ρ + ν∇²u
St = f·D / U ≈ 0.2

Potential flow around a cylinder, plus a von Kármán street of point vortices shed at the Strouhal frequency and summed with Biot–Savart. Tracers reveal the wake.

Biot–Savartvortex sheddingtracer advection
Enter Flow Tunnel →
05 · Quantum mechanics

Where the electron probably is.

Born rule
Ĥψ = Eψ
P(r) = |ψₙₗₘ(r, θ, φ)|²

Each point is a sample of the hydrogen probability density, drawn by rejection sampling. Colour marks the sign of the wavefunction — and points don’t move, they jump.

rejection sampling7 orbitalsphase colour
Enter Orbital Viewer →
06 · Chaos

Same law. Nearly the same start. Nowhere near the same fate.

Lorenz-63
ẋ = σ(y − x) · ẏ = x(ρ − z) − y · ż = xy − βz

Thousands of points, born almost together, trace out the Lorenz butterfly without ever repeating — viewed in a slowly turning 3D projection.

σ ρ β tunable3D projectionstrange attractor
Enter Attractor Lab →
07 · Thermodynamics

Heat is just motion, counted.

Maxwell–Boltzmann · Langevin
f(v) = (mv / kT) · e^(−mv² / 2kT)
m dv = −γv dt + √(2γkT) dW

A Langevin bath drives the gas to the Maxwell–Boltzmann distribution — compare the live histogram with theory. The heavy grain performs Einstein’s 1905 random walk.

Langevin thermostatelastic collisionslive histogram
Enter Heat Bath →
08 · Library

The whole laboratory.

Seven laws, one swarm. Open any simulation as a full lab with live controls, telemetry, screenshots and video capture — or drop in your own HTML simulations and run them sandboxed.

Attached Physics Collection

Explore 76 interactive simulations.

76 simulations ready

Your simulations

stored locally in this browser · sandboxed iframe