pyccl.neutrinos module

pyccl.neutrinos.Omeganuh2(a, m_nu, T_CMB=None)[source]

Calculate Omega_nu * h^2 at a given scale factor given the sum of the neutrino masses.

Note

for all practical purposes, Neff is simply N_nu_mass.

Parameters:
  • a (float or array-like) – Scale factor, normalized to 1 today.
  • m_nu (float or array-like) – Neutrino mass (in eV)
  • T_CMB (float, optional) – Temperature of the CMB (K). Default: 2.725.
Returns:

corresponding to a given neutrino mass.

Return type:

float or array_like

pyccl.neutrinos.nu_masses(OmNuh2, mass_split, T_CMB=None)[source]

Returns the neutrinos mass(es) for a given OmNuh2, according to the splitting convention specified by the user.

Parameters:
  • OmNuh2 (float) – Neutrino energy density at z=0 times h^2
  • mass_split (str) – indicates how the masses should be split up Should be one of ‘normal’, ‘inverted’, ‘equal’ or ‘sum’.
  • T_CMB (float, optional) – Temperature of the CMB (K). Default: 2.725.
Returns:

Neutrino mass(es) corresponding to this Omeganuh2

Return type:

float or array-like