#pseudospectral

2024-03-04

💡 Did you know that #FluidFFT lets you do much more than computing #FourierTransform and its inverse?

With an "OperatorsPseudoSpectral2D" (or 3D) class you can compute transforms, compute derivatives, divergence, curl, gradients, apply dealiasing etc easily and efficiently!

You don't have to grok how FFTs are arranged numerically and what wave numbers are. It simplifies things. Here is an example from the archives

fluiddyn.netlify.app/intensely

fluidfft.readthedocs.io/en/lat

#pseudospectral

Ashwin V. Mohananashwinvis@fediscience.org
2021-02-03

#TIL how Fourier transforms and #pseudospectral methods are intimately related to #FEM. What was missing from the picture is how a tool for numerical integration could be used for numerical differentiation.

If you think about it, Fourier transforms are also expressed as integration over an interval in space. When you differentiate a function it only affects the basis. For example:

exp(ikx) -> ik * exp(ikx)

1/2

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst