Governing equations

STEER models the atmosphere as an incompressible fluid under the Boussinesq approximation. Density changes enter only through buoyancy. The unknowns are the mean velocity \(\mathbf u = (u, v, w)\), the kinematic perturbation pressure \(p\), the potential temperature \(\theta\) and the turbulent kinetic energy (TKE) \(k\). This page gives the equations in Cartesian form; Terrain-following coordinates gives their form on the terrain-following mesh.

Conservation equations

The steady RANS equations are

(1)\[\begin{split}\nabla\cdot\mathbf u &= 0,\\ \nabla\cdot(\mathbf u\,u_i) &= -\frac{\partial p}{\partial x_i} + \frac{\partial \tau_{ij}}{\partial x_j} + S_i,\\ \nabla\cdot(\mathbf u\,\theta) &= \nabla\cdot(\gamma_\theta\nabla\theta),\\ \nabla\cdot(\mathbf u\,k) &= \nabla\cdot(\gamma_k\nabla k) + P_s + P_b - \varepsilon,\end{split}\]

with the viscous and turbulent stress

\[\tau_{ij} = \nu\left(\frac{\partial u_i}{\partial x_j} + \frac{\partial u_j}{\partial x_i}\right), \qquad \nu = \nu_\mathrm{mol} + \nu_t .\]
  • \(p = (p_\mathrm{tot} - p_\mathrm{ref}(z))/\rho_0\): the total pressure \(p_\mathrm{tot}\) relative to a hydrostatic reference, divided by the constant reference density \(\rho_0\).

  • \(\nu_\mathrm{mol}\), \(\nu_t\): molecular and turbulent viscosity.

  • \(\gamma_\theta = \alpha_\mathrm{mol} + \nu_t'\): diffusivity of \(\theta\), with \(\alpha_\mathrm{mol}\) the molecular and \(\nu_t'\) the turbulent heat diffusivity.

  • \(\gamma_k = \nu_\mathrm{mol} + \nu_t/\sigma_k\): diffusivity of \(k\), with the Schmidt number \(\sigma_k\) (turb.sigma_k, 1).

  • \(S_i\): momentum sources (below). A forest canopy adds drag, sources of \(k\) and heat (Forest canopy); buildings add their wall stress and block the cells they fill (Buildings).

  • \(P_s\), \(P_b\), \(\varepsilon\): shear production, buoyancy production and dissipation of \(k\) (Turbulence model).

Momentum sources

\[\begin{split}S_u &= f_c\,(v\sin\varphi - w\cos\varphi) - f_c\,v_g\sin\varphi + F_x,\\ S_v &= -f_c\,u\sin\varphi + f_c\,u_g\sin\varphi + F_y,\\ S_w &= f_c\,u\cos\varphi + g\,\frac{\theta - \theta_\mathrm{ref}(z)}{\theta_0} + F_z .\end{split}\]
  • \(f_c = 4\pi/T\): twice the Earth’s rotation rate, with rotation period \(T\) (86 400 s).

  • \(\varphi\): latitude. The \(\cos\varphi\) terms can be switched off (forcing.coriolis_3d).

  • \((u_g, v_g)\): geostrophic wind. It requires Coriolis forcing and \(\varphi \ne 0\).

  • \(\mathbf F\): a constant pressure-gradient force, as ERF’s abl_pressure_grad.

  • \(g\): gravitational acceleration.

  • \(\theta_\mathrm{ref}(z)\): the reference sounding, a function of height only.

  • \(\theta_0\): the Boussinesq reference temperature (300 K).

The reference pressure \(p_\mathrm{ref}(z)\) balances gravity and the buoyancy of \(\theta_\mathrm{ref}\). A fluid at rest with \(\theta = \theta_\mathrm{ref}\) and \(p = 0\) is therefore in exact balance on any terrain.

The forcing inputs are in the forcing namespace (Input reference).

Steady-state problem

Each equation of (1) is written as a residual: the left side minus the right side, per unit volume. With the state \(q = (\mathbf u, p, \theta, k)\), a steady solution satisfies

\[R(q) = 0 .\]

The solver drives \(R\) to zero (Solution algorithm). The convergence criteria are given in Convergence criteria.

Unsteady problem

With steady.stage = unsteady the transported equations of (1) keep their time derivative,

\[\frac{\partial q}{\partial t} + R_q(q) = 0, \qquad q = u, v, w, \theta, k,\]

where \(t\) is the physical time and \(R_q\) the steady residual of equation \(q\) above. Continuity has no time term: \(\nabla\cdot\mathbf u = 0\) holds at every time. The closure, the sources and the boundary conditions are those of the steady problem, so this is unsteady RANS with the same k–L model. Time is advanced by backward Euler, first order in the step \(\Delta t\) (Physical time term (dual time stepping), Time driver). A flow with a stable steady state settles on it. A flow without one, such as a wake that sheds vortices, is followed in time, and its running mean and variance are kept (Unsteady outputs). Backward Euler damps oscillations, so the amplitude of an unsteady flow depends on the step.