You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should excise the KE spectra part of this package out into a separate package that focuses on these flow field spectra.
That package should be able to handle Cartesian and Spherical, 2 and 3D flows and elide all the internal FFT and NUFFT details away from the user.
This package should provide utilities for going from SF to KE
But that's about it. That can either be self contained, or via extension to some new package.
The excision is complete — no spectra code in src/, nothing spectral exported from the calculation path, and the spectra work lives in its own package.
The other half of this issue — "This package should provide utilities for going from SF to KE" — is now implemented here, which is where it belongs since it consumes structure functions rather than producing spectra from fields:
isotropic_spectrum — dimension-aware S₂(r) → E(k), with the cosine / J₀ / sin(x)/x kernels for 1-D / 2-D / 3-D
gridded_spectrum + shell_average — the exact lag-space route for gridded input, which carries no angular assumption and works with cells missing
helmholtz_spectra — the rotational/divergent split transformed to E_rot(k) / E_div(k)
Activity
jbphyswx commentedon Jun 5, 2026
We created https://github.com/jbphyswx/FlowFieldSpectra.jl which should help with this
jbphyswx commentedon Sep 6, 2026
Both halves are done.
The excision is complete — no spectra code in
src/, nothing spectral exported from the calculation path, and the spectra work lives in its own package.The other half of this issue — "This package should provide utilities for going from SF to KE" — is now implemented here, which is where it belongs since it consumes structure functions rather than producing spectra from fields:
isotropic_spectrum— dimension-awareS₂(r) → E(k), with the cosine /J₀/sin(x)/xkernels for 1-D / 2-D / 3-Dgridded_spectrum+shell_average— the exact lag-space route for gridded input, which carries no angular assumption and works with cells missinghelmholtz_spectra— the rotational/divergent split transformed toE_rot(k)/E_div(k)spectral_flux— interscale flux from advective structure functions (Support Pearson Advective Structure Functions #36)covariance/covariance_matrix(Covariance Matrix from Structure Fucntion #21)Closing. The remaining spectral work — NNLS-regularised energy transfers — is tracked in #18.