| Download
SageMath notebooks associated to the Black Hole Lectures (https://luth.obspm.fr/~luthier/gourgoulhon/bh16)
Project: BHLectures
Views: 20110Kernel: SageMath 9.1.beta0
Null geodesics in Schwarzschild spacetime
This Jupyter/SageMath notebook is relative to the lectures Geometry and physics of black holes.
Click here to download the notebook file (ipynb format). To run it, you must start SageMath with sage -n jupyter
.
A version of Sage at least equal to 9.0 is required to run this notebook:
In [1]:
'SageMath version 9.1.beta0, Release Date: 2020-01-10'
In [2]:
Schwarzschild metric
In [3]:
In [4]:
In [5]:
In [6]:
In [7]:
In [8]:
Some selected null geodesics
In [9]:
The photon orbit
In [10]:
b = 5.196152422706632 m
In [11]:
In [12]:
In [13]:
In [14]:
In [15]:
Other null geodesics
In [16]:
In [17]:
b = 7.07106781186548 m
In [18]:
In [19]:
b = 5.00000000000000 m
In [20]:
In [21]:
In [22]:
In [23]:
b = 4.66252404120157 m
In [24]:
In [25]:
In [26]:
In [27]:
b = 5.34522483824849 m
In [28]:
In [29]:
In [30]:
In [31]:
Geodesics arising from a source at large distance
In [32]:
In [33]:
In [34]:
b = 12.000000 m
s=0: (0.0, 100.0, 1.5707963267948966, 0.12028988239478806)
s=150: (161.7386305994338, 49.599207321700575, 1.5707963267948966, 3.3499140843834243)
b = 8.000000 m
s=0: (0.0, 100.0, 1.5707963267948966, 0.08008558003365901)
s=150: (165.0262559276518, 47.87567237981162, 1.5707963267948966, 3.832461957010324)
b = 6.000000 m
s=0: (0.0, 100.0, 1.5707963267948966, 0.06003605844527842)
s=150: (169.51340790400954, 46.21354032584246, 1.5707963267948966, 4.730793903988559)
b = 5.355000 m
s=0: (0.0, 100.0, 1.5707963267948966, 0.05357562643499787)
s=150: (175.13467942245063, 43.837643428812676, 1.5707963267948966, 6.172293011040655)
b = 5.230000 m
s=0: (0.0, 100.0, 1.5707963267948966, 0.052323872006442895)
s=150: (180.39625091484754, 41.32000814165003, 1.5707963267948966, 7.665165130714838)
b = 5.202500 m
s=0: (0.0, 100.0, 1.5707963267948966, 0.052048497112969744)
s=150: (186.05222271416335, 38.48872884422706, 1.5707963267948966, 9.317135314376204)
b = 5.196430 m
s=0: (0.0, 100.0, 1.5707963267948966, 0.05198771489670833)
s=150: (196.57550821738923, 33.13574656928606, 1.5707963267948966, 12.42140053051524)
b = 5.196155 m
s=0: (0.0, 100.0, 1.5707963267948966, 0.05198496117647258)
s=150: (212.1623795944796, 25.165821003889214, 1.5707963267948966, 17.043633460770014)
Check of the law
In [35]:
In [36]:
In [37]:
In [38]:
In [39]:
In [ ]: