Skip to content

How do I calculate the total pressure contribution in a turbulent kinetic energy budget using the Oceananigans kernels? #3431

Discussion options

You must be logged in to vote

You can treat pressure like any other term, there should be no ambiguity contingent on the fact you use the pressure at n+1. In fact, the logical steps that we are taking are:

uⁿ⁺¹  = uⁿ +  Δt Gⁿ
pⁿ⁺¹  = poisson_solution(∇uⁿ⁺¹...)
uⁿ⁺¹  = uⁿ⁺¹ + Δt ∂ₓpⁿ⁺¹

so the non-hydrostatic pressure at n+1 is a part of the tendency as much as all the other terms. Also, as Greg said, you need the information at n+1 to calculate the budgets because the correct way to assess the discrete kinetic energy is to do

(uⁿ⁺¹ + uⁿ) Gⁿ / 2

For the pressure this means that the discrete contribution of the pressure term to the discrete kinetic energy is

(uⁿ⁺¹ + uⁿ) ∂ₓpⁿ⁺¹ / 2

If you want to be extremely precise you…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@tomchor
Comment options

tomchor Jan 19, 2024
Collaborator Author

Comment options

You must be logged in to vote
3 replies
@tomchor
Comment options

tomchor Jan 19, 2024
Collaborator Author

@simone-silvestri
Comment options

@tomchor
Comment options

tomchor Jan 22, 2024
Collaborator Author

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