Metadata-Version: 2.4
Name: pttools-gw
Version: 0.10.0
Summary: PTtools simulation framework for phase transitions in the early universe
Author-email: Mark Hindmarsh <mark.hindmarsh@helsinki.fi>, Chloe Hopling <c.hopling@sussex.ac.uk>, Mika Mäki <mika.x.maki@helsinki.fi>, Lorenzo Giombi <lorenzo.giombi@helsinki.fi>
Maintainer-email: Mark Hindmarsh <mark.hindmarsh@helsinki.fi>, Mika Mäki <mika.x.maki@helsinki.fi>
License-Expression: MIT
Project-URL: documentation, https://pttools.readthedocs.io
Project-URL: issues, https://github.com/CFT-HY/pttools/issues
Project-URL: repository, https://github.com/CFT-HY/pttools
Keywords: cosmology,phase transitions,gravitational waves,hydrodynamics,relativistic hydrodynamics,sound shell model
Classifier: Framework :: Matplotlib
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: h5py>=3.15.1
Requires-Dist: kaleido>=1.1.0
Requires-Dist: matplotlib>=3.10.7
Requires-Dist: numba>=0.62.1
Requires-Dist: numpy>=2.3.4
Requires-Dist: orjson>=3.11.4
Requires-Dist: plotly>=6.3.1
Requires-Dist: scipy>=1.16.3
Provides-Extra: numbalsoda
Requires-Dist: numbalsoda>=0.3.4; extra == "numbalsoda"
Provides-Extra: performance
Requires-Dist: icc-rt>=2019.0; platform_machine != "arm64" and extra == "performance"
Requires-Dist: intel-openmp>=2020.0.133; (sys_platform == "darwin" and platform_machine != "arm64") and extra == "performance"
Requires-Dist: tbb>=2021.10.0; platform_machine != "arm64" and extra == "performance"
Dynamic: license-file

# PTtools
[![DOI](https://zenodo.org/badge/373413324.svg)](https://zenodo.org/badge/latestdoi/373413324)
[![GitHub](https://img.shields.io/badge/GitHub-CFT--HY/pttools-blue)](https://github.com/CFT-HY/pttools)
[![ReadTheDocs](https://readthedocs.org/projects/pttools/badge/)](https://pttools.readthedocs.io/)
[![CI](https://github.com/CFT-HY/pttools/actions/workflows/main.yml/badge.svg)](https://github.com/CFT-HY/pttools/actions/workflows/main.yml)
[![Windows](https://github.com/CFT-HY/pttools/actions/workflows/windows.yml/badge.svg)](https://github.com/CFT-HY/pttools/actions/workflows/windows.yml)
[![macOS](https://github.com/CFT-HY/pttools/actions/workflows/mac.yml/badge.svg)](https://github.com/CFT-HY/pttools/actions/workflows/mac.yml)
[![codecov](https://codecov.io/gh/CFT-HY/pttools/graph/badge.svg?token=ALFVWC1LZR)](https://codecov.io/gh/CFT-HY/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.

![Types of solutions](https://raw.githubusercontent.com/AgenttiX/msc-thesis2/refs/heads/main/fig/relativistic_combustion.svg)


### Installation
PTtools is [available on PyPI](https://pypi.org/project/pttools-gw/) and can be installed with pip:
``` bash
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](https://hub.docker.com/r/cfthy/pttools) and can be installed with:
``` bash
docker pull cfthy/pttools:main
```

### Documentation
The documentation is available online at [Read the Docs](https://pttools.readthedocs.io/).
The documentation for previous releases can be found at the
[releases](https://github.com/CFT-HY/pttools/releases) page.
The documentation can also be downloaded from the
[GitHub Actions results](https://github.com/CFT-HY/pttools/actions)
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)](https://github.com/AgenttiX/msc-thesis2)
- [Hindmarsh et al.: Phase transitions in the early universe (2021)](https://arxiv.org/abs/2008.09136)
- [Hindmarsh & Hijazi: Gravitational waves from first order cosmological phase transitions in the Sound Shell Model (2019)](https://arxiv.org/abs/1909.10040)
- [Hindmarsh: Sound shell model for acoustic gravitational wave production at a first-order phase transition in the early Universe (2018)](https://arxiv.org/abs/1608.04735)


### 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](https://github.com/hindmars/)
- Main developer: [Mika Mäki](https://github.com/AgenttiX)


### Example figures
Fluid velocity profiles
![Fluid velocity profiles](https://raw.githubusercontent.com/AgenttiX/msc-thesis2/refs/heads/main/fig/const_cs_gw_v.svg)

Gravitational wave power spectra
![Gravitational wave power spectra](https://raw.githubusercontent.com/AgenttiX/msc-thesis2/refs/heads/main/fig/const_cs_gw_omgw0.svg)
