Skip to content
Discussion options

You must be logged in to vote

Oh my periodic Coriolis! There's two ways to achieve this. One is to implement the desired Coriolis force as a forcing function. I suspect you'll need to use DiscreteForcing, because you'll have to write the Coriolis stencil carefully to get either enstrophy or energy conserving results. For this option you can check out the docs on forcing functions:

https://clima.github.io/OceananigansDocumentation/stable/model_setup/forcing_functions/

and also our implementation of Coriolis stencils for spherical domains:

https://github.com/CliMA/Oceananigans.jl/blob/main/src/Coriolis/hydrostatic_spherical_coriolis.jl

For example, you might need something like

using Oceananigans.Operators: Δx_vᶜᶠᵃ, Δy_…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rbenamran
Comment options

@glwagner
Comment options

Answer selected by rbenamran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants