Function crpropa::gridPowerSpectrum

Function Documentation

std::vector<std::pair<int, float>> crpropa::gridPowerSpectrum(ref_ptr<Grid3f> grid)

Calculate the omnidirectional power spectrum E(k) for a given turbulent field

Parameters:

grid – a three-dimensional grid

Returns:

Returns a vector of pairs (k_i, E(k_i)).