-
Notifications
You must be signed in to change notification settings - Fork 194
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
Is HydrostaticFreeSurfaceModel
supposed to support a rigid lid?
#3735
Comments
Nice. I think, these fixes are enough for a rigid lid to work because pressure_correct_velocities!(model::RigidLidHFSM, Δt) = nothing in the |
Awesome! I can start a PR to support rigid lids then. |
A rigid lid requires a solver for barotropic pressure and a pressure correction step. |
Ah is it worth doing something with #3740 then so the model doesn't error with I can also update the PR to get rid of |
Right, I blundered a bit here. Should we even allow |
Hmmmmmmmm Right, if we really want to do stuff with a rigid lid then we need to add another field to As for |
I noticed a file called
rigid_lid.jl
exists (https://github.com/CliMA/Oceananigans.jl/blob/b3be950ef6a1f2139c2f65e083f20f1f7958ea55/src/Models/HydrostaticFreeSurfaceModels/rigid_lid.jl) so I was curious whetherHydrostaticFreeSurfaceModel
can run with a free surface, presumably by passingfree_surface = nothing
.It does error (see MWE below) but with a couple of extra function definitions (see far below) it seems to time step. Are these fixes enough for a working rigid lid? If not, does it make sense to remove the
rigid_lid.jl
file?Note: The documentation also mentions a rigid lid here: https://clima.github.io/OceananigansDocumentation/stable/numerical_implementation/elliptic_solvers/#Rigid-lid-pressure-operator
Minimal working example to reproduce the error:
Error:
"Fixes":
Environment: Oceananigans.jl v0.91.11 and
The text was updated successfully, but these errors were encountered: