-
Notifications
You must be signed in to change notification settings - Fork 195
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
Double gyre example #1085
Double gyre example #1085
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1085 +/- ##
=======================================
Coverage ? 57.31%
=======================================
Files ? 162
Lines ? 3882
Branches ? 0
=======================================
Hits ? 2225
Misses ? 1657
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
This would make an awesome example! By modifying the parameters it could also be used at https://github.com/CliMA/OceanModelComparison.jl to compare against the double gyre solution produced by ClimateMachine.jl. |
Indeed. I also want to see if I can get some eddies and do some time-averaging of the barotropic flow for pedagogical purposes. |
Any chance we use vertically stretched grid? |
Stretched grid implementation isn't complete... |
Hint, hint? |
We can't use a vertically stretched grid for this example because Oceananigans does not support vertically stretched grids. |
The animation above is a 10 year run starting from rest. With a resolution of |
Would it make sense to initialize with the analytical solution to the (linear or weakly nonlinear) barotropic problem? Even if a simple Laplacian viscosity is a poor parameterization for eddy effects, it should dramatically accelerate the equilibration process, right? |
@navidcy we definitely want an example of this kind. It's a bit of work though, but perhaps we should bring this PR up to date? |
done |
I was looking for a reference to compare this to and found this paper by Nadiga and Straub. They solve a one-layer Quasi-Geostrophic model so it will certainly have some differences, but if we have very low vertical resolution, I woudl expect that they should yield similar results. Sharing it in case it might be of interest. |
I updated the code so that it runs with the latest functions, and I also modified it to run with a lat-lon grid. This is a result for the case with Also, I can run it with What would people like to see? double_gyre_output.mp4 |
Can you use the MITgcm documentation as a reference? https://mitgcm.readthedocs.io/en/latest/examples/baroclinic_gyre/baroclinic_gyre.html |
I am using all of the same parameters at the MITgcm Baroclinic Ocean Gyre example. I looked at it again and see that they have some results from year 100. We can try and reproduce those, but it will take a while to get 100 years. |
In my reading of the docs I see
From the first paragraph here: https://mitgcm.readthedocs.io/en/latest/examples/baroclinic_gyre/baroclinic_gyre.html. Is there another reference? |
My mistake. Yes, 15 points in the vertical. I will work on reproducing some of their diagnostics and confirm things compare. |
I updated the script and the simulation ran but I got a weird segfault during plotting (Julia 1.6.7). Did not try to replicate on another machine yet. |
[I moved this work from my fork to an Oceananigans branch.] |
This needs work but following suggestion, I submit a PR and we all work together... :)
Closes #678.