-
Notifications
You must be signed in to change notification settings - Fork 196
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
Fix positivity preserving WENO #3952
Fix positivity preserving WENO #3952
Conversation
Co-authored-by: Gregory L. Wagner <[email protected]>
@masonrogers14 try to run your case with this branch and see what happens! |
Thanks for flagging me--so far on my trivial test case (Gaussian patch of tracer in constant flow), negative values do appear, but they do not seem to grow nearly as quickly as before. I'll keep you posted as I scale up to actual fluid dynamics |
…om:CliMA/Oceananigans.jl into ss/disambiguate-boundary-preserving-scheme
actual fluid dynamics 🔥 |
Hummm I wonder if we can also use a nudging term for negative values in the tracer equation. Also I am not sure where this ends up being a problem but one can try to clip negative values where they are used. For example, CATKE does this for the TKE. |
It was broken so this PR fixes it. This method is untested and unvalidated so adding tests is probably not required right now.