Skip to main content

Calculate quasinormal modes of Kerr black holes.

Project description

github PyPI version license Documentation Status

Welcome to qnm

Python implementation of Cook-Zalutskiy spectral approach to computing Kerr QNM frequencies.

TODO basic info

Installation

PyPI

qnm is available through PyPI:

pip install qnm

From source

git clone https://github.com/duetosymmetry/qnm.git
cd qnm
python setup.py install

If you do not have root permissions, replace the last step with python setup.py install --user

Dependencies

All of these can be installed through pip or conda.

Documentation

Automatically-generated API documentation is available on Read the Docs: qnm.

Usage

The highest-level interface is via qnm.cached.KerrSeqCache, which load cached spin sequences from disk. A spin sequence is just a mode labeled by (s,l,m,n), with the spin a ranging from a=0 to some maximum, e.g. 0.9995. A large number of low-lying spin sequences have been precomputed and are available online. The first time you use the package, download the precomputed sequences:

>>> import qnm

>>> qnm.download_data() # Only need to do this once
Trying to fetch https://duetosymmetry.com/files/qnm/data.tar.bz2
Trying to decompress file /<something>/qnm/data.tar.bz2
Data directory /<something>/qnm/data contains 860 pickle files

Then, use qnm.cached.KerrSeqCache to load a qnm.spinsequence.KerrSpinSeq of interest. If the mode is not available, it will try to compute it (see detailed documentation for how to control that calculation).

>>> ksc = qnm.cached.KerrSeqCache(init_schw=True) # Only need init_schw once
>>> mode_seq = ksc(s=-2,l=2,m=2,n=0)
>>> omega, A, C = mode_seq(a=0.68)
>>> print(omega)
(0.5239751042900845-0.08151262363119974j)

Calling a spin sequence with mode_seq(a) will return the complex quasinormal mode frequency omega, the complex angular separation constant A, and a vector C of coefficients for decomposing the associated spin-weighted spheroidal harmonics as a sum of spin-weighted spherical harmonics.

Credits

The code is developed and maintained by Leo C. Stein.

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

qnm-0.2.0.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

qnm-0.2.0-py2-none-any.whl (84.6 kB view details)

Uploaded Python 2

File details

Details for the file qnm-0.2.0.tar.gz.

File metadata

  • Download URL: qnm-0.2.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for qnm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b6e7d6a393cca3ec36f9341eb2190a6e6f2fcc5adab9c44623ca0f47179d8778
MD5 26653dfe19ea8dffb0931956ed9bcdae
BLAKE2b-256 a3b44e98b834d4c42c0510f8d40fc10d1e7dd8ede03089f991578af77d2284c5

See more details on using hashes here.

File details

Details for the file qnm-0.2.0-py2-none-any.whl.

File metadata

  • Download URL: qnm-0.2.0-py2-none-any.whl
  • Upload date:
  • Size: 84.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for qnm-0.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 cadf332771f93644d40c208db457f56bf4a19968dc83b5a1da32752fb6181678
MD5 c895a71b0bb633935bca4df210d694e6
BLAKE2b-256 bdad0e79024bbe5e087b9df156902a8d08636c861cce4e83d9abf7bbc6e44a52

See more details on using hashes here.

Supported by

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