Spacetime Explorer: General Relativity Simulation
Explore curved space, black holes and orbital precession with this free general relativity simulation. Launch test masses, send in photons and compare Newton with Einstein.
Explore gravity with a general relativity simulation
Spacetime Explorer connects familiar orbits with the predictions of general relativity. Use this general relativity simulation to investigate how a central mass changes the paths of test bodies and light. It is suitable for A-Level Physics extension, enrichment and introductory university study. General relativity is beyond the core content of many A-Level specifications, so check your course requirements.
Start by launching test masses
Explore orbits opens with three masses rolling in from the edges. Adjust the central mass, then vary the test-mass launch speed. Each change releases fresh bodies. A lower speed can produce a close encounter or capture; a higher speed can produce a wider turn or escape. The outcome also depends on the starting position and direction.
Use animation speed to slow the display without changing the initial conditions. Release again repeats the launch. Rotate the mesh with a mouse or finger, use the underneath view, and zoom to inspect the trajectories. The transparent square grid remains visible from both sides.
Visualise a black hole and the Schwarzschild radius
Select Visualise a black hole to see the mesh deepen into a narrow neck. The orange circle marks the event horizon at the Schwarzschild radius, rₛ = 2GM/c². Here G is the gravitational constant, M is the central mass and c is the speed of light. Each circle in this two-dimensional drawing represents a sphere in the full spatial geometry.
The exterior profile comes from a Schwarzschild spatial embedding. Its vertical axis helps us draw curved distances; it is not another physical direction. The default black-hole view uses 2.8× vertical exaggeration to make the depth clear. Select Show true exterior scale to remove that exaggeration. The red continuation below the horizon is schematic, not a calculated static spatial surface or a passage to another universe.
Send photons towards the black hole
Press Send photons to release four light pulses with different impact parameters. The impact parameter describes how far a distant incoming ray would miss the centre without gravitational bending. Some rays turn and escape. Others approach the horizon and are captured in the model.
The blue guide marks the photon-sphere radius, 1.5 rₛ. Circular light paths there are unstable. For light arriving from infinity around a non-rotating black hole, the critical capture impact parameter is approximately 2.598 rₛ. These two radii describe different things. Photon motion is slowed for viewing; locally measured light speed remains c.
Newton vs Einstein: why the paths differ
Open the second tab to compare two bodies launched from the same position with the same coordinate velocity. Yellow represents Newtonian gravity. Red represents Einstein’s general relativity. Both paths use the same display time scale, so a difference in playback speed does not create the comparison.
Newton describes an inverse-square gravitational force in flat space. For an isolated spherical source, its bound orbit is a closed ellipse. Einstein describes gravity through curved spacetime. The Schwarzschild orbit equation includes an extra relativistic term, 3GMu²/c², where u = 1/r. This term advances the point of closest approach. As a result, the red orbit can form a rosette.
Select Magnify the difference, then lower the central mass and compare again. In weak gravity the predictions approach each other. Other planets can also cause Newtonian orbital precession; this simulation excludes their interactions. Einstein’s additional correction explained the previously unaccounted-for part of Mercury’s perihelion advance.
Try a short investigation
First, compare the two models at low central mass. Next, increase the mass while keeping launch conditions fixed. Describe how the red path changes. Finally, switch to the black-hole view, send photons, and distinguish the horizon radius from the photon-sphere radius. Explain which parts of the drawing show calculated geometry and which parts are illustrative.
Continue your physics learning
Browse all free physics simulations, explore the electric potential landscape, or practise with A-Level Physics questions by topic. For source explanations, read JILA’s Schwarzschild geometry guide, Berkeley Lab’s explanation of orbital precession and the Max Planck Institute’s Newton-to-Einstein guide. If this general relativity simulation helps, share it with a student, classmate or colleague.