conatus.spectrum¶
- conatus.spectrum(source, axis, *, label=None)[source]¶
One-sided power spectrum of a field along a periodic axis, averaged over the others: with
f_kthe discrete Fourier coefficients of the grid values (rfft / N),E(k) = c_k \|f_k\|^2(c_k = 2exceptk = 0and the Nyquist mode), so thatsum_k E(k) = mean(f^2)(Parseval, checked by test). Shown against the wavenumber2 pi k / Lon log-log axes;k = 0(the mean) is left out of the curve.- Parameters:
source (str)
axis (str)
label (str | None)
- Return type:
Stat