Orographic Gravity Wave Parameterization

Gravity waves shape the atmospheric circulation. They are usually generated from topography or convection, propagate upward and alter temperature and winds in the middle atmosphere, and influence tropospheric circulation through 'downward control' of the residual circulation by stratospheric wave forcing. The horizontal wavelength for gravity waves ranges from tens to thousands of kilometers, and the shorter end of this range up to a few hundred kilometers is unresolved at typical GCM resolution and must be parameterized.

The gravity wave drag on the wind velocities ($\overline{\vec{v}}=(u,v)$) is

\[\frac{\partial \overline{\vec{v}}}{ \partial t} = ... + \underbrace{\left(-\frac{\partial \overline{\vec{v}'w'}}{\partial z}\Big|_{GW}\right)}_{\vec{X}}\]

where $\vec{X} = (X_\lambda, X_\phi)$ contains the subgrid-scale zonal and meridional components of the gravity wave drag, computed by the parameterization.

Throughout this document, an overbar (e.g. $\overline{\vec{v}}$, $\overline{\rho}$) denotes a grid-mean, resolved-scale variable in the sense of a Reynolds decomposition, and primes denote the corresponding subgrid fluctuations. $\epsilon_0$ denotes a small floating-point regularizer (eps(FT) in the code) used to prevent division-by-zero and degenerate clamps. It has no physical meaning.

Orographic gravity wave

The orographic gravity wave drag parameterization follows the methods described in [91]. The momentum drag from subgrid-scale mountains is divided into a non-propagating component and a propagating component. The non-propagating (blocked/deflected flow) component deposits momentum drag in a low-level layer extending from the planetary boundary layer top up to a reference level $z_{\mathrm{ref}}$ (with pressure weighting that concentrates the drag near the surface), while the propagating component generates a stationary ($c = 0$, zero phase speed) gravity wave which propagates upwards and deposits momentum flux to the layers where it breaks.

Planetary boundary layer (PBL) top

We implement the following criteria to find the PBL top level $k$ as the highest level that satisfies

\[{}^cp[k] \ge 0.5 ∗ {}^cp[1]\]

and

\[{}^cT[1] + T_{\mathrm{boost}} - {}^cT[k] > g/c_{pd} * ( {}^cz[k] - {}^cz[1] )\]

where the superscript $c$ represents cell centers in the vertical stencils, and $[1]$ denotes the first (lowest) cell center level. $T_{\mathrm{boost}} = 1.5\,\mathrm{K}$ is the surface temperature boost to improve the PBL height estimate.

The first condition restricts the search to the lower atmosphere (below roughly 500 hPa). The second condition compares the observed temperature decrease with height against the dry adiabatic lapse rate $g/c_{pd}$: within the well-mixed boundary layer, turbulent mixing keeps the temperature profile close to (or steeper than) the dry adiabat, so the inequality holds. Above the PBL top, the free atmosphere is stably stratified (temperature decreases more slowly than the dry adiabat) and the inequality fails, marking the transition from the convectively mixed layer to the stable free atmosphere above.

Orographic information

Generating the base momentum flux for low-level flow encountering the subgrid-scale mountains requires orographic information. We compute the tensor $\textbf{T}$ and the scalar $h_{\mathrm{max}}$ from the Earth elevation data (ETOPO 2022 60-arcsecond, obtained through the earth_orography_60arcseconds ClimaArtifact; GFDL reference code here). The preprocessed drag fields are distributed as the ogw_computed_drag_h* ClimaArtifacts.

Velocity potential $\chi$

The velocity potential $\chi$ captures the far-field influence of surrounding topography on the low-level flow at each grid point. It is computed as a 2D Hilbert transform of the surface elevation, smoothed by a Blackman window to suppress contributions from distant terrain beyond the smoothing scale:

\[\chi(\mathbf{x}) = \frac{R_{\mathrm{earth}}}{2\pi} \int \int \frac{\cos\phi' \; h(\mathbf{x}')}{d(\mathbf{x}, \mathbf{x}')} \; W(d) \; d\lambda' \; d\phi',\]

where $h$ is the surface elevation, $d(\mathbf{x}, \mathbf{x}')$ is the great-circle arc distance, $\phi'$ is latitude, and $W(d)$ is a Blackman window taper that goes to zero at the smoothing scale. The $1/d$ kernel means nearby terrain dominates, while the window prevents spurious contributions from the far field. A singularity correction is added for the grid cell containing $\mathbf{x}$ itself. This follows the GFDL Fortran implementation (get_velpot.f90).

Orographic tensor $\textbf{T}$

The tensor $\textbf{T}$, which encodes the topographic amplitude, variance, orientation, and anisotropy, is computed as

\[\textbf{T} = -\nabla \chi (\nabla h)^T,\]

where $h$ is the earth elevation and $\chi$ is the velocity potential defined above. The leading minus reproduces Garner's sign convention so that the resulting drag opposes the low-level flow (cf. the velocity potential in [91] Eq. 6).

Indexing convention used in the code

The four tensor components stored in the code are

\[t_{ij} \;:=\; -\frac{\partial \chi}{\partial x_j}\,\frac{\partial h}{\partial x_i}, \qquad (x_1, x_2) = (x, y),\]

so the stored $t_{ij}$ equals the $(j,i)$ entry of $-\nabla\chi(\nabla h)^T$. The transpose $\langle\textbf{T}\rangle^T$ in the base-flux formula below accounts for this convention. The explicit $\tau_x$/$\tau_y$ formulas in the next section use the stored components directly.

Effective maximum height $h_{\mathrm{max}}$

\[h_{\mathrm{max}}\]

represents the effective maximum height of the orographic features within a grid cell relative to the mean surface. Using the 4th moment emphasizes the tallest peaks most relevant for generating gravity waves while still averaging over the subgrid terrain.

The computation proceeds in two steps. First, a raw height statistic $h_0$ is computed from the distance-weighted 4th moment of subgrid elevation deviations,

\[h_0 = \left( \frac{\sum_i w_i (h_i - \bar{h})^4}{\sum_i w_i} \right)^{1/4},\]

where $\bar{h}$ is the distance-weighted local mean elevation, and the weights use a Lorentzian kernel $w_i = 1/(1 + d_i^2/s^2)$ with $d_i$ the angular arc distance and $s$ a latitude-dependent smoothing scale.

Second, $h_0$ is rescaled using the mountain height–width exponent $\gamma$ and the height fraction $h_{\mathrm{frac}}$ to obtain the final $h_{\mathrm{max}}$ and $h_{\mathrm{min}}$:

\[h_{\mathrm{max}} = \left( h_0^{2-\gamma} \cdot \frac{\gamma+2}{2\gamma} \cdot \frac{1 - h_{\mathrm{frac}}^{2\gamma}}{1 - h_{\mathrm{frac}}^{\gamma+2}} \right)^{1/(2-\gamma)}, \quad h_{\mathrm{min}} = h_{\mathrm{frac}} \cdot h_{\mathrm{max}}.\]

This rescaling adjusts the raw statistic to account for the assumed power-law distribution of mountain heights within the grid cell (cf. the Appendix in [91]). $h_{\mathrm{frac}}$ is a ClimaParams tuning parameter (ogw_critical_height_threshold).

Base flux

The base momentum flux is computed and divided into the propagating and non-propagating components.

Let the subscript $(\cdot)_{\text{pbl}}$ denote a property of the low-level flow evaluated at the source level: in the code, this is the value at the highest cell center whose height satisfies ${}^c z[k] \le z_{\text{pbl}}$ (i.e., the cell center at or just below the PBL top). Let $V_{\text{pbl}} = (u_{\text{pbl}}, v_{\text{pbl}})$, $N_{\text{pbl}}$, and $\rho_{\text{pbl}}$ denote the horizontal wind, buoyancy frequency, and density at this source level. $N$ is computed pointwise at every cell center as

\[N^2 = \frac{g}{T} \left( \frac{dT}{dz} + \frac{g}{c_{pm}} \right),\]

where $c_{pm}$ is the moist isobaric specific heat. $dT/dz$ is the difference of the interpolated face temperatures across each cell, except in the bottom and top cells, which take the one-sided difference to their only neighbouring cell. $N_{\text{pbl}}$ is then $N$ evaluated at the source level.

The base flux is computed as the linear drag following

\[\tau = \rho_{\text{pbl}}\, N_{\text{pbl}}\, \langle \textbf{T} \rangle ^T V_{\text{pbl}},\]

where $\langle \textbf{T} \rangle = [t_{11}, t_{12}; t_{21}, t_{22}]$ is the tensor that contains orographic information. In the code, we compute the zonal and meridional components separately as

\[\tau_x = \rho_{\text{pbl}}\, N_{\text{pbl}}\, (t_{11}\, u_{\text{pbl}} + t_{21}\, v_{\text{pbl}}),\]

\[\tau_y = \rho_{\text{pbl}}\, N_{\text{pbl}}\, (t_{12}\, u_{\text{pbl}} + t_{22}\, v_{\text{pbl}}).\]

The base flux is then corrected using the Froude number and saturation velocity. Let

\[V_{\tau} = \max\!\left(\epsilon_0, \; - V_{\text{pbl}} \cdot \frac{\tau}{\max(\epsilon_0, |\tau|)}\right),\]

and given the orographic information $h_{\mathrm{max}}$ and $h_{\mathrm{min}}$, the max and min Froude numbers are computed as

\[\mathrm{Fr}_{\mathrm{max}} = \max(0, h_{\mathrm{max}}) \,\frac{N_{\text{pbl}}}{V_{\tau}},\]

\[\mathrm{Fr}_{\mathrm{min}} = \max(0, h_{\mathrm{min}}) \,\frac{N_{\text{pbl}}}{V_{\tau}}.\]

The clamps to $\max(0, \cdot)$ on $h_{\mathrm{max}}$ and $h_{\mathrm{min}}$ treat negative height as zero. Here, $\mathrm{Fr}_{\mathrm{crit}} = 0.7$ (the parameter ogw_critical_froude_number) is the critical Froude number for nonlinear flow. $\mathrm{Fr}_{\mathrm{crit}}$ is the main parameter controlling how the drag is partitioned between the low-level blocked flow and the upper-level wave breaking.

The saturation velocity is computed as

\[U_{\mathrm{sat}} = \sqrt{\frac{\rho_{\text{pbl}}}{\rho_0} \frac{V_{\pmb{\tau}}^3}{N_{\text{pbl}}\, L_0}},\]

where $\rho_0 = 1.2\,\mathrm{kg/m^3}$ is the arbitrary density scale (ogw_density_scale_factor), and $L_0 = 80\,000\,\mathrm{m}$ is the arbitrary horizontal length scale (ogw_reference_mountain_width).

\[U_{\mathrm{sat}}\]

roughly measures the biggest wave the flow can carry before it breaks. A stronger wind ($V_\tau$) makes much bigger waves (note the cube), while stronger stratification ($N$) or a wider mountain ($L_0$) makes them break sooner and shrinks it.

The following intermediate variables ($\mathrm{Fr}U$'s) are computed to correct the linear base flux:

\[\mathrm{Fr}U_{\mathrm{sat}} = \mathrm{Fr}_{\mathrm{crit}} * U_{\mathrm{sat}},\]

\[\mathrm{Fr}U_{\mathrm{min}} = \mathrm{Fr}_{\mathrm{min}} * U_{\mathrm{sat}},\]

\[\mathrm{Fr}U_{\mathrm{max}} = \max(\mathrm{Fr}_{\mathrm{max}} * U_{\mathrm{sat}}, \mathrm{Fr}U_{\mathrm{min}} + \epsilon_0),\]

\[\mathrm{Fr}U_{\mathrm{clp}} = \min(\mathrm{Fr}U_{\mathrm{max}}, \max(\mathrm{Fr}U_{\mathrm{min}}, \mathrm{Fr}U_{\mathrm{sat}})).\]

The corrected linear drag is computed as

\[\tau_l = \frac{\mathrm{Fr}U_{\mathrm{max}}^{2+\gamma-\epsilon} - \mathrm{Fr}U_{\mathrm{min}}^{2+\gamma-\epsilon}}{2+\gamma-\epsilon},\]

and the propagating and non-propagating parts of the drag are computed as

\[\tau_p = a_0 \left[ \frac{\mathrm{Fr}U_{\mathrm{clp}}^{2+\gamma-\epsilon} - \mathrm{Fr}U_{\mathrm{min}}^{2+\gamma-\epsilon}}{2+\gamma-\epsilon} + \mathrm{Fr}U_{\mathrm{sat}}^{\beta+2} \frac{\mathrm{Fr}U_{\mathrm{max}}^{\gamma-\epsilon-\beta} - \mathrm{Fr}U_{\mathrm{clp}}^{\gamma-\epsilon-\beta}}{\gamma-\epsilon-\beta} \right],\]

\[\tau_{np} = a_1 \frac{U_{\mathrm{sat}}}{1+\beta} \left[ \frac{\mathrm{Fr}U_{\mathrm{max}}^{1+\gamma-\epsilon} - \mathrm{Fr}U_{\mathrm{clp}}^{1+\gamma-\epsilon}}{1+\gamma-\epsilon} - \mathrm{Fr}U_{\mathrm{sat}}^{\beta+1} \frac{\mathrm{Fr}U_{\mathrm{max}}^{\gamma-\epsilon-\beta} - \mathrm{Fr}U_{\mathrm{clp}}^{\gamma-\epsilon-\beta}}{\gamma-\epsilon-\beta} \right].\]

These two expressions are slices of the same integral over the assumed power-law distribution of subgrid obstacle heights, partitioned at the saturation point $\mathrm{Fr}U_{\mathrm{clp}}$. Obstacles below saturation launch linear waves whose drag grows as $\mathrm{Fr}^2$ (the propagating $\tau_p$). For taller obstacles, the wave amplitude saturates (capped at $\mathrm{Fr}U_{\mathrm{sat}}$) and the excess blocks the low-level flow, which is forced around the obstacle as form drag (the non-propagating $\tau_{np}$).

The non-propagating drag is then scaled by the Froude number:

\[\tau_{np} = \frac{\tau_{np}}{\max(\mathrm{Fr}_{\mathrm{crit}}, \mathrm{Fr}_{\mathrm{max}})}.\]

Taller mountains (larger $\mathrm{Fr}_{\mathrm{max}}$) block a deeper layer of air, so the same blocking drag is spread over more depth: dividing by $\mathrm{Fr}_{\mathrm{max}}$ gives the drag per unit depth. The $\mathrm{Fr}_{\mathrm{crit}}$ floor stops the division from blowing up for short mountains, which do no blocking anyway ($\tau_{np}=0$ there).

Here, $(\gamma, \epsilon, \beta) = (0.4, 0.0, 0.5)$ are empirical shape parameters constrained by observations [91], set by the ClimaParams keys ogw_mountain_height_width_exponent, ogw_number_density_exponent, and ogw_mountain_shape_parameter respectively. Specifically, $\gamma=0.4$ is derived from the observed scaling of mountain width versus height. By default, $a_0=0.9$ and $a_1=3.0$; they are set by the ClimaParams parameters ogw_linear_drag_coefficient and ogw_nonlinear_drag_coefficient, respectively.

Saturation profiles for the propagating component

Only the propagating component requires a saturation profile, as it carries a vertically propagating wave whose flux can saturate aloft. The non-propagating component remains the scalar $\tau_{np}$ from the base-flux calculation and is distributed in $z$ by pressure weighting across the blocking layer, from the first cell above the PBL-top cell up to $z_{\mathrm{ref}}$ (see Non-propagating component below).

The vertical profile of saturated momentum flux $\tau_{\mathrm{sat}}$ is computed such that the momentum forcing follows from $d\overline{V}/dt = -\overline{\rho}^{-1}d\tau_{\mathrm{sat}}/dz$.

Similar to the base flux calculation but for the 3D fields, we compute $V_\tau$ at cell centers as

\[{}^c V_{\tau}[k] = \max\!\left(\epsilon_0, \; - V[k] \cdot \frac{\tau}{\max(\epsilon_0, |\tau|)}\right).\]

Let $L_1 = L_0 * \max(0.5, \min(2.0, 1.0 - 2 V_\tau \cdot d^2V_{\tau} / N^2))$ where the factor of 2 is a correction for coarse sampling of $d^2V/dz^2$, and

\[{}^c d^2V_{\tau}[k] = \max\!\left(\epsilon_0, \; - \frac{d^2 V}{dz^2}[k] \cdot \frac{\tau}{\max(\epsilon_0, |\tau|)}\right).\]

The saturated velocity $U_{\mathrm{sat}}$ is computed level-by-level via a cumulative column-accumulator (initialized at the lowest level, i.e., the surface cell center, with the base-flux $U_{\mathrm{sat}}$):

\[U_{\mathrm{sat}}[k] = \min\!\left(U_{\mathrm{sat}}[k-1], \; \sqrt{\frac{{}^c \rho}{\rho_0} \frac{{}^c V_{\pmb{\tau}}^3}{{}^c N \cdot L_1} }\right),\]

so $U_{\mathrm{sat}}$ is monotonically non-increasing with height.

Intuitively, these three equations build up the saturation ceiling level by level. First, $V_\tau$ is the wind component that pushes against the wave (the flow projected onto the drag direction), so it measures how hard the flow drives the wave at each height. Second, $L_1$ is an effective mountain width: the local flow curvature ($d^2 V_\tau$) stretches or shrinks it, which tunes how readily the wave saturates. Third, $U_{\mathrm{sat}}$ is the largest wave amplitude the background flow can hold before the wave gets too steep and breaks: the local conditions ($\rho$, $V_\tau$, $N$, $L_1$) set a ceiling at each level, and the $\min$ with the level below enforces that once the wave has been clipped, it stays clipped going up (a wave can lose flux to breaking but never regain it).

The $\mathrm{Fr}U_{\mathrm{min}}$ and $\mathrm{Fr}U_{\mathrm{max}}$ are inherited from the base flux calculation. The source level $\mathrm{Fr}U_{\mathrm{sat}}$ and $\mathrm{Fr}U_{\mathrm{clp}}$ are then

\[\mathrm{Fr}U_{\mathrm{sat0}} = \mathrm{Fr}U_{\mathrm{sat}},\]

\[\mathrm{Fr}U_{\mathrm{clp0}} = \mathrm{Fr}U_{\mathrm{clp}},\]

and they may be updated as

\[\mathrm{Fr}U_{\mathrm{sat}} = \mathrm{Fr}_{\mathrm{crit}} * U_{\mathrm{sat}},\]

\[\mathrm{Fr}U_{\mathrm{clp}} = \min(\mathrm{Fr}U_{\mathrm{max}}, \max(\mathrm{Fr}U_{\mathrm{min}}, \mathrm{Fr}U_{\mathrm{sat}})).\]

\[\mathrm{Fr}U_{\mathrm{sat}}\]

is the "breaking line" at the current level: any part of the wave above it is too steep and gets shaved off. Because $U_{\mathrm{sat}}$ only decreases with height, this line decreases as the wave climbs, so more of the wave is removed the higher it goes. $\mathrm{Fr}U_{\mathrm{clp}}$ is that breaking line clamped to stay within the obstacle range $[\mathrm{Fr}U_{\mathrm{min}}, \mathrm{Fr}U_{\mathrm{max}}]$, and the $(\cdot)_0$ versions remember these values at the launch level.

Then, the saturated profile of propagating component of the momentum flux above the source level is

\[\tau_{\mathrm{sat}}[k] = a_0 \left[ \frac{\mathrm{Fr}U_{\mathrm{clp}}^{2+\gamma-\epsilon} - \mathrm{Fr}U_{\mathrm{min}}^{2+\gamma-\epsilon}}{2+\gamma-\epsilon} + \mathrm{Fr}U_{\mathrm{sat}}^2 \mathrm{Fr}U_{\mathrm{sat0}}^\beta \frac{\mathrm{Fr}U_{\mathrm{max}}^{\gamma-\epsilon-\beta} - \mathrm{Fr}U_{\mathrm{clp0}}^{\gamma-\epsilon-\beta}}{\gamma-\epsilon-\beta} + \mathrm{Fr}U_{\mathrm{sat}}^2 \frac{\mathrm{Fr}U_{\mathrm{clp0}}^{\gamma-\epsilon} - \mathrm{Fr}U_{\mathrm{clp}}^{\gamma-\epsilon}}{\gamma-\epsilon} \right].\]

This is the same obstacle-distribution integral as the base-level $\tau_p$, but re-evaluated with the lowered breaking line at level $k$: it encodes how much wave flux still survives at that height. As the wave climbs the breaking line drops, so $\tau_{\mathrm{sat}}$ shrinks with height, and that loss of flux (its vertical gradient $d\tau_{\mathrm{sat}}/dz$) is exactly the momentum the breaking wave dumps back into the flow.

Below the source level (${}^c z[k] \le z_{\text{pbl}}$), the saturated flux is set to the source-level propagating drag, $\tau_{\mathrm{sat}}[k] = \tau_p$ (so its vertical derivative vanishes inside the PBL and only the values above $z_{\text{pbl}}$ produce a tendency).

If the wave does not break and propagates all the way up to the model top (diagnosed by $\tau_{\mathrm{sat}}[\mathrm{end}] > 0$), the residual momentum carried by this part is redistributed throughout the column weighted by pressure to conserve momentum:

\[\tau_{\mathrm{sat}}[k] = \tau_{\mathrm{sat}}[k] - \tau_{\mathrm{sat}}[\mathrm{end}] \, \frac{{}^cp[1] - {}^cp[k]}{{}^cp[1] - {}^cp[\mathrm{end}]}.\]

The redistribution is skipped when $\tau_{\mathrm{sat}}[\mathrm{end}] \le 0$.

Velocity tendencies due to the orographic drag

When orographic_gravity_wave_apply_tendency! applies the cached drag vector $\boldsymbol{D} = ({}^c\mathrm{uforcing}, {}^c\mathrm{vforcing})$ to the horizontal momentum tendency at each step, its decelerating component parallel to the horizontal wind $\boldsymbol{u}_h = (u, v)$ is damped by a backward-Euler factor. With $s = |\boldsymbol{u}_h|$, $\hat{\boldsymbol{u}} = \boldsymbol{u}_h / s$, and the deceleration along the wind $d = \max(0, -\boldsymbol{D} \cdot \hat{\boldsymbol{u}})$,

\[\boldsymbol{D}_{\mathrm{eff}} = \boldsymbol{D}_{\perp} + \frac{\boldsymbol{D}_{\parallel}}{1 + \Delta t \, d / s} = \boldsymbol{D}_{\perp} - \hat{\boldsymbol{u}} \, \frac{d \, s}{s + \Delta t \, d}, \qquad \boldsymbol{D}_{\parallel} = -d \, \hat{\boldsymbol{u}}.\]

The damped parallel deceleration is below $s / \Delta t$ for every $s > 0$, so in exact arithmetic a forward-Euler evaluation of size $\Delta t$ cannot reverse the horizontal wind at any wind speed (multi-stage IMEX tableaus combine explicit stage tendencies with their $b_{\mathrm{exp}}$ weights); the perpendicular turning component $\boldsymbol{D}_{\perp}$ and any accelerating component are unchanged, and the form has no tunable parameter. Evaluated in the orthogonal $(\hat{\boldsymbol{u}}, \hat{\boldsymbol{n}})$ basis, rounding of $(\hat{\boldsymbol{u}}, \hat{\boldsymbol{n}})$ leaves at most $O(\epsilon |\boldsymbol{D}_{\perp}| + \epsilon^2 |\boldsymbol{D}|)$ along $\hat{\boldsymbol{u}}$ when $s \lesssim \epsilon \, \Delta t \, d$. As $s \to 0^+$ with opposing drag, $\boldsymbol{D}_{\mathrm{eff}} \to \boldsymbol{D}_{\perp}$; at $s = 0$, the drag is applied as is.

Propagating component

The forcing from the propagating part on the zonal and meridional wind are

\[{}^c \left( \frac{du}{dt} \right) _{p} = - \frac{1}{{}^c \rho} \frac{\tau_x}{\tau_l} \frac{d\tau_{\mathrm{sat}}}{dz},\]

\[{}^c \left( \frac{dv}{dt} \right) _{p} = - \frac{1}{{}^c \rho} \frac{\tau_y}{\tau_l} \frac{d\tau_{\mathrm{sat}}}{dz}.\]

Here, $(\tau_x, \tau_y, \tau_l)$ is computed in the base flux calculation, and $\tau_{\mathrm{sat}}$ is calculated in the saturation flux profile. The propagating tendency vanishes below the source level (since $\tau_{\mathrm{sat}} = \tau_p$ is constant there, so $d\tau_{\mathrm{sat}}/dz = 0$) and contributes only at and above $z_{\text{pbl}}$.

Non-propagating component

The non-propagating drag is confined to a finite layer above the PBL, bounded above by a reference level $z_{\mathrm{ref}}$. Its lowest cell is the cell just above the PBL-top cell (the cell whose center is $z_{\text{pbl}}$), so no PBL cell gets blocked drag. This follows GFDL topo_drag, whose get_pbl sets kpbl to the first level above the PBL and whose blocked drag goes into the levels from kref down to kpbl. If no level above the lowest one passes the PBL test, $z_{\text{pbl}}$ is the lowest cell center and the blocked layer starts in the second cell, as with the GFDL fallback kpbl = kdim - 1.

To locate $z_{\mathrm{ref}}$, we start at $z_{\mathrm{start}}$, the top face of the lowest blocked cell (GFDL zhalf(kpbl)), iterate over the face levels above it, and accumulate a wave phase

\[\mathrm{phase} \mathrel{+}= ({}^fz[k] - {}^fz[k-1]) \cdot \frac{\max(N_{\mathrm{min}}, \min(N_{\mathrm{max}}, {}^fN[k]))}{\max(vvmin, {}^fV_{\tau}[k])},\]

with ${}^fz[k-1] = z_{\mathrm{start}}$ for the first face above $z_{\mathrm{start}}$, and setting $z_{\mathrm{ref}} = {}^fz[k]$ at the first face where $\mathrm{phase} > \pi$. Each layer uses ${}^fN$ and ${}^fV_{\tau}$ at its upper face. Here $N_{\mathrm{min}} = 0.7 \times 10^{-2}\,\mathrm{s^{-1}}$, $N_{\mathrm{max}} = 1.7 \times 10^{-2}\,\mathrm{s^{-1}}$, $vvmin = 1.0\,\mathrm{m/s}$, and $({}^fN, {}^fV_{\tau})$ are obtained from the saturation-profile calculation. If $\mathrm{phase}$ never exceeds $\pi$ in the column, or $z_{\mathrm{start}}$ is the model top face, $z_{\mathrm{ref}}$ is the model top face. If the PBL-top cell is the top cell, there is no cell above it and the column gets no blocked drag; this cannot happen in practice, because the PBL search only accepts levels with at least half the surface pressure. The pressure weighting below still concentrates most of the drag near the surface.

The phase sum here differs slightly from GFDL topo_drag, so the top of the blocked layer can differ from GFDL's by up to one cell.

Comparison with GFDL

Both codes add up the phase going upward from the same height, the top face of the first cell above the PBL-top cell (GFDL zhalf(kpbl)). They differ in where each step lands and in how the top of the blocked layer is picked. For example, with 250 m cells, a PBL-top cell at 750–1000 m, and the first blocked cell at 1000–1250 m:

ClimaAtmosGFDL
start1250 m (a face)1250 m (the same face)
steps land onfaces: 1500, 1750, 2000 m, …cell centers: 1625, 1875, 2125 m, …
first step1250 → 1500 m (one cell)1250 → 1625 m (one and a half cells, past the center at 1375 m)
$N$ and $V_\tau$at the top face of each stepfrom the two cell centers of each step
top of the blocked layerthe face where the phase first exceeds $\pi$the top face of the cell holding the lower center of the step that crosses $\pi$ (GFDL kref)

Two cases show how the tops compare:

  1. The phase exceeds $\pi$ at 4392 m. ClimaAtmos picks 4500 m, the next face up. GFDL's crossing step runs from 4375 to 4625 m, its lower center lies in the 4250–4500 m cell, so GFDL also picks 4500 m.
  2. The phase exceeds $\pi$ at 4550 m. ClimaAtmos picks 4750 m. GFDL's crossing step is still 4375 → 4625 m, so GFDL still picks 4500 m, one cell lower.

Here, $N / V_\tau$ is the vertical wavenumber of a stationary hydrostatic gravity wave, so summing it over height accumulates the wave's vertical phase. Reaching $\pi$ means the flow has turned through half a vertical wavelength. This marks the top of the blocked/deflected low-level layer, which sets $z_{\mathrm{ref}}$. Half a wavelength is the natural cutoff because the wave wiggles up and down as $\sin(mz)$: over the first half-wavelength it makes a single bump, which is the air piling up and overturning right against the mountain. Past that point the wave flips to the other sign and starts behaving like the free wave traveling upward, not the air trapped and blocked near the surface, so that is where the blocked layer ends. The clamps on $N$ and $V_\tau$ keep the wavenumber physical so the layer depth stays sensible.

The drag forcing due to the non-propagating component is confined to the blocked layer and is weighted by pressure. The weights at each cell center are computed by interpolating face-level pressure differences:

\[\mathrm{weight}[k] = \overline{{}^f p - {}^f p_{\mathrm{ref}}}^c,\]

where ${}^f p_{\mathrm{ref}}$ is the face pressure at $z_{\mathrm{ref}}$, and the overbar denotes interpolation to cell centers. The pressure thickness of each cell is the pressure difference across its own two faces, as in GFDL topo_drag:

\[\mathrm{diff}[k] = {}^f p_{\mathrm{lower}}[k] - {}^f p_{\mathrm{upper}}[k],\]

where the subscripts denote the lower and upper faces of cell $k$. Interior face pressures are the mean of the two adjacent cell-center pressures. The bottom and top face pressures are integrated hydrostatically over the half cell from the adjacent center, ${}^f p_{\mathrm{bottom}} = p[1] + \rho[1]\, g\, (z[1] - {}^f z_{\mathrm{bottom}})$ and ${}^f p_{\mathrm{top}} = p[N] - \rho[N]\, g\, ({}^f z_{\mathrm{top}} - z[N])$, because copying the nearest center pressure onto a boundary face would give the lowest and highest cells only about half their pressure thickness. The model keeps no surface pressure, so this half-cell integral is used instead.

The column stress sum is

\[wtsum = \sum_{k \in \mathrm{mask}} \mathrm{diff}[k] \cdot \mathrm{weight}[k],\]

which is the GFDL topo_drag normalization (wtsum += dp*weight). Dividing the forcing by this sum conserves the column-integrated blocked stress: $\sum_k (\partial u/\partial t)_k \,\mathrm{diff}[k]/g = \tau_x\,\tau_{np}/\tau_l$.

The mask selects the cells from the lowest blocked cell (top face at $z_{\mathrm{start}}$) up to the cell whose top face is $z_{\mathrm{ref}}$, and drops cells with zero weight. The lowest blocked cell is always selected, so the mask is empty only when there is no cell above the PBL-top cell.

For masked levels, the forcing due to the non-propagating component is

\[{}^c \left( \frac{du}{dt} [k] \right)_{np} = g \frac{\tau_{np}}{\tau_l} \frac{\mathrm{weight}[k]}{wtsum} \tau_x,\]

\[{}^c \left( \frac{dv}{dt} [k] \right)_{np} = g \frac{\tau_{np}}{\tau_l} \frac{\mathrm{weight}[k]}{wtsum} \tau_y,\]

where $(\tau_x, \tau_y, \tau_l, \tau_{np})$ is computed in the base flux calculation. When the mask is empty ($wtsum = 0$, i.e. no cell above the PBL-top cell), the non-propagating forcing is set to zero in that column to avoid division by zero.

Turbulent orographic form drag (TOFD)

The propagating and blocked components both act at and above the PBL top, so they supply no drag in the layer right next to the surface. Small-scale orography (scales too short to launch resolved gravity waves) nonetheless exerts a form drag there. This turbulent orographic form drag (TOFD) of [92] is added as a low-level term, in the form and with the constants of the IFS (IFS Documentation CY47R1, Part IV, Section 3.4):

\[{}^c \left( \frac{d\mathbf{u}}{dt}[k] \right)_{\mathrm{TOFD}} = - C_d(z)\, |\mathbf{u}|\, \mathbf{u}, \qquad C_d(z) = a_{\mathrm{tofd}}\, \alpha\, \beta\, C_{md}\, C_{\mathrm{corr}}\, 2.109\, e^{-(z/1500)^{1.5}}\, a_2\, z^{-1.2}, \qquad a_2 = \frac{\sigma_{\mathrm{flt}}^2\, k_1^{\,n_1-n_2}}{I_H\, k_{\mathrm{flt}}^{\,n_1}},\]

where $z$ is the height above the local surface (floored at 1 m so $z^{-1.2}$ stays finite). The vertical profile is an analytic fit of the drag integrated over a power-law orography spectrum with slopes $n_1 = -1.9$ and $n_2 = -2.8$ and a break at $k_1 = 3\times10^{-3}\,\mathrm{m^{-1}}$; it concentrates the drag in the lowest $\sim 1\,\mathrm{km}$. The other constants are $\beta = 1$, $C_{md} = 0.005$, $C_{\mathrm{corr}} = 0.6$, and $\alpha = 35$: [92] obtained 12 from large-eddy simulations, and the IFS multiplies it by $1.7^2$ after tuning.

The only geographical input is $\sigma_{\mathrm{flt}}$, the standard deviation of the filtered orography, computed at initialization from the 60 arc-second ETOPO 2022 elevation as in the IFS (IFS Documentation CY47R1, Part IV, Section 11.3.3):

  1. the orography, with ocean bathymetry set to zero, is smoothed twice with the IFS operator (a top hat of width $\Delta$ with cosine edges of width $\delta = 1$ km), with $\Delta_1 = 2$ km and $\Delta_2 = 20$ km;
  2. the squared difference of the two smoothed fields, which keeps horizontal scales of roughly 3 to 22 km (half wavelengths), is averaged over blocks of about the model's horizontal node spacing and regridded to the model surface, giving $\sigma_{\mathrm{flt}}^2$.

\[I_H = 1.02\times10^{-3}\,\mathrm{m^{-1}}\]

and $k_{\mathrm{flt}} = 3.5\times10^{-4}\,\mathrm{m^{-1}}$ are the integral and the representative wavenumber of this band-pass filter, so they are tied to this definition of $\sigma_{\mathrm{flt}}$. TOFD is computed only when the model surface is Earth's orography (topography is Earth and orographic_gravity_wave is gfdl_restart, raw_topo, or raw_topo_online). With NoWarp the surface is flat, so TOFD is off even though the gravity-wave drag can still use Earth orography.

The amplitude $a_{\mathrm{tofd}}$ is the parameter ogw_tofd_coefficient: $a_{\mathrm{tofd}} = 1$ reproduces the IFS, the default $a_{\mathrm{tofd}} = 2.7$ is tuned to 0M WeatherBench forecasts, and $a_{\mathrm{tofd}} = 0$ disables TOFD.

Near steep orography the damping time $(C_d |\mathbf{u}|)^{-1}$ in the lowest model levels is minutes, far shorter than both dt_ogw and the integrator step, so an explicit, cached tendency would overshoot and reverse the wind. TOFD is therefore not part of the cached dt_ogw forcing: $C_d(z)$ is precomputed once at initialization, and every integrator step applies the backward-Euler form

\[{}^c \left( \frac{d\mathbf{u}}{dt}[k] \right)_{\mathrm{TOFD}} = - \frac{r}{1 + r\,\Delta t}\, \mathbf{u}, \qquad r = C_d(z)\, |\mathbf{u}|,\]

evaluated with the current wind. The factor is a scalar, so the drag stays antiparallel to the flow, and its magnitude saturates at $|\mathbf{u}|/\Delta t$, so one forward-Euler step can at most bring the wind to rest. TOFD is not subject to the magnitude constraint below.

Constrain the forcings

The cached gravity-wave drag combines the propagating and blocked components

\[{}^c \left( \frac{d\mathbf{u}}{dt} [k] \right)_{\tau} = {}^c \left( \frac{d\mathbf{u}}{dt} [k] \right)_{p} + {}^c \left( \frac{d\mathbf{u}}{dt} [k] \right)_{np}.\]

To avoid instability from large tendencies under the explicit application, we limit the forcing magnitude to $\epsilon_V = 3\times10^{-3}\sqrt{2}\,\mathrm{m/s^2}$ while preserving its direction, by scaling the horizontal vector by a single factor rather than clipping each component independently (which would rotate the drag away from the flow). The cap is the diagonal of the $\pm 3\times10^{-3}\,\mathrm{m/s^2}$ per-component box used by GFDL topo_drag (max_udt), so the limiter is isotropic and no tighter than that box in any direction:

\[{}^c \left( \frac{d\mathbf{u}}{dt} [k] \right)_{\tau} \leftarrow s[k]\, {}^c \left( \frac{d\mathbf{u}}{dt} [k] \right)_{\tau}, \qquad s[k] = \min\!\left(1, \frac{\epsilon_V}{\left| {}^c \left( \frac{d\mathbf{u}}{dt} [k] \right)_{\tau} \right|}\right).\]

This is a numerical safety rail, not a physical bound: it conserves the drag direction but, where it binds, reduces the column-integrated stress below the parameterized value. The tendencies above act on the physical horizontal wind components.

Implementation summary

The parameterization splits into a preprocessing step (Earth topography only) that builds $(h_{\mathrm{max}}, h_{\mathrm{min}}, t_{11}, t_{12}, t_{21}, t_{22})$ on the spectral element grid, and a runtime step that consumes those fields via a dt_ogw callback and applies the cached forcing every integrator step. The preprocessing runs offline into an HDF5 artifact (raw_topo) or at initialization (raw_topo_online).

The scheme and its topographic-information source are selected with the orographic_gravity_wave configuration key: gfdl_restart regrids the GFDL topo_drag.res.nc artifact, raw_topo loads a preprocessed HDF5 artifact built by the pipeline below, raw_topo_online runs that pipeline at initialization so the drag input matches the run's resolution and the γ, h_frac, and α_smoothing (ogw_smoothing_scale_fraction) parameters.

raw_topo artifacts are tied to their generation parameters

The raw_topo artifacts fix $(h_{\mathrm{max}}, h_{\mathrm{min}}, t_{11}, t_{12}, t_{21}, t_{22})$ at the values used when they were generated (the ClimaParams defaults γ = 0.4, h_frac = 0.1, α_smoothing = 0.15). The runtime drag physics still uses the current parameters, so overriding γ, h_frac, or α_smoothing while keeping raw_topo leaves the drag input inconsistent with the physics (a warning is emitted). Use raw_topo_online to rebuild the drag input from the current parameters.

Preprocessing (Earth topography only); offline for raw_topo, or at
initialization for raw_topo_online:
  compute_OGW_info
    ├─ calc_hpoz_latlon         → h₀ (raw 4th-moment statistic; rescaled to hmax, hmin in compute_OGW_info)
    ├─ calc_velocity_potential  → χ  (2D Hilbert transform)
    ├─ calc_orographic_tensor   → t11, t21, t12, t22
    └─ regrid_OGW_info          → SpaceVaryingInput to spectral element
  write_computed_drag! → HDF5 artifact (raw_topo; loadable via ClimaArtifacts)

TOFD input, at initialization when a_tofd > 0 (Earth orography only):
  compute_filtered_orography_variance
    ├─ calc_filtered_orography_variance_latlon → (S_2km h − S_20km h)² on the ETOPO grid
    ├─ block_average_latlon                    → average over ~model node spacing
    └─ SpaceVaryingInput                       → σ_flt² on the model surface
  tofd_drag_coefficient!                       → ᶜtofd_Cd

Every dt_ogw seconds:
  ogw_model_callback!
    └─ orographic_gravity_wave_compute_tendency!
        ├─ Compute N(z) and face pressure
        ├─ get_pbl_z!                   → z_pbl, center of the PBL-top cell
        ├─ blocked_layer_start_height!  → z_start, top face of the cell above it
        ├─ calc_base_flux!              → τ_x, τ_y, τ_l, τ_p, τ_np
        ├─ calc_saturation_profile!     → τ_sat(z)
        ├─ calc_propagate_forcing!      → propagating tendency
        ├─ calc_nonpropagating_forcing! → blocked-flow tendency
        └─ Limit forcing magnitude to 3e-3·√2 m/s² (direction preserved)

Every dt (integrator step):
  orographic_gravity_wave_apply_tendency!
    ├─ Yₜ.c.uₕ += C12(UVVector(ᶜuforcing, ᶜvforcing))
    └─ Yₜ.c.uₕ -= tofd_implicit_rate(ᶜtofd_Cd, |uₕ|, dt) · uₕ   (if a_tofd > 0)

For analytical topographies (DCMIP200, Hughes2023, Agnesi, Schar, Cosine2d, Cosine3d), the tensor is computed on-the-fly at startup using ClimaCore horizontal gradient operators in place of the offline pipeline.

Where this is implemented

ConceptSource
Base flux, saturation profile, propagating, blocked-flow, and TOFD tendenciessrc/parameterizedtendencies/gravitywavedrag/orographicgravity_wave.jl
Orographic statistics and tensor helpersorographicgravitywave_helper.jl
Offline topography preprocessingpreprocess_topography.jl
Callback scheduling at dt_ogwsrc/callbacks/get_callbacks.jl, src/callbacks/callbacks.jl
Model typesClimaAtmos.OrographicGravityWave, ClimaAtmos.FullOrographicGravityWave

The scheme is selected with the orographic_gravity_wave key (nothing, gfdl_restart, or raw_topo) and its update interval with dt_ogw. The surface field it acts on comes from Topography Representation. See Configuration Options and Running Global Simulations.