DarkHistory: A code package for calculating modified cosmic ionization and thermal histories with dark matter and other exotic energy injections

Hongwan Liu, Gregory W. Ridgway, Tracy R. Slatyer
4/19/2019
astro-ph.COastro-ph.HEhep-ph

Official code: hongwanliu/DarkHistory (23 stars, Python, MIT, last commit 2026-11-14).

Abstract

We present a new public Python package, DarkHistory, for computing the effects of dark matter annihilation and decay on the temperature and ionization history of the early universe. DarkHistory simultaneously solves for the evolution of the free electron fraction and gas temperature, and for the cooling of annihilation/decay products and the secondary particles produced in the process.

Show full abstract

Consequently, we can self-consistently include the effects of both astrophysical and exotic sources of heating and ionization, and automatically take into account backreaction, where modifications to the ionization/temperature history in turn modify the energy-loss processes for injected particles. We present a number of worked examples, demonstrating how to use the code in a range of different configurations, in particular for arbitrary dark matter masses and annihilation/decay final states. Possible applications of DarkHistory include mapping out the effects of dark matter annihilation/decay on the global 21cm signal and the epoch of reionization, as well as the effects of exotic energy injections other than dark matter annihilation/decay. The code is available at https://github.com/hongwanliu/DarkHistory with documentation at https://darkhistory.readthedocs.io . Data files required to run the code can be downloaded at https://doi.org/10.7910/DVN/DUOUWA .

View on arXivView PDF

Code Implementations(1)

MIT

A code package for calculating modified cosmic ionization and thermal histories with dark matter and other exotic energy injections

2312Python, Jupyter NotebookSep 30, 20172 weeks agoMIT

Similar Papers

Cite this paper

@article{liu2019darkhistory,
  title  = {DarkHistory: A code package for calculating modified cosmic ionization and thermal histories with dark matter and other exotic energy injections},
  author = {Hongwan Liu and Gregory W. Ridgway and Tracy R. Slatyer},
  year   = {2019},
  eprint = {1904.09296},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.09296}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1904.09296.svg)](https://codeofpaper.com/paper/1904.09296)

Discussion