Riddhiman2005 / Coding-the-Cosmos-Visualising-Black-Holes-using-Python

Black holes are mysterious cosmic objects with incredibly strong gravity that pulls everything, including light, into them. They form when massive stars collapse, creating a distortion in space and time. In this repository, using Python Coding we'll try to visualise them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coding-the-Cosmos: Building Black-Holes with Python


image

Embarking on this incredible journey through the vastness of space, we have delved into the captivating world of black holes, those mysterious cosmic phenomena.

Along the way, we have uncovered their origins, structure, different types, the powerful gravitational effects they possess, how scientists detect them, the theories surrounding them, and their impact on our culture. Despite our progress, many questions about black holes remain unanswered, but our pursuit of knowledge continues to drive scientific advancements and ignite a sense of wonder in both scientists and the general public. As we keep exploring the wonders of the universe, black holes serve as fascinating gateways, urging us to push the limits of what we know and unravel the hidden secrets that lie within the vast cosmic abyss.

image

A real-time WebGL visualization of a Schwarzschild Black Hole

Components

solveode.py

solveode.py is an odeint()-powered general solver for the photon-orbit equation described in here. It is imported as a python module and provides a minimal set of function for parallel solution for lists of initial conditions.

generatetex.py

generatetex.py is the script that generates the lookup texture for the deflection angle using solveode.py. It produces deflections_tex.png, used by the WebGL applet.

LICENSE

This project is licensed under the MIT License.

About

Black holes are mysterious cosmic objects with incredibly strong gravity that pulls everything, including light, into them. They form when massive stars collapse, creating a distortion in space and time. In this repository, using Python Coding we'll try to visualise them

License:MIT License


Languages

Language:Python 68.1%Language:JavaScript 31.9%