GithubHelp home page GithubHelp logo

oliverphilcox / oneloopbispectrum Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 26.85 MB

Computation of the one-loop bispectrum of galaxies in redshift space

License: GNU General Public License v3.0

Mathematica 74.73% Shell 0.09% Jupyter Notebook 25.18%

oneloopbispectrum's Introduction

One Loop Galaxy Bispectrum

Computation of the one-loop bispectrum of galaxies in redshift space, using Mathematica. This is described in Philcox+22. The code contains a number of components:

  1. Kernels.nb & KernelsFlat.nb: Computation and simplification of the bispectrum kernels using Mathematica [cosmology-independent]. These are saved in the kernels directory.
  2. Spectra.wls & SpectraFlat.wls: Computation of the full and flattened bispectrum templates, given the pre-computed integration kernels. These scripts compute the templates for all bias parameters and a single angular component. They are designed to be run on a HPC cluster using Mathematica. We provide a sample SLURM submission script for computing all templates.
  3. Output.wls: Read-in and combination of the bispectrum templates using Mathematica. These are saved as two HDF5 files.
  4. Bispectrum Interpolation.ipynb: Interpolation and extraction of the one-loop bispectrum using Python. This demonstrates the practical usage of the one-loop bispectrum, including full radial and angular bin-integration, and Alcock-Paczynski distortions. Steps 1-3 are performed for both flattened (k1 = k2 + k3) and full bispectrum shapes, to allow for efficient and numerically stable interpolation. Note that step 1 only needs to be run if the bispectrum kernels themselves are being modified, else the default kernels provided can be used.

A necessary input to stage (2) is the IR-resummed power spectrum in the pk directory; this can be computed using CLASS-PT, and we provide a sample spectrum. High-resolution bispectrum templates (the output of step 3) computed using the PT Challenge best-fit power spectrum can be downloaded from Google Drive, and are those used in the Philcox+22 paper.

The computed spectra can be interfaced with the power spectrum and bispectrum likelihoods found here.

Authors

  • Oliver Philcox (Princeton / IAS)
  • Mikhail Ivanov (IAS)
  • Marko Simonovic (CERN)

oneloopbispectrum's People

Contributors

oliverphilcox avatar

Stargazers

 avatar Zhenyuan Wang avatar

Watchers

James Cloos avatar  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.