hmf.core.species.omega_m

hmf.core.species.omega_m(cosmology: FLRW, z: ArrayLike, species: str = 'cb') → ndarray[tuple[Any, ...], dtype[float64]][source]

The density parameter of a matter species at redshift z.

\[\Omega_s(z) = \frac{\Omega_{s,0}(1+z)^3}{E^2(z)},\]

with astropy’s \(E(z) = H(z)/H_0\), which includes radiation, curvature and dark energy. For "cb" this is astropy’s Om(z). Massive neutrinos ("tot") are counted as non-relativistic matter, with their density today, which holds while they are non-relativistic: for z below about \(m_\nu / 5\times10^{-4}\,{\rm eV}\) (z ~ 100 for 0.06 eV).

Parameters:
  • cosmology – The cosmology.

  • z – Redshift(s), dimensionless.

  • species – "cb" (CDM + baryons) or "tot" (also the massive neutrinos).

Returns:

\(\Omega_s(z)\), dimensionless, with the shape of z (0-d for a scalar).

Return type:

numpy.ndarray

Raises:

ValueError – If species is not a matter species.