-
Notifications
You must be signed in to change notification settings - Fork 29
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
Missing (-1)^{n+1}
factor from hyperdiffusion term
#283
Conversation
Seems like in the docs where the the eigenvalues of the Laplacian/hyperLaplacian are written down, the (Btw, docs report the eigenvalues of |
This is a good point, I missed that. And it's not just in the documentation we also need to address that here
Because theoretically one should be able to choose Update: No changes to the code needed as we normalise by the largest eigenvalue (which changes sign depending on the power!) anyway, so that the dissipative nature is retained for power=odd and even. |
@navidcy I've changed the documentation to (hopefully) be clearer and consistent with the sign of diffusion and also adapted the dynamics to actually match the documentation. Feel free to review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
I can't approve because I opened the PR ;)
Co-authored-by: Navid C. Constantinou <navidcy@users.noreply.github.com>
Let me quickly check that I can reproduce the figures in #286 with the signs changed in the dynamical core |
I believe that the hyperdiffusion term is missing a$(-1)^{n+1}$ factor? For example, for $n=1$ it's plain-old viscosity so it should be $+\nu\nabla^2\zeta$ but for $n=2$ it should be $-\nu\nabla^4\zeta$ , otherwise the hyperdiffusion is not dissipative.
Am I right? If so, perhaps this mistake propagates elsewhere in the docs?
closes #286