-
Notifications
You must be signed in to change notification settings - Fork 24
Add ocean horizontal viscosity to 1 deg ocean simulation example #697
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
|
Looks good! I have found a bit more success using the biharmonic viscosity, with something like something like @inline νhb(i, j, k, grid, ℓx, ℓy, ℓz, clock, fields, λ) = Oceananigans.Operators.Az(i, j, k, grid, ℓx, ℓy, ℓz)^2 / λ
horizontal_viscosity = HorizontalScalarBiharmonicDiffusivity(ν=νhb, discrete_form=true, parameters=15days) |
Ok let's try it. We may want to implement this function in Oceananigans. |
|
https://clima.github.io/ClimaOceanDocumentation/previews/PR697/literated/one_degree_simulation/ Simulation results look OK. |
|
Looks like it has something to do with using a function in ScalarBiharmonicDiffusivity. I think the results like much better. The grid imprinting seems to be gone. |
|
I've never seen that warning before. Did we change something recently related to ScalarBiharmonicDiffusivity? |
It's the kind of message that occurs when we try to load something after it has been serialized with JLD2. I don't know why JLD2 is trying to serialize |
|
It's because the JLD2Writer is trying to save the function
|
navidcy
left a comment
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.
Happy to merge this. But do we want it with all those JLD2 warnings?
|
I don't think we can avoid them... |
|
I think we can write the stuff saved is pretty arbitrary though. We should probably change that to just save the grid. |
|
@simone-silvestri presumably you must hve seen this? |
@jlk9 @heimbach