which returns a dictionary of horizontally-AveragedFields that calculate the turbulent kinetic energy, buoyancy flux, shear production, dissipation, advective flux, and pressure flux. Currently the functions for calculating flux divergences do not compile on the GPU but this can be done in post-process.
An illustration of how to use these diagnostics is given in examples/langmuir_turbulence.jl which is an adapted and expanded version of Oceananiganas' example.
This PR adds diagnostics for calculating the turbulent kinetic energy budget. The main interface is
which returns a dictionary of horizontally-
AveragedField
s that calculate the turbulent kinetic energy, buoyancy flux, shear production, dissipation, advective flux, and pressure flux. Currently the functions for calculating flux divergences do not compile on the GPU but this can be done in post-process.An illustration of how to use these diagnostics is given in
examples/langmuir_turbulence.jl
which is an adapted and expanded version ofOceananiganas
' example.cc @qingli411 @adelinehillier