Prerequisites

To run our simulator you need a couple of prerequisites (matplotlib, scipy, PyQt5, numpy). The best way to install them is by using pip (if you do not have pip installed on your computer, take a look at this link) via the command

  • pip install matplotlib scipy pyqt5 numpy
or
  • pip3 install matplotlib scipy pyqt5 numpy

If you have both python2 and python3 on your personal machine. After installing the prerequisites, you only need to download our main code from the github repository via

  • git clone https://github.com/mcgillblackhole/mcgillblackhole.github.io/tree/master/sourcecode

enter the directory, and run the main code via “python black_hole_images.py”.

Manual of our simulator

We've made one interactive window so that you can focus primarily on the physics of the problem. You can select one of our preconfigured initial conditions, or give your own input, selecting different values for the mass of the black hole, the impact parameter of the incoming photons, the coordinates and angle from where the photons are coming from. The code takes up to 30 seconds to solve all the equations, and you can watch the simulation until the end, or select "Stop simulation" to test other configurations.

In the main pannel you'll be able to see an image representing the geodesics of photon(s) given the configuration(s) you chose, and a simulated picture of the black hole.

Loading


This Homepage

@2022 This website was done by Igor Reis, Pedro Cintra, Felipe Fontinele, Ranier Menote and Vitor Dantas for McGill Physics Hackathon 2021. The website is based on the Jekyll Now blog template (available under the MIT Licence), by Barry Clark.