pyccl.baryons.baccoemu_baryons module

class pyccl.baryons.baccoemu_baryons.BaccoemuBaryons(self, log10_M_c=14.174, log10_eta=-0.3, log10_beta=-0.22, log10_M1_z0_cen=10.674, log10_theta_out=0.25, log10_theta_inn=-0.86, log10_M_inn=13.574, verbose=False)[source]

Bases: Baryons

The baryonic boost factor computed with the baccoemu baryons emulators.

See Arico et al. 2021 and https://bacco.dipc.org/emulator.html.

Note

Note that masses are in units of \(M_\odot\), differently from the original paper and baccoemu public code (where they are in \(M_\odot/h\))

Parameters:
  • log10_M_c (float) – characteristic halo mass to model baryon mass fraction (in \(M_\odot\))

  • log10_eta (float) – extent of ejected gas

  • log10_beta (float) – slope of power law describing baryon mass fraction

  • log10_M1_z0_cen (float) – characteristic halo mass scale for central galaxies (in \(M_\odot\))

  • log10_theta_out (float) – outer slope of density profiles of hot gas in haloes

  • log10_theta_inn (float) – inner slope of density profiles of hot gas in haloes

  • log10_M_inn (float) – transition mass of density profiles of hot gas in haloes (in \(M_\odot\))

  • verbose (bool) – Verbose output from baccoemu. (default: False)

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

The baccoemu BCM 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(log10_M_c=None, log10_eta=None, log10_beta=None, log10_M1_z0_cen=None, log10_theta_out=None, log10_theta_inn=None, log10_M_inn=None)[source]

Update parameters. All parameters set to None will be left untouched.

Parameters:
  • log10_M_c (float) – characteristic halo mass to model baryon mass fraction (in \(M_\odot\))

  • log10_eta (float) – extent of ejected gas

  • log10_beta (float) – slope of power law describing baryon mass fraction

  • log10_M1_z0_cen (float) – characteristic halo mass scale for central galaxies (in \(M_\odot\))

  • log10_theta_out (float) – outer slope of density profiles of hot gas in haloes

  • log10_theta_inn (float) – inner slope of density profiles of hot gas in haloes

  • log10_M_inn (float) – transition mass of density profiles of hot gas in haloes (in \(M_\odot\))