-
Notifications
You must be signed in to change notification settings - Fork 241
Docs for zstar vertical coordinate #4588
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
base: main
Are you sure you want to change the base?
Conversation
is there a preview? |
Always, at: https://clima.github.io/OceananigansDocumentation/previews/PR4588/ At the moment there is not much changes tho |
I could not find this page in the physics tabe but found it here, in case others want a quick link. https://clima.github.io/OceananigansDocumentation/previews/PR4588/physics/zstar_vertical_coordinate/ |
My bad! I put the wrong link! Fixed it now! |
… into ss/non-linear-docs
… into ss/non-linear-docs
@@ -0,0 +1,128 @@ | |||
# Generalized vertical coordinate | |||
|
|||
For `HydrostaticFreeSurfaceModel()`, the user can choose between a `ZCoordinate` and a `ZStar` vertical coordinate. |
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.
given that this section is only relevant for HydrostaticFreeSurfaceModel()
perhaps we move it a bit further down in the docs structure?
@simone-silvestri is this ready to review or are you still working on it? (just asking because it's a Draft PR) |
I am thinking of adding also the momentum equations in vector-invariant form today, and a small code tutorial (probably), then it will be ready for review. |
Cool -- ping me when you are done. |
Ok, I also derived the material derivative of the horizontal velocity in the vector invariant form. All the nomenclature follows very closely the symbols we use in the source code, so it should be very easy to verify the implementation from the docs. I think this is enough for the moment. This PR should be ready to review |
I think I will put off the discretization of the momentum equations in this PR because it probably requires its own section. |
Also the non-linear free surface requires its own section, this is just the vertical coordinate transformation |
I'd like to get rid of the "physics" section of the docs eventually. Can we discuss where this documentation should go? Note, this is not physics, its numerics. |
Right, maybe it makes more sense to add this section in the |
I think this will also be complemented by a section on linear vs non linear free surface which will be similar to the |
I would suggest striking the "physics" section, and instead presenting model description and configuration into a single docs section. Then for numerics, maybe a docs section on "Discretization", where we introduce the staggered grid, second order difference, derivative, and reconstruction, reductions, upwinding and WENO, time-stepping, diffusion, solvers, and then z*. |
Maybe the generalized vertical coordinate section can appear before the "Discretization" and after the hydrostatic free surface model setup so that we refer always to the same equations with |
Or we can do away with trying to distinguish between "equations / physics" and "discretization" and come up with another design? |
Is this We should use identical notation for math and in the code, I think otherwise it will be easy to get very confused. In the code, |
Nono, |
Note that in the docs Oceananigans.jl/src/Operators/time_variable_grid_operators.jl Lines 34 to 48 in 013f275
|
Yeah, I like the idea, we can blend both together and write equations and discretizations together. We should start with grids and the C-grid framework and then move to models where we show equations and discretizations together. |
There is already a |
This PR adds docs for the derivation of the generalized vertical coordinate equations and their detailed numerical implementation including the formulation we use for a non-linear free surface.
https://clima.github.io/OceananigansDocumentation/previews/PR4588/physics/zstar_vertical_coordinate/