-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we enforce dealiasing before any calculation of nonlinear terms? #247
Comments
I think it should be user choice, but this is a good default. |
Well I don't understand exactly what you may be implying. Also, e.g., if a user wants to solve 2D Navier-Stokes with advection terms like I'm just saying that modules should solve the right equations and, of course, if a user wants to do something else they can do it. The modules claim that they compute nonlinear quadratic terms but they have aliasing error if |
Can you be more specific? Do we claim that we dealias nonlinear products? |
No, we "claim" that modules compute, e.g., |
We compute a numerical approximation to |
Yes. I was at some point mislead to think that if you have filter or hyper viscosity than there is no aliasing errors though. And I'm trying to avoid this situations for others. |
Heh, well many users will not run simulations with aliasing errors if dealiasing is default. I agree with that. I'm not sure anybody will be the wiser regarding an understanding of aliasing errors though. One caveat is that the effective resolution of simulations with dealiasing is 2/3 or what's specified. So people will write Or you can go the way of dedalus and use 3/2 dealiasing. That's certainly the right way to do it if one needs to define a "right" way. |
I think we should be applying
dealias!(sol, prob.grid)
before any calculations of quadratic nonlinearities. We were getting away with this up to now either because of viscosity/hyperviscosity damping high-wavenumber modes or due to theFiltered
time steppers.The text was updated successfully, but these errors were encountered: