Skip to content

Excise KE Spectra from this package #17

Closed

Description

@jbphyswx

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.

Activity

  1. jbphyswx commented on Jun 5, 2026

    @jbphyswx
    OwnerAuthor

    We created https://github.com/jbphyswx/FlowFieldSpectra.jl which should help with this

  2. self-assigned this
    on Jun 5, 2026
  3. jbphyswx commented on Sep 6, 2026

    @jbphyswx
    OwnerAuthor

    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-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)
    • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions