DedalusProject / dedalus

A flexible framework for solving PDEs with modern spectral methods.
http://dedalus-project.org/
GNU General Public License v3.0
489 stars 115 forks source link

Energy Spectrum for Rayleigh Bénard Convection #291

Closed chelseajohn closed 1 month ago

chelseajohn commented 3 months ago

Hi, I am using Dedalus to solve 2-D Rayleigh Bénard Convection using Dedalus, and I was wondering if there was already some inbuilt function to extract or plot the Kinetic energy spectrum. Any hints are appreciated.

kburns commented 1 month ago

Notebook 3 here includes some code for plotting spectra, but since people like to do this in a variety of ways, we generally leave it to the user. Any existing workflow you have for computing spectra from grid data can be used with Dedalus outputs on the grid, too, for periodic problems. Happy to discuss more on the mailing list.