PTtools
PTtools is a Python library for calculating hydrodynamical quantities around expanding bubbles of the new phase in an early universe phase transition, and the resulting gravitational wave power spectrum in the Sound Shell Model.
Installation
PTtools is available on PyPI and can be installed with pip:
pip3 install --upgrade pttools-gw[numbalsoda,performance]
The [numbalsoda] and [performance] dependencies are optional,
and you can omit them if they are not available on your platform.
PTtools is also available on Docker Hub and can be installed with:
docker pull cfthy/pttools:main
Documentation
The documentation is available online at Read the Docs. The documentation for previous releases can be found at the releases page. The documentation can also be downloaded from the GitHub Actions results by selecting the latest successful docs workflow and then scrolling down to the artifacts section. There you can find a zip file containing the documentation in various formats.
References
- Mäki: The effect of sound speed on the gravitational wave spectrum of first order phase transitions in the early universe (2024)
- Hindmarsh et al.: Phase transitions in the early universe (2021)
- Hindmarsh & Hijazi: Gravitational waves from first order cosmological phase transitions in the Sound Shell Model (2019)
- Hindmarsh: Sound shell model for acoustic gravitational wave production at a first-order phase transition in the early Universe (2018)
Submodules
- bubble: Tools for computing the fluid shells (velocity and enthalpy as a function of scaled radius). Also includes some scripts for plotting.
- omgw0: Tools for converting the GW spectra to frequencies and amplitudes today. Includes utilities for approximations and noise.
- ssm: Tools for computing the GW spectra from the fluid shells using the Sound Shell Model.
- speedup: Computational utilities used by the other modules.
Who do I talk to?
- Repo owner: Mark Hindmarsh
- Main developer: Mika Mäki
Example figures
Fluid velocity profiles
Gravitational wave power spectra
Release files for pttools-gw 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pttools_gw-0.10.0.tar.gz | 170.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pttools_gw-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 385.8 kB
Release files / pttools_gw-0.10.0.tar.gz
| Download URL | pttools_gw-0.10.0.tar.gz |
|---|---|
| Size | 170.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e2deae002ae7c81e3551f799780a5d0477c13d41b4aa7ffe9522ec40e16b670
|
|
BLAKE2b-256 checksum How to use checksums |
316fd2a5a420d2524cf451f5f3a17f14ec307bb818f49882f8ab022ac823c41b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2025.
Transparency logRelease files / pttools_gw-0.10.0-py3-none-any.whl
| Download URL | pttools_gw-0.10.0-py3-none-any.whl |
|---|---|
| Size | 215.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3d175fbcae2facb9489530488cf64f2800e3b7f4b2403a8f341af9a50cdc31b
|
|
BLAKE2b-256 checksum How to use checksums |
326cd536594899d83c24b098162abc1d8fcc8cd57439a1bba567295affc7d515
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2025.
Transparency log