Skip to main content

A Python Integrator for General Relativistic Orbits

Project description

PyGRO

A Python integrator for General Relativistic Orbits

PyGRO is a Python library that provides methods and functions to perform the numerical integration of the geodesic equations describing a particle or photon orbit in any metric theory of gravity, given an alaytic expression of the metric tensor.


Installation

PyGRO is distributed as a Python package that can be installed through the PyPi package mangaer via:

pip install pygro

or by cloning this GitHub repository.

Documentation

The complete documentation for PyGRO is available on docs.


Minimal example

PyGRO comes with several built-in spacetimes that can be used to study the motion of test massive and mass-less particles undergoing geodesic motion.

This is an example of time-like geodesic around a Kerr black hole in Boyer-Lindquist coordinates (default_metrics.KerrBL())

import pygro
import numpy as np

metric = pygro.default_metrics.KerrBL(m = 1, a = 0.95)
geo_engine = pygro.GeodesicEngine(metric)

geo = pygro.Geodesic("time-like", geo_engine)
geo.set_starting_point(0, 50, np.pi/2, 0)
geo.set_starting_velocity_direction(0, 90, v = 0.1, angles = "deg")

geo_engine.integrate(geo, 10000, initial_step = 1)

Which returns integrated coordinates in the Geodesic object.

alt text


Copyright

Copyright 2020 Riccardo Della Monica

PyGRO is a free software made available under the MIT License. For details see the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyGRO-0.0.10.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyGRO-0.0.10-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file PyGRO-0.0.10.tar.gz.

File metadata

  • Download URL: PyGRO-0.0.10.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for PyGRO-0.0.10.tar.gz
Algorithm Hash digest
SHA256 ff3355a55553d29fcab0f36f78b34e143a098834af5ecaeb42dbd438609998b2
MD5 687ce838a035872b8db98782809af318
BLAKE2b-256 3dc7120d9b6367ded3e2ff73870c24217aafe0a215cbce5569eb6e49b8bfc242

See more details on using hashes here.

File details

Details for the file PyGRO-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: PyGRO-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for PyGRO-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d02a4463eadc9b65ced7f89ebe06d8d498dddd37771cf73ada59973a8fc8a318
MD5 6212adc9872520ff8aac0805b5aa333e
BLAKE2b-256 5eed45f4374e28a00c5df4f3ec0a612b8eaab0a65af1d8da225c67ed00f416b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page