Skip to content

Vertical diffusion ​

Vertical diffusion represents the turbulent mixing in the vertical of momentum , temperature (via the dry static energy, see below) and specific humidity . In the boundary layer it spreads the surface fluxes of momentum, heat and moisture over the depth of the boundary layer; above, it mixes layers with strong wind shear and removes superadiabatic lapse rates. The diffusivity depends on space and time and is flow-aware: it is recalculated on every time step from the stability of the atmospheric column.

Implementations ​

The following schemes for vertical diffusion are currently implemented

julia
using SpeedyWeather
subtypes(SpeedyWeather.AbstractVerticalDiffusion)
1-element Vector{Any}:
 BulkRichardsonDiffusion

BulkRichardsonDiffusion is the default in both PrimitiveDryModel and PrimitiveWetModel. Its options are passed on as keyword arguments, and vertical_diffusion = nothing disables it

julia
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 diffusivity [m²/s] takes the form

with air density , height , pressure and gravity using the hydrostatic balance   . is the (negative) turbulent flux of . We discretise this over the layers   (top to surface, see Vertical coordinates) with defined on the interface   between layer and  

with the pressure thickness of layer , the conductance [kg/m²/s], the density   from the pressure and the Virtual temperature on the interface, and the distance between layers     from the Geopotential . There is no flux through the top of the atmosphere,  , and no diffusive flux through the surface,  , as the surface fluxes are computed separately. This formulation works for any Vertical coordinates and conserves the mass-weighted column integral exactly.

Temperature is diffused through the dry static energy   , holding the geopotential fixed, so that    and the temperature tendency is the tendency of . An adiabatic column with constant dry static energy is therefore not changed by the diffusion.

Implicit time integration ​

The diffusivity near the surface, where layers can be less than 100 m thick, can easily exceed the stability limit of an explicit time step. The diffusion is therefore integrated implicitly for every column, with evaluated at the previous time step (). Writing the diffusion operator above as , the tendency    from the previous value to the new one is the flux divergence of a state

with the time step of the parameterizations ( for leapfrog), the tendencies of the parameterizations called before the vertical diffusion (see below) and the implicitness factor (option implicitness):   would be an explicit step,   Crank-Nicolson,   is backward Euler and   is called over-implicit. The tendency is the solution of the tridiagonal system

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 , while the model still steps with . The system is diagonally dominant so that the solution is unconditionally stable for a given diffusivity and conserves the column integral, and for   the new value     lies between and , so that the diffusion alone does not create new extrema.

The default is  , the value of the IFS, see section 3.5 "Solution of the EDMF equations", equations (3.65) and (3.66), of : "In the model,  , to avoid non-linear instability from the K-coefficients", where is our . The reason is that the diffusivity is not constant but that of the previous time step and grows with the diffused state itself, e.g.    in the boundary layer. Backward Euler with such an explicit coefficient is only stable for a weak dependence (): for a damping rate and a large diffusivity a perturbation of a forced equilibrium is multiplied by    every step, which is for backward Euler, an oscillation between two states that grows for  , and stable for   . With   this model at T512 with 24 layers developed such oscillations (also known as fibrillations) in single columns with 60 to 75 m/s wind and diffusivities of several hundred m²/s in the lowermost layers, with a period of four time steps (two steps of leapfrog), which grew until the simulation failed. For   the tendencies enter with the weight too, which is why the IFS uses   for tracers, where the combination with a sink can otherwise create negative values (section 3.7 of ). Here all diffused variables use the same factor. Backward Euler is

julia
vertical_diffusion = BulkRichardsonDiffusion(spectral_grid, implicitness = 1)

The source are the tendencies of the parameterizations called before the vertical diffusion, by default the surface fluxes into the lowermost layer. They are applied first and the result is diffused, so that the surface fluxes are spread over the boundary layer within the time step instead of heating, moistening or decelerating only the lowermost layer. This is a split version of the coupled implicit solve of surface fluxes and vertical diffusion in .

Diffusivity ​

The diffusivity on every interface is the maximum of three parts, capped at (default 1000 m²/s)

and is computed separately for momentum and for heat and humidity , which differ only in . The implicit solver only needs the conductances   [kg/m²/s] from above, so these are stored, not the diffusivities, as vertical_conductance_momentum and vertical_conductance_heat in simulation.variables.parameterizations, next to the boundary layer height as 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   with the density and layer distance as defined above. The boundary layer height is written to the output with 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 with the bulk Richardson number

between the lowermost layer at height and the layer at height above the surface, using the virtual dry static energy    and the wind speed , at least 1 m/s (). is the height where first reaches the critical Richardson number   (option critical_Richardson) going upwards from the lowermost layer with  , interpolated linearly between the layers.   is the value of and at the upper end of the literature values of 0.25–1 (). For a given stratification the height grows like times the wind speed: a much larger value such as   gives tropical boundary layers of 1–2 km, but boundary layers that reach the tropopause under the mid-latitude jets. At T512 with 24 layers that mixing through the troposphere warmed the lowermost layer by 4–6 K, reversed the sensible heat flux over the oceans and reduced the precipitation by 30 % within half a year. Within the boundary layer

and zero above.   is the surface layer fraction of the boundary layer, above which decreases to zero at  . is

with the von Kármán constant   and the friction velocity   from the drag coefficient for momentum of the boundary layer and the surface wind speed , see Bulk Richardson-based drag coefficient. The stability correction in brackets uses the bulk Richardson number between the surface and the lowermost layer (computed as for the drag, from the soil and sea surface temperatures, weighted with the land fraction) clamped to   , so that it is 1 for unstable and neutral conditions and 0 for  . Frierson et al. (2006) use here. The cutoff is a separate option Richardson_cutoff with the same default  , so that keeps its conventional meaning as the threshold that defines the boundary layer height. The drag coefficient has its own cutoff with a default of 10, see Bulk Richardson-based drag coefficient. is the roughness length for momentum.

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 on the interfaces from the wind shear and the squared buoyancy frequency . The mixing length is    with the asymptotic mixing length   m (option mixing_length) below 1 km that decays towards   m (option free_mixing_length) in the free atmosphere as     above 1 km (). For stable stratification   the long-tail stability functions of

are used for momentum and heat . They decay slowly with so that some mixing remains also in strong inversions, which avoids that the surface decouples from the atmosphere in polar night (). For unstable stratification   ( , superadiabatic) use   for both, i.e.  , which also mixes superadiabatic layers without wind shear. With   m in the free atmosphere, however, a superadiabatic layer there is only mixed on a time scale of about a day. We therefore split this into a shear part and a buoyancy part

where the mixing length of the buoyancy part uses an asymptotic mixing length of at least 150 m (option convective_mixing_length) at all heights. This is continuous at   and mixes superadiabatic layers within a few time steps also in the free troposphere. convective_mixing_length = 0 recovers the formulation of .

Background diffusivity ​

A background diffusivity    with   m²/s (option background_diffusivity) and   m (option background_height) keeps a minimum of mixing near the surface for any stratification and wind.