luminet is available from PyPI and Anaconda:
pixi add --pypi luminetAll variables in this repo are in natural units:
from luminet.black_hole import BlackHole
bh = BlackHole(
mass=1,
incl=1.4, # inclination in radians
acc=1, # accretion rate
outer_edge=40
)To create an image:
ax = bh.plot() # Create image like aboveTo sample photons on the accretion disk:
bh.sample_photons(100)
bh.photonsradius alpha impact_parameter z_factor flux_o
10.2146 5.1946 1.8935 1.1290 1.8596e-05
... (99 more)
Note that sampling is biased towards the center of the black hole, since this is where most of the luminosity comes from.
Swarzschild black holes have an innermost stable orbit of
This makes many equations significantly more straightforward.
The relationship between the angles of both coordinate systems is trivial, but the relationship between the radii in the two reference frames is given by the monstruous Equation 13:
Here,
In curved spacetime, there are usually multiple photon orbits that originate from the same coordinate and project to the ibserver frame (see e.g. gravitational lensing and Einstein crosses). Photon orbits that curve around the black hole and reach the observer frame are called "higher order" images, or "ghost" images. In this case,
These ghost photons are what you see on the lower half of the image above, as well as the barely visible halo of light that wraps thinly around the photon sphere. For inclinations that are less edge-on, this ghost image is less pronounced though.
This repo uses scipy.optimize.brentq to solve these equations, and provides convenient API to the concepts presented in Luminet (1979). The BlackHole class is the most obvious one, but it's also educative to play around with e.g. the Isoradial class: lines in observer frame describing photons emitted from the same radius in the black hole frame. The Isoredshift class provides lines of equal redshift in the observer frame.
[1] Luminet, J.-P., “Image of a spherical black hole with thin accretion disk.”, Astronomy and Astrophysics, vol. 75, pp. 228–235, 1979.
[2] J.-P. Luminet, “An Illustrated History of Black Hole Imaging : Personal Recollections (1972-2002).” arXiv, 2019. doi: 10.48550/ARXIV.1902.11196.
[3] Don N Page and Kip S Thorne. Disk-accretion onto a black hole. time-averaged structure of accretion disk. Astrophys. J., 191:499, July 1974.



