pyccl.neutrinos module

class pyccl.neutrinos.NeutrinoMassSplits(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

Enumeration listing all allowed neutrino mass split types.

  • ‘sum’: sum of masses.

  • ‘single’: single massive neutrino.

  • ‘equal’: total mass distributed equally among 3 species.

  • ‘normal’: normal hierarchy.

  • ‘inverted’: inverted hierarchy.

  • ‘list’: a list of 3 different masses is passed.

SUM = 'sum'
SINGLE = 'single'
EQUAL = 'equal'
NORMAL = 'normal'
INVERTED = 'inverted'
LIST = 'list'
pyccl.neutrinos.nu_masses(*, Omega_nu_h2=None, mass_split, m_nu=None)[source]

Returns the neutrinos mass(es) for a given value of \(\Omega_\nu h^2\), according to the splitting convention specified by the user.

Parameters:
  • Omega_nu_h2 (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’.

  • m_nu (float or array_like) – Mass in eV of the massive neutrinos present. If a sequence is passed, it is assumed that the elements of the sequence represent the individual neutrino masses.

Returns:

Neutrino mass(es) corresponding to this \(\Omega_\nu h^2\).

Return type:

float or array