Skip to content
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

Merged
merged 7 commits into from
Nov 25, 2024

Conversation

simone-silvestri
Copy link
Collaborator

It was broken so this PR fixes it. This method is untested and unvalidated so adding tests is probably not required right now.

@simone-silvestri
Copy link
Collaborator Author

cc @masonrogers14

@glwagner
Copy link
Member

@masonrogers14 try to run your case with this branch and see what happens!

@masonrogers14
Copy link

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
@glwagner
Copy link
Member

actual fluid dynamics 🔥

@glwagner
Copy link
Member

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.

@simone-silvestri simone-silvestri merged commit fe4123f into main Nov 25, 2024
46 checks passed
@simone-silvestri simone-silvestri deleted the ss/disambiguate-boundary-preserving-scheme branch November 25, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants