trixi-framework / Trixi.jl

Trixi.jl: Adaptive high-order numerical simulations of conservation laws in Julia
https://trixi-framework.github.io/Trixi.jl
MIT License
520 stars 101 forks source link

Implement spectral analysis (FFT) of numerical solutions #1713

Open ranocha opened 9 months ago

ranocha commented 9 months ago

It would be nice to be able to analyze the spectrum of numerical solutions via FFT, e.g., for the Taylor-Green vortex. This doesn't requir PDE-specific knowledge and would be a nice way to use FFTW.jl.

CC @jlchan

jlchan commented 9 months ago

See https://github.com/trixi-framework/paper-2022-robustness-entropy-projection/blob/6402bf40e13e50ce45fa3fd8852cb37e3092c9ae/julia_simulations/utilities.jl#L193-L217 for a 2D example