kspace.PowerLawBetaModel#

class kspace.PowerLawBetaModel(l_min, l_max, alpha, ndim=3)[source]#

Bases: PowerSpectrum

Power-law power spectrum with exponential cutoffs at small and large scales.

Parameters:
  • l_min (float) – Minimum scale (smallest wavelength) cutoff.

  • l_max (float) – Maximum scale (largest wavelength) cutoff.

  • alpha (float) – Power-law index.

  • ndim (int, optional) – Number of dimensions (1, 2, or 3). Default is 3.

__init__(l_min, l_max, alpha, ndim=3)[source]#

Methods

A(k)

The Fourier amplitude corresponding to the power spectrum at a given wavenumber k, A(k) = sqrt(E(k) * k).

E(k)

The "energy spectrum" of the power spectrum as a function of the wavenumber k.

__init__(l_min, l_max, alpha[, ndim])

integrate_E(kmin, kmax)

Integrate the energy spectrum E(k) over a range of wavenumbers.

renormalize(f_rms[, kmin, kmax])

Rescale the power spectrum's normalization so that the integral of its energy spectrum over [kmin, kmax] gives the desired RMS field value.