Prescribing the buoyancy field and using thermal wind for the velocities #2602
Unanswered
iuryt
asked this question in
Computational science!
Replies: 1 comment 6 replies
-
I think you're looking for which only works with Docs are sparse, but there is this validation test (which may be out of date): |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It might not be the great idea, but what I am trying to do is to use the architecture of Oceananigans to run the following simulation:
I have a submesoscale resolving simulation with fronts getting unstable and I want to use the 10km averaged buoyancy from this simulation to run another simulation where we only advect biogeochemical with the thermal-wind balanced fields.
Link to input file with the averaged fields.
My idea is that at each timestep I prescribe the buoyancy field and update the velocity field from the vertical integration of the horizontal buoyancy gradients. In other words, I don't want to evolve the buoyancy and velocity field, but use the architecture of the model to advect and force my tracers with the prescribed fields. Does that make sense?
It seems to work well when I am just prescribing the buoyancy field, but it returns NaN if I try to add a function to compute and update velocity fields using thermal wind (assuming zero velocities at the bottom).
The code below has a simplified version that reproduces the error. I removed all the forcing for the tracers and mixed-layer depth to make is simpler and reproductible.
The cumulative_vertical_integration.jl file is:
The simulation run returns the following output:
Anyone has any idea on how I could fix this?
Beta Was this translation helpful? Give feedback.
All reactions