Surface Layer Boundaries¶
The surface layer provides an abstraction layer for users to directly specify diffusive fluxes at a boundary via a multitude of methods. More specifically, the surface layer condition applies an impenetrable condition for the boundary normal velocity but higher order extrapolation for all the other variables and then allows a user to specify a method for calculating the diffusive fluxes
erf.surface_layer.flux_type = STRING #flux types (donelan, moeng, custom)
The donelan flux type employs bulk drag coefficients to compute the diffusive stresses while the moeng type
employs Moeng’s formulation for Monin-Obukhov similarity theory (MOST) and custom allows the user to directly
specify the fluxes through ustar; tstar; qstar. Currently, the MOST pathway is the primary flux type employed
in ERF simulations and will be the focus in subsequent sections.
MOST Theory¶
Monin-Obukhov similarity theory (MOST) is used to describe the atmospheric surface layer (ASL), the lowest part of the atmospheric boundary layer. The implementation of MOST in ERF follows that in AMR-Wind, which is based on the surface layer profiles presented in P. van der Laan, et al., Wind Energy, 2017 and D. Etling, “Modeling the vertical ABL structure”, 1999. MOST theory assumes that the ASL is in a steady state and horizontally homogeneous, and kinematic fluxes due to turbulent transport (\(\overline{u^{'}w^{'}}\), \(\overline{v^{'}w^{'}}\), and \(\overline{\theta^{'}w^{'}}\)) are constant with height. \(\Phi_m\) and \(\Phi_h\) are the nondimensional wind shear and temperature gradient, respectively, which are assumed to follow universal similarity laws based on dimensional arguments. With these assumptions, the MOST theory can be written as:
where the nondimensional gradients are expressed in terms of the MOST stability parameter, \(\zeta = \frac{z}{L} = -\frac{\kappa z}{u_{\star}^{3}} \frac{g}{\overline{\theta}} \overline{w^{'}\theta^{'}}\), which serves as a surface layer scaling parameter. Here, \(L\) is the Monin-Obukhov length, \(u_{\star}\) is the friction velocity (defined for \(u\) aligned with the wind direction), \(\theta_{\star}\) is the surface layer temperature scale, \(\overline{\theta}\) is the reference virtual potential temperature for the ASL, and \(\kappa\) is the von Karman constant (taken to be \(0.41\)).
Integration of the MOST assumption equations give the classical MOST profiles of mean velocity, potential temperature, and water vapor
where \(\theta_0\) and \(q_{v,0}\) are the surface values and \(z_0\) is a characteristic roughness height. The integrated similarity functions,
are calculated analytically from empirical gradient functions \(\Phi_m\) and \(\Phi_h\), which are defined piecewise for stable and unstable values of the stability parameter.
Unstable: \((\zeta < 0)\)
Stable: \((\zeta > 0)\)
where the constants take the values proposed in Dyer, Boundary Layer Meteorology, 1974:
Inverting the equations above, the MOST stability parameter,
is determined by the friction velocity
and the characteristic surface layer temperature
MOST Implementation¶
As noted in Surface Layer Boundaries, the boundary conditions for velocity, temperature, and water vapor do not change with the flux type. Therefore, the MOST implementation in ERF is a specific method for computing the diffusive fluxes, which are directly written into the stress tensor/vector. The MOST pathway is structured to allow either the surface temperature (\(\theta_0\)) or surface temperature flux (\(\overline{w^{'}\theta^{'}}\)) to be enforced. To compute the MOST flux, the following algorithm is applied:
Horizontal (planar) averages \(\bar{u}\), \(\bar{v}\) and \(\overline{\theta}\) are computed at a reference height \(z_{ref}\) assumed to be within the surface layer.
Initially, neutral conditions (\(L=\infty, \zeta=0\)) are assumed and used to compute a provisional \(u_{\star}\) using the equation given above. If \(\theta_0\) is specified, the above equation for \(\theta_{\star}\) is applied and then the surface flux is computed \(\overline{w^{'}\theta^{'}} = -u_{\star} \theta_{\star}\). If \(\overline{w^{'}\theta^{'}}\) is specified, \(\theta_{\star}\) is computed as \(-\overline{w^{'}\theta^{'}}/u_{\star}\) and the previous equation is inverted to compute \(\theta_0\).
The stability parameter \(\zeta\) is recomputed using the equation given above based on the provisional values of \(u_{\star}\) and \(\theta_{\star}\).
The previous two steps are repeated iteratively, sequentially updating the values of \(u_{\star}\) and \(\zeta\), until the change in the value of \(u_{\star}\) on each iteration falls below a specified tolerance.
Once the MOST iterations have converged, and the planar average surface flux values are known, the approach from Moeng, Journal of the Atmospheric Sciences, 1984 is applied to consistently compute local surface-normal stress/flux values (e.g., \(\tau_{xz} = - \rho \overline{u^{'}w^{'}}\)):
\[ \begin{align}\begin{aligned}\left. \frac{\tau_{xz}}{\rho} \right|_0 &= u_{\star}^{2} \frac{(u - \bar{u})|\mathbf{\bar{u}}| + \bar{u}\sqrt{u^2 + v^2} }{|\mathbf{\bar{u}}|^2},\\\left. \frac{\tau_{yz}}{\rho} \right|_0 &= u_{\star}^{2} \frac{(v - \bar{v})|\mathbf{\bar{u}}| + \bar{v}\sqrt{u^2 + v^2} }{|\mathbf{\bar{u}}|^2},\\\left. \frac{\tau_{\theta z}}{\rho} \right|_0 &= \theta_\star u_{\star} \frac{|\mathbf{\bar{u}}| ({\theta} - \overline{\theta}) + \sqrt{u^2+v^2} (\overline{\theta} - \theta_0) }{ |\mathbf{\bar{u}}| (\overline{\theta} -\theta_0) } = u_{\star} \kappa \frac{|\mathbf{\bar{u}}| ({\theta} - \overline{\theta}) + \sqrt{u^2+v^2} (\overline{\theta} - \theta_0) }{ |\mathbf{\bar{u}}| [ \mathrm{ln}(z_{ref} / z_0)-\Psi_{h}(z_{ref}/L)] }\\\left. \frac{\tau_{q_{v} z}}{\rho} \right|_0 &= q_{v,\star} u_{\star} \frac{|\mathbf{\bar{u}}| ({q_{v}} - \overline{q_{v}}) + \sqrt{u^2+v^2} (\overline{q_{v}} - q_{v,0}) }{ |\mathbf{\bar{u}}| (\overline{q_{v}} - q_{v,0}) } = u_{\star} \kappa \frac{|\mathbf{\bar{u}}| ({q_{v}} - \overline{q_{v}}) + \sqrt{u^2+v^2} (\overline{q_{v}} - q_{v,0}) }{ |\mathbf{\bar{u}}| [ \mathrm{ln}(z_{ref} / z_0)-\Psi_{h}(z_{ref}/L)] }\end{aligned}\end{align} \]where \(\bar{\psi}\) are plane averaged values (at \(z_{ref}\)) and \(|\mathbf{\bar{u}}|\) is the plane averaged magnitude of horizontal velocity (plane averaged wind speed). We note a slight variation in the denominator of the velocity terms from the form of the equations presented in Moeng. This difference is due to how the stress components are computed — i.e., the stress componen in Moeng’s work, \(\tau_{xz,0}\), is given by \(\tau_{xz,0} = u_{\star}^{2} \bar{u}/|\mathbf{\bar{u}}|\), where \(\bar{u}/|\mathbf{\bar{u}}|\) is the unit vector component applied to the total stress \(u_{\star}^{2}\).
Finally, it must be noted that using terrain-fitted coorindates will modify the surface normal and tangent vectors. Consequently, the MOST implementation with terrain-fitted coorindates will formally require local vector rotations. Stress rotations with MOST are a work in progress but may be activated with
erf.use_rotate_surface_flux = true. Therefore, running with terrain (erf.terrain_type = StaticFittedMesh) and with MOST (surface_flux.flux_type = "moeng") is not recommended.
MOST Inputs¶
To evaluate the fluxes with MOST, the surface rougness parameter \(z_{0}\) must be specified. This quantity may be considered a constant or may be parameterized through the friction velocity \(u_{\star}\). ERF supports four methods for parameterizing the surface roughness: constant, charnock, modified_charnock, and wave_coupled. The latter three methods parameterize \(z_{0} = f(u_{\star})\) and are described in Jimenez & Dudhia, American Meteorological Society, 2018 and Warner et. al, Ocean Modelling, 2010. The rougness calculation method may be specified with
erf.most.roughness_type = STRING #Z_0 type (constant, charnock, modified_charnock, wave_couples)
If the charnock method is employed, the \(a\) constant may be specified with erf.most.charnock_constant (defaults to 0.0185). If the modified_charnock method is employed, the depth \(d\) may be specified with erf.most.modified_charnock_depth (defaults to 30 m). If the wave_coupled method is employed, the user must provide wave height and mean wavelength data.
While the MOST methods relevant to air-sea interfaces (charnock, modified_charnock, and wave_coupled) dynamically compute \(z_{0}\), the constant case can also allow for spatially varying \(z_{0}\) if an inputs file is employed. More specifically, one may specify
erf.most.roughness_file_name = STRING #Name of file that contains (x,y,z_0)
in the inputs file and ERF will populate the 2D \(z_{0}\) array with values contained in the text file.
When computing an average \(\overline{\phi}\) for the MOST boundary, where \(\phi\) denotes a generic variable, ERF supports a variety of approaches. Specifically, planar averages and local region averages may be computed with or without time averaging. With each averaging methodology, the query point \(z\) may be determined from the following procedures: specified vertical distance \(z_{ref}\) from the bottom surface, specified \(k_{index}\), or (when employing terrain-fitted coordinates) specified normal vector length \(z_{ref}\). The available inputs to the MOST boundary and their associated data types are
erf.most.average_policy = INT #POLICY FOR AVERAGING
erf.most.use_normal_vector = BOOL #USE NORMAL VECTOR W/ TERRAIN?
erf.most.use_interpolation = BOOL #INTERPOLATE QUERY POINT W/ TERRAIN?
erf.most.time_average = BOOL #USE TIME AVERAGING?
erf.most.z0 = FLOAT #SURFACE ROUGHNESS [m]
erf.most.zref = FLOAT #QUERY DISTANCE (HEIGHT OR NORM LENGTH) [m]
erf.most.surf_temp = FLOAT #SPECIFIED SURFACE TEMP [K]
erf.most.surf_temp_flux = FLOAT #SPECIFIED SURFACE TEMP FLUX [K-m/s]
erf.most.surf_heating_rate = FLOAT #SPECIFIED RATE OF SURFACE TEMP CHANGE [K/h]
erf.most.surf_moist = FLOAT #SPECIFIED SURFACE MOISTURE [-]
erf.most.surf_moist_flux = FLOAT #SPECIFIED SURFACE MOISTURE FLUX [m/s]
erf.most.k_arr_in = INT #SPECIFIED K INDEX ARRAY (MAXLEV)
erf.most.radius = INT #SPECIFIED REGION RADIUS [grid cells]
erf.most.time_window = FLOAT #WINDOW FOR TIME AVG [s]
We now consider two concrete examples. To employ an instantaneous planar average at a specified vertical height above the bottom surface, one would specify:
erf.most.average_policy = 0
erf.most.use_normal_vector = false
erf.most.time_average = false
erf.most.z0 = 0.1
erf.most.zref = 1.0
erf.most.surf_temp_flux = 0.0
erf.most.surf_moist_flux = 0.0
By contrast, local region averaging would be employed in conjunction with time averaging for the following inputs:
erf.most.average_policy = 1
erf.most.use_normal_vector = true
erf.most.use_interpolation = true
erf.most.time_average = true
erf.most.z0 = 0.1
erf.most.zref = 1.0
erf.most.surf_temp_flux = 0.0
erf.most.surf_moist_flux = 0.0
erf.most.radius = 1
erf.most.time_window = 10.0
In the above case, use_normal_vector utilizes the a local surface-normal vector with length \(z_{ref}\) to construct the positions of the query points. Each query point, and surrounding points that are within erf.most.radius from the query point, are interpolated to and averaged; for a radius of 1, 27 points are averaged. The time average is completed by way of an exponential filter function whose peak coincides with the current time step and tail extends backwards in time
Due to the form of the above integral, it is advantageous to consider \(\tau\) as a multiple of the simulation time step \(\Delta t\), which is specified by erf.most.time_window. As erf.most.time_window is reduced to 0, the exponential filter function tends to a Dirac delta function (prior averages are irrelevant). Increasing erf.most.time_window extends the tail of the exponential and more heavily weights prior averages.
Low-speed corrections¶
The following options are available:
erf.most.include_wstar = true
erf.most.include_subgrid_vel = true
These correspond to a mean surface velocity of
where \(w_*\) is the (Deardorff) convective velocity scale and \(\beta=1.2\) (Beljaars 1995, QJRMS). The subgrid velocity scale \(V_{sg}\) handles weak large-scale flow that is underresolved (Mahrt & Sun 1995, MWR). This is parameterized as
which vanishes for grid spacings of \(\Delta x < 5\) km.