Phase Space

3 Body Problem

Visualizing the gravitational dynamics of a three-body system with equal-mass planets—red, blue, and green. A satellite is released with zero velocity, and its eventual collision with a planet is tracked.

Each pixel in the 1000×1000 grid represents a starting satellite position, colored by the planet that captures it. Pixel intensity shows how long the orbit takes to decay, revealing chaotic behavior in the system.

Implemented in CUDA C, the simulation integrates ~1 million trajectories per frame using the Dormand–Prince method, leveraging GPU parallelism for fast computation.