The Hybrid EDMF scheme is a first-order turbulent transport scheme used for subgrid-scale vertical turbulent mixing in the PBL and above. It blends the traditional first-order approach that has been used and improved over the last several years with a more recent scheme that uses a mass-flux approach to calculate the countergradient diffusion terms. More...
The PBL scheme's main task is to calculate tendencies of temperature, moisture, and momentum due to vertical diffusion throughout the column (not just the PBL). The scheme is an amalgamation of decades of work, starting from the initial first-order PBL scheme of [82], implemented according to [38] and modified by [31] and [32] to include top-down mixing due to stratocumulus layers from [57] and replacement of counter-gradient terms with a mass flux scheme according to [78] and [79]. Recently, heating due to TKE dissipation was also added according to [32].
This subroutine contains all of logic for the Hybrid EDMF PBL scheme except for the calculation of the updraft properties and mass flux. The scheme works on a basic level by calculating background diffusion coefficients and updating them according to which processes are occurring in the column. The most important difference in diffusion coefficients occurs between those levels in the PBL and those above the PBL, so the PBL height calculation is of utmost importance. An initial estimate is calculated in a "predictor" step in order to calculate Monin-Obukhov similarity values and a corrector step recalculates the PBL height based on updated surface thermal characteristics. Using the PBL height and the similarity parameters, the diffusion coefficients are updated below the PBL top based on [38] (including counter-gradient terms). Diffusion coefficients in the free troposphere (above the PBL top) are calculated according to [59] with updated Richardson number-dependent functions. If it is diagnosed that PBL top-down mixing is occurring according to [57], then then diffusion coefficients are updated accordingly. Finally, for convective boundary layers (defined as when the Obukhov length exceeds a threshold), the counter-gradient terms are replaced using the mass flux scheme of [78]. In order to return time tendencies, a fully implicit solution is found using tridiagonal matrices, and time tendencies are "backed out." Before returning, the time tendency of temperature is updated to reflect heating due to TKE dissipation following [32] .
local_name | standard_name | long_name | units | rank | type | kind | intent | optional |
---|---|---|---|---|---|---|---|---|
ix | horizontal_dimension | horizontal dimension | count | 0 | integer | in | F | |
im | horizontal_loop_extent | horizontal loop extent | count | 0 | integer | in | F | |
km | vertical_dimension | vertical layer dimension | count | 0 | integer | in | F | |
ntrac | number_of_vertical_diffusion_tracers | number of tracers to diffuse vertically | count | 0 | integer | in | F | |
ntcw | index_for_liquid_cloud_condensate | cloud condensate index in tracer array | index | 0 | integer | in | F | |
dv | tendency_of_y_wind_due_to_model_physics | updated tendency of the y wind | m s-2 | 2 | real | kind_phys | inout | F |
du | tendency_of_x_wind_due_to_model_physics | updated tendency of the x wind | m s-2 | 2 | real | kind_phys | inout | F |
tau | tendency_of_air_temperature_due_to_model_physics | updated tendency of the temperature | K s-1 | 2 | real | kind_phys | inout | F |
rtg | tendency_of_tracers_due_to_model_physics | updated tendency of the tracers | kg kg-1 s-1 | 3 | real | kind_phys | inout | F |
u1 | x_wind | x component of layer wind | m s-1 | 2 | real | kind_phys | in | F |
v1 | y_wind | y component of layer wind | m s-1 | 2 | real | kind_phys | in | F |
t1 | air_temperature | layer mean air temperature | K | 2 | real | kind_phys | in | F |
q1 | tracer_concentration | layer mean tracer concentration, cf. GFS_typedefs.F90 | kg kg-1 | 3 | real | kind_phys | in | F |
swh | tendency_of_air_temperature_due_to_shortwave_heating_on_radiation_time_step | total sky shortwave heating rate | K s-1 | 2 | real | kind_phys | in | F |
hlw | tendency_of_air_temperature_due_to_longwave_heating_on_radiation_time_step | total sky longwave heating rate | K s-1 | 2 | real | kind_phys | in | F |
xmu | zenith_angle_temporal_adjustment_factor_for_shortwave_fluxes | zenith angle temporal adjustment factor for shortwave | none | 1 | real | kind_phys | in | F |
psk | dimensionless_exner_function_at_lowest_model_interface | dimensionless Exner function at the surface interface | none | 1 | real | kind_phys | in | F |
rbsoil | bulk_richardson_number_at_lowest_model_level | bulk Richardson number at the surface | none | 1 | real | kind_phys | in | F |
zorl | surface_roughness_length | surface roughness length in cm | cm | 1 | real | kind_phys | in | F |
u10m | x_wind_at_10m | x component of wind at 10 m | m s-1 | 1 | real | kind_phys | in | F |
v10m | y_wind_at_10m | y component of wind at 10 m | m s-1 | 1 | real | kind_phys | in | F |
fm | Monin-Obukhov_similarity_function_for_momentum | Monin-Obukhov similarity function for momentum | none | 1 | real | kind_phys | in | F |
fh | Monin-Obukhov_similarity_function_for_heat | Monin-Obukhov similarity function for heat | none | 1 | real | kind_phys | in | F |
tsea | surface_skin_temperature | surface temperature | K | 1 | real | kind_phys | in | F |
heat | kinematic_surface_upward_sensible_heat_flux | kinematic surface upward sensible heat flux | K m s-1 | 1 | real | kind_phys | in | F |
evap | kinematic_surface_upward_latent_heat_flux | kinematic surface upward latent heat flux | kg kg-1 m s-1 | 1 | real | kind_phys | in | F |
stress | surface_wind_stress | surface wind stress | m2 s-2 | 1 | real | kind_phys | in | F |
spd1 | wind_speed_at_lowest_model_layer | wind speed at lowest model level | m s-1 | 1 | real | kind_phys | in | F |
kpbl | vertical_index_at_top_of_atmosphere_boundary_layer | PBL top model level index | index | 1 | integer | out | F | |
prsi | air_pressure_at_interface | air pressure at model layer interfaces | Pa | 2 | real | kind_phys | in | F |
del | air_pressure_difference_between_midlayers | pres(k) - pres(k+1) | Pa | 2 | real | kind_phys | in | F |
prsl | air_pressure | mean layer pressure | Pa | 2 | real | kind_phys | in | F |
prslk | dimensionless_exner_function_at_model_layers | Exner function at layers | none | 2 | real | kind_phys | in | F |
phii | geopotential_at_interface | geopotential at model layer interfaces | m2 s-2 | 2 | real | kind_phys | in | F |
phil | geopotential | geopotential at model layer centers | m2 s-2 | 2 | real | kind_phys | in | F |
delt | time_step_for_physics | time step for physics | s | 0 | real | kind_phys | in | F |
dspheat | flag_TKE_dissipation_heating | flag for using TKE dissipation heating | flag | 0 | logical | in | F | |
dusfc | instantaneous_surface_x_momentum_flux | x momentum flux | Pa | 1 | real | kind_phys | out | F |
dvsfc | instantaneous_surface_y_momentum_flux | y momentum flux | Pa | 1 | real | kind_phys | out | F |
dtsfc | instantaneous_surface_upward_sensible_heat_flux | surface upward sensible heat flux | W m-2 | 1 | real | kind_phys | out | F |
dqsfc | instantaneous_surface_upward_latent_heat_flux | surface upward latent heat flux | W m-2 | 1 | real | kind_phys | out | F |
hpbl | atmosphere_boundary_layer_thickness | PBL thickness | m | 1 | real | kind_phys | out | F |
hgamt | countergradient_mixing_term_for_temperature | countergradient mixing term for temperature | K | 1 | real | kind_phys | inout | F |
hgamq | countergradient_mixing_term_for_water_vapor | countergradient mixing term for water vapor | kg kg-1 | 1 | real | kind_phys | inout | F |
dkt | atmosphere_heat_diffusivity | diffusivity for heat | m2 s-1 | 2 | real | kind_phys | out | F |
kinver | index_of_highest_temperature_inversion | index of highest temperature inversion | index | 1 | integer | in | F | |
xkzm_m | atmosphere_momentum_diffusivity_background | background value of momentum diffusivity | m2 s-1 | 0 | real | kind_phys | in | F |
xkzm_h | atmosphere_heat_diffusivity_background | background value of heat diffusivity | m2 s-1 | 0 | real | kind_phys | in | F |
xkzm_s | diffusivity_background_sigma_level | sigma level threshold for background diffusivity | none | 0 | real | kind_phys | in | F |
lprnt | flag_print | flag for printing diagnostics to output | flag | 0 | logical | in | F | |
ipr | horizontal_index_of_printed_column | horizontal index of printed column | index | 0 | integer | in | F | |
errmsg | error_message | error message for error handling in CCPP | none | 0 | character | len=* | out | F |
errflg | error_flag | error flag for error handling in CCPP | flag | 0 | integer | out | F |
Functions/Subroutines | |
subroutine | edmf::edmf_run (ix, im, km, ntrac, ntcw, dv, du, tau, rtg, u1, v1, t1, q1, swh, hlw, xmu, psk, rbsoil, zorl, u10m, v10m, fm, fh, tsea, heat, evap, stress, spd1, kpbl, prsi, del, prsl, prslk, phii, phil, delt, dspheat, dusfc, dvsfc, dtsfc, dqsfc, hpbl, hgamt, hgamq, dkt, kinver, xkzm_m, xkzm_h, xkzm_s, lprnt, ipr, errmsg, errflg) |
subroutine | tridi2 (l, n, cl, cm, cu, r1, r2, au, a1, a2) |
Routine to solve the tridiagonal system to calculate temperature and moisture at \( t + \Delta t \); part of two-part process to calculate time tendencies due to vertical diffusion. | |
subroutine | tridin (l, n, nt, cl, cm, cu, r1, r2, au, a1, a2) |
Routine to solve the tridiagonal system to calculate u- and v-momentum at \( t + \Delta t \); part of two-part process to calculate time tendencies due to vertical diffusion. | |
subroutine | mfpbl (im, ix, km, ntrac, delt, cnvflg, zl, zm, thvx, q1, t1, u1, v1, hpbl, kpbl, sflx, ustar, wstar, xmf, tcko, qcko, ucko, vcko) |
This subroutine is used for calculating the mass flux and updraft properties. More... | |
subroutine edmf::edmf_run | ( | integer, intent(in) | ix, |
integer, intent(in) | im, | ||
integer, intent(in) | km, | ||
integer, intent(in) | ntrac, | ||
integer, intent(in) | ntcw, | ||
real(kind=kind_phys), dimension(im,km), intent(inout) | dv, | ||
real(kind=kind_phys), dimension(im,km), intent(inout) | du, | ||
real(kind=kind_phys), dimension(im,km), intent(inout) | tau, | ||
real(kind=kind_phys), dimension(im,km,ntrac), intent(inout) | rtg, | ||
real(kind=kind_phys), dimension(ix,km), intent(inout) | u1, | ||
real(kind=kind_phys), dimension(ix,km), intent(inout) | v1, | ||
real(kind=kind_phys), dimension(ix,km), intent(inout) | t1, | ||
real(kind=kind_phys), dimension(ix,km,ntrac), intent(inout) | q1, | ||
real(kind=kind_phys), dimension(ix,km), intent(inout) | swh, | ||
real(kind=kind_phys), dimension(ix,km), intent(inout) | hlw, | ||
real(kind=kind_phys), dimension(im), intent(inout) | xmu, | ||
real(kind=kind_phys), dimension(im), intent(inout) | psk, | ||
real(kind=kind_phys), dimension(im), intent(inout) | rbsoil, | ||
real(kind=kind_phys), dimension(im), intent(inout) | zorl, | ||
real(kind=kind_phys), dimension(im), intent(inout) | u10m, | ||
real(kind=kind_phys), dimension(im), intent(inout) | v10m, | ||
real(kind=kind_phys), dimension(im), intent(inout) | fm, | ||
real(kind=kind_phys), dimension(im), intent(inout) | fh, | ||
real(kind=kind_phys), dimension(im), intent(inout) | tsea, | ||
real(kind=kind_phys), dimension(im), intent(inout) | heat, | ||
real(kind=kind_phys), dimension(im), intent(inout) | evap, | ||
real(kind=kind_phys), dimension(im), intent(inout) | stress, | ||
real(kind=kind_phys), dimension(im), intent(inout) | spd1, | ||
integer, dimension(im), intent(out) | kpbl, | ||
real(kind=kind_phys), dimension(ix,km+1), intent(in) | prsi, | ||
real(kind=kind_phys), dimension(ix,km), intent(in) | del, | ||
real(kind=kind_phys), dimension(ix,km), intent(in) | prsl, | ||
real(kind=kind_phys), dimension(ix,km), intent(in) | prslk, | ||
real(kind=kind_phys), dimension(ix,km+1), intent(in) | phii, | ||
real(kind=kind_phys), dimension(ix,km), intent(in) | phil, | ||
real(kind=kind_phys), intent(in) | delt, | ||
logical, intent(in) | dspheat, | ||
real(kind=kind_phys), dimension(im), intent(out) | dusfc, | ||
real(kind=kind_phys), dimension(im), intent(out) | dvsfc, | ||
real(kind=kind_phys), dimension(im), intent(out) | dtsfc, | ||
real(kind=kind_phys), dimension(im), intent(out) | dqsfc, | ||
real(kind=kind_phys), dimension(im), intent(out) | hpbl, | ||
real(kind=kind_phys), dimension(im), intent(inout) | hgamt, | ||
real(kind=kind_phys), dimension(im), intent(inout) | hgamq, | ||
real(kind=kind_phys), dimension(im,km-1), intent(out) | dkt, | ||
integer, dimension(im), intent(in) | kinver, | ||
real(kind=kind_phys), intent(in) | xkzm_m, | ||
real(kind=kind_phys), intent(in) | xkzm_h, | ||
real(kind=kind_phys), intent(in) | xkzm_s, | ||
logical, intent(in) | lprnt, | ||
integer, intent(in) | ipr, | ||
character(len=*), intent(out) | errmsg, | ||
integer, intent(out) | errflg | ||
) |
The calculation of the boundary layer height follows [82] section 3. The approach is to find the level in the column where a modified bulk Richardson number exceeds a critical value.
The temperature of the thermal is of primary importance. For the initial estimate of the PBL height, the thermal is assumed to have one of two temperatures. If the boundary layer is stable, the thermal is assumed to have a temperature equal to the surface virtual temperature. Otherwise, the thermal is assumed to have the same virtual potential temperature as the lowest model level. For the stable case, the critical bulk Richardson number becomes a function of the wind speed and roughness length, otherwise it is set to a tunable constant.
Given the thermal's properties and the critical Richardson number, a loop is executed to find the first level above the surface where the modified Richardson number is greater than the critical Richardson number, using equation 10a from [82] (also equation 8 from [38]):
\[ h = Ri\frac{T_0\left|\vec{v}(h)\right|^2}{g\left(\theta_v(h) - \theta_s\right)} \]
where \(h\) is the PBL height, \(Ri\) is the Richardson number, \(T_0\) is the virtual potential temperature near the surface, \(\left|\vec{v}\right|\) is the wind speed, and \(\theta_s\) is for the thermal. Rearranging this equation to calculate the modified Richardson number at each level, k, for comparison with the critical value yields:
\[ Ri_k = gz(k)\frac{\left(\theta_v(k) - \theta_s\right)}{\theta_v(1)*\vec{v}(k)} \]
Once the level is found, some linear interpolation is performed to find the exact height of the boundary layer top (where \(Ri = Ri_{cr}\)) and the PBL height and the PBL top index are saved (hpblx and kpblx, respectively)
Using the initial guess for the PBL height, Monin-Obukhov similarity parameters are calculated. They are needed to refine the PBL height calculation and for calculating diffusion coefficients.
First, calculate the Monin-Obukhov nondimensional stability parameter, commonly referred to as \(\zeta\) using the following equation from [10] (equation 28):
\[ \zeta = Ri_{sfc}\frac{F_m^2}{F_h} = \frac{z}{L} \]
where \(F_m\) and \(F_h\) are surface Monin-Obukhov stability functions calculated in sfc_diff.f and \(L\) is the Obukhov length. Then, the nondimensional gradients of momentum and temperature (phim and phih) are calculated using equations 5 and 6 from [38] depending on the surface layer stability. Then, the velocity scale valid for the surface layer ( \(w_s\), wscale) is calculated using equation 3 from [38]. For the neutral and unstable PBL above the surface layer, the convective velocity scale, \(w_*\), is calculated according to:
\[ w_* = \left(\frac{g}{\theta_0}h\overline{w'\theta_0'}\right)^{1/3} \]
and the mixed layer velocity scale is then calculated with equation 6 from [82]
\[ w_s = (u_*^3 + 7\epsilon k w_*^3)^{1/3} \]
Next, the counter-gradient terms for temperature and humidity are calculated using equation 4 of [38] and are used to calculate the "scaled virtual temperature excess near the surface" (equation 9 in [38]) so that the properties of the thermal are updated to recalculate the PBL height.
The PBL height calculation follows the same procedure as the predictor step, except that it uses an updated virtual potential temperature for the thermal.
For an unstable PBL, the Prandtl number is calculated according to [38], equation 10, whereas for a stable boundary layer, the Prandtl number is simply \(Pr = \frac{\phi_h}{\phi_m}\).
Below the PBL top, the diffusion coefficients ( \(K_m\) and \(K_h\)) are calculated according to equation 2 in [38] where a different value for \(w_s\) (PBL vertical velocity scale) is used depending on the PBL stability. \(K_h\) is calculated from \(K_m\) using the Prandtl number. The calculated diffusion coefficients are checked so that they are bounded by maximum values and the local background diffusion coefficients.
Diffusion coefficients above the PBL top are computed as a function of local stability (gradient Richardson number), shear, and a length scale from [59] :
\[ K_{m,h}=l^2f_{m,h}(Ri_g)\left|\frac{\partial U}{\partial z}\right| \]
The functions used ( \(f_{m,h}\)) depend on the local stability. First, the gradient Richardson number is calculated as
\[ Ri_g=\frac{\frac{g}{T}\frac{\partial \theta_v}{\partial z}}{\frac{\partial U}{\partial z}^2} \]
where \(U\) is the horizontal wind. For the unstable case ( \(Ri_g < 0\)), the Richardson number-dependent functions are given by
\[ f_h(Ri_g) = 1 + \frac{8\left|Ri_g\right|}{1 + 1.286\sqrt{\left|Ri_g\right|}}\\ \]
\[ f_m(Ri_g) = 1 + \frac{8\left|Ri_g\right|}{1 + 1.746\sqrt{\left|Ri_g\right|}}\\ \]
For the stable case, the following formulas are used
\[ f_h(Ri_g) = \frac{1}{\left(1 + 5Ri_g\right)^2}\\ \]
\[ Pr = \frac{K_h}{K_m} = 1 + 2.1Ri_g \]
The source for the formulas used for the Richardson number-dependent functions is unclear. They are different than those used in [38] as the previous documentation suggests. They follow equation 14 of [59] for the unstable case, but it is unclear where the values of the coefficients \(b\) and \(c\) from that equation used in this scheme originate. Finally, the length scale, \(l\) is calculated according to the following formula from [38]
\[ \frac{1}{l} = \frac{1}{kz} + \frac{1}{l_0}\\ \]
\[ or\\ \]
\[ l=\frac{l_0kz}{l_0+kz} \]
where \(l_0\) is currently 30 m for stable conditions and 150 m for unstable. Finally, the diffusion coefficients are kept in a range bounded by the background diffusion and the maximum allowable values.
If the PBL is convective, the updraft properties are initialized to be the same as the state variables and the subroutine mfpbl is called.
For details of the mfpbl subroutine, step into its documentation mfpbl
If a stratocumulus layer has been identified in the PBL, the diffusion coefficients in the PBL are modified in the following way.
\[ K_h^{Sc} = -c\frac{\Delta F_R}{\rho c_p}\frac{1}{\frac{\partial \theta_v}{\partial z}} \]
where the constant \(c\) is set to 0.2 if the CTEI criterion is not met and 1.0 if it is.After \(K_h^{Sc}\) has been determined from the surface to the top of the stratocumulus layer, it is added to the value for the diffusion coefficient calculated previously using surface-based mixing [see equation 6 of [57] ].
The tendencies of heat, moisture, and momentum due to vertical diffusion are calculated using a two-part process. First, a solution is obtained using an implicit time-stepping scheme, then the time tendency terms are "backed out". The tridiagonal matrix elements for the implicit solution for temperature and moisture are prepared in this section, with differing algorithms depending on whether the PBL was convective (substituting the mass flux term for counter-gradient term), unstable but not convective (using the computed counter-gradient terms), or stable (no counter-gradient terms).
The tridiagonal system is solved by calling tridin() subroutine.
After returning with the solution, the tendencies for temperature and moisture are recovered.
Following [32] , turbulence dissipation contributes to the tendency of temperature in the following way. First, turbulence dissipation is calculated by equation 17 of [32] for the PBL and equation 16 for the surface layer.
Next, the temperature tendency is updated following equation 14.
As with the temperature and moisture tendencies, the horizontal momentum tendencies are calculated by solving tridiagonal matrices after the matrices are prepared in this section.
Finally, the tendencies are recovered from the tridiagonal solutions.
References mfpbl(), tridi2(), and tridin().
subroutine mfpbl | ( | integer | im, |
integer | ix, | ||
integer | km, | ||
integer | ntrac, | ||
real(kind=kind_phys) | delt, | ||
logical, dimension(im) | cnvflg, | ||
real(kind=kind_phys), dimension(im,km) | zl, | ||
real(kind=kind_phys), dimension(im,km+1) | zm, | ||
real(kind=kind_phys), dimension(im,km) | thvx, | ||
real(kind=kind_phys), dimension(ix,km,ntrac) | q1, | ||
real(kind=kind_phys), dimension(ix,km) | t1, | ||
real(kind=kind_phys), dimension(ix,km) | u1, | ||
real(kind=kind_phys), dimension(ix,km) | v1, | ||
real(kind=kind_phys), dimension(im) | hpbl, | ||
integer, dimension(im) | kpbl, | ||
real(kind=kind_phys), dimension(im) | sflx, | ||
real(kind=kind_phys), dimension(im) | ustar, | ||
real(kind=kind_phys), dimension(im) | wstar, | ||
real(kind=kind_phys), dimension(im,km) | xmf, | ||
real(kind=kind_phys), dimension(im,km) | tcko, | ||
real(kind=kind_phys), dimension(im,km,ntrac) | qcko, | ||
real(kind=kind_phys), dimension(im,km) | ucko, | ||
real(kind=kind_phys), dimension(im,km) | vcko | ||
) |
The mfpbl routines works as follows: if the PBL is convective, first, the ascending parcel entrainment rate is calculated as a function of height. Next, a surface parcel is initiated according to surface layer properties and the updraft buoyancy is calculated as a function of height. Next, using the buoyancy and entrainment values, the parcel vertical velocity is calculated using a well known steady-state budget equation. With the profile of updraft vertical velocity, the PBL height is recalculated as the height where the updraft vertical velocity returns to 0, and the entrainment profile is updated with the new PBL height. Finally, the mass flux profile is calculated using the updraft vertical velocity and assumed updraft fraction and the updraft properties are calculated using the updated entrainment profile, surface values, and environmental profiles.
[in] | im | number of used points |
[in] | ix | horizontal dimension |
[in] | km | vertical layer dimension |
[in] | ntrac | number of tracers |
[in] | delt | physics time step |
[in] | cnvflg | flag to denote a strongly unstable (convective) PBL |
[in] | zl | height of grid centers |
[in] | zm | height of grid interfaces |
[in] | thvx | virtual potential temperature at grid centers ( \( K \)) |
[in] | q1 | layer mean tracer concentration (units?) |
[in] | t1 | layer mean temperature ( \( K \)) |
[in] | u1 | u component of layer wind ( \( m s^{-1} \)) |
[in] | v1 | v component of layer wind ( \( m s^{-1} \)) |
[in,out] | hpbl | PBL top height (m) |
[in,out] | kpbl | PBL top index |
[in] | sflx | total surface heat flux (units?) |
[in] | ustar | surface friction velocity |
[in] | wstar | convective velocity scale |
[out] | xmf | updraft mass flux |
[in,out] | tcko | updraft temperature ( \( K \)) |
[in,out] | qcko | updraft tracer concentration (units?) |
[in,out] | ucko | updraft u component of horizontal momentum ( \( m s^{-1} \)) |
[in,out] | vcko | updraft v component of horizontal momentum ( \( m s^{-1} \)) |
Since the mfpbl subroutine is called regardless of whether the PBL is convective, a check of the convective PBL flag is performed and the subroutine returns back to moninedmf (with the output variables set to the initialized values) if the PBL is not convective.
Calculate the entrainment rate according to equation 16 in [78] for all levels (xlamue) and a default entrainment rate (xlamax) for use above the PBL top.
Using equations 17 and 7 from [78] along with \(u_*\), \(w_*\), and the previously diagnosed PBL height, the initial \(\theta_v\) of the updraft (and its surface buoyancy) is calculated.
From the second level to the middle of the vertical domain, the updraft virtual potential temperature is calculated using the entraining updraft equation as in equation 10 of [78], discretized as
\[ \frac{\theta_{v,u}^k - \theta_{v,u}^{k-1}}{\Delta z}=-\epsilon^{k-1}\left[\frac{1}{2}\left(\theta_{v,u}^k + \theta_{v,u}^{k-1}\right)-\frac{1}{2}\left(\overline{\theta_{v}}^k + \overline{\theta_v}^{k-1}\right)\right] \]
where the superscript \(k\) denotes model level, and subscript \(u\) denotes an updraft property, and the overbar denotes the grid-scale mean value.
Rather than use the vertical velocity equation given as equation 15 in [78] (which parameterizes the pressure term in terms of the updraft vertical velocity itself), this scheme uses the more widely used form of the steady state vertical velocity equation given as equation 6 in [79] discretized as
\[ \frac{w_{u,k}^2 - w_{u,k-1}^2}{\Delta z} = -2b_1\frac{1}{2}\left(\epsilon_k + \epsilon_{k-1}\right)\frac{1}{2}\left(w_{u,k}^2 + w_{u,k-1}^2\right) + 2b_2B \]
The constants used in the scheme are labeled \(bb1 = 2b_1\) and \(bb2 = 2b_2\) and are tuned to be equal to 1.8 and 3.5, respectively, close to the values proposed by [79] .
Find the level where the updraft vertical velocity is less than zero and linearly interpolate to find the height where it would be exactly zero. Set the PBL height to this determined height.
Recalculate the entrainment rate as before except use the updated value of the PBL height.
Calculate the mass flux:
\[ M = a_uw_u \]
where \(a_u\) is the tunable parameter that represents the fractional area of updrafts (currently set to 0.08). Limit the computed mass flux to be less than \(\frac{\Delta z}{\Delta t}\). This is different than what is done in [78] where the mass flux is the product of a tunable constant and the diagnosed standard deviation of \(w\).
The updraft properties are calculated according to the entraining updraft equation
\[ \frac{\partial \phi}{\partial z}=-\epsilon\left(\phi_u - \overline{\phi}\right) \]
where \(\phi\) is \(T\) or \(q\). The equation is discretized according to
\[ \frac{\phi_{u,k} - \phi_{u,k-1}}{\Delta z}=-\epsilon_{k-1}\left[\frac{1}{2}\left(\phi_{u,k} + \phi_{u,k-1}\right)-\frac{1}{2}\left(\overline{\phi}_k + \overline{\phi}_{k-1}\right)\right] \]
The exception is for the horizontal momentum components, which have been modified to account for the updraft-induced pressure gradient force, and use the following equation, following [30]
\[ \frac{\partial v}{\partial z} = -\epsilon\left(v_u - \overline{v}\right)+d_1\frac{\partial \overline{v}}{\partial z} \]
where \(d_1=0.55\) is a tunable constant.
Referenced by edmf::edmf_run().