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

Linear solver for the moist convective SW equations #476

Merged
merged 4 commits into from
Feb 26, 2024

Conversation

nhartney
Copy link
Contributor

@nhartney nhartney commented Feb 9, 2024

This adds a MoistConvectiveSWSolver class to linear_solvers.py. This solver is suitable for the moist convective shallow water equations. It takes the same approach as the LinearTimesteppingSolver, but is necessary because the LinearTimesteppingSolver cannot deal with the third prognostic field (the moisture).
The solver solves a linear problem for the shallow water equations with prognostic variables u (velocity) and D (depth). The linear system is solved using a hybridised-mixed method.
The PR also adds an example, moist_convective_williamson2.py, which uses the moist convective equations and the MoistConvectiveSWSolver in the SIQN scheme to solve a version of the steady-state solid body rotation test with moisture and with feedback on the height equation.

Copy link
Contributor

@jshipton jshipton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great - thanks for adding the example!

@jshipton jshipton merged commit 62d4ee8 into main Feb 26, 2024
4 checks passed
@jshipton jshipton deleted the moist_convective_linear_solver branch February 26, 2024 10:44
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.

2 participants