Pure COpenMPRay Tracing

Black Hole Simulation

A scientifically accurate, high-performance 3D black hole simulation written entirely in pure C (C99 standard) with no external library dependencies.

Black Hole Simulation

Overview

A supermassive Kerr black hole simulation that implements General Relativity physics in pure C, simulating rotating black holes with frame dragging and accurate accretion disk thermodynamics.

Key Features

  • Kerr Metric Physics: Simulates rotating black hole with frame dragging and oblate event horizon
  • Accurate Accretion Disk: ISCO inner edge calculated via Bardeen-Press-Teukolsky formula
  • Relativistic Optics: Doppler beaming, gravitational redshift, and gravitational lensing
  • Thermodynamics: Shakura-Sunyaev temperature profile with Planck blackbody color mapping

Technical Implementation

Written in pure C99 with no external dependencies. Uses adaptive ray-tracing for curved light paths in strong gravity, with optional OpenMP optimization and architectural optimizations (-O3 -march=native) for high-performance rendering.

Like what you see?

Check out more of my projects or get in touch to discuss your next idea.