Simulate and visualize the effects of gravity on light with CUDA.
Project details
This project offers a powerful gravitational lensing simulator written in CUDA C++. By leveraging advanced algorithms, it demonstrates how light bends around a Schwarzschild black hole. Generate stunning visual sequences with high accuracy, making complex astrophysical phenomena accessible and engaging.
MyCudaProject is an advanced gravitational lensing simulator developed in CUDA C++. The primary objective of this project is to render the visual distortions caused by a Schwarzschild black hole, exploring significant astrophysical phenomena through detailed light bending simulations.
Geodesic Equation Simulation: Utilizes the geodesic equations to model the bending of light around a black hole. The mathematical representation is achieved by solving the equation:
\frac{\partial^2 u}{\partial \phi^2} = \frac{3GM}{C^2} u^2 - u
where u = 1/r, with r and φ representing polar coordinates in a 2D space. This calculation yields precise paths taken by light rays influenced by the black hole's gravity.
Parallel Processing: Employs CUDA kernels to efficiently process millions of light rays simultaneously, significantly enhancing rendering performance.
Visual Output: Generates high-quality PNG sequences of the black hole visuals, allowing for a rich visual representation of the simulation.
A brief summary and final render of the simulation can be viewed on YouTube.
This project has been tested on the following configuration:
MyCudaProject serves as a powerful tool for visualizing complex astrophysical concepts, making use of modern computing to explore the fascinating effects of gravity on light.
Comments
0Start the conversation
Share the first comment.