Skip to content

A Julia package for computing the timelike geodesics around a Kerr black hole.

License

Notifications You must be signed in to change notification settings

CuberYyc808/KerrGeodesics.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KerrGeodesics.jl

This Julia package is a reimplementation of the Mathematica code KerrGeodesics, adapted and optimized for Julia.

Installation

You can install the package by simply typing

using Pkg
Pkg.add("KerrGeodesics")

Usage

Basic Example

The main function is kerr_geo_emri(a, p, e, x), which computes the trajectory of a test particle around a Kerr black hole.

  • a: Spin parameter of the black hole.
  • p: Semi-latus rectum of the orbit.
  • e: Orbital eccentricity.
  • x: Inclination parameter.

It returns a dictionary containing all the information of the set of the parameters (a, p, e, x).

using KerrGeodesics

# Example: generic timelike bound stable orbit with a=0.9, p=10.0, e=0.5, x=0.8 and initial phases (0.0, 0.0, 0.0, 0.0). 
EMRI_info = kerr_geo_emri(0.9, 10.0, 0.2, 0.8)

The output should be like:

KerrGeoEMRI(
    OrbitalParameters = (a = 0.9, p = 10.0, e = 0.2, x = 0.8),
    ConstantsOfMotion = (E = 0.9546178536960606, Lz = 2.810660381278431, Q = 4.469510431717436),
    OrbitalType = ["Bound", "Eccentric", "Inclined"],
    Frequencies = (ϒt = 124.77891227683266, ϒr = 2.7729739639615034, ϒθ = 3.521699666954832, ϒϕ = 3.6986834364993015),
    Parametrization = "Mino",
    Trajectory = (t = t(λ), r = r(λ), θ = θ(λ), ϕ = ϕ(λ)),
    InitialPhases = (qt0 = 0.0, qr0 = 0.0, qθ0 = 0.0, qϕ0 = 0.0),
)

Visualization Example

Particle trajectory around Kerr black hole

You can find an example of how to visualize your results in example

License

The package is licensed under the MIT License.

About

A Julia package for computing the timelike geodesics around a Kerr black hole.

Resources

License

Stars

Watchers

Forks

Packages

No packages published