Fundamentals / Mechanical engineering / Fluid mechanics / Momentum, motion and transport in fluids

How far upstream does a downstream water level matter?

A depth gauge downstream of a change in bed level measures a local state. Predict the depth one kilometre upstream by combining energy, cross-section geometry and a resistance law, then fit the roughness against independent uniform-flow readings.

Separate normal depth and critical depth

Consider steady flow at discharge \(Q\) in a long prismatic rectangular channel of width \(b\). Depth \(y\) sets area \(A=by\), wetted perimeter \(P=b+2y\) and hydraulic radius \(R=A/P\). For a long reach of uniform depth, weight down the slope balances wall shear over the wetted perimeter. If \(S_0=-dz_b/dx\) is the bed slope, the force balance gives \(\tau_0=\rho g R S_0\). A resistance relation from measurement closes this balance. In SI units the Manning convention is

\[Q=\frac{1}{n}AR^{2/3}\sqrt{S_f},\]
\[S_f=\left(\frac{nQ}{AR^{2/3}}\right)^2 .\]

Normal depth \(y_n\) solves \(S_f=S_0\). Roughness \(n\) has units s m⁻¹ᐟ³. The equivalent Chézy form \(U=C\sqrt{R S_f}\) has \(C=R^{1/6}/n\) for the same prediction. Critical depth follows from specific energy \(E=y+Q^2/(2gA^2)\) at fixed discharge. Differentiating gives \(1-Q^2 b/(gA^3)=0\) at \(y_c\). The critical condition contains no roughness. For \(b=4\) m, \(Q=6\) m³/s, \(S_0=0.001\) and \(n=0.030\), \(y_n=1.556\) m while \(y_c=0.612\) m. This bed is mild for the specified discharge.

Derive an evolution equation in space

Assume hydrostatic pressure, negligible local losses, unit velocity-energy coefficient and a sufficiently gentle surface slope. Along increasing downstream distance the energy head drops by \(S_f\) per metre. Differentiating \(H=z_b+y+Q^2/(2gA^2)\) and using \(dA/dy=b\) gives

\[\frac{dy}{dx}=\frac{S_0-S_f(y)}{1-Fr^2(y)},\]
\[Fr^2=\frac{Q^2 b}{g A^3}.\]

A downstream weir may impose a subcritical stage. For \(y>y_n>y_c\) we have \(S_f<S_0\) and \(Fr<1\), so \(dy/dx>0\). The water is deeper toward the control and approaches normal depth upstream. Integrate toward decreasing \(x\) starting at the measured stage. Replacing \(R\) by \(y\) assumes a very wide channel, which the 4 m section does not justify at these depths. Close to \(Fr=1\) the denominator signals the limit of a smooth slowly varying profile. A jump requires its own momentum treatment.

Separate resistance calibration from the boundary condition

The notebook first fits one roughness to four synthetic uniform discharge measurements and then holds it fixed for two downstream controls. The fitted \(n=0.03001\) gives depths of 1.605 m and 1.745 m one kilometre upstream of outlet depths of 1.8 and 2.2 m. The downstream 0.4 m difference has decayed substantially and still leaves an observable upstream effect.

Interactive experiment · Change a downstream control and recompute its upstream reach

The live calculation integrates the depth equation upstream with fourth-order Runge–Kutta steps of 2 m. Keep the default discharge and roughness, move the outlet stage from 1.8 to 2.2 m and compare depths 1 km upstream. Next change roughness: normal depth moves, while critical depth stays fixed. Changing discharge moves both reference depths.

The channel remains 4 m wide with bed slope 0.001. All available input combinations stay subcritical, where a downstream stage can influence the upstream reach. The plotted coordinate increases upstream, so its derivative has the opposite sign to the downstream equation. The notebook below fits roughness with OneSimulation before integrating two profiles; the browser lets you explore the consequences of prescribing that coefficient directly.

Continue in the OneSimulation notebook · Download its Python model

OneSimulation experiment · Two downstream stages produce different upstream profiles at the same calibrated roughness

Run the notebook with OneSimulation 0.2.0, NumPy, SciPy and Matplotlib. Change the input data and compare your run with the recorded result.

"""Infer Manning roughness from uniform flow, then predict a subcritical backwater."""
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import solve_ivp
from onesim.numerics.nonlinear import LeastSquares

width, slope, discharge, gravity = 4.0, 0.001, 6.0, 9.81
measured_depth = np.array([0.7,0.85,1.0,1.15])  # m
def section(depth):
    area = width*depth
    return area, area/(width+2*depth)
def uniform(depth, roughness):
    area, radius = section(depth)
    return area*radius**(2/3)*np.sqrt(slope)/roughness
measured_flow = uniform(measured_depth,0.030) + np.array([0.02,-0.03,0.02,-0.01])
fit = LeastSquares().solve(lambda n: uniform(measured_depth,n[0])-measured_flow,
                           [0.025], bounds=([0.010],[0.08]))
roughness = fit.x[0]
def depth_gradient(x, y):
    area,radius = section(y)
    friction = (roughness*discharge/(area*radius**(2/3)))**2
    froude_squared = discharge**2*width/(gravity*area**3)
    return (slope-friction)/(1-froude_squared)

fig, ax = plt.subplots(figsize=(6.4,3.7), layout="constrained")
print(f"fitted Manning n = {roughness:.5f} s/m^(1/3)")
for boundary in [1.8, 2.2]:
    x = np.linspace(0,-1000,250)
    sol = solve_ivp(depth_gradient,[0,-1000],[boundary],t_eval=x,rtol=1e-9,atol=1e-10)
    assert sol.success
    print(f"outlet {boundary:.1f} m: depth 1 km upstream = {sol.y[0,-1]:.3f} m")
    ax.plot(-sol.t,sol.y[0],label=f"Outlet depth {boundary:.1f} m")
ax.set(xlabel="Distance upstream from control (m)",ylabel="Flow depth (m)")
ax.legend()
plt.show()

Reference run

fitted Manning n = 0.03001 s/m^(1/3)
outlet 1.8 m: depth 1 km upstream = 1.605 m
outlet 2.2 m: depth 1 km upstream = 1.745 m
Two downstream stages produce different upstream profiles at the same calibrated roughness
Two downstream stages produce different upstream profiles at the same calibrated roughness

Download editable notebook · Download Python script

Why two depth measurements do not always identify roughness

Near normal depth, the water surface changes slowly. Bed-slope bias, discharge error and roughness can produce similar residuals over a short reach. Calibrating against uniform measurements at more than one discharge gives an independent constraint before fitting the backwater.

Exercises on hydraulic controls

Two channels have the same discharge and width. Only the Manning coefficient is changed. Which characteristic depth changes?

Worked solution

Critical depth is fixed by discharge and geometry. Increasing roughness lowers discharge capacity at fixed depth and slope, so normal depth must increase to carry the same discharge. An altered resistance can move the flow into a different profile class.

A subcritical section has \(y=2.0\) m in the example. Estimate the slope before integrating.

Worked solution

Here \(A=8\) m², \(R=1\) m, \(S_f=(0.03\times6/8)^2=0.0005063\) and \(Fr^2=36(4)/(9.81\times512)=0.0287\). Thus \(dy/dx=0.000508\) m/m. Extrapolating this local slope for a kilometre ignores its variation with depth.

Further reading · Gerhart, Hochstein and Gerhart, Munson, Young and Okiishi’s Fundamentals of Fluid Mechanics, 9th ed., Sections 10.3–10.6.