Skip to main content

Gravitational radiation from material orbiting a Kerr black hole

Project description

kerrgeodesic_gw

A SageMath package to compute gravitational radiation from material orbiting a Kerr black hole

Installation

Requirements

This package requires the Python-based free mathematics software system SageMath (at least version 8.2).

Simple installation from PyPI

It suffices to run

sage -pip install kerrgeodesic_gw

to have the package ready to use in SageMath. See however the install from source section below if you want to build a local version of the documentation or modify the source files (development)

Install from source

Download the source from the git repository:

git clone https://github.com/BlackHolePerturbationToolkit/kerrgeodesic_gw.git

This creates a directory kerrgeodesic_gw.

Run

sage -pip install --upgrade --no-index -v kerrgeodesic_gw

to install the package in SageMath. A shortcut of the above command is provided by the Makefile distributed with the package:

cd kerrgeodesic_gw
make install

NB: on CoCalc, you need to add the option --user, i.e. open a terminal and run

git clone https://github.com/BlackHolePerturbationToolkit/kerrgeodesic_gw.git
sage -pip install --user --upgrade --no-index -v kerrgeodesic_gw

Install for development

If you plan to edit the package source, you should add the option -e to the pip install, i.e. run

sage -pip install --upgrade --no-index -v -e kerrgeodesic_gw

or equivalently

cd kerrgeodesic_gw
make develop

Usage

Once the package is installed, you can use it in SageMath, like for instance:

sage: from kerrgeodesic_gw import spin_weighted_spherical_harmonic
sage: theta, phi = var('theta phi')
sage: spin_weighted_spherical_harmonic(-2, 2, 1, theta, phi)
1/4*(sqrt(5)*cos(theta) + sqrt(5))*e^(I*phi)*sin(theta)/sqrt(pi)

Tests

This package is configured for tests written in the documentation strings of the source files, also known as doctests. You may then test the install by running, from the root of the package tree (i.e. the directory kerrgeodesic_gw created by the git clone),

sage -t kerrgeodesic_gw

You should then get the message All tests passed!

Alternatively, you can run (from the same directory)

make test

Documentation

The package documentation can be generated using SageMath's Sphinx installation:

cd docs
sage -sh -c "make html"

A shorthand of the above is

make doc

The html reference manual is then at

kerrgeodesic_gw/docs/build/html/index.html

For the LaTeX documentation, use

make doc-pdf

The pdf reference manual is then

kerrgeodesic_gw/docs/build/latex/kerrgeodesic_gw.pdf

Online documentation

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

kerrgeodesic_gw-0.1.tar.gz (708.0 kB view details)

Uploaded Source

Built Distribution

kerrgeodesic_gw-0.1-py2.py3-none-any.whl (731.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kerrgeodesic_gw-0.1.tar.gz.

File metadata

  • Download URL: kerrgeodesic_gw-0.1.tar.gz
  • Upload date:
  • Size: 708.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15rc1

File hashes

Hashes for kerrgeodesic_gw-0.1.tar.gz
Algorithm Hash digest
SHA256 63643f53c0f671f10f08c2dbab19ec8d821f47cfd6c1f79a5c09080d577c6b88
MD5 fc17a832689499c13704fb9dc2542721
BLAKE2b-256 186612696b7a107a8fbf5b3966bbe733c783c180a7472dc507f52f7c535807aa

See more details on using hashes here.

File details

Details for the file kerrgeodesic_gw-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: kerrgeodesic_gw-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 731.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15rc1

File hashes

Hashes for kerrgeodesic_gw-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4beae72018da531ed7be47005e2e52d6d393d5bce4e57a07a4673b80401828e4
MD5 c78cde00bb41ebbcd4c0da0bb74e67cf
BLAKE2b-256 b42b4d8f6f23d28e3abba309d9740f60fca136f1774b453f7e669fd533531439

See more details on using hashes here.

Supported by

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