Computed kinetic energy dissipation rate seems too small #3710
Replies: 2 comments 22 replies
-
It looks like you are using the There's been similar discussions recently over on Your code looks great and I appreciate how neat it is -- that makes it easy to read and understand. Here are just a few notes I got from a quick read:
|
Beta Was this translation helpful? Give feedback.
-
@inline kernel_getbc(i, j, k, grid, boundary_condition, clock, fields) =
getbc(boundary_condition, i, j, grid, clock, fields)
@inline function SurfaceMomentumFlux(model::NonhydrostaticModel, momentum_name)
model_fields = fields(model)
momentum = model.velocities[momentum_name]
mom_bc = momentum.boundary_conditions.top
LX = location(momentum, Int32(1))
LY = location(momentum, Int32(2))
return KernelFunctionOperation{LX, LY, Nothing}(kernel_getbc, model.grid, mom_bc, model.clock, model_fields)
end
# Surface fluxes
Qu = Field(Average(SurfaceMomentumFlux(model, :u), dims=(1,2)))
Qv = Field(Average(SurfaceMomentumFlux(model, :v), dims=(1,2))) |
Beta Was this translation helpful? Give feedback.
-
Hi everyone!
I'm currently working on a GPU simulation of the ice-ocean boundary layer, and in my analysis I am computing all the terms in the turbulent kinetic energy budget:
where nu_e is the eddy viscosity (denote the dissipation term as epsilon hereafter). My Reynolds averaging is just a horizontal spatial average. I've also neglected the TKE advection as it is small. I'm also computing the energy budget:
where the LHS is the sum of the change in kinetic and potential energy as well as the dissipation (plus the change in TKE, but this is small) and the RHS is the wind work (tau is the imparted surface stress, in this case just u_star_0^2 in the x direction).
Now I have two issues. First, the TKE budget doesn't close (see below for an example simulation with nonzero residual averaged over half an inertial period). I expect near the surface that the shear production would be balanced by the dissipation, but it seems that the shear production is more than two times larger. Note that terms seem to sort of blow up near the surface, but I assume that is due to insufficient resolution there.
The second is that the second energy budget doesn't close (see below, the same simulation as above).
There is a strange spike roughly before 0.1 in the second energy budget, but that is associated with spin-up. Interestingly, if I multiply my dissipation by ~2.8, it seems to roughly close both budgets. I was wondering if anyone had any ideas as to why this is happening, or if someone could spot a stupid mistake I am making. Below is the simplified code that reproduces this issue (very similar to the ocean mixing example):
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions