8000 GitHub - achael/kgeo: simple python analytic kerr raytracing · GitHub
[go: up one dir, main page]

Skip to content
achaelPublic

About

simple python analytic kerr raytracing

Resources

Stars

29 stars

Watchers

2 watching

Forks

Repository files navigation

kgeo

License: GPLv3 DOI Python

CI codecov Code style: Ruff

This is a relatively simple implementation of raytracing null geodesics in the Kerr metric using the formalism of Gralla and Lupsasca 2019.

In addition to some standard python libraries, this code requires the latest version of scipy to perform elliptic integrals of the third kind.

Alternatively, elliptic integrals may be performed with bindings to GSL (which are much slower). To use GSL, you need to have the python ctypes module installed. Then verify that the following works:

ctypes.CDLL('libgsl.so')

Then modify the following global variables at the top of kgeo/kerr_raytracing_ana.py:

SCIPY = False
GSL = True

To run a simple example, try:

from kgeo.kerr_raytracing_ana import *
out = raytrace_ana(plotdata=True)

About

simple python analytic kerr raytracing

Resources

Stars

29 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0