Presets
Playback
Orbit and units
Launch
Camera
Layers
Quality
Model check
The science
What is modelled
Geodesics of the Schwarzschild metric, the spacetime of a non-rotating black hole of mass M. Lengths are in GM/c^2 and times in GM/c^3, so the horizon sits at r = 2, the photon sphere at r = 3 and the innermost stable circular orbit (ISCO) at r = 6. The mass slider only converts these units to kilometres (r_s = 2.95 km per solar mass) and milliseconds; the shapes of the orbits do not depend on it.
Equations
For a massive probe, with conserved energy E and angular momentum L per unit mass: (dr/d tau)^2 = E^2 - (1 - 2/r)(1 + L^2/r^2), d phi/d tau = L/r^2, dt/d tau = E/(1 - 2/r). Differentiating gives the acceleration d2r/d tau2 = -1/r^2 + L^2/r^3 - 3 L^2/r^4, integrated here with fourth-order Runge-Kutta. The last term is the relativistic one: it is why the orbit does not close. For light: (dr/d lambda)^2 = 1 - b^2 (1 - 2/r)/r^2 with impact parameter b = L/E; rays with b below 3 sqrt 3 = 5.196 fall in.
The orbit is set by the semi-latus rectum p and eccentricity e of the Newtonian-looking ellipse r = p/(1 + e cos chi); then L^2 = p^2/(p - 3 - e^2) and E^2 = ((p - 2)^2 - 4 e^2)/(p (p - 3 - e^2)). The orbit is stable if p > 6 + 2e; below that the probe plunges, and just above it you see zoom-whirl behaviour. The precession per orbit has the exact form integral from 0 to 2 pi of sqrt(p/(p - 6 - 2 e cos chi)) dchi - 2 pi, which for large p tends to the weak-field 6 pi/p (Mercury: 43 arcseconds per century).
Simplifications and checks
Test particles only (no gravitational radiation, no back-reaction), a non-rotating hole, motion in the equatorial plane; the accretion disk and the Flamm funnel (z = 2 sqrt(2 (r - 2)), the embedding of the equatorial plane at fixed time) are illustrations, not simulated matter. Schwarzschild coordinates are singular at the horizon, so a probe is shown as captured at r = 2.03. In-page checks: (1) the precession measured from the numerical orbit matches the exact integral; (2) a circular orbit stays circular and runs at the Kepler frequency in coordinate time, and L^2 = 12 at the ISCO; (3) the light deflection at b = 100 matches 4M/b + 15 pi M^2/(4 b^2), and the capture threshold is 3 sqrt 3.