Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Use smarter truncation for Fourier Modes #117

Open
dynamic-queries opened this issue Mar 2, 2023 · 1 comment
Open

Use smarter truncation for Fourier Modes #117

dynamic-queries opened this issue Mar 2, 2023 · 1 comment

Comments

@dynamic-queries
Copy link

Problem
For the moment, the first $n_{i}$ fourier modes are truncated.
While this works well for most diffusion like problems, this fairs poorly for advection dominated ones.

Solution
Perform an rfftshift and truncate the modes about the center of the array.

@yuehhua
Copy link
Collaborator

yuehhua commented Mar 3, 2023

It's welcome to open a PR for that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants