Closing Momentum Budget using WENO advection scheme #3363
Replies: 1 comment 7 replies
-
Your suspicions are correct! The tendency kernel functions are here: for example advection is which you can compute via using Oceananigans.Advection: div_𝐯u
advection = model.advection
u, v, w = velocities = model.velocities
uu_x = KernelFunctionOperation{Face, Center, Center}(div_𝐯u, grid, advection, velocities, u) the other components are using Oceananigans.Advection: div_𝐯v, div_𝐯w
vu_y = KernelFunctionOperation{Center, Face, Center}(div_𝐯v, grid, advection, velocities, v)
wu_z = KernelFunctionOperation{Center, Center, Face}(div_𝐯w, grid, advection, velocities, w) that will work provided your model doesn't have background velocity fields. If it does, you need to use Once you have the Note that these advection flux divergences are located at the same place as the variables to which they refer (not at Center, Center, Center, unless it is the tracer advective flux divergence). |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am trying to close the momentum/divergence/vorticity budgets using nonhydrostatic model outputs. The model uses a WENO fifth-order scheme for advection. I have been using the following approach to calculate the advection terms for momentum. However, I suspect it may be an approximation of the "true" momentum flux. Is there a way to obtain the advection terms that align with WENO scheme?
Many thanks,
Roger
Beta Was this translation helpful? Give feedback.
All reactions