Skip to content

Hydrodynamics Modeling

Contributors: Scott A. Wells, Chris Berger, Tom M. Cole, Robert Annear, Sam Gould, John Edinger, Ed Buchak

CE-QUAL-W2 uses the laterally averaged equations of fluid motion derived from the three-dimensional equations, which consist of six equations and six unknowns. The development of the final set of governing equations is described below.

Coordinate System

The coordinate system used to derive the governing equations is shown in Figure 1. The x-axis is oriented east, the y-axis is oriented north, and the z-axis is oriented upward.

Definition sketch of coordinate system for governing equations where x is oriented east, y is oriented north, and z is oriented upward.
Figure 1. Definition sketch of coordinate system for governing equations where x is oriented east, y is oriented north, and z is oriented upward.

Based on this coordinate system, the following definitions apply:

  • \(x\) and \(y\) are horizontal coordinates.
  • \(z\) is a vertical coordinate assumed to be opposite the gravity force.
  • \(\Omega\) is a vector representing the angular velocity of the earth spinning on its axis. The rotation of the coordinate system can result in horizontal acceleration of the fluid, usually significant only for large water bodies such as large lakes and ocean systems. The resulting force is termed the Coriolis force.
  • \(\phi\) is the latitude of the water body.
  • The meridian represents the longitude of the water body.

Turbulent Time-Averaged Equations

The governing equations are obtained by performing a mass and momentum balance about a control volume. The resulting equations are the continuity (conservation of fluid mass) and the conservation of momentum equations for a rotating coordinate system (Batchelor, 1967; Sabersky et al., 1989; Cushman-Roisin, 1994). Using the coordinate system in Figure 1, the following assumptions are made:

  1. Incompressible fluid (it is possible to develop compressible equations of motion for special cases; see Wells, 2009).
  2. Centripetal acceleration is a minor correction to gravity.
  3. Boussinesq approximation.
  4. All velocities (\(u\), \(v\), \(w\)) and pressure (\(p\)) are the sum of turbulent time averages and deviations from that average, i.e., \(u = \bar{u} + u'\), where \(\bar{u} = \frac{1}{T}\int_t^{t+T} u \, dt\) as shown in Figure 2, \(v = \bar{v} + v'\), \(w = \bar{w} + w'\), and \(p = \bar{p} + p'\), where the overbar represents the time average and the prime represents deviation from the temporal average.
Definition sketch of turbulent time averaging for velocity.
Figure 2. Definition sketch of turbulent time averaging for velocity.

The governing equations (continuity and x, y, z momentum equations) become after simplification:

Continuity

\[ \frac{\partial \bar{u}}{\partial x} + \frac{\partial \bar{v}}{\partial y} + \frac{\partial \bar{w}}{\partial z} = 0 \tag{2-1} \]

where:

  • \(u\) = x-direction velocity
  • \(v\) = y-direction velocity
  • \(w\) = z-direction velocity

x-Momentum Equation

\[ \underbrace{\frac{\partial \bar{u}}{\partial t}}_{\text{unsteady}} + \underbrace{\bar{u}\frac{\partial \bar{u}}{\partial x} + \bar{v}\frac{\partial \bar{u}}{\partial y} + \bar{w}\frac{\partial \bar{u}}{\partial z}}_{\text{convective acceleration}} - \underbrace{2\Omega_z \bar{v} + 2\Omega_y \bar{w}}_{\text{Coriolis}} = -\underbrace{\frac{1}{\rho}\frac{\partial \bar{p}}{\partial x}}_{\text{pressure gradient}} + \underbrace{\frac{\mu}{\rho}\left(\frac{\partial^2 \bar{u}}{\partial x^2} + \frac{\partial^2 \bar{u}}{\partial y^2} + \frac{\partial^2 \bar{u}}{\partial z^2}\right)}_{\text{viscous stresses}} + \underbrace{\frac{1}{\rho}\left(\frac{\partial \tau_{xx}}{\partial x} + \frac{\partial \tau_{xy}}{\partial y} + \frac{\partial \tau_{xz}}{\partial z}\right)}_{\text{turbulent stresses}} \tag{2-2} \]

where:

  • \(\tau_{xx}\) = turbulent shear stress acting in x direction on the x-face of control volume (Figure 3)
  • \(\tau_{xy}\) = turbulent shear stress acting in x direction on the y-face of control volume (Figure 3)
  • \(\tau_{xz}\) = turbulent shear stress acting in x direction on the z-face of control volume (Figure 3)
  • \(\mu\) = dynamic viscosity
  • \(\Omega\) = component of Coriolis acceleration where:
    • \(\Omega_z = \Omega_E \sin\varphi\)
    • \(\Omega_y = \Omega_E \cos\varphi\)
    • \(\varphi\) = latitude
    • \(\Omega_E\) = earth's rotation rate
Definition sketch of turbulent shear stresses in x-direction.
Figure 3. Definition sketch of turbulent shear stresses in x-direction.

y-Momentum Equation

\[ \frac{\partial \bar{v}}{\partial t} + \bar{u}\frac{\partial \bar{v}}{\partial x} + \bar{v}\frac{\partial \bar{v}}{\partial y} + \bar{w}\frac{\partial \bar{v}}{\partial z} + 2\Omega_z \bar{u} - 2\Omega_x \bar{w} = -\frac{1}{\rho}\frac{\partial \bar{p}}{\partial y} + \frac{\mu}{\rho}\left(\frac{\partial^2 \bar{v}}{\partial x^2} + \frac{\partial^2 \bar{v}}{\partial y^2} + \frac{\partial^2 \bar{v}}{\partial z^2}\right) + \frac{1}{\rho}\left(\frac{\partial \tau_{yx}}{\partial x} + \frac{\partial \tau_{yy}}{\partial y} + \frac{\partial \tau_{yz}}{\partial z}\right) \tag{2-3} \]

where:

  • \(\tau_{yx}\) = turbulent shear stress acting in y direction on the x-face of control volume (Figure 4)
  • \(\tau_{yy}\) = turbulent shear stress acting in y direction on the y-face of control volume (Figure 4)
  • \(\tau_{yz}\) = turbulent shear stress acting in y direction on the z-face of control volume (Figure 4)
  • \(\Omega_x = 0\)
Sketch of turbulent shear stresses in y-direction.
Figure 4. Sketch of turbulent shear stresses in y-direction.

z-Momentum Equation

\[ \frac{\partial \bar{w}}{\partial t} + \bar{u}\frac{\partial \bar{w}}{\partial x} + \bar{v}\frac{\partial \bar{w}}{\partial y} + \bar{w}\frac{\partial \bar{w}}{\partial z} - 2\Omega_y \bar{u} + 2\Omega_x \bar{v} = -g - \frac{1}{\rho}\frac{\partial \bar{p}}{\partial z} + \frac{\mu}{\rho}\left(\frac{\partial^2 \bar{w}}{\partial x^2} + \frac{\partial^2 \bar{w}}{\partial y^2} + \frac{\partial^2 \bar{w}}{\partial z^2}\right) + \frac{1}{\rho}\left(\frac{\partial \tau_{zx}}{\partial x} + \frac{\partial \tau_{zy}}{\partial y} + \frac{\partial \tau_{zz}}{\partial z}\right) \tag{2-4} \]

where:

  • \(\tau_{zx}\) = turbulent shear stress acting in z direction on the x-face of control volume (Figure 5)
  • \(\tau_{zy}\) = turbulent shear stress acting in z direction on the y-face of control volume (Figure 5)
  • \(\tau_{zz}\) = turbulent shear stress acting in z direction on the z-face of control volume (Figure 5)
  • \(\Omega_x = 0\)
Sketch of turbulent shear stresses in z-direction.
Figure 5. Sketch of turbulent shear stresses in z-direction.

The turbulent shear stresses are defined as follows:

  • \(\tau_{xx} = \rho \overline{u'u'}\)
  • \(\tau_{xy} = \rho \overline{u'v'}\) (same as \(\tau_{yx} = \rho \overline{v'u'}\))
  • \(\tau_{xz} = \rho \overline{u'w'}\) (same as \(\tau_{zx} = \rho \overline{w'u'}\))
  • \(\tau_{yy} = \rho \overline{v'v'}\)
  • \(\tau_{yz} = \rho \overline{v'w'}\) (same as \(\tau_{zy} = \rho \overline{w'v'}\))
  • \(\tau_{zz} = \rho \overline{w'w'}\)

Coriolis Effect

All the \(\Omega_x\) terms are zero and can be eliminated from the y and z momentum equations. If one integrates over the y-direction (therefore assuming the net velocity in y is zero) and assumes that the horizontal length scale is much greater than the vertical length scale, it can be shown by using scaling arguments that the Coriolis acceleration forces are negligible (Cushman-Roisin, 1994). Hence, prior to lateral averaging, the Coriolis acceleration terms will be neglected.

Adjusting the Coordinate System

The geographic coordinate system used above (Figures 1–5) — with \(x\) oriented east, \(y\) oriented north, and \(z\) oriented upward — is now transformed into a slope-aligned coordinate system compatible with the original W2 development (Cole and Buchak, 1995). Two changes are made:

  1. The axes are rotated to align with the channel slope. The \(x\)-axis is oriented along the channel bottom slope, the \(y\)-axis remains lateral (cross-channel), and the \(z\)-axis is oriented perpendicular to the slope surface, pointing into the water body (generally downward). The velocity components \(u\), \(v\), and \(w\) correspond to the \(x\), \(y\), and \(z\) directions, respectively.

  2. The \(z\)-axis direction is reversed from the geographic convention. In Figures 1–5, \(z\) pointed upward (opposite gravity). In the W2 coordinate system, \(z\) points generally downward — perpendicular to the slope surface. For small channel slopes (typical of most reservoirs and rivers), \(z\) is approximately aligned with the direction of gravity.

The resulting coordinate system is shown in Figure 6. The angle \(\alpha\) is the channel slope angle, measured between the \(x\)-axis and horizontal (equivalently, between the \(z\)-axis and the true vertical). The variable \(h\) represents the true vertical direction (the surface normal from the earth's surface), which is opposite to gravity.

River reach sketch illustrating coordinate system.
Figure 6. Sketch of a channel, illustrating CE-QUAL-W2's coordinate system. The x-axis is along the channel slope, the z-axis is perpendicular to the slope surface (pointing into the water body), and h is the true vertical, parallel to the gravity vector, but pointed in the opposite direction. The slope angle α appears between x and horizontal, and equivalently between z and the vertical.

Gravity Components in the Slope-Aligned System

The gravity acceleration is a body force represented by a vector:

\[ \vec{g} = -g\vec{\nabla}h \tag{2-5} \]

where:

  • \(h\) = distance along the true vertical (surface normal from earth's surface)
  • \(g\) = gravitational acceleration, 9.8 m s⁻²

Because the coordinate axes are not aligned with the vertical (Figure 6), the gravity vector has components along both the \(x\)-axis (down the slope) and the \(z\)-axis (perpendicular to the slope):

\[ g_x = -g\frac{\partial h}{\partial x} \tag{2-6} \]
\[ g_y = -g\frac{\partial h}{\partial y} \tag{2-7} \]
\[ g_z = -g\frac{\partial h}{\partial z} \tag{2-8} \]

The channel slope, \(S_o\), is defined as:

\[ S_o = \tan\alpha \tag{2-9} \]

Projecting the gravity vector onto the slope-aligned axes yields:

\[ g_x = -g\frac{\partial h}{\partial x} = g\sin\alpha \tag{2-10} \]
\[ g_z = -g\frac{\partial h}{\partial z} = g\cos\alpha \tag{2-11} \]

Note that \(g_z = g\cos\alpha\) (not simply \(g\)), confirming that the \(z\)-axis is perpendicular to the slope surface rather than aligned with the vertical. The gravity component along \(y\) is assumed negligible since \(\frac{\partial h}{\partial y} = 0\) in the lateral direction of the channel. For typical channel slopes (\(\alpha < 1°\)), \(\cos\alpha \approx 1\) and \(\sin\alpha \approx \alpha\), so the \(z\)-direction is nearly vertical and the gravity component along the slope is small.

Governing Equations for General Coordinate System

After redefining the coordinate system, eliminating Coriolis effects, and neglecting viscous shear stresses, the governing equations become:

Continuity

\[ \frac{\partial \bar{u}}{\partial x} + \frac{\partial \bar{v}}{\partial y} + \frac{\partial \bar{w}}{\partial z} = 0 \tag{2-12} \]

x-Momentum Equation

\[ \underbrace{\frac{\partial \bar{u}}{\partial t}}_{\text{unsteady}} + \underbrace{\bar{u}\frac{\partial \bar{u}}{\partial x} + \bar{v}\frac{\partial \bar{u}}{\partial y} + \bar{w}\frac{\partial \bar{u}}{\partial z}}_{\text{convective acceleration}} = \underbrace{g\sin\alpha}_{\text{gravity}} - \underbrace{\frac{1}{\rho}\frac{\partial \bar{p}}{\partial x}}_{\text{pressure}} + \frac{1}{\rho}\left(\frac{\partial \tau_{xx}}{\partial x} + \frac{\partial \tau_{xy}}{\partial y} + \frac{\partial \tau_{xz}}{\partial z}\right) \tag{2-13} \]

y-Momentum Equation

\[ \underbrace{\frac{\partial \bar{v}}{\partial t}}_{\text{unsteady}} + \underbrace{\bar{u}\frac{\partial \bar{v}}{\partial x} + \bar{v}\frac{\partial \bar{v}}{\partial y} + \bar{w}\frac{\partial \bar{v}}{\partial z}}_{\text{convective acceleration}} = -\underbrace{\frac{1}{\rho}\frac{\partial \bar{p}}{\partial y}}_{\text{pressure}} + \frac{1}{\rho}\left(\frac{\partial \tau_{yx}}{\partial x} + \frac{\partial \tau_{yy}}{\partial y} + \frac{\partial \tau_{yz}}{\partial z}\right) \tag{2-14} \]

z-Momentum Equation

\[ \underbrace{\frac{\partial \bar{w}}{\partial t}}_{\text{unsteady}} + \underbrace{\bar{u}\frac{\partial \bar{w}}{\partial x} + \bar{v}\frac{\partial \bar{w}}{\partial y} + \bar{w}\frac{\partial \bar{w}}{\partial z}}_{\text{convective acceleration}} = \underbrace{g\cos\alpha}_{\text{gravity}} - \underbrace{\frac{1}{\rho}\frac{\partial \bar{p}}{\partial z}}_{\text{pressure}} + \frac{1}{\rho}\left(\frac{\partial \tau_{zx}}{\partial x} + \frac{\partial \tau_{zy}}{\partial y} + \frac{\partial \tau_{zz}}{\partial z}\right) \tag{2-15} \]

Simplification of z-Momentum Equation

If the longitudinal length scale is much greater than the vertical length scale, then all vertical velocities are much smaller than horizontal velocities. As a result, vertical acceleration and shear stress terms in the z-momentum equation are negligible, and the z-momentum equation becomes the hydrostatic equation:

\[ \frac{1}{\rho}\frac{\partial \bar{p}}{\partial z} = g\cos\alpha \tag{2-16} \]

This assumption prevents the model from accurately representing vertical accelerations of the fluid caused by convective cooling at night and similar processes. However, internal algorithms in the model mix vertical layers when density instabilities occur, approximating the convective cooling process. Vertical accelerations in the vicinity of an outlet are approximated by using selective withdrawal theory rather than solving the full vertical momentum equation.

Lateral Averaging

The governing equations above are laterally averaged after decomposing all velocities and pressure into a lateral average and a deviation from the lateral average. The lateral, longitudinal, and vertical velocities and pressure are defined as follows:

\[ \bar{v} = \tilde{\bar{v}} + v'' \tag{2-17} \]
\[ \bar{u} = \tilde{\bar{u}} + u'' \tag{2-18} \]
\[ \bar{w} = \tilde{\bar{w}} + w'' \tag{2-19} \]
\[ \bar{p} = \tilde{\bar{p}} + p'' \tag{2-20} \]

where:

  • \(\tilde{\bar{u}} = \frac{1}{B}\int_{y_1}^{y_2}\bar{u}\,dy\)
  • \(B\) = control volume width, m
  • \(y_1\) = left bank coordinate
  • \(y_2\) = right bank coordinate

The double overbars represent the spatial average of the temporal average quantity. The double prime represents the deviation from the lateral average and is a function of y (Figure 8).

Lateral average and deviation from lateral average components of longitudinal velocity.
Figure 8. Lateral average and deviation from lateral average components of longitudinal velocity.

These definitions are substituted into the turbulent time-average governing equations and then laterally averaged. The y-momentum equation is neglected since the average lateral velocities are zero (\(\tilde{\bar{v}} = 0\)), and cross shear stresses that contribute to vertical mixing will be computed from the analysis of wind stress. The equations that remain are the continuity, x-momentum, and z-momentum equations.

Continuity Equation

The continuity equation becomes after substituting the above velocity components and laterally averaging:

\[ \frac{\overline{\partial(\tilde{u}+u'')} }{\partial x} + \frac{\overline{\partial(\tilde{v}+v'')} }{\partial y} + \frac{\overline{\partial(\tilde{w}+w'')} }{\partial z} = 0 \tag{2-21} \]

The lateral average of a double-primed variable is by definition zero:

\[ \overline{u''} = \frac{1}{B}\int_{y_1}^{y_2}u''\,dy = 0 \tag{2-22} \]

Note that:

\[ \frac{\overline{\partial(\tilde{v}+v'')} }{\partial y} = \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial(\tilde{v}+v'')}{\partial y}\,dy = \left.\frac{(\tilde{v}+v'')}{B}\right|_{y_1}^{y_2} = \left.\frac{v''}{B}\right|_{y_1}^{y_2} = q \tag{2-23} \]

where \(q\) is defined as the net lateral inflow per unit volume of cell [T⁻¹], and:

\[ \frac{\overline{\partial(\tilde{u}+u'')} }{\partial x} = \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial(\tilde{u}+u'')}{\partial x}\,dy = \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial\tilde{u}}{\partial x}\,dy + \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial u''}{\partial x}\,dy = \frac{1}{B}\frac{\partial}{\partial x}\int_{y_1}^{y_2}\tilde{u}\,dy = \frac{1}{B}\frac{\partial B\tilde{u}}{\partial x} \tag{2-24} \]

and:

\[ \frac{\overline{\partial(\tilde{w}+w'')} }{\partial z} = \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial(\tilde{w}+w'')}{\partial z}\,dy = \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial\tilde{w}}{\partial z}\,dy + \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial w''}{\partial z}\,dy = \frac{1}{B}\frac{\partial}{\partial z}\int_{y_1}^{y_2}\tilde{w}\,dy = \frac{1}{B}\frac{\partial B\tilde{w}}{\partial z} \tag{2-25} \]

Combining terms, the continuity equation becomes:

\[ \frac{\partial B\tilde{u}}{\partial x} + \frac{\partial B\tilde{w}}{\partial z} = qB \tag{2-26} \]

x-Momentum Equation

The laterally-averaged x-momentum equation is more easily simplified by writing it in conservative form (this can be verified by using the continuity equation with the x-momentum equation):

\[ \frac{\overline{\partial(\tilde{u}+u'')} }{\partial t} + \frac{\overline{\partial(\tilde{u}+u'')(\tilde{u}+u'')} }{\partial x} + \frac{\overline{\partial(\tilde{v}+v'')(\tilde{u}+u'')} }{\partial y} + \frac{\overline{\partial(\tilde{w}+w'')(\tilde{u}+u'')} }{\partial z} = g\sin\alpha - \frac{1}{\rho}\frac{\overline{\partial(\tilde{p}+p'')} }{\partial x} + \frac{1}{\rho}\left(\frac{\partial \tau_{xx}}{\partial x} + \frac{\partial \tau_{xy}}{\partial y} + \frac{\partial \tau_{xz}}{\partial z}\right) \tag{2-27} \]

Each term is simplified as follows (note that the spatial average of any double-primed variable goes to zero by definition).

The unsteady acceleration term:

\[ \frac{\overline{\partial(\tilde{u}+u'')} }{\partial t} = \frac{1}{B}\frac{\partial B\tilde{u}}{\partial t} \tag{2-28} \]

The convective acceleration terms:

\[ \frac{\overline{\partial(\tilde{u}+u'')(\tilde{u}+u'')} }{\partial x} = \frac{1}{B}\frac{\partial B\tilde{u}\tilde{u}}{\partial x} + \underbrace{\frac{1}{B}\frac{\partial}{\partial x}\int_{y_1}^{y_2}u''u''\,dy}_{\text{dispersion term}} \tag{2-29} \]
\[ \frac{\overline{\partial(\tilde{u}+u'')(\tilde{w}+w'')} }{\partial z} = \frac{1}{B}\frac{\partial B\tilde{u}\tilde{w}}{\partial z} + \underbrace{\frac{1}{B}\frac{\partial}{\partial z}\int_{y_1}^{y_2}u''w''\,dy}_{\text{dispersion term}} \tag{2-30} \]
\[ \frac{\overline{\partial(\tilde{u}+u'')(\tilde{v}+v'')} }{\partial y} = \left.u''v''\right|_{y_2} - \left.u''v''\right|_{y_1} = 0 \tag{2-31} \]

The gravity term:

\[ \overline{g\sin\alpha} = \frac{1}{B}\int_{y_1}^{y_2}g\sin\alpha\,dy = g\sin\alpha \tag{2-32} \]

The pressure gradient term:

\[ \frac{\overline{\partial(\tilde{p}+p'')} }{\partial x} = \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial(\tilde{p}+p'')}{\partial x}\,dy = \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial\tilde{p}}{\partial x}\,dy + \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial p''}{\partial x}\,dy = \frac{1}{B}\frac{\partial}{\partial x}\int_{y_1}^{y_2}\tilde{p}\,dy + \frac{1}{B}\frac{\partial}{\partial x}\int_{y_1}^{y_2}p''\,dy = \frac{1}{B}\frac{\partial B\tilde{p}}{\partial x} \tag{2-33} \]

or the above equation can be written, assuming that the derivative of the lateral average pressure gradient in the x-direction is not a function of y:

\[ \frac{\overline{\partial(\tilde{p}+p'')} }{\partial x} = \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial(\tilde{p}+p'')}{\partial x}\,dy = \frac{1}{B}\frac{\partial\tilde{p}}{\partial x}\int_{y_1}^{y_2}dy + \frac{1}{B}\int_{y_1}^{y_2}\frac{\partial p''}{\partial x}\,dy = \frac{1}{B}\frac{\partial\tilde{p}}{\partial x}B + \frac{1}{B}\frac{\partial}{\partial x}\int_{y_1}^{y_2}p''\,dy = \frac{\partial\tilde{p}}{\partial x} \tag{2-34} \]

The shear stress terms:

\[ \overline{\left(\frac{\partial \tau_{xx}}{\partial x} + \frac{\partial \tau_{xy}}{\partial y} + \frac{\partial \tau_{xz}}{\partial z}\right)} = \frac{1}{B}\left(\frac{\partial B\overline{\tau_{xx}}}{\partial x} + \frac{\partial B\overline{\tau_{xz}}}{\partial z}\right) \tag{2-35} \]

Collecting all terms and neglecting all dispersion terms, the final x-momentum equation is:

\[ \frac{\partial B\tilde{u}}{\partial t} + \frac{\partial B\tilde{u}\tilde{u}}{\partial x} + \frac{\partial B\tilde{u}\tilde{w}}{\partial z} = Bg\sin\alpha - \frac{B}{\rho}\frac{\partial\tilde{p}}{\partial x} + \frac{1}{\rho}\left(\frac{\partial B\tau_{xx}}{\partial x} + \frac{\partial B\tau_{xz}}{\partial z}\right) \tag{2-36} \]

Summary of Laterally Averaged Equations

In the development of CE-QUAL-W2 in Cole and Buchak (1995), the lateral average terms were represented by uppercase characters, such that \(\tilde{\bar{u}} = U\), \(\tilde{\bar{w}} = W\), and \(\tilde{\bar{p}} = P\). The shear stress terms will be assumed lateral averages and the double overbars will be dropped for convenience. Making these simplifications, the governing equations become:

Continuity Equation

\[ \frac{\partial UB}{\partial x} + \frac{\partial WB}{\partial z} = qB \tag{2-37} \]

x-Momentum Equation

\[ \frac{\partial UB}{\partial t} + \frac{\partial UUB}{\partial x} + \frac{\partial WUB}{\partial z} = gB\sin\alpha - \frac{B}{\rho}\frac{\partial P}{\partial x} + \frac{1}{\rho}\frac{\partial B\tau_{xx}}{\partial x} + \frac{1}{\rho}\frac{\partial B\tau_{xz}}{\partial z} \tag{2-38} \]

z-Momentum Equation

\[ \frac{1}{\rho}\frac{\partial P}{\partial z} = g\cos\alpha \tag{2-39} \]

Knowing the density through the equation of state, there are now three equations and three unknowns: \(U\), \(W\), and \(P\).

Simplification of Pressure Term

The z-momentum equation reduces to:

\[ P = P_a + g\cos\alpha\int_{\eta}^{z}\rho\,dz \tag{2-40} \]

after integration from a depth \(z\) to the water surface defined as \(z=\eta\) (Figure 9). \(P_a\) is the atmospheric pressure at the water surface.

Schematization for simplification of pressure term.
Figure 9. Schematization for simplification of pressure term.

This equation for pressure is now substituted into the x-momentum equation and simplified using the Leibnitz rule. The pressure gradient term in the x-momentum equation then becomes:

\[ -\frac{1}{\rho}\frac{\partial P}{\partial x} = -\frac{1}{\rho}\frac{\partial P_a}{\partial x} + g\cos\alpha\frac{\partial\eta}{\partial x} - \frac{g\cos\alpha}{\rho}\int_{\eta}^{z}\frac{\partial\rho}{\partial x}\,dz \tag{2-41} \]

The three terms on the right-hand side represent:

  • Atmospheric pressure term: accelerations due to atmospheric pressure changes over the water surface
  • Barotropic pressure term: accelerations due to water surface variations
  • Baroclinic pressure term: accelerations due to density-driven currents

Assuming that atmospheric pressure does not vary spatially, the atmospheric pressure gradient term is neglected. This implies that for long water bodies during severe storms, the model cannot account for accelerations due to atmospheric pressure changes in \(x\). The pressure term then becomes:

\[ -\frac{1}{\rho}\frac{\partial P}{\partial x} = g\cos\alpha\frac{\partial\eta}{\partial x} - \frac{g\cos\alpha}{\rho}\int_{\eta}^{z}\frac{\partial\rho}{\partial x}\,dz \tag{2-42} \]

The revised form of the x-momentum equation is then:

\[ \frac{\partial UB}{\partial t} + \frac{\partial UUB}{\partial x} + \frac{\partial WUB}{\partial z} = gB\sin\alpha + g\cos\alpha B\frac{\partial\eta}{\partial x} - \frac{g\cos\alpha B}{\rho}\int_{\eta}^{z}\frac{\partial\rho}{\partial x}\,dz + \frac{1}{\rho}\frac{\partial B\tau_{xx}}{\partial x} + \frac{1}{\rho}\frac{\partial B\tau_{xz}}{\partial z} \tag{2-43} \]

Effectively, pressure has been removed from the unknowns by combining the z-momentum and x-momentum equations, but \(\eta\) has been added as an unknown.

Free Water Surface

This equation is a simplification of the continuity equation. The continuity equation integrated over the depth from the water surface to the bottom is called the free water surface equation. Figures 10 and 11 are definition sketches for the computational grid without and with a channel slope, respectively.

Coordinate system without channel slope.
Figure 10. Coordinate system without channel slope.
Coordinate system with channel slope.
Figure 11. Coordinate system with channel slope.

The continuity equation is integrated over the depth as follows:

\[ \int_{\eta}^{h}\frac{\partial UB}{\partial x}\,dz + \int_{\eta}^{h}\frac{\partial WB}{\partial z}\,dz = \int_{\eta}^{h}qB\,dz \tag{2-44} \]

The first term can be expanded using Leibnitz's rule:

\[ \int_{\eta}^{h}\frac{\partial UB}{\partial x}\,dz = \frac{\partial}{\partial x}\int_{\eta}^{h}UB\,dz - \frac{\partial h}{\partial x}UB\big|_h + \frac{\partial\eta}{\partial x}UB\big|_\eta \tag{2-45} \]

The integral of the vertical flow rate over z relates to changes in water surface elevation:

\[ \int_{\eta}^{h}\frac{\partial WB}{\partial z}\,dz = WB\big|_h - WB\big|_\eta \tag{2-46} \]

where:

  • \(W_h = \frac{\partial h}{\partial t} + U_h\frac{\partial h}{\partial x}\)
  • \(W_\eta = \frac{\partial\eta}{\partial t} + U_\eta\frac{\partial\eta}{\partial x}\)

Combining these terms together, the free surface equation becomes:

\[ \int_{\eta}^{h}qB\,dz = \frac{\partial}{\partial x}\int_{\eta}^{h}UB\,dz - \frac{\partial h}{\partial x}UB\big|_h + \frac{\partial\eta}{\partial x}UB\big|_\eta + U_hB_h\frac{\partial h}{\partial t} + U_hB_h\frac{\partial h}{\partial x} - B_\eta\frac{\partial\eta}{\partial t} - B_\eta U_\eta\frac{\partial\eta}{\partial x} \tag{2-47} \]

Canceling out terms and applying the no-slip boundary condition that \(U_h\) is zero:

\[ \frac{\partial}{\partial x}\int_{\eta}^{h}UB\,dz - B_\eta\frac{\partial\eta}{\partial t} = \int_{\eta}^{h}qB\,dz \tag{2-48} \]

or

\[ B_\eta\frac{\partial\eta}{\partial t} = \frac{\partial}{\partial x}\int_{\eta}^{h}UB\,dz - \int_{\eta}^{h}qB\,dz \tag{2-49} \]

where \(B_\eta\) is the width at the surface.

Equation of State

The density must be known for the solution of the momentum equations. The equation of state is an equation that relates density to temperature and concentration of dissolved substances. This equation is given by:

\[ \rho = f(T_w, \Phi_{TDS}, \Phi_{ISS}) \tag{2-50} \]

where \(f(T_w, \Phi_{TDS}, \Phi_{ISS})\) is a density function dependent upon water temperature (\(T_w\)), concentration of total dissolved solids or salinity (\(\Phi_{TDS}\)), and concentration of inorganic suspended solids (\(\Phi_{ISS}\)).

Summary of Governing Equations

Table 1 shows the governing equations after lateral averaging for a channel slope of zero and for an arbitrary channel slope. Parameters used in Table 1 are illustrated in Figure 12.

Equation No channel slope, no momentum conservation at branch intersections Arbitrary channel slope with momentum conservation at branch intersections
x-momentum \(\frac{\partial UB}{\partial t} + \frac{\partial UUB}{\partial x} + \frac{\partial WUB}{\partial z} = gB\frac{\partial\eta}{\partial x} - \frac{gB}{\rho}\int_{\eta}^{z}\frac{\partial\rho}{\partial x}\,dz + \frac{1}{\rho}\frac{\partial B\tau_{xx}}{\partial x} + \frac{1}{\rho}\frac{\partial B\tau_{xz}}{\partial z}\) \(\frac{\partial UB}{\partial t} + \frac{\partial UUB}{\partial x} + \frac{\partial WUB}{\partial z} = gB\sin\alpha + g\cos\alpha B\frac{\partial\eta}{\partial x} - \frac{g\cos\alpha B}{\rho}\int_{\eta}^{z}\frac{\partial\rho}{\partial x}\,dz + \frac{1}{\rho}\frac{\partial B\tau_{xx}}{\partial x} + \frac{1}{\rho}\frac{\partial B\tau_{xz}}{\partial z} + qBU_x\)
z-momentum \(0 = g - \frac{1}{\rho}\frac{\partial P}{\partial z}\) \(0 = g\cos\alpha - \frac{1}{\rho}\frac{\partial P}{\partial z}\)
continuity \(\frac{\partial UB}{\partial x} + \frac{\partial WB}{\partial z} = qB\) \(\frac{\partial UB}{\partial x} + \frac{\partial WB}{\partial z} = qB\)
state \(\rho = f(T_w, \Phi_{TDS}, \Phi_{SS})\) \(\rho = f(T_w, \Phi_{TDS}, \Phi_{SS})\)
free surface \(B_\eta\frac{\partial\eta}{\partial t} = \frac{\partial}{\partial x}\int_{\eta}^{h}UB\,dz - \int_{\eta}^{h}qB\,dz\) \(B_\eta\frac{\partial\eta}{\partial t} = \frac{\partial}{\partial x}\int_{\eta}^{h}UB\,dz - \int_{\eta}^{h}qB\,dz\)

where:

  • \(U\) = horizontal velocity, m s⁻¹
  • \(W\) = vertical velocity, m s⁻¹
  • \(B\) = channel width
  • \(P\) = pressure
  • \(\tau_x\) = x-direction lateral average shear stress
  • \(\tau_y\) = y-direction lateral average shear stress
  • \(\rho\) = density
  • \(\eta\) = water surface
Definition sketch for channel slope.
Figure 12. Definition sketch for channel slope.

Linkage of Mainstem Branches with Internal Head Boundary Conditions

Since the CE-QUAL-W2 model can represent neighboring waterbodies with different vertical grids, the vertical grids must be linked together to transfer volume, mass, and heat accurately.

In order for the volume, heat, and mass to be passed from one cell to another, the flow, temperature, and concentration from the downstream segment [ID] of the upstream branch are transferred to the upstream segment [IU] of the downstream branch. Spatial averaging to conserve flow, heat, and mass is illustrated in Figure 13.

Transfer of mass and momentum between branches with unequal vertical grid spacing.
Figure 13. Transfer of mass and momentum between branches with unequal vertical grid spacing.

Linkage of Tributary or Side Branches

Tributary or side branches are not defined as "tributaries" in the model. "Tributaries" are inflows into a branch, whereas side or tributary branches are modeled as part of the model domain.

Version 2 of CE-QUAL-W2 assumed all tributary branches entered at right angles to the main channel, resulting in no longitudinal momentum exchange between branches. Version 3 and later include momentum transfer between the side branch and the main branch based on segment orientation (Figure 14).

Linkage of tributary or side branch coming in at an angle to main branch.
Figure 14. Linkage of tributary or side branch coming in at an angle to main branch.

The tributary branch inflow can create shear stress along both the longitudinal axis of the main stem branch and along the y-axis of the segment. The cross-shear mixing has been added to the cross-shear wind stress for the computation involving the vertical eddy viscosity and vertical diffusivity. This involves determining the y and x velocity components of the entering branch.

Longitudinal Momentum

The vector component of velocity in the x-direction of the main channel, \(U_x\), can be computed by analysis of the channel orientations. This component in the x-direction would be:

\[ U_x = U\cos\beta \tag{2-51} \]

where:

  • \(U\) = longitudinal velocity of the tributary at segment ID for the tributary branch
  • \(\beta\) = difference in the angle between the main stem and tributary segments (Figure 15)
Schematic of x and y velocity components where θ_main is the angle of the main branch segment and θ_trib is the angle of the tributary segment.
Figure 15. Schematic of x and y velocity components where θ_main is the angle of the main branch segment and θ_trib is the angle of the tributary segment. U_x is the x-velocity component of the tributary branch into the main segment. U_y is the y-velocity component of the tributary branch into the main segment.

The conservation of momentum about a control volume (the main stem segment) would result in an additional source of momentum. Lai (1986) shows that the correction to the x-momentum equation would be:

\[ qBU_x \tag{2-52} \]

where \(q\) = lateral inflow per unit length.

This arises from re-deriving the momentum equations and assuming that all the flow entering the segment is moving at the velocity \(U_x\). This correction to the x-momentum equation would be:

\[ \frac{\partial UB}{\partial t} + \frac{\partial UUB}{\partial x} + \frac{\partial WUB}{\partial z} = gB\sin\alpha + g\cos\alpha B\frac{\partial\eta}{\partial x} - \frac{g\cos\alpha B}{\rho}\int_{\eta}^{z}\frac{\partial\rho}{\partial x}\,dz + \frac{1}{\rho}\frac{\partial B\tau_{xx}}{\partial x} + \frac{1}{\rho}\frac{\partial B\tau_{xz}}{\partial z} + \underbrace{qBU_x}_{\substack{\text{momentum from}\\\text{side tributaries}}} \tag{2-53} \]

Cross-Shear of Tributary Inflow

Even though CE-QUAL-W2 assumes lateral averaging, the y-velocity entering a reservoir may also contribute to vertical mixing. The y-component of a tributary inflow is \(U_y = U\sin\beta\) (Figure 15). Since there is no y-momentum equation, this lateral shear contributes to the vertical shear stress, analogous to how cross-shear stress from the wind (\(\tau_{wy} \cong C_D \rho_a W_h^2 \sin(\Theta_1 - \Theta_2)\)) contributes to the vertical eddy viscosity.

For lateral inflow, the additional shear stress was parameterized as an interfacial shear:

\[ \tau_{ytrib} \cong \rho\frac{f_i}{8}U_y^2 \tag{2-54} \]

where \(f_i\) = interfacial friction factor.

For two-layer flow systems, \(f_i\) has been found to be of order 0.01. Therefore, the vertical eddy viscosity would be increased by a significant lateral tributary inflow.

Computation of Initial Water Surface Slope and Velocity Field for River Simulation

The initial conditions for velocity are usually set to zero, and the initial water surface elevations are set in the bathymetry input file. This is appropriate for reservoir, lake, or estuary systems.

For sloping river sections, initial water surface elevations and velocities can be computed internally in the model. The user can enable this feature for river systems. This allows a smoother model start-up and avoids having to compute the initial water surface elevation before a simulation. Initial water levels and horizontal velocities are computed using Manning's normal depth equation from the model bathymetry and flow files.

The flow through each model segment is estimated first by considering all inflows and outflows such as tributaries, withdrawals, distributed tributaries, upstream branch inflows, flows associated with internal head boundaries, and dam outflows. Once the flow through each segment has been estimated, the normal depth for each segment is calculated using Manning's equation:

\[ Q_i = \frac{1}{n_i}A_i R_i^{2/3} S^{1/2} \tag{2-55a} \]

where:

  • \(Q_i\) = flow through segment \(i\)
  • \(n_i\) = Manning's friction coefficient for segment \(i\)
  • \(A_i\) = cross-sectional area of segment \(i\)
  • \(R_i\) = hydraulic radius of segment \(i\)
  • \(S\) = branch slope

The cross-sectional area \(A_i\) and hydraulic radius \(R_i\) are a function of depth. The hydraulic radius is calculated using:

\[ R_i = \frac{A_i}{P_i} \]

where \(P_i\) is the wetted perimeter. To calculate the normal depth, the root to the following function is found:

\[ Q_i - \frac{1}{n_i}A_i R_i^{2/3} S^{1/2} = 0 \]

The method of bisection (Press et al., 1992) is used to find the root, or normal depth, because the function is discontinuous (has corners).

Once the normal depth for every segment has been calculated, the water surface of each sloping branch is smoothed. If the predicted water level of a segment is less than the water level of a downstream segment, the downstream segment is considered controlling and the water level is increased to match.

The effect of spillways and gates is considered by calculating the head necessary to convey the flow of the segment on the upstream side of the gate or spillway. If the normal-depth predicted water levels of segments upstream of a gate or spillway are less than the necessary water level, upstream segment water levels are set to that of the segment immediately upstream of the structure.

Once water levels have been smoothed and gates or spillways have been accounted for, the average horizontal velocity \(U_{avg}\) in each segment is estimated with:

\[ U_{avg} = \frac{Q_i}{A_i} \]

If a branch is a "loop branch" (a branch with upstream and downstream ends that are internal head boundaries attached to segments of another branch), the initialization tool sets initial velocities to zero. Water levels are estimated by interpolating between the water levels in the upstream and downstream boundary condition segments.

Auxiliary Functions

Auxiliary functions are relationships that describe processes independent of basic hydrodynamic and transport computational schemes in the model. Auxiliary functions include turbulent dispersion and wind shear processes, heat exchange (including ice cover), evaporation, hydraulic structures, density, and selective withdrawal.

Surface Shear Stress

Referring to Figure 16, the shear stress at the water surface is defined as:

\[ \tau_s = C_D\rho_a(W_h - u_s)^2 \cong C_D\rho_a(W_h)^2 \tag{2-55} \]

where:

  • \(\tau_s\) = surface shear stress at water surface, kg m⁻¹ s⁻²
  • \(u_s\) = surface velocity in water, m s⁻¹
  • \(W_h\) = wind velocity measured at a distance h above water surface in direction of shear, m s⁻¹
  • \(C_D\) = drag coefficient, [-]
  • \(\rho_a\) = air density, kg m⁻³
Shear stress at the air-water surface.
Figure 16. Shear stress at the air-water surface.

Note that this relationship leads to the "3% rule" for surface currents:

\[ \tau_s = C_D\rho_a(W_h - u_s)^2 = C_D\rho_W u_s^2 \quad \text{if} \quad C_{D_{air}} \sim C_{D_{water}}, \quad \text{then} \quad u_s \sim 0.03 W_h \tag{2-56} \]

Wind Speed Height Correction

Usually the drag coefficient is a function of the measurement height, \(h\), above the water surface. Most drag coefficient formulae have been determined based on a 10 m wind speed measurement height. If wind speeds are taken at other measurement heights for the shear stress calculation, these are corrected in the model to a 10 m height.

The wind speed is a function of measurement height. To correct the measurement height to an elevation z, the following approach is used assuming a logarithmic boundary layer:

\[ \frac{W_z}{W_{z_1}} = \frac{\ln(z/z_0)}{\ln(z_1/z_0)} \tag{2-57} \]

where:

  • \(W_z\) = desired wind speed at elevation z
  • \(W_{z_1}\) = known wind speed at height \(z_1\)
  • \(z_0\) = wind roughness height, m (user-defined coefficient; typical values range from 1.5 x 10⁻⁴ to 0.009 m)

Surface Shear Components

This term can then be used to compute the surface stress in the direction of the x-axis and the cross-shear (the cross-shear term is used in the turbulent shear stress algorithm) as follows:

\[ \tau_{wx} \cong C_D\rho_a W_h^2\cos(\Theta_1 - \Theta_2) \tag{2-58} \]
\[ \tau_{wy} \cong C_D\rho_a W_h^2\sin(\Theta_1 - \Theta_2) \tag{2-59} \]

where:

  • \(\tau_{wx}\) = surface shear stress along x-axis due to wind
  • \(\tau_{wy}\) = surface shear stress along lateral direction due to wind
  • \(\Theta_1\) = wind orientation relative to North, radians
  • \(\Theta_2\) = segment orientation relative to North, radians

Segment and wind orientation are illustrated in Figures 17 and 18, respectively. The angles are measured in radians clockwise from north. A wind from the east would have an angle of π/2 radians, π radians from the south, 3π/2 radians from the west, and 0 or 2π radians from the north.

Segment orientation.
Figure 17. Segment orientation.
Wind orientation.
Figure 18. Wind orientation.

Drag Coefficient Formulations

The CE-QUAL-W2 model Version 3.5 and earlier included a drag coefficient, \(C_D\), based on the following formulae:

  • \(C_D = 0.0\) if \(W_{10} < 1\) m s⁻¹
  • \(C_D = 0.005 W_{10}^{0.5}\) if \(1 \le W_{10} < 15\) m s⁻¹
  • \(C_D = 0.0026\) if \(W_{10} \ge 15\) m s⁻¹

where \(W_{10}\) is the wind speed in m s⁻¹ at 10 m.

This formulation shows that \(C_D\) decreases as wind speed decreases. However, for wind speeds below 5 m s⁻¹, \(C_D\) has been observed to increase with decreasing wind speed. According to Wuest and Lorke (2003), the drag coefficient for a smooth surface (below 5 m s⁻¹) follows:

\[ C_D = 0.0044 W_{10}^{-1.15} \]

Above a wind speed of 5 m s⁻¹, \(C_D\) can be calculated from the following implicit equation:

\[ C_D = \left\{\kappa^{-1}\ln\left[\frac{10g}{C_D W_{10}^2}\right] + 11.3\right\}^{-2} \]

where \(\kappa\) is the von Karman constant (0.41), and the constant 10 in the above equation has units of m. This equation for winds greater than 5 m s⁻¹ is considered a lower limit to the drag coefficient, since wind-wave effects at higher wind speeds likely increase \(C_D\) beyond the value predicted by this implicit equation. The difference between these two equations is shown in Figure 19.

Since the W2 approximation for wind speeds above 4 m s⁻¹ is reasonable, for Version 3.6 and later the following drag coefficient formulation is used:

  • \(C_D = 0.01\) if \(W_{10} < 0.5\) m s⁻¹
  • \(C_D = 0.0044 W_{10}^{-1.15}\) if \(W_{10} < 4\) m s⁻¹
  • \(C_D = 0.005 W_{10}^{0.5}\) if \(4 \le W_{10} < 15\) m s⁻¹
  • \(C_D = 0.0026\) if \(W_{10} \ge 15\) m s⁻¹

This is shown as the dotted line in Figure 19. This formulation increases the drag coefficient at low wind speeds. The impact of this on the wind shear stress at the surface, \(\tau = \rho_a C_D W_{10}^2\), is shown in Figure 20.

Comparison of current W2 model computation of C_D and that recommended as a lower limit by Wuest and Lorke (2003).
Figure 19. Comparison of current W2 model computation of C_D and that recommended as a lower limit by Wuest and Lorke (2003).
Surface shear stress for CE-QUAL-W2 Version 3.6 and later compared to Version 3.5 and earlier.
Figure 20. Surface shear stress for CE-QUAL-W2 Version 3.6 and later compared to Version 3.5 and earlier.

Wind Fetch Calculation

The wind fetch is the distance along a lake or reservoir where the wind blows unobstructed. This can contribute to enhanced wind-wave generation as the fetch distance is increased. The vertical shear stress can be enhanced as fetch increases.

CE-QUAL-W2 always calculates fetch distance for the vertical shear stress algorithm and for reaeration calculations. The calculation is based on the prevailing wind direction. The fetch at a segment is the sum of the lengths of the segments either upstream or downstream of it.

For example, in Figure 21, the fetch distance of segment 5 (computed at the segment center) is: \(Fetch = \Delta x_2 + \Delta x_3 + \Delta x_4 + \frac{\Delta x_5}{2}\).

A more complex fetch correction has been reviewed by Henry (2008) and will be part of an updated algorithm.

A fetch correction to the wind velocity can be applied as determined by Fang and Stefan (1994). This correction is described in the dissolved oxygen lake/reservoir reaeration section and is not applicable to rivers.

Illustration of fetch distance calculation.
Figure 21. Illustration of fetch distance calculation.

Bottom Shear Stress

The shear stress is defined along the bottom of each cell (or for each cell in contact with side walls or channel bottom) as:

\[ \tau_b = \frac{\rho_w g}{C^2}U|U| \tag{2-60} \]

where:

  • \(C\) = Chezy friction coefficient
  • \(U\) = longitudinal velocity
  • \(\rho_w\) = density of water

The user can alternatively specify a Manning's friction factor, \(n\), where the Chezy coefficient, \(C\), is related to Manning's friction factor (in SI units) as:

\[ C = (1/n)R^{1/6} \tag{2-61} \]

where:

  • \(n\) = Manning's friction factor
  • \(R\) = hydraulic radius

In Version 2, the bottom shear stress was applied only to the bottom of each layer. In Version 3 and later, the sidewall friction is accounted for because of its greater importance in river systems. The user can input either the Chezy or Manning's coefficient for each model segment.

Vertical Shear Stress

The vertical shear stress is defined as:

\[ \frac{\tau_{xz}}{\rho} = \nu_t \frac{\partial U}{\partial z} = A_z \frac{\partial U}{\partial z} \tag{2-62} \]

where:

  • \(A_z\) = vertical eddy viscosity, m² s⁻¹
  • \(\nu_t\) = vertical eddy viscosity, m² s⁻¹
  • \(U\) = longitudinal velocity, m s⁻¹
  • \(\rho\) = density of water, kg m⁻³
  • \(\tau_{xz}\) = vertical shear stress, kg m⁻¹ s⁻²

In Version 3 and later, the user must specify which formulation to use for \(A_z\) or \(\nu_t\), the vertical eddy viscosity. The formulations are shown in Table 2.

Table 2. Vertical eddy viscosity formulations.

Formulation Formula Reference
Nickuradse (NICK) \(\nu_t = \ell_m^2 \left\|\frac{\partial u}{\partial z}\right\| e^{-CRi}\) where \(\ell_m = H\left[0.14 - 0.08\left(1-\frac{z}{H}\right)^2 - 0.06\left(1-\frac{z}{H}\right)^4\right]\) Rodi (1993)
Parabolic (PARAB) \(\nu_t = \kappa u_* z\left(1-\frac{z}{H}\right)e^{-CRi}\) Engelund (1978)
W2 (used in Version 2) \(\nu_t = \kappa\frac{l_m^2}{2}\left[\left(\frac{\partial U}{\partial z}\right)^2 + \left(\frac{\tau_{y,wind}e^{-2kz}+\tau_{tributary}}{\rho\nu_t}\right)\right]^{1/2}e^{-CRi}\), \(\ell_m = \Delta z_{max}\) Cole and Buchak (1995)
W2N (W2 with Nickuradse mixing length) \(\nu_t = \kappa\frac{l_m^2}{2}\left[\left(\frac{\partial U}{\partial z}\right)^2 + \left(\frac{\tau_{y,wind}e^{-2kz}+\tau_{tributary}}{\rho\nu_t}\right)^2\right]^{1/2}e^{-CRi}\), \(\ell_m = H\left[0.14 - 0.08\left(1-\frac{z}{H}\right)^2 - 0.06\left(1-\frac{z}{H}\right)^4\right]\) Cole and Buchak (1995) and Rodi (1993)
RNG (re-normalization group) \(\nu_t = \nu\left[1+\Psi\left(3\kappa\left(\frac{zu_*}{\nu}\right)^3\left(1-\frac{z}{H}\right)^3-C_1\right)\right]^{1/3}e^{-CRi}\) Simoes (1998)
TKE (turbulent kinetic energy) \(\nu_t = C_\mu\frac{k^2}{\varepsilon}\) where k and ε are determined from transport equations Wells (2001), Gould (2006)

where:

  • \(\ell_m\) = mixing length
  • \(z\) = vertical coordinate
  • \(u_*\) = shear velocity
  • \(H\) = depth
  • \(\kappa\) = von Karman constant
  • \(C\) = constant (assumed 0.15)
  • \(k\) = wave number (in W2 models)
  • \(\rho\) = liquid density
  • \(\Psi(x)\) = max(0,x)
  • \(\nu\) = molecular viscosity
  • \(C_1\) = empirical constant, 100
  • \(Ri\) = Richardson number
  • \(\Delta z_{max}\) = maximum vertical grid spacing
  • \(B\) = width
  • \(\nu_t\) = turbulent viscosity
  • \(\tau_{wy}\) = cross-shear from wind
  • \(k\) = turbulent kinetic energy (in TKE model)
  • \(\varepsilon\) = turbulent energy dissipation rate
  • \(P\) = turbulent energy production from boundary friction
  • \(U\) = longitudinal velocity (laterally averaged)
  • \(W\) = vertical velocity (laterally averaged)
  • \(\sigma\) = turbulent Prandtl number
  • \(C_\varepsilon\), \(C_\mu\) = constants in the TKE model
  • \(\tau_{trib}\) = cross-shear from lateral tributaries
  • Production term: \(P = \nu_t\left(\frac{\partial U}{\partial z}\right)^2\)
  • Buoyancy term: \(G = -\frac{\nu_t}{\sigma_t}N^2\)
  • Brunt-Vaisala frequency: \(N = \sqrt{-\frac{g}{\rho}\frac{d\rho}{dz}}\)

The user can also specify the maximum value of the vertical eddy viscosity [AZMAX]. This value is specified because the time step for numerical stability is greatly reduced when solving the momentum equations using an explicit numerical technique. The user can choose whether to compute vertical momentum transfer using an implicit or explicit numerical technique. The explicit formulation was used in Version 2 with a fixed [AZMAX] of 1.0 x 10⁻⁵ m² s⁻¹. The implicit solution code was originally developed by Chapman and Cole and revised/updated.

Since its introduction, the k-ε turbulence closure model has worked well for all waterbody types and is the suggested default algorithm. Only the W2 and W2N formulations include the effects of cross-shear from wind explicitly and from tributary or branch inflows. The k-ε turbulence model accounts for total turbulent kinetic energy production from wind, not just the x-component.

The W2 or W2N formulations can be used for waterbodies with deep sections that could be stratified. The NICK, PARAB, or RNG formulations are suitable for estuary or river systems where the maximum computed [AZMAX] could be as high as 1 to 5 m² s⁻¹. For river models, use the implicit solution technique. To reproduce results from Version 2 in a stratified reservoir, set [AZMAX] to 1.0 x 10⁻⁵ m² s⁻¹ and use the explicit solution.

According to Hamblin and Salmon (1975), "the vertical diffusion of momentum is probably the most important internal parameter" for predicting internal circulation patterns. Because of the disarray in the literature over which formulation is best, Shanahan (1980) suggested to "use theory and literature as a guide to develop alternative viscosity functions and then test those functions in calibration runs against field data." In the absence of expensive-to-obtain current velocity measurements, the use of temperature profiles is often used to test the adequacy of the hydrodynamic regime against different formulations.

Typical variations of these formulations as predicted by the model are shown in Figure 22 for Manning's friction factor and in Figure 23 for a Chezy friction factor. Comparison of the various turbulence closure theories to classical open channel flow theory for seven vertical layers is shown in Figure 24.

Variation of turbulent vertical eddy viscosity for flow of 2574 m³ s⁻¹ flow down a channel of length 30 km and width of 100 m at x=15 km (Manning's n=0.03 and S=0.0001).
Figure 22. Variation of turbulent vertical eddy viscosity for flow of 2574 m³ s⁻¹ flow down a channel of length 30 km and width of 100 m at x=15 km.
Variation of turbulent vertical eddy viscosity for flow of 2574 m³ s⁻¹ flow down a channel of length 30 km and width of 100 m measured at x=15 km (Chezy=50 and S=0.0001).
Figure 23. Variation of turbulent vertical eddy viscosity for flow of 2574 m³ s⁻¹ flow down a channel of length 30 km and width of 100 m measured at x=15 km.
Comparison of vertical velocity predictions of W2 model with various eddy viscosity models compared to theory.
Figure 24. Comparison of vertical velocity predictions of W2 model with various eddy viscosity models compared to theory.

Formulation

In CE-QUAL-W2, the shear stress term includes the contribution to the shear stress from surface waves induced by the wind (Figure 25). The wind can produce waves that produce decaying motions with depth.

Conceptual diagram of wind induced motion.
Figure 25. Conceptual diagram of wind induced motion.

The total longitudinal shear stress for a layer is defined as having contributions from interfacial velocity shear, wind wave generated shear, and friction shear along boundaries:

\[ \frac{\tau_{xz}}{\rho} = A_z\frac{\partial U}{\partial z} + \frac{\tau_{wx}}{\rho}e^{-2kz} + \frac{\tau_b}{\rho} \tag{2-63} \]

where:

  • \(\tau_{wx}\) = longitudinal wind shear at the surface
  • \(k\) = wave number = \(\frac{4\pi^2}{gT_w^2}\)
  • \(T_w\) = wind wave period = \(6.95 \times 10^{-2}\;F^{0.233}|W|^{0.534}\)
  • \(F\) = wind fetch length, m

The turbulent eddy viscosity was conceptualized by Prandtl as:

\[ \nu_{turbulent} = \ell^2\left|\frac{dU}{dz}\right| \tag{2-64} \]

where \(\ell\) is the mixing length, interpreted as proportional to the average size of large eddies or the length scale of a turbulent eddy. This length varies with distance from a boundary since eddy sizes change accordingly. The goal in most turbulence models is the determination of the mixing length as a function of position in the fluid. Because this concept is not firmly grounded in theory, many formulations for \(A_z\) have been published (Shanahan and Harleman, 1982).

The mechanism for transporting the wind stress on the surface in the model is based on:

\[ A_z = \kappa\frac{\ell^2}{2}\left[\left(\frac{\partial U}{\partial z}\right)^2 + \left(\frac{\partial V}{\partial z}\right)^2\right]^{1/2}e^{-CRi} \tag{2-65} \]

where:

  • \(Ri\) = Richardson number = \(\frac{g\frac{\partial\rho}{\partial z}}{\rho\left(\frac{\partial U}{\partial z}\right)^2}\)
  • \(\kappa\) = von Karman constant, 0.4
  • \(C\) = constant, 1.5
  • \(\ell\) = vertical length scale chosen as cell thickness, \(\Delta z\)

The formulation is a typical mixing length formulation that is decreased or increased based on the Richardson number. The Richardson number accounts for the impact of density stratification on transfer of momentum between fluid parcels. In regions where there is no stratification, the Richardson number is zero and the exponential term is one. For regions where there is strong stratification, the Richardson number becomes large and the exponential term approaches zero.

In the longitudinal-vertical model, the lateral velocity \(V\) and its gradient \(\partial V/\partial z\) are due to the lateral component of wind wave motion. These quantities are assumed zero when averaged laterally, but the square \((\partial V/\partial z)^2\) is not necessarily zero. Cross-wind shear, \(\tau_{wy}\), generates lateral wave components and decays exponentially with depth:

\[ \tau_{yz} = \tau_{wy}e^{-2kz} \tag{2-66} \]

Then using:

\[ \frac{\tau_{yz}}{\rho} = A_z\frac{\partial V}{\partial z} \tag{2-67} \]

The lateral velocity gradient squared becomes:

\[ \left(\frac{\partial V}{\partial z}\right)^2 = \left[\frac{\tau_{wy}e^{-2kz}}{\rho A_z}\right]^2 \tag{2-68} \]

The final equation for the vertical eddy viscosity is then:

\[ A_z = \kappa\frac{l^2}{2}\left[\left(\frac{\partial U}{\partial z}\right)^2 + \left(\frac{\tau_{y,wind}e^{-2kz}}{\rho A_z}\right)^2\right]^{1/2}e^{-CRi} \tag{2-69} \]

The above equation is implicit. In the model, this equation is explicit since the value of \(A_z\) in the lateral shear term is used from the previous time step. \(A_z\) is never less than the molecular kinematic viscosity for water.

The above formulation of wind shear in horizontal momentum and evaluation of \(A_z\) leads to wind-driven surface currents that are three to ten percent of the surface wind velocity, with higher values appearing at higher wind speeds. This is in accordance with attempts to relate wind speed and surface current velocity from field observations appearing in the literature. With this formulation, the surface current does not reach abnormal values as it does for the case of wind shear applied only to the surface and as the surface layer thickness decreases. The depth of the wind-driven surface layer increases with wind speed, and mass transport due to wind appears to be insensitive to the finite difference layer thickness.

RNG Turbulent Eddy Viscosity Formulation

The Re-Normalization Group (RNG) model was derived from the RNG model of Yakhot and Orszag (1986) by Simoes (1998). The turbulent eddy viscosity is derived from Yakhot and Orszag (1986) as:

\[ \nu_t = \nu\left[1 + \Psi\left(a\frac{\varepsilon\ell_m^4}{\nu^3} - C_1\right)\right]^{1/3} \tag{2-70} \]

where:

  • \(\Psi(x)\) = max(0,x)
  • \(\nu\) = molecular viscosity
  • \(\nu_t\) = turbulent eddy viscosity
  • \(\ell_m\) = mixing length
  • \(\varepsilon\) = turbulent energy dissipation rate
  • \(a \approx 1\)
  • \(C_1 \approx 100\)

Two additional equations are necessary in determining the mixing length and the turbulent energy dissipation. For the mixing length:

\[ \frac{\ell_m}{H} = \kappa\frac{z}{H}\sqrt{1-\frac{z}{H}} \tag{2-71} \]

and for the turbulent eddy dissipation:

\[ \frac{\varepsilon H}{u_*^3} = \frac{3z}{H}\left(1-\frac{z}{H}\right)^{3/2} \tag{2-72} \]

where:

  • \(u_*\) = shear velocity, m s⁻¹
  • \(H\) = depth of the channel, m
  • \(z\) = vertical coordinate measured from the bottom of the channel, m
  • \(\kappa\) = von Karman's constant, 0.41

Substituting these into Equation 2-70:

\[ \nu_t = \nu\left[1 + \Psi\left(3\kappa\left(\frac{zu_*}{\nu}\right)^3\left(1-\frac{z}{H}\right)^3 - C_1\right)\right]^{1/3} \tag{2-73} \]

Simoes (1998) states that this model better represents experimental data than the more traditional parabolic eddy viscosity model of:

\[ \nu_t = \kappa z u_*\left(1-\frac{z}{H}\right) \tag{2-74} \]

A value of \(\nu\) was derived as a function of temperature based on values from Batchelor (1967) using a polynomial curve fit between 0 and 30 °C.

This model was adjusted to account for stratified flow conditions by using the same Richardson number criteria as used in the original W2 model (the approach of Mamayev as quoted in French, 1985):

\[ \nu_t = \max\left(\nu, \nu_{tRNG}e^{-CRi}\right) \tag{2-75} \]

where:

  • \(Ri\) = Richardson number = \(\frac{g\frac{\partial\rho}{\partial z}}{\rho\left(\frac{\partial U}{\partial z}\right)^2}\)
  • \(C\) = empirical constant, 1.5 (French [1985] shows a value of 0.4)

The Richardson number accounts for the impact of density stratification on transfer of momentum between fluid parcels. In regions where there is no stratification, \(Ri = 0\) and the exponential term is 1. For regions where there is strong stratification (or as \(\frac{d\rho}{dz} \to \infty\)), the Richardson number becomes large and the exponential term approaches 0.

Nickuradse Formulation

This model, as noted in Rodi (1993), is a mixing length model where the mixing length, \(\ell_m\), and eddy viscosity, \(\nu_t\), are determined from:

\[ \nu_t = \ell_m^2\left|\frac{\partial u}{\partial z}\right| \tag{2-76} \]
\[ \ell_m = H\left[0.14 - 0.08\left(1-\frac{z}{H}\right)^2 - 0.06\left(1-\frac{z}{H}\right)^4\right] \tag{2-77} \]

This results in a vertical distribution for the mixing length as shown in Figure 26.

Mixing length as a function of depth for the Nickuradse formulation.
Figure 26. Mixing length as a function of depth for the Nickuradse formulation.

The stability of the water column affects the mixing length. A Richardson number criteria has been applied to correct the mixing length for stability effects such as:

\[ \ell_m = \ell_{mo}(1-7Ri) \quad \text{if } Ri \ge 0 \tag{2-78} \]
\[ \ell_m = \ell_{mo}(1-14Ri)^{-0.25} \quad \text{if } Ri < 0 \tag{2-79} \]

This is different from the approach of Munk and Anderson (1948) where the Richardson number correction was applied to the value of \(A_z\) and not the mixing length directly.

For compatibility with the original formulation, the computed value of \(A_z\) is corrected using the Mamayev formulation:

\[ \nu_t = \max\left(\nu, \nu_{t_{NICK}}e^{-CRi}\right) \tag{2-80} \]

Parabolic Formulation

Another formulation is a parabolic distribution for \(A_z\) (Engelund, 1978):

\[ \nu_t = \kappa u_* z\left(1-\frac{z}{H}\right) \tag{2-81} \]

Figure 27 shows the spatial distribution of \(A_z\) for the parabolic model.

Variation of A_z with depth for the parabolic model of Engelund (1978).
Figure 27. Variation of A_z with depth for the parabolic model of Engelund (1978).

For compatibility with the original model formulation, the computed value of \(A_z\) is corrected using the Mamayev formulation:

\[ \nu_t = \max\left(\nu, \nu_{t_{PARAB}}e^{-CRi}\right) \tag{2-82} \]

W2N Formulation

The W2N formulation is the same as the W2 model except that the mixing length is no longer the layer thickness but is computed using Nickuradse's mixing length model. The equations for the W2N formulation are:

\[ A_z = \kappa\left(\frac{\ell_m^2}{2}\right)\sqrt{\left(\frac{\partial U}{\partial z}\right)^2 + \left(\frac{\tau_{wy}e^{-2kz}}{\rho A_z}\right)^2}\;e^{-CRi} \tag{2-83} \]
\[ \ell_m = H\left[0.14 - 0.08\left(1-\frac{z}{H}\right)^2 - 0.06\left(1-\frac{z}{H}\right)^4\right] \tag{2-84} \]

TKE Formulation

The Turbulent Kinetic Energy (TKE) formulation is an application of the k-ε turbulence model. This model includes vertical transport of kinetic energy and dissipation by advection and diffusion, as well as horizontal transport by advection. The model solves two partial differential equations for \(k\) and \(\varepsilon\) to compute the turbulent eddy viscosity:

\[ \nu_t = C_\mu\frac{k^2}{\varepsilon} \tag{2-85} \]
\[ \frac{\partial\varepsilon B}{\partial t} + \frac{\partial\varepsilon BU}{\partial x} + \frac{\partial\varepsilon BW}{\partial z} - \frac{\partial}{\partial z}\left(B\frac{\nu_t}{\sigma_\varepsilon}\frac{\partial\varepsilon}{\partial z}\right) - \frac{\partial}{\partial x}\left(B\frac{\nu_t}{\sigma_\varepsilon}\frac{\partial\varepsilon}{\partial x}\right) = B\left(C_{\varepsilon 1}\frac{\varepsilon}{k}P - C_{\varepsilon 2}\frac{\varepsilon^2}{k} + P_\varepsilon\right) \tag{2-86} \]
\[ \frac{\partial kB}{\partial t} + \frac{\partial kBU}{\partial x} + \frac{\partial kBW}{\partial z} - \frac{\partial}{\partial z}\left(B\frac{\nu_t}{\sigma_k}\frac{\partial k}{\partial z}\right) - \frac{\partial}{\partial x}\left(B\frac{\nu_t}{\sigma_k}\frac{\partial k}{\partial x}\right) = B(P + G - \varepsilon + P_k) \tag{2-87} \]

where \(C_\mu\) is an empirical constant and:

  • \(P = \nu_t\left(\frac{\partial U}{\partial z}\right)^2\) (production)
  • \(G = -\frac{\nu_t}{\sigma_t}N^2\) (buoyancy)
  • \(P_k = \frac{C_f |u^3|}{0.5B}\) (production term from boundary friction)
  • \(P_\varepsilon = \frac{10 C_f^{1.25} u^4}{(0.5B)^2}\) (production term from boundary friction)
  • Brunt-Vaisala frequency \(N = \sqrt{-\frac{g}{\rho}\frac{d\rho}{dz}}\)

\(B\) is the width, \(U\) and \(W\) are the advective velocities in x and z respectively, and other terms are empirical constants.

Typical values of the above model constants that have been used in other studies are:

\(C_\mu\) \(C_{\varepsilon 1}\) \(C_{\varepsilon 2}\) \(\sigma_k\) \(\sigma_\varepsilon\)
0.09 1.44 1.92 1.0 1.3

Turbulent Prandtl/Schmidt number, \(\sigma_t\) = 1.0.

The friction coefficient \(C_f\) is defined as:

\[ C_f = \frac{g}{C^2} = \frac{gn^2}{R_h^{1/3}} \tag{2-95} \]

where \(g\) is gravitational acceleration, \(C\) is a Chezy friction factor, \(n\) is a Manning's friction factor, and \(R_h\) is the hydraulic radius.

The solution of the above equations for \(k\) and \(\varepsilon\) uses a split solution technique: explicit horizontal and source-sink term solution followed by an implicit vertical solution. A description of the solution algorithm is based on Gould (2006).

Algorithm

The current algorithm is based on the laterally averaged k-ε turbulence model equations shown below:

\[ \nu_t = C_\mu\frac{k^2}{\varepsilon} \tag{2-88} \]
\[ \frac{\partial kB}{\partial t} + \frac{\partial(kUB)}{\partial x} + \frac{\partial(kWB)}{\partial z} - \frac{\partial}{\partial z}\left(B\frac{\nu_t}{\sigma_k}\frac{\partial k}{\partial z}\right) = B(P + G - \varepsilon + P_k) \tag{2-89} \]
\[ \frac{\partial\varepsilon B}{\partial t} + \frac{\partial(\varepsilon UB)}{\partial x} + \frac{\partial(\varepsilon WB)}{\partial z} - \frac{\partial}{\partial z}\left(B\frac{\nu_t}{\sigma_\varepsilon}\frac{\partial\varepsilon}{\partial z}\right) = B\left(C_{\varepsilon 1}\frac{\varepsilon}{k}P - C_{\varepsilon 2}\frac{\varepsilon^2}{k} + P_\varepsilon\right) \tag{2-90} \]

where \(\nu_t\), \(k\), and \(\varepsilon\) are the eddy viscosity, turbulent kinetic energy and turbulent dissipation. \(P\) is the production term and is calculated using:

\[ P = \nu_t\left(\frac{\partial U}{\partial z}\right)^2 \tag{2-91} \]

and \(G\) is the buoyancy term:

\[ G = -\frac{\nu_t}{\sigma_t}N^2 \tag{2-92} \]

The production of turbulent kinetic energy and turbulent dissipation from boundary friction are represented by the terms \(P_k\) and \(P_\varepsilon\). These terms are calculated using the following equations:

\[ P_k = \frac{C_f |u^3|}{(0.5B)} \tag{2-93} \]
\[ P_\varepsilon = \frac{10 C_f^{1.25} u^4}{(0.5B)^2} \tag{2-94} \]

The friction coefficient \(C_f\) is defined as:

\[ C_f = \frac{g}{C^2} = \frac{gn^2}{R_h^{1/3}} \tag{2-95} \]

where \(g\) is gravitational acceleration, \(C\) is a Chezy friction factor, \(n\) is a Manning's friction factor, and \(R_h\) is the hydraulic radius. The remaining terms \(C_\mu\), \(C_\varepsilon\), \(C_\varepsilon\), \(\sigma_k\), and \(\sigma_\varepsilon\) are empirical constants and the values used in the current model are shown in Table 3 (Rodi, 1993).

Table 3. Constants in k-ε model (Rodi, 1993).

\(C_\mu\) \(C_{\varepsilon 1}\) \(C_{\varepsilon 2}\) \(\sigma_k\) \(\sigma_\varepsilon\)
0.09 1.44 1.92 1.0 1.3

Turbulent Prandtl/Schmidt number, \(\sigma_t\) = 1.0.

The equations above are solved using a split solution technique in a similar fashion to the horizontal momentum equation in CE-QUAL-W2. Two different methods for solving the equations were implemented.

  1. In the first method, the vertical transport term was solved using an explicit finite difference along with the horizontal transport term.
  2. The second method involved integrating the vertical transport term into a fully implicit finite difference.

Both methods are based on the solutions developed by Wells (2001). The computational grid used in these calculations is shown in Figure 28.

CE-QUAL-W2 computational grid.
Figure 28. CE-QUAL-W2 computational grid. Width, density, pressure and water quality state variables are defined at cell centers. Horizontal velocity, longitudinal eddy viscosity and diffusivity, and longitudinal shear stress are defined at the right-hand side of the cell. Vertical velocity and vertical diffusivity are defined at the bottom of the cell, and the vertical eddy viscosity is defined at the lower right corner of the cell.
Explicit Vertical Convection

The first method involved using an explicit finite difference for the vertical convection term. The turbulent kinetic energy transport equation (Equation 2-89) is split into convective/source-sink and diffusion components (Equations 2-96 and 2-97), then each is averaged over a layer (Equations 2-98 and 2-99). Finite differences replace the partial derivatives, yielding the explicit solution for \(k^*\) (Equation 2-103). The diffusion equation is discretized (Equations 2-106 and 2-107) and simplified to a tridiagonal matrix (Equation 2-108), which is solved using the Thomas algorithm. The turbulent dissipation follows the same procedure (Equations 2-109 through 2-114).

Implicit Vertical Convection

The second method integrates the vertical convection term into the implicit part of the solution (Equations 2-115 through 2-123). The turbulent dissipation follows the same procedure (Equations 2-124 through 2-129).

Boundary and Initial Conditions for k-ε Model

To apply the algorithm developed above to the typical hydraulic problems investigated using CE-QUAL-W2, the appropriate boundary conditions for the bed, free surface, inlet, and outlet, as well as initial conditions, must be specified. This section outlines the boundary conditions and initial conditions implemented in the current version of the k-ε algorithm.

At the bed, steep gradients of turbulent kinetic energy and turbulent dissipation are present in the viscous sublayer. To avoid this problem, an empirical law can be used to construct a simple wall function. The largest assumption is that the flow parallel to the wall obeys the law of the wall:

\[ \frac{U}{U_*} = \frac{1}{\kappa}\ln\left(E\frac{yU_*}{\nu}\right) \tag{2-130} \]

where \(U_*\) is the bed friction velocity, \(\kappa\) is the von Karman constant, \(y\) is the distance of the grid point from the bed, \(E\) is the roughness coefficient and \(\nu\) is the kinematic viscosity. In addition to the assumption that the flow has a logarithmic velocity profile, it is necessary to assume that the total shear stress remains constant in the inner region and is equal to the bed stress. These assumptions can normally be made if the first grid point is in the range of \(30 < y^+ < 100\) from the wall (Rodi, 1993):

\[ y^+ = \frac{yU_*}{\nu} \tag{2-131} \]

In the range of \(y^+\) specified above, the Reynolds stresses are relatively constant. In this region local equilibrium prevails, so if buoyancy effects are negligible then the production equals dissipation, which implies that \(P = \varepsilon\). It is also assumed that the total shear stress remains constant and is approximately equal to the wall shear stress in this region. Using these assumptions and Equation 1 it is possible to derive the equation for turbulent kinetic energy at the first grid point (Rodi, 1993):

\[ k = \frac{U_*^2}{\sqrt{C_\mu}} \tag{2-132} \]

The boundary condition for turbulent dissipation can be determined using \(\varepsilon = P = U_*^2 \frac{\partial U}{\partial y}\) where \(\frac{\partial U}{\partial y}\) is determined from Equation 2-130:

\[ \varepsilon = \frac{U_*^3}{\kappa y} \tag{2-133} \]

Since \(y\), \(U\), \(E\), \(\kappa\), \(\nu\) and \(E\) are known, a very simple wall function can be implemented by solving Equation 2-130 for \(U_*\). In the current version of the k-ε model \(U_*\) was found using a root solver based on the bisection method from Press et al. (1996). Then Equations 2-132 and 2-133 are used to determine the turbulent kinetic energy and the turbulent dissipation at the first grid point. This simple approach has some limitations, such as not being able to handle separated flow, but seemed like a reasonable first approximation.

The wall function outlined above is valid for both smooth and rough boundaries. For hydraulically smooth beds the roughness coefficient \(E\) is set to 9.535 (Ferziger and Peric, 2002). For rough boundaries a smaller value of \(E\) is used. Two options are available in the current algorithm for specifying the roughness coefficient: a uniform constant value applied to all segments, or a value calculated based on the Manning's coefficients specified in the bathymetry file.

In the first option the user specifies the roughness coefficient and this value is used to calculate the bed friction velocity using Equation 2-130. After the bed friction velocity has been determined a new Manning's coefficient is calculated using Equation 2-134 below. This method was used primarily for experimental channel test cases where the bed was hydraulically smooth and had a roughness coefficient equal to 9.535:

\[ n = \frac{R_h^{1/6}}{\sqrt{\left(\frac{U_*}{U_m}\right)^2}} \tag{2-134} \]

In the second option the roughness coefficient is calculated using a Strickler relationship and an approximation of the Nikuradse formulation (Krishnappan and Lau, 1986):

\[ E = \exp\left(\frac{(\kappa B_s)}{\left(\frac{U_* k_s}{\nu}\right)}\right) \tag{2-135} \]
\[ B_s = \left[5.50 + 2.5\ln\left(\frac{U_* k_s}{\nu}\right)\right]\exp\left\{-0.217\left[\ln\left(\frac{U_* k_s}{\nu}\right)\right]^2\right\} + 8.5\left\{1 - \exp\left\{-0.217\left[\ln\left(\frac{U_* k_s}{\nu}\right)\right]^2\right\}\right\} \tag{2-136} \]
\[ k_s = (n \cdot 24.04)^6 \quad (k_s \text{ in m}) \tag{2-137} \]

The appropriate boundary condition for the free surface is harder to determine. Unfortunately, there is very little experimental information available for turbulent statistics at the free surface (Rodi, 1993).

A first approximation for the boundary conditions at the free surface in the absence of wind-induced shear is to use a symmetry plane where both turbulent kinetic energy and turbulent dissipation are found using a zero-gradient condition (Rodi, 1993). However, the presence of the free surface is generally thought to reduce the length scale of turbulence and reduce the turbulent dissipation. An attempt to take this into account was made in the empirically determined boundary conditions shown below (Celik and Rodi, 1984):

\[ \frac{\partial k}{\partial y} = 0 \tag{2-138} \]
\[ \varepsilon = \frac{k^{3/2}}{aH} \tag{2-139} \]

where \(a\) is an empirical constant and \(H\) is the depth of the shear layer (channel depth). The coefficient \(a\) was originally set to a value of 0.18 by Celik and Rodi (1984) and then later changed to a value of 0.43 by Celik and Rodi (1988).

For a free surface with wind-induced surface shear, the boundary conditions similar to those used for wall boundaries, Equations 2-130, 2-132, and 2-133, are appropriate. The free surface can be seen as a moving wall. The bed friction velocity in Equations 2-132 and 2-133 can be replaced with the wind-induced surface friction velocity (Rodi, 1993).

Rodi presented a set of boundary conditions that could be used for free surfaces with or without wind-induced surface shear. When the wind-induced surface shear is large then the following boundary condition is used for turbulent kinetic energy:

\[ k = \frac{U_{*s}^2}{\sqrt{C_\mu}} \tag{2-140} \]

When the surface shear is small, \(k_s\sqrt{C_\mu} > U_{*s}^2\), then the symmetry condition for turbulent kinetic energy shown in Equation 2-138 is used. Where \(U_{*s}\) is the wind-induced surface friction velocity. In a similar fashion the turbulent dissipation boundary condition for a free surface with and without wind-induced surface shear was developed and is given as:

\[ \varepsilon = \frac{(k_s\sqrt{C_\mu})^{3/2}}{\kappa\left[y+aH\left(1-\frac{U_{*s}^2}{k_s\sqrt{C_\mu}}\right)\right]} \tag{2-141} \]

The coefficient \(a\) was set to a value of 0.07 by Rodi in 1983. When surface shear is present, Equation 2-141 reduces to \(\varepsilon = \frac{U_{*s}^3}{\kappa \cdot y}\). When surface shear is not present, Equation 2-141 becomes \(\varepsilon = \frac{k^{3/2}}{\kappa(y+aH)}\) which is similar to Equation 2-139 above.

The original CE-QUALW2 free surface boundary conditions were:

\[ k = \frac{(U_{*s}^2 + U_{*boundary}^2)}{\sqrt{C_\mu}} \]
\[ \varepsilon = \frac{(U_{*s}^3 + U_{*boundary}^2)}{\kappa \cdot y} \]

These are similar to the boundary conditions presented in Equations 2-140 and 2-141 when wind-induced shear is present. The only difference is that both the turbulent kinetic energy and turbulent dissipation boundary conditions include an additional term for the friction velocity of the lateral boundaries.

The initial conditions and inlet boundary conditions are specified by setting the eddy viscosity, turbulent kinetic energy, and turbulent dissipation terms to the following values:

  • \(\nu_t = 1.4 \times 10^{-6}\)
  • \(k = 1.25 \times 10^{-7}\)
  • \(\varepsilon = 1.0 \times 10^{-9}\)

The outlet values of turbulent kinetic energy and turbulent dissipation are determined using a zero-gradient approach:

\[ \frac{\partial k}{\partial x} = 0, \quad \frac{\partial\varepsilon}{\partial x} = 0 \]

This is done by setting the value of turbulent kinetic energy and turbulent dissipation at the outlet cell equal to the value of the cell in the upstream segment. Figures 29 and 30 compare model predictions of turbulent dissipation and turbulent kinetic energy with field data.

Comparison of CE-QUAL-W2 model predictions of turbulent dissipation with field data from Nakagawa, Neuzu, and Ueda (1975).
Figure 29. Comparison of CE-QUAL-W2 model predictions of turbulent dissipation with field data from Nakagawa, Neuzu, and Ueda (1975).
Comparison of CE-QUAL-W2 model predictions of turbulent kinetic energy with field data from Nakagawa, Neuzu, and Ueda (1975).
Figure 30. Comparison of CE-QUAL-W2 model predictions of turbulent kinetic energy with field data from Nakagawa, Neuzu, and Ueda (1975).

Effect of Vertical Layer Numbers on Vertical Turbulence

In contrast to other riverine models that assume vertically well-mixed systems, CE-QUAL-W2 accounts for the vertical variation of velocity in a riverine reach. Even though there is an added computational burden of computing the 2D velocity profile, the advantage of making this computation is that the friction factor (Manning's or Chezy) for a segment can be flow or stage invariant depending on the number of vertical layers schematized.

Figure 31 shows the variation of Manning's friction factor with hydraulic radius. Many one-dimensional (1D) hydraulic flow models, such as CE-QUAL-RIV1 and UNET (Barkau, 1997), allow the user to specify how Manning's friction factor changes with depth. The Manning's friction factor, \(n\), has been thought to vary as a function of depth, Reynolds number, and roughness factor or scale of bed grain size (Ugarte and Madrid, 1994; Soong et al., 1995).

Variation of Manning's friction factor using formulae from Limerinos (1970) and Jarrett (1984, 1985) for a channel slope, S, of 0.0005 and 84th percentile diameter of the bed material, d_84, of 50.
Figure 31. Variation of Manning's friction factor with hydraulic radius.

However, in a two-dimensional, longitudinal-vertical river model, Manning's friction factor does not have to vary with stage to produce the effect that apparent friction decreases as river stage increases. The water surface setup changes significantly with the number of layers. In general, water surface slope increases as the number of computational layers decreases, because the average eddy viscosity in the water column increases with fewer layers. At the limit of a one-layer system, the average vertical eddy viscosity is infinite.

The model allows choosing between six different vertical eddy viscosity formulations. These formulations are shown in Table 2. Typical variation of these formulations is shown in Figure 24 for Manning's friction factor for an open-channel, non-stratified flow regime as compared to theory of steady, uniform channel flow.

The number of vertical layers significantly affects model predictions. For example, Figure 32 shows a comparison of vertical velocity profiles from a model with one, three, and seven vertical layers using the parabolic eddy viscosity model.

Comparison of vertical velocity predictions with one, three, and seven vertical layers.
Figure 32. Comparison of vertical velocity predictions with one, three, and seven vertical layers.

Figure 33 shows how the change in the number of vertical layers affects the water surface slope over the domain length for a steady-state flow. In order to model the water surface slope of the 1-layer model with the 7-layer model, the apparent value of Manning's friction factor would have to be reduced. Hence, the apparent friction decreases as the number of layers increase.

Comparison of elevation drop of W2 model with one, three, and seven vertical layers with same Manning's friction factor.
Figure 33. Comparison of elevation drop of W2 model with one, three, and seven vertical layers with same Manning's friction factor.

CE-QUAL-W2 has also been compared to the 1D models DYNHYD (Ambrose et al., 1988) and CE-QUAL-RIV1 (Environmental Laboratory, 1995) by running W2 with only a single vertical layer. The average velocities between the three models agreed well with theory but the water surface slopes are different. W2 predicts an elevation difference of 2.93 m, compared to 2.07 m for DYNHYD and 2.05 m for RIV1 over 30 km for a flow of 2574 m³ s⁻¹, a Manning's n of 0.03, a slope of 0.001, and a channel width of 100 m. Based on steady-state theory, the actual difference should be 2.9 m. Both the DYNHYD and RIV1 models require friction factors greater than expected to correspond to classical theory. This may be a result of these models not incorporating sidewall friction that was important during these test runs where the depth was 15 m and the width was 100 m.

Longitudinal Shear Stress

The longitudinal turbulent shear stress is defined as:

\[ \frac{\tau_{xx}}{\rho} = \nu_t\frac{\partial U}{\partial x} = A_x\frac{\partial U}{\partial x} \tag{2-142} \]

where \(A_x = \nu_t\) = longitudinal eddy viscosity.

\(A_x\) is a user-defined constant or it can be set to scale with the average longitudinal velocity. This turbulence closure approximation is termed a zero-order closure model since no further equations are necessary to solve for the transmission of shear stress within the fluid.

This term is usually of very low magnitude except in areas near boundaries such as at a dam face where the longitudinal velocity goes to zero.

The equation for computing \(A_x\) is:

\[ A_x = \alpha\bar{U}\Delta z \]

where α is a user input value, \(U\) with double bars are the time-averaged, lateral averaged longitudinal velocity at a segment and layer.

Hydraulic Structures

Pipes

The user can specify a pipe or culvert between model segments (Berger and Wells, 1999) using a 1D, unsteady hydraulic model (Figure 34) that computes the flow between the two linked segments. The model computes the selective withdrawal outflow from the upstream segment. The user specifies whether the inflow to the downstream segment is mixed over the depth, placed at the depth determined from inflow density, or distributed between an upper and lower elevation.

Schematic of linkage of model segments with a culvert.
Figure 34. Schematic of linkage of model segments with a culvert.

This model is only appropriate for simple piping systems that are not suddenly under a large hydraulic head. The governing equations for computing the flow and the numerical solution technique are shown below.

The governing equations used to predict flow through culverts are the 1D, time-dependent conservation of momentum and continuity equations (Yen, 1973):

\[ \frac{\partial u}{\partial t} + u\frac{\partial u}{\partial x} + g\cos\varphi\frac{\partial h}{\partial x} - g(S_o - S_f - S_m) = 0 \tag{2-143} \]
\[ \frac{\partial h}{\partial t} + u\frac{\partial h}{\partial x} + \frac{A}{T}\frac{\partial u}{\partial x} = 0 \tag{2-144} \]

where:

  • \(u\) = velocity, m s⁻¹
  • \(t\) = time, s
  • \(h\) = piezometric head, m
  • \(g\) = gravitational acceleration, m s⁻²
  • \(x\) = distance along axis of culvert, m
  • \(A\) = cross-sectional area of culvert filled with water, m²
  • \(T\) = width of water level surface, m
  • \(\varphi\) = angle between culvert axis and horizontal
  • \(S_o\) = culvert slope
  • \(S_f\) = friction slope
  • \(S_m\) = minor loss slope

The friction slope \(S_f\) is estimated using the Manning formula:

\[ S_f = \frac{n^2}{R^{4/3}}u|u| \tag{2-145} \]

Minor losses due to entrance configuration, gates, valves, and corners are accounted for in the minor loss term \(S_m\):

\[ S_m = k\frac{u|u|}{2g}\frac{1}{L} \tag{2-146} \]

where:

  • \(k\) = sum of minor loss coefficients
  • \(L\) = length

Pressurized or full culvert flow is modeled using a fictitious water surface width called a Preissmann slot (Yen, 1986). If the culvert is full, the surface width \(T\) is zero and the governing equations become singular. The Preissmann slot avoids switching between the open channel and pressurized flow equations. A top width of 0.5% of the diameter is assumed for culverts flowing full.

The advantages of using a Preissmann slot are (Yen, 1986):

  1. Uses only Saint-Venant equations and avoids switching between the surcharge equation and open-channel flow equations
  2. No need to define surcharge criteria
  3. Not necessary to keep inventory of the pipes that are surcharged at different times
  4. Permits the flow transition to progress computationally reach by reach in a sewer
  5. Requires few additional assumptions than the standard approach to achieve numerical stability
  6. Simpler to program

The disadvantages are:

  1. Introduces a potential accuracy problem in the mass and momentum balance of the flow if the slot is too wide, and stability problems if it is too narrow
  2. Requires computation of two equations (continuity and momentum) for each of the reaches of the sewer when the sewer is full surcharged
  3. Hypothetical rather than real

The Preissmann slot concept has been applied to other models for surcharged flow including the model described by Abbot (1982) and SWMM EXTRAN (Roesner et al. 1988).

The boundary condition used for solving the governing equations is the head or water level at each end of the culvert. However, if the water level at the downstream end of the culvert is less than the critical depth, the critical depth is used. Momentum is not transferred between model segments and the culverts. Initial conditions are the calculated velocities and heads at the previous time step.

The governing equations cannot be solved analytically and an implicit finite difference scheme is used to approximate the solution. The solution method employs the "leap-frog scheme" which calculates the head and velocity at alternating computational nodes (Anderson et al., 1984). The finite difference forms of the continuity and momentum equations are:

\[ 0 = \frac{h_i^{n+1} - h_i^n}{\Delta t} + \theta u_i^n \frac{h_{i+2}^{n+1} - h_{i-2}^{n+1}}{2\Delta x} + (1-\theta) u_i^n \frac{h_{i+2}^n - h_{i-2}^n}{2\Delta x} + \theta \frac{A_i^n}{T_i^n} \frac{u_{i+1}^{n+1} - u_{i-1}^{n+1}}{\Delta x} + (1-\theta) \frac{A_i^n}{T_i^n} \frac{u_{i+1}^n - u_{i-1}^n}{\Delta x} \tag{2-147} \]
\[ 0 = \frac{u_i^{n+1} - u_i^n}{\Delta t} + \theta u_{i+1}^n \frac{u_{i+1}^{n+1} - u_{i-1}^{n+1}}{\Delta x} + (1-\theta) u_{i+1}^n \frac{u_{i+1}^n - u_{i-1}^n}{\Delta x} + \theta g \frac{h_{i+2}^{n+1} - h_i^{n+1}}{\Delta x} + (1-\theta) g \frac{h_{i+2}^n - h_i^n}{\Delta x} + \theta g \frac{n^2}{R^{4/3}} u_{i+1}^{n+1} |u_{i+1}^n| + (1-\theta) g \frac{n^2}{R^{4/3}} u_{i+1}^n |u_{i+1}^n| + \theta \frac{k}{L} u_{i+1}^{n+1} |u_{i+1}^n| + (1-\theta) \frac{k}{L} u_{i+1}^n |u_{i+1}^n| \tag{2-148} \]

where \(n\) refers to the time level and \(i\) references the spatial node (Figure 35).

Linkage schematic of model segments with a culvert.
Figure 35. Linkage schematic of model segments with a culvert.

Figure 36 compares flow predictions using the dynamic culvert model with flow measurements taken within a culvert at NE 47th bridge in the Upper Columbia Slough, Portland, Oregon. The flow was recorded using a flow meter placed directly in a culvert. The cyclical flows are the result of turning pumps on and off at a downstream pump station. The culvert was calibrated by adjusting the minor loss parameter.

Computed versus observed flow using dynamic culvert model.
Figure 36. Computed versus observed flow using dynamic culvert model.

Internal Weirs

The model can be used to set internal weirs at specified cell locations (Figure 37). The user specifies the location of the internal weir by providing a segment and layer number. The "weir" effectively acts as a barrier to flow and diffusion of mass/heat across the width of the waterbody. This can be used to simulate submerged and curtain weirs within a waterbody.

Schematic representation of internal weirs.
Figure 37. Schematic representation of internal weirs.

Water Level Control or Pumps

In many reservoir systems, outflows are controlled by water levels. A water level control or pump algorithm allows the user to specify the upstream and downstream segments for water transfer at a given flow rate based on the water level at the upstream segment. This is essentially a pump based on a float controller.

Reverse flow is not allowed. The withdrawal is treated as a lateral selective withdrawal, and the receiving segment is treated as a tributary inflow.

Outlet Structures

Outflows through hydraulic structures can either be specified or computed by the model based on user-supplied rating curves (Figure 38).

Radial gates and spillway flow.
Figure 38. Radial gates and spillway flow.

The UNET model (Hydrologic Engineering Center [HEC], 1997a), a one-dimensional unsteady hydraulic model, formally accounts for spillway flow from weirs and spillways. For free or submerged flow from a spillway with a radial gate, UNET uses a general equation of the form:

\[ Q_{sp} = CWA^\alpha B^\beta H^\eta \tag{2-149} \]

where:

  • \(\alpha\) = empirical coefficient
  • \(\beta\) = empirical coefficient
  • \(\eta\) = empirical coefficient
  • \(Q_{sp}\) = flow rate, m³ s⁻¹
  • \(A\) = trunnion height, m
  • \(B\) = gate opening, m
  • \(C\) = empirical coefficient
  • \(W\) = gate width, m

and

\[ H = Z_u - KZ_d - (1-K)Z_{sp} \tag{2-150} \]

where:

  • \(Z_u\) = headwater elevation
  • \(Z_d\) = tailwater elevation
  • \(K\) = 1 for submerged flow and 0 for free flow
  • \(Z_{sp}\) = spillway elevation

Submergence is defined as:

\[ \frac{Z_d - Z_{sp}}{Z_u - Z_{sp}} > \frac{2}{3} \tag{2-151} \]

Note that weir flow is assumed to occur whenever \(B = 0.8H\) and is computed as:

\[ Q_{weir} = C_w FW\left((1-K)Z_u + KZ_d - Z_{sp}\right)H^{1/2} \tag{2-152} \]

where:

  • \(C_w\) = weir coefficient
  • \(F = 3\left(1-\frac{|Z_d-Z_{sp}|}{|Z_u-Z_{sp}|}\right)\) when \(K = 1\)
  • \(F = 1\) when \(K = 0\)

For a concrete spillway, HEC (1997a) suggests using a weir coefficient value of 4. Note that the above two equations are considered equivalent whenever \(B = 0.8H\).

HEC-RAS (Hydrologic Engineering Center River Analysis System), a one-dimensional, steady-state hydraulic model (HEC, 1997b), includes the ability to model flow over spillways including tainter and sluice gates, broad-crested weirs, and an ogee crest. Ineffective flow area, that area below the weir or gate opening, is used to block a part of the channel until it reaches the level of a spillway or weir. A summary of the equations used by HEC-RAS is shown in Table 4.

Table 4. HEC-RAS flow rates through weirs and sluice gates.

Condition Equation Description
Radial flow gate, flowing freely \(Q = C\sqrt{2g}WT^{T_E}B^{B_E}H^{H_E}\) When upstream water surface is ≥1.25 times the gate opening height above the spillway crest. \(Q\) = flow; \(C\) = discharge coefficient (0.6--0.8); \(W\) = gated spillway width; \(T\) = trunnion height; \(B\) = gate opening height; \(H\) = upstream energy head above spillway crest (\(Z_u - Z_{sp}\)); \(T_E\) = empirical trunnion height exponent, 0.16; \(B_E\) = gate opening coefficient, 0.72; \(H_E\) = head exponent, 0.62
Radial gate flowing under submerged conditions \(Q = 3C\sqrt{2g}WT^{T_E}B^{B_E}H^{H_E}\) When the tailwater depth divided by the energy depth above the spillway is greater than 0.67. \(H = Z_u - Z_d\)
Freely flowing sluice gate \(Q = C\sqrt{2gH}WB\) \(H\) = upstream energy head above the spillway (\(Z_u - Z_{sp}\)); \(C\) = discharge coefficient, 0.5--0.7
Submerged sluice gate \(Q = 3C\sqrt{2gH}WB\) When the tailwater depth divided by the energy depth above the spillway is greater than 0.67. \(H = Z_u - Z_d\)
Low flow through gated structure \(Q = CLH^{3/2}\) When upstream water level is equal to or less than the top of the gate opening. \(C\) = weir coefficient, 2.6--4.0; \(H\) = upstream energy head above spillway crest. For Ogee spillways, values of \(C\) are adjusted according to a 1977 Bureau of Reclamation study. Suggested values of \(C\): 2.6 for Ogee spillways, bridge decks, and 3.0 for flow over elevated roadways

Spillways/Weirs

Analysis of flow over weirs has been studied extensively. Martin and McCutcheon (1999) show that a typical relationship between the pool depth and flow over a weir is:

\[ Q = C_e W_c h_w^\eta \tag{2-153} \]

where \(C_e\) and \(\eta\) are empirical coefficients, \(W_c\) is the length of the weir crest, and \(h_w\) is the height of the pool above the weir crest. Theoretical calculations of steady-state flow over a weir can be complex depending on whether the weirs are sharp-crested, broad-crested, V-notched, rectangular, Cipolletti, parabolic, or some other type. Table 5 shows some examples from French (1985) and USBR (2001) on typical equations used for the different weir types. For many regular weir types, formulae exist for accurate estimation of the flow. However, in most cases a rating curve for a given installation is necessary because of the uncertainty of end effects, flow alignments, shallowness in the upstream pool, and other unique features of the installation (Martin and McCutcheon, 1999).

Table 5. List of weir types (French, 1985; USBR, 2001).

Weir type Weir Equation Description
Rectangular broad-crested weir \(Q = C_D C_v \frac{2}{3}\sqrt{\frac{2}{3}g}WH^{3/2}\) Valid when 0.08 < H/L < 0.5. \(Q\) = flow rate; \(C_D\) = discharge coefficient (0.84--1.06); \(C_v\) = velocity coefficient (1.0--1.2); \(W\) = width at surface; \(H\) = upstream head above spillway crest; \(g\) = gravity acceleration
Rectangular sharp-crested weir \(Q = C_e \frac{2}{3}\sqrt{2g}BH^{3/2}\) Where \(B\) = width at bottom of weir crest. \(C_v\) = 0.611 + 0.075*(H/Z); \(H\) = weir head; \(Z\) = weir crest head measured from the channel bottom
Parabolic, broad-crested \(Q = C_D C_v \sqrt{\frac{3}{4}f}gH^2\) \(f\) = distance from bottom point of weir to weir focal point
Parabolic, sharp-crested \(Q = C_e \frac{1}{2}\pi\sqrt{f}gH^2\) \(C_e\) = effective discharge coefficient
Triangular, broad-crested \(Q = C_D C_v \frac{16}{25}\sqrt{\frac{2}{5}g}\tan(0.5\Theta)H^{5/2}\) \(\Theta\) = half angle of the triangular notch
Triangular, sharp-crested \(Q = C_e \frac{8}{25}\sqrt{2g}\tan(0.5\Theta)H^{5/2}\) \(C_e\) = function of notch angle, varies from 0.59 to 0.57 for angles between 20 and 100 degrees
Trapezoidal, broad-crested \(Q = C_D(Wy_c + my_c^2)[2g(H - y_c)]^{1/2}\) \(W\) = top width; \(m\) = slope of trapezoidal weir; \(y_c\) = depth of water at the weir; \(H\) = energy head upstream of weir
Trapezoidal, sharp-crested \(Q = C_e \frac{2}{3}\sqrt{2g}(B + \frac{4}{5}H\tan 0.5\Theta)H^{1/2}\) \(B\) = bottom width of trapezoidal weir; \(\Theta\) = half angle
Cipolletti \(Q = C_D C_v \frac{2}{3}\sqrt{2g}WH^{3/2}\) A modified contracted, rectangular, sharp-crested weir with a trapezoidal control section and sides sloping outward with slopes of 4:1. \(C_D \approx 0.63\); \(C_v\) varies from 1 to 1.2
Proportional or sutro weir \(Q = C_D B\sqrt{2ga}(H - \frac{1}{3}a)\) \(a\) = distance from weir bottom to top of the rectangular weir section; \(B\) = bottom width of weir; \(C_D\) = drag coefficient, 0.597--0.619 for symmetrical weirs

Since all weirs in practice are calibrated and a head discharge relationship is usually determined, the flow versus head relationship is used rather than an equation from Table 5. The user must then analyze the weir or spillway and input a relationship based on the weir or spillway geometry. The model accepts equations in the form of a power function for freely flowing conditions:

\[ Q = \alpha_1\Delta h^{\beta_1} \tag{A-2-154} \]

where:

  • \(\alpha_1\) = empirical parameter
  • \(\beta_1\) = empirical parameter
  • \(\Delta h = Z_u - Z_{sp}\)
  • \(Z_u\) = upstream head
  • \(Z_{sp}\) = spillway crest elevation

and for submerged conditions:

\[ Q = \alpha_2\Delta h^{\beta_2} \tag{A-2-155} \]

where:

  • \(\alpha_2\) = empirical parameter
  • \(\beta_2\) = empirical parameter
  • \(\Delta h = Z_u - Z_d\)
  • \(Z_u\) = upstream head
  • \(Z_d\) = downstream head

Submerged conditions are defined when the tailwater depth over the upstream energy head (static head and velocity head) is greater than 0.67 (HEC, 1997b). Negative flow rates are possible using the second equation whenever \(Z_d > Z_u\); however, use these results with caution since rating curves are rarely calibrated for reverse flow over a spillway.

Warning

Ensure a smooth transition between submerged and free flowing conditions by proper choice of model coefficients (see Figure 39).

Flow rate over a spillway or weir for submerged and free flowing conditions.
Figure 39. Flow rate over a spillway or weir for submerged and free flowing conditions.

Consider the following weir flow condition in Figure 40.

Flow at a submerged weir.
Figure 40. Flow at a submerged weir.

For a smooth transition, the two flows must be equal at the transition point. Using:

\[ H_2 - H_{weir} = 0.67\left(\Delta h_1 + \frac{u^2}{2g}\right) \approx 0.67(H_1 - H_{weir}) \tag{2-156} \]

and substituting the rating curves for free flow and submerged conditions and solving for \(\alpha_2\) results in:

\[ \alpha_2 = \frac{\alpha_1(H_1-H_{weir})^{\beta_1-\beta_2}}{(0.33)^{\beta_2}} \tag{2-157} \]

In many cases a weir can be set as the downstream boundary condition of a river. In CE-QUAL-W2, the user can specify the weir crest as the channel bottom elevation, such that the weir equation is of the form:

\[ Q = \alpha_1 H^{\beta_1} \tag{2-158} \]

where \(H\) is the depth of the water at the weir. Setting this in the form of a stage-discharge relationship:

\[ H = aQ^b = \left(\frac{Q}{\alpha_1}\right)^{1/\beta_1} \tag{2-159} \]

Writing this equation in a form compatible with the stage discharge relationship using the \(a\) and \(b\) coefficients:

\[ H = \left(\frac{1}{\alpha_1}\right)^{1/\beta_1}Q^{1/\beta_1} \tag{2-160} \]

Then the \(a\) and \(b\) coefficients become:

\[ a = \left(\frac{1}{\alpha_1}\right)^{1/\beta_1} \tag{2-161} \]
\[ b = \frac{1}{\beta_1} \tag{2-162} \]

or vice versa:

\[ \alpha_1 = a^{-\beta_1} \tag{2-163} \]
\[ \beta_1 = \frac{1}{b} \tag{2-164} \]

This allows the user to set a weir-rating curve that reproduces the stage discharge relationship at a downstream boundary.

A dynamic weir or spillway crest elevation can also be used to simulate dynamic raising of flashboards. These are designated in the model as gates.

Gates

For a gated structure or sluice gate, a more complex rating curve is required based on the opening and the head difference between the upstream and downstream condition (the spillway crest if free flow and the tailwater elevation if submerged flow).

The following equation is used for freely flowing conditions:

\[ Q = \alpha_1\Delta h^{\beta_1}B^{\gamma_1} \tag{2-165} \]

where:

  • \(\alpha_1\) = empirical coefficient
  • \(\beta_1\) = empirical coefficient
  • \(\gamma_1\) = empirical coefficient
  • \(\Delta h = Z_u - Z_{sp}\)
  • \(Z_u\) = upstream head
  • \(Z_{sp}\) = spillway crest elevation

and the following equation is used for submerged flow:

\[ Q = \alpha_2\Delta h^{\beta_2}B^{\gamma_2} \tag{2-166} \]

where:

  • \(\alpha_2\) = empirical coefficient
  • \(\beta_2\) = empirical coefficient
  • \(\gamma_2\) = empirical coefficient
  • \(\Delta h = Z_u - Z_d\)
  • \(Z_d\) = downstream head
  • \(B\) = gate opening, m

In defining these parameters, the user also has to generate a time series file with the gate opening in m where a gate opening of 0 m is closed. Whenever the gate opening is equal to or greater than \(0.8\Delta h\), a weir equation is used with no functional dependency on the gate opening. In this case, a rating curve must be supplied when the gate acts like a weir. Figure 41 shows the flow rate variation with gate opening.

Flow rate variation with gate opening.
Figure 41. Flow rate variation with gate opening.

In some reservoir systems, an outlet valve is connected to the reservoir and a head-discharge relationship is used based on the gate opening or number of gate turns. In this case, the outlet level is usually at a different elevation than the withdrawal elevation. The above gate formulation can still be used if no reverse flow occurs through the needle valve. This situation is illustrated in Figure 42. In this case, the elevation of the outflow is required in addition to the elevation at which the outflow is taken if a rating curve is used in the model. This use is described in the section on gates in the control file.

Selective withdrawal with outflow connected to a valve with a gate.
Figure 42. Selective withdrawal with outflow connected to a valve with a gate.

The user can insert weirs and/or spillways, specify connectivity to other model segments, and insert the ratings curve parameters for each weir/spillway. The model treats each spillway, weir, or gate as a selective withdrawal outflow and uses the selective withdrawal algorithm for determining water flow from each vertical layer adjacent to the structure.

Inflows from hydraulic control structures are treated as tributary inflows. The user must specify whether the inflow is placed according to density, distributed equally between all vertical layers, or distributed between a given elevation range.

Weir equations are used when gates are open and the open gate does not interfere with the flow (when \(B \ge 0.8\Delta h\)).

Gates can also be used to move flows around to different parts of the model domain, including different branches. In that case the specification of gate openings is interpreted as specification of flow rates.

Branch Momentum Exchange

Starting with CE-QUAL-W2 Version 3, CE-QUAL-W2 conserves longitudinal momentum at branch intersections (Figure 43). The vector component of velocity in the x-direction of the main channel, \(U_x\), can be computed from the channel orientations. The x-direction component is \(U_x = U\cos\beta\) where \(U\) is the longitudinal velocity of the tributary at the downstream segment that intersects the main branch and \(\beta\) is the difference in the angle between the main stem and tributary segments.

Schematic of branch connection.
Figure 43. Schematic of branch connection.

The conservation of momentum about a control volume (the main stem segment) would result in an additional source of momentum. Lai (1986) shows that the correction to the x-momentum equation would be:

\[ qBU_x \tag{2-167} \]

where \(q\) = lateral inflow per unit length.

This arises from re-deriving the momentum equations and assuming that all the fluid entering the segment is moving at the velocity \(U_x\). The correction to the x-momentum equation is:

\[ \frac{\partial UB}{\partial t} + \frac{\partial UUB}{\partial x} + \frac{\partial WUB}{\partial z} = gB\sin\alpha + g\cos\alpha B\frac{\partial\eta}{\partial x} - \frac{g\cos\alpha B}{\rho}\int_{\eta}^{z}\frac{\partial\rho}{\partial x}\,dz + \frac{1}{\rho}\frac{\partial B\tau_{xx}}{\partial x} + \frac{1}{\rho}\frac{\partial B\tau_{xz}}{\partial z} + qBU_x \tag{2-168} \]

Lateral Inflows

Wells (1997) proposed accounting for the cross-shear as a result of the y component of the velocity of a side branch in the computation of the vertical eddy viscosity. This was implemented by increasing the cross-shear velocity gradient. In Version 2, wind shear across the lateral axis of a segment also increased the vertical mixing by affecting the computation of \(A_z\). Analogous to wind shear, an additional side shear is included in the calculation of the vertical eddy viscosity:

\[ A_z = \kappa\left(\frac{l^2}{2}\right)\sqrt{\left(\frac{\partial U}{\partial z}\right)^2 + \left(\frac{\tau_{wy}e^{-2kz}+\tau_{trib}}{\rho A_z}\right)^2}\;e^{-CRi} \tag{2-169} \]

where:

  • \(\tau_{trib} \cong \rho\frac{f_i}{8}U_y^2\)
  • \(f_i\) = interfacial friction factor, \(\approx 0.01\)
  • \(U_y = \frac{\sum Q_{in_y}}{\Delta z \Delta x}\)
  • \(\sum Q_{in_y} = [U_{br}\Delta z B] + \left[\sum Q_{trib}\right]\)
  • \(U_{br} = U_{br}\sin(\Theta_{main}-\Theta_{branch})\)
  • \(\Delta z\) = inflow cell layer height
  • \(B\) = inflow cell width
  • \(\Delta x\) = inflow cell segment length
  • \(Q_{trib}\) = tributary flow rate assumed to be at right angles to the main channel

This side shear effect is only computed when the vertical mixing algorithm chosen by the user is W2 or W2N.

Density

Accurate hydrodynamic calculations require accurate water densities. Water densities are affected by variations in temperature and solids concentrations given by:

\[ \rho = \rho_T + \Delta\rho_S \tag{2-170} \]

where:

  • \(\rho\) = density, kg m⁻³
  • \(\rho_T\) = water density as a function of temperature, kg m⁻³
  • \(\Delta\rho_S\) = density increment due to solids, kg m⁻³

A variety of formulations has been proposed to describe water density variations due to temperatures. The following relationship is used in the model (Gill, 1982):

\[ \rho_{T_w} = 999.842594 + 6.793952 \times 10^{-2}T_w - 9.095290 \times 10^{-3}T_w^2 + 1.001685 \times 10^{-4}T_w^3 - 1.120083 \times 10^{-6}T_w^4 + 6.536332 \times 10^{-9}T_w^5 \tag{2-171} \]

Suspended and dissolved solids also affect density. For most applications, dissolved solids are represented as total dissolved solids (TDS). For estuarine applications, specify salinity instead. The choice is controlled by the variable [WTYPE].

Density effects due to TDS are given by Ford and Johnson (1983):

\[ \Delta\rho_{TDS} = (8.221 \times 10^{-4} - 3.87 \times 10^{-6}T_w + 4.99 \times 10^{-8}T_w^2)\Phi_{TDS} \tag{2-172} \]

where \(\Phi_{TDS}\) = total dissolved solids (TDS) concentration, g m⁻³.

And for salinity (Gill, 1982):

\[ \Delta\rho_{sal} = (0.824493 - 4.0899 \times 10^{-3}T_w + 7.6438 \times 10^{-5}T_w^2 - 8.2467 \times 10^{-7}T_w^3 + 5.3875 \times 10^{-9}T_w^4)\Phi_{sal} + (-5.72466 \times 10^{-3} + 1.0227 \times 10^{-4}T_w - 1.6546 \times 10^{-6}T_w^2)\Phi_{sal}^{1.5} + 4.8314 \times 10^{-4}\Phi_{sal}^2 \tag{2-173} \]

where \(\Phi_{sal}\) = salinity, kg m⁻³.

The suspended solids effects are given by Ford and Johnson (1983):

\[ \Delta\rho_{SS} = \Phi_{SS}\left(1 - \frac{1}{SG}\right) \times 10^{-3} \tag{2-174} \]

where:

  • \(\Phi_{SS}\) = suspended solids concentration, g m⁻³
  • \(SG\) = specific gravity of suspended solids

Assuming a specific gravity of 2.65, the above relationship is simplified to:

\[ \Delta\rho_{SS} = 0.00062\Phi_{SS} \tag{2-175} \]

The total effect of solids is then:

\[ \Delta\rho_S = (\Delta\rho_{sal} \text{ or } \Delta\rho_{TDS}) + \Delta\rho_{SS} \tag{2-176} \]

Selective Withdrawal

To model the complex outlet hydraulics in a reservoir, selective withdrawal algorithms are used (Brooks and Koh, 1969; Davis et al., 1987). These allow the computation of flow from multiple vertical layers without solving the full vertical momentum equation.

Selective withdrawal is applied to all structure outflows. Layer locations and outflows at each layer are calculated based on the total outflow [QOUT], structure type [SINKC], elevation [ESTR], and computed upstream density gradients. The selective withdrawal computation determines vertical withdrawal zone limits and outflows, and sums the outflows for multiple structures. All outflows (including withdrawals and hydraulic structures) use selective withdrawal theory to compute the withdrawal envelope.

Outflow distribution is calculated in the subroutine SELECTIVE_WITHDRAWAL. This routine first calculates limits of withdrawal based on either a user-specified point or line sink approximation for outlet geometry [SINKC]. The empirical expression for point sink withdrawal limits is:

\[ d = \left(\frac{c_{bi}Q}{N}\right)^{0.33} \tag{2-177} \]

and for a line sink:

\[ d = \left(\frac{2c_{bi}q}{N}\right)^{0.5} \tag{2-178} \]

where:

  • \(d\) = withdrawal zone half height, m
  • \(Q\) = total outflow, m³ s⁻¹
  • \(N\) = internal buoyancy frequency, Hz, \(N = \sqrt{-\frac{g}{\rho}\frac{d\rho}{dz}}\)
  • \(q\) = outflow per unit width, m² s⁻¹, q=Q/W where W is the outlet width of the line sink
  • \(c_{bi}\) = boundary interference coefficient

The point sink approximation assumes approach flow is radial both longitudinally and vertically while the line sink approximation assumes flow approaches the outlet radially in the vertical. The boundary interference coefficient is two near a physical boundary and one elsewhere.

Velocities are determined using a quadratic shape function:

\[ V_k = 1 - \left[\frac{(\rho_k - \rho_o)}{(\rho_l - \rho_o)}\right]^2 \tag{2-179} \]

where:

  • \(V_k\) = normalized velocity in layer \(k\)
  • \(\rho_k\) = density in layer \(k\), kg m⁻³
  • \(\rho_o\) = density in the outlet layer, kg m⁻³
  • \(\rho_l\) = density of the withdrawal limit layer, kg m⁻³

The shape function generates a maximum velocity at the outlet level with velocities approaching zero at withdrawal limits. During non-stratified periods, outflow from top to bottom is uniform. Uniform flows also result from large outflows during periods of mild stratification. As stratification develops, withdrawal limits decrease and outflow is weighted towards the outlet elevation.

Withdrawal limits can be varied by specifying a line sink and changing the effective width. Small outlet widths result in nearly uniform outflows, while large widths limit outflows to the outlet layer.

Sediment Resuspension

This algorithm is based on work by Kang et al. (1982), where bottom shear stress is computed from wind speed, wind fetch, and depth. Wind blowing across a water surface creates wind waves with orbital motion that decays with depth. The user inputs a critical shear stress for particle detachment; if this threshold is exceeded, particles are resuspended.

The approach of Kang et al. (1982) consists of the following steps:

  1. Computation of the wave height, \(H_s\) in m:
\[ H_s = \frac{W^2}{g}0.283\tanh\left[0.53\left(\frac{gH}{W^2}\right)^{0.75}\right]\tanh\left[\frac{0.0125\left(\frac{gF}{W^2}\right)^{0.42}}{\tanh\left[0.53\left(\frac{gH}{W^2}\right)^{0.75}\right]}\right] \tag{2-180} \]
where $W$ is the wind velocity (m s⁻¹), $F$ is the fetch (m), $H$ is the mean depth (m).
  1. Computation of wave period, \(T_s\) in s:
\[ T_s = \frac{2\pi W}{g}1.2\tanh\left[0.833\left(\frac{gH}{W^2}\right)^{0.375}\right]\tanh\left[\frac{0.077\left(\frac{gF}{W^2}\right)^{0.25}}{\tanh\left[0.833\left(\frac{gH}{W^2}\right)^{0.375}\right]}\right] \tag{2-181} \]
  1. Computation of the wavelength, \(L\) in m, iteratively from the following equation:
\[ L = \frac{gT_s^2}{2\pi}\tanh\left[\frac{2\pi H}{L}\right] \tag{2-182} \]
  1. Computation of the orbital velocity, \(\tilde{U}\) in cm s⁻¹:
\[ \tilde{U} = \frac{\pi H_s}{T_s}\frac{100}{\sinh(2\pi H/L)} \tag{2-183} \]
  1. Computation of bottom shear stress, \(\tau\) in dynes cm⁻²:
\[ \tau = 0.003\tilde{U}^2 \tag{2-184} \]
  1. Computation of actual bottom scour rate of suspended solids, \(\varepsilon\) in g m⁻²:
\[ \varepsilon = 0 \quad \tau \le \tau_c \tag{2-185} \]
\[ \varepsilon = \frac{\alpha_o}{\tau_d^4}(\tau - \tau_c)^3 \quad \tau > \tau_c \tag{2-186} \]

where \(\alpha_o\) is an empirical constant (0.008), \(\tau_d\) = 7, and \(\tau_c\) is the user-defined critical shear stress in dynes cm⁻².

Resuspension is assumed to occur only during the first hour after wind shear exceeds the critical shear stress. The rate of resuspension, \(E\) in g m⁻² hr⁻¹, is:

\[ E = \frac{\varepsilon}{1hr} \]

for the first hour and zero thereafter. The resulting concentration of suspended solids in the water column, \(c\) in mg/L, if distributed evenly over the entire volume is:

\[ c = \frac{10000\varepsilon A_{bottom}}{V} = \frac{10000\varepsilon}{H} \]

where \(A_{bottom}\) is the surface area of the bottom and \(V\) is the volume of the water column above the bottom (=\(HA_{bottom}\)). Chapra (1997) also uses this approach and provides an example calculation.