Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Reference manual of the SageMath package kerrgeodesic_gw

Project: Sagittarius
Views: 7639
License: GPL3
Image: ubuntu2004
1
from kerrgeodesic_gw import (h_particle_quadrupole, h_plus_particle, \
2
h_cross_particle)
3
r0, theta, phi = 50., pi/3, 0
4
hp_quad = lambda t: h_particle_quadrupole(r0, t, theta, phi)
5
hc_quad = lambda t: h_particle_quadrupole(r0, t, theta, phi, mode='x')
6
hp = lambda t: h_plus_particle(0., r0, t, theta, phi, l_max=5)
7
hc = lambda t: h_cross_particle(0., r0, t, theta, phi, l_max=5)
8
umax = 2*n(2*pi*r0**1.5)
9
g = plot(hp_quad, (0, umax), legend_label=r'$h_+$ quadrupole', \
10
axes_labels=[r'$(t-r_*)/M$', r'$r h/\mu$'], \
11
title=r'$r_0=50 M$, $\theta=\pi/3$', \
12
gridlines=True, frame=True, axes=False)
13
g += plot(hp, (0, umax), color='red', legend_label=r'$h_+$ exact')
14
g += plot(hc_quad, (0, umax), linestyle='--', \
15
legend_label=r'$h_\times$ quadrupole')
16
g += plot(hc, (0, umax), color='red', linestyle='--', \
17
legend_label=r'$h_\times$ exact')
18
sphinx_plot(g)
19