Function es::get_spectra

Function Documentation

void es::get_spectra(AdemData &data, const EddySignature &signature_a, const EddySignature &signature_b)

Get the premultiplied power spectra.

Computes tensors \( \Psi_{a} \) (psi_a) and \( \Psi_{b} \) (psi_b) from the scale functions and the eddy signatures, and adds them to the AdemData object.

The output spectral tensors have dimension [nz x nk x 6], where nz should agree with the number of elements in the t2w scale functions, and nk represents the number of wavenumbers for which the spectrum is computed.

Parameters
  • data: AdemData object, which must have properties t2wa, `t2wb’ and u_tau defined already.
  • signature_a: Signature object for Type A eddies
  • signature_b: Signature object for Type B eddies