Vertical diffusion
Vertical diffusion represents the turbulent mixing in the vertical of momentum
Implementations
The following schemes for vertical diffusion are currently implemented
using SpeedyWeather
subtypes(SpeedyWeather.AbstractVerticalDiffusion)1-element Vector{Any}:
BulkRichardsonDiffusionBulkRichardsonDiffusion is the default in both PrimitiveDryModel and PrimitiveWetModel. Its options are passed on as keyword arguments, and vertical_diffusion = nothing disables it
spectral_grid = SpectralGrid(truncation = 32, nlayers = 8)
vertical_diffusion = BulkRichardsonDiffusion(spectral_grid, background_diffusivity = 0.5)
model = PrimitiveWetModel(spectral_grid; vertical_diffusion)
model_without = PrimitiveWetModel(spectral_grid; vertical_diffusion = nothing)BulkRichardsonDiffusion is explained in the following. It uses the surface drag and wind of the boundary layer (model.boundary_layer, the default) and is called after the surface fluxes. In a model without a boundary layer only its local and background diffusivity act. See Parameterizations for the general parameterization interface these implement.
Diffusion as a flux divergence
The vertical diffusion of a variable
with air density
with
Temperature is diffused through the dry static energy
Implicit time integration
The diffusivity near the surface, where layers can be less than 100 m thick, can easily exceed the stability limit
with implicitness):
which is solved with the Thomas algorithm, a forward elimination and a back substitution over the layers. This is the backward Euler solve with the time step
The default is
vertical_diffusion = BulkRichardsonDiffusion(spectral_grid, implicitness = 1)The source
Diffusivity
The diffusivity on every interface is the maximum of three parts, capped at
and is computed separately for momentum vertical_conductance_momentum and vertical_conductance_heat in simulation.variables.parameterizations, next to the boundary layer height boundary_layer_height. The value belongs to the interface below each layer and is zero for the lowermost layer (no flux through the surface). The diffusivity is add!(model, OutputVariables.BoundaryLayerHeight()) (blh in m), which is also part of the output group OutputVariables.BoundaryLayer().
Boundary layer profile
Following we define the boundary layer height
between the lowermost layer critical_Richardson) going upwards from the lowermost layer with
and zero above.
with the von Kármán constant Richardson_cutoff with the same default
Local diffusivity
Above the boundary layer, and within it where the profile is weaker, the diffusivity follows the local first-order closure of
with the gradient Richardson number mixing_length) below 1 km that decays towards free_mixing_length) in the free atmosphere as
are used for momentum
where the mixing length convective_mixing_length) at all heights. This is continuous at convective_mixing_length = 0 recovers the formulation of .
Background diffusivity
A background diffusivity background_diffusivity) and background_height) keeps a minimum of mixing near the surface for any stratification and wind.