Code Monkey home page Code Monkey logo

21cmforest_pbh's Introduction

21cmForest_PBH

arXiv DOI

Python codes for computing the number of absorption features of the 21 cm forest in scenarios with Primordial Black Holes as Dark Matter.

See the paper arXiv:2104.10695 for more details.

sample bounds

Description of the code

The program computes the number of absorbers expected in Cold Dark Matter (CDM) and Primordial Black Holes (PBH) cosmologies. For that, the Intergalactic Medium (IGM) temperature is required. The code makes use of the temperature computed from semianalytic simulations carried out with 21cmFAST (arXiv:1003.3878). The global outputs for several realizations, which include the temperature evolution, are included in the folder 21cmFiles.

The main scripts are the following:

  • Absorbers.py: main code to compute the number of absorption features for CDM and PBH models. It makes use of the temperature from the 21cmFiles files, or employs the temperature previously interpolated from InterpolateTemperature.py. It calls the script ImpactParam.py for employing the effective cross sections if they are not previously calculated. It can also plot the smoothed bounds on the PBH parameter space calling AbundanceBounds.py.

  • ImpactParam.py: computes the maximum impact parameter, which defines the effective cross section of a given halo mass.

  • InterpolateTemperature.py: interpolates the IGM temperature from the 21cmFiles files on a grid of the PBH mass and PBH fraction.

Several plotting scripts are also included:

  • PreliminaryPlots.py: plots the gas density profile, the spin temperature and the optical depth.

  • PowerSpectrumPlots.py: shows the power spectrum, the variance and the halo mass function.

  • TemperaturePlot.py: creates a figure of the IGM temperature from the 21cmFiles files.

  • AbundanceBounds.py: interpolates a grid of bounds previously computed in Absorbers.py and plots the upper limits on the PBH abundance.

In the folder Source, several auxiliary routines are defined:

  • constants.py: includes the definition of physical and cosmological constants, together with some parameters regarding the number of bins.

  • functions.py: includes several useful cosmological functions, to compute the density profile, power spectrum, halo mass function and 21 cm quantities.

Requisites

The code is written in Python3, and makes use of several Python libraries, which are:

  • numpy
  • matplotlib
  • scipy
  • pickle

The package for cosmological computations Colossus is also employed.

Citation

If you use the code, please link this repository, and cite arXiv:2104.10695 and the DOI 10.5281/zenodo.4707447.

Contact

For comments, questions etc. you can reach me at [email protected]

21cmforest_pbh's People

Contributors

pablovd avatar

Watchers

Reaves avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.