/DM21cm

Inhomogeneous Energy Injection in 21cm Cosmology

Primary LanguagePythonMIT LicenseMIT

DM21cm - Inhomogeneous Energy Injection in 21cm Cosmology

arXiv

HERA sensitivity to dark matter monochromatic decays

Installation

Prerequisite: DarkHistory

  • Clone the DarkHistory repository here. Checkout branch DM21cm.
  • Install the require packages via pip install -r requirements.txt.
  • Set environment variable DH_DIR to point to the project folder (directory containing README.md).
  • Set environment variable DH_DATA_DIR to point to the DarkHistory data (v1.1) folder (directory containing binning.p). The data files can be downloaded here.

Prerequisite: 21cmFAST

  • Clone the 21cmFAST fork here. Checkout branch master.
  • Install 21cmFAST according to README.md
    • Install gcc and have environment variable CC point to the binary.
    • Install gsl (GNU Scientific Library) and have GSL_LIB point to the directory of the library.
    • Install fftw and have FFTW_INC point to the directory containing fftw header files.
    • Install 21cmFAST via pip install . in the project directory.
  • Set environment variable P21C_CACHE_DIR to a directory for storing cached files (requries at least 10G for a 128^3 box 1.01 redshift step run).

DM21cm

  • Clone this repository. Checkout branch main.
  • Download data files from here.
  • Install the require packages via pip install -r requirements.txt. We recommend installing JAX according to your hardware (e.g. GPU) specification.
  • Set environment variable DM21CM_DIR to point to the project folder (directory containing README.md).
  • Set environment variable DM21CM_DATA_DIR to point to the data folder (directory containing abscissas.h5).

Authors

Yitian Sun, Joshua W. Foster, Hongwan Liu, Julian B. Muñoz, and Tracy R. Slatyer