pyccl.baryons.vandaalen19 module

class pyccl.baryons.vandaalen19.BaryonsvanDaalen19(self, fbar=0.7, mass_def='500c')[source]

Bases: Baryons

The baryonic boost factor model of van Daalen et al. 2019,.

The boost factor is applied multiplicatively so that \(P_{\rm bar.}(k, a) = P_{\rm DMO}(k, a)\, f_{\rm vD19}(k, a)\).

Note

The model has only been tested at z=0 and is valid for \(k\leq 1 \,h/{\rm Mpc}\).

Parameters:
  • fbar (float) – the fraction of baryons in a halo in units of the ratio of \(\Omega_b\) to \(\Omega_m\). Default to 0.7 which is approximately compatible with observations (see Fig. 16 of the paper).

  • mass_def (string) – spherical overdensity mass definition. Options are “500c” or “200c”.

name = 'vanDaalen19'
boost_factor(cosmo, k, a)[source]

The vD19 model boost factor for baryons.

Parameters:
  • cosmo (Cosmology) – Cosmological parameters.

  • k (float or array) – Wavenumber (in \({\rm Mpc}^{-1}\)).

  • a (float or array) – Scale factor.

Returns:

Correction factor to apply to the power spectrum.

Return type:

float or array

update_parameters(fbar=None, mass_def=None)[source]

Update van Daalen 2019 parameters. All parameters set to None will be left untouched.

Parameters:
  • fbar (float) – baryonic fraction in halos.

  • mass_def (string) – mass definition (“500c” or “200c”)