hmf.core.linear_power

The LinearPower stage: the linear power spectrum P(k, z), normalised to sigma_8.

The stage combines a Transfer stage (the shape of the power at z = 0) and its growth, a Growth stage built from the transfer stage and growth_model (LinearPower.growth), with the normalisation \(\sigma_8\):

\[P(k, z) = A\, D^2(z)\, P_{\rm raw}(k),\]

with \(P_{\rm raw} = k^{n_s} T^2(k)\) the unnormalised power of species (Transfer.power_source), and \(D(z)\) the growth factor of the same species, with \(D(0) = 1\).

The sigma_8 normalisation

The amplitude \(A = (\sigma_8 / \sigma_{8,\rm raw})^2\) is a plain scalar (LinearPower.amplitude). \(\sigma_{8,\rm raw}\) is the rms of the unnormalised power of sigma_8_species, smoothed with a top-hat of radius 8 Mpc/h: MassVariance.ln_sigma_at_radius_kernel of a TopHat MassVariance of that species’ power, on the k grid of the transfer stage’s k_accuracy. By default species is "cb" and sigma_8_species is "tot", as in hmf 3.x: the CDM + baryon power, normalised so that the total matter field has the rms sigma_8 that CMB experiments quote. With massive neutrinos the CDM + baryon field then has a slightly larger rms than sigma_8 at 8 Mpc/h.

LinearPower.power_source is the unnormalised power of species, the power of the mass variance (see MassFunction). sigma_8 enters only through \(A\), so changing it changes only that scalar, and never the lattice of a MassVariance.

Scale-independent growth

P(k, z) factorises into a function of k and one of z. That holds for the linear power of CDM + baryons on the scales of haloes, and is how hmf 3.x computes it; with massive neutrinos the growth of the total matter field depends on scale. Every z-dependence of the linear power goes through LinearPower.sigma_scale_kernel() (\(\sqrt{A}\,D(z)\), the ratio of sigma(m, z) to the unnormalised sigma(m)) and LinearPower.power_kernel(), which is its square times \(P_{\rm raw}(k)\). A scale-dependent P(k, z), e.g. from a Boltzmann code at each z, replaces those two, and then needs the mass variance of P(k, z) itself rather than a rescaling of \(\sigma_{\rm raw}\).

Classes

LinearPower(*, transfer[, growth_model, ...])

The linear power spectrum P(k, z), normalised to sigma_8.