TripoFisch.
← SturgeonNext: Delta & Estuary Math
Sturgeon Deep Dive · Reach 01 · Shasta Dam to Sacramento

River Math.

Why flood waves outrun dissolved spills, how USGS channel surveys set velocity and depth, how Hugo Fischer’s longitudinal dispersion scales as W2, and how the river calibrates itself nightly from its own gauges.

Where this page sits: the riversOne region’s example, the Bay–Delta model, as a chain of blocks: the rivers from the dams, the Delta’s tidal network with its export canals, the Bay’s mesh and the coast. This page covers the rivers, outlined in teal.WHERE THIS PAGE SITS, IN ONE REGION’S EXAMPLE: THE BAY–DELTARivers from the dams15 river reaches:Sacramento, American,Feather, Yuba, BearYolo Bypass, Putah, CacheSan Joaquin and threeMokelumne, Cosumnes…this pageDelta1D tidal networkDSM2 HYDRO: flowQUAL: salt, heatGTM: sedimentshadow: our ownsolver, comparedExport canalsBay2D meshNOAASFBOFS,correctedto the DeltaCoastthe shelfNOAAWCOFS, pastthe Farallonesat anodealong alinesharedmeshat the pumpsopen oceanWhere this page sits: the riversOne region’s example, the Bay–Delta model, as a chain of blocks: the rivers from the dams, the Delta’s tidal network with its export canals, the Bay’s mesh and the coast. This page covers the rivers, outlined in teal.WHERE IT SITS: THE BAY–DELTA EXAMPLERivers from the dams15 river reaches: Sacramento and itstributaries, Yolo, San Joaquin, east sidethis pageat a nodeDelta: 1D networkDSM2 HYDRO, QUAL, GTMshadow: our own solver,compared, not publishedExportcanalsalong a lineBay: 2D meshNOAA SFBOFS, corrected to the Deltashared meshCoast: the shelfNOAA WCOFS, past the Farallones
One region’s example: the Bay–Delta model as blocks and the joins between them; this page covers the rivers, outlined in teal. The general chain that every region is built from, with the Rhine–Meuse beside the Bay–Delta, is on the Architecture page.
01 · Two Speeds

Water velocity vs. kinematic flood-wave celerity

U(Q) = QA(Q)     vs.     cw = dQdA ≈ 53 U

Q volumetric discharge (m3/s), A wetted cross-section area (m2), U mean water velocity (m/s), cw kinematic wave speed.

In plain English

When Keswick Dam steps up its release, two completely different signals travel downstream toward Sacramento. A pressure/depth change moves as a flood wave at celerity cw — roughly 1.5 to 1.67× faster than the water itself in a wide channel.

A dissolved chemical spill moves with the actual water molecules at U = Q/A. Using one speed for both would predict every contaminant arrival far too early, so Sturgeon solves wave routing and parcel advection separately.

02 · Flood-Wave Routing

Gauge blend & variable-parameter lag-and-route linear reservoir

τ(Q) = aτ Qbτ,    κ(Q) = aκ Qbκ

dOdt = Ilag − Oκ  ⇒  On = On−1 + Δtκ + Δt/2(Ilag,n + Ilag,n−12 − On−1)

Ilag inflow interpolated at t − τ(Q̄) with midpoint Q̄ = ½(On−1 + In); κ attenuation time constant (s).

In plain English

Between two gauges, the live river blends both gauges’ records by position, each shifted by the flood wave’s travel time to that point, so a release change moves downstream at wave speed and both gauges are matched exactly; each segment’s travel time is refitted nightly from measured release waves (06 below).

The lag-and-route reservoir above shifts an inflow by a flow-dependent travel time τ(Q) — higher flows travel faster when bτ < 0 — and smooths the sharp release edge, evaluating the lag at the midpoint flow so flood fronts stay physical without breaking volume conservation. It is in the math library, tested to keep every cubic meter, beside the gauge blend.

03 · Hydraulic Geometry

At-a-station power laws fitted from USGS surveys

A(Q) = aA QbA,    W(Q) = aW QbW

d(Q) = A(Q)W(Q),    U(Q) = QA(Q),    bW + fd + mU = 1

Fitted by ordinary least squares in log-space (ln y = ln a + b ln Q) from manual USGS cross-section measurements.

In plain English

Several times a year, USGS hydrographers wade or boat each gauge to measure area, top width, and velocity by hand. Following Leopold and Maddock’s classic hydraulic geometry, Sturgeon fits power laws in log-space at every USGS station — two joined at a break flow where the measurements show a floodplain by more than 10 in BIC. Where no such measurements are published, as on the Rhine, a gauge takes a wide main channel of sourced width, slope and roughness instead.

Deriving depth d = A/W and velocity U = Q/A from the fitted laws guarantees geometric continuity (the exponents for width, depth, and velocity automatically sum to 1) and flags weak fits via log-space R2.

04 · Shear Dispersion

Shear velocity & Fischer’s longitudinal dispersion coefficient

u* = √(g d S),      K = 0.011 U2 W2d u*

g = 9.81 m/s2, d mean depth (m), S energy slope, W channel top width (m), u* bed shear velocity (m/s), K longitudinal dispersion (m2/s).

In plain English

In a narrow pipe, dispersion is controlled by how fast fluid moves in the center versus near the walls vertically (Taylor 1954; Elder 1959). Natural rivers are vastly wider than they are deep (W ≫ d), so velocity differs much more across the banks than from bed to surface.

Hugo Fischer’s 1966 insight was that transverse mixing across width W sets the timescale before a parcel samples all speeds, making K scale with W2 and producing dispersion 10–100× larger than vertical-only formulas predict.

05 · Advection–Dispersion SDE

1D advection–dispersion PDE solved by random-walk parcels

∂C∂t + U ∂C∂x = K ∂2C∂x2 − λC

xn+1 = xn + U Δt + √(2KΔt) N(0,1),    mn+1 = mn e−(ln 2)Δt / t1/2

C concentration, N(0,1) standard normal draw (Box–Muller over deterministic PRNG), m parcel mass, t1/2 optional decay half-life.

In plain English

Solving the advection–dispersion PDE on a fixed grid smudges sharp plumes because of Eulerian numerical diffusion. Instead, Sturgeon releases tens of thousands of discrete parcels in a WebAssembly worker.

In the rivers, each parcel also has a place across the channel: it moves downstream at the speed there, on a parabolic profile set so Taylor’s long-time spreading is Fischer’s K, and wanders across at Elder’s lateral mixing 0.23 d u*, reflected at the banks. Far from a release the cloud center moves at exact U and its variance grows as 2Kt, the PDE’s, with zero artificial smearing; near it the cloud is as drawn out and lopsided as real shear makes it. The plain random step above, of variance 2KΔt, is the registered alternative.

06 · Self-Calibrating River

Pearson cross-correlation & Fischer’s change-of-moment method

t̄ = ∑ wi ti∑ wi,    σt2 = ∑ wi (ti − t̄)2∑ wi,    wi = vi − min(v)

K = U22 · σ22 − σ12t̄2 − t̄1

Sub-sample lag refined by a parabola through the fixed-window Pearson cross-correlation peak; tracer signals (water temperature, specific conductance) taken as their change over six hours after a one-day running mean. Each night moves the stored values 30% of the way to the night’s estimate.

In plain English

Fischer’s 0.011 formula is only accurate to within a factor of several because real river bends, gravel bars, and eddies vary from reach to reach. Every night, Sturgeon treats the river’s own operations as free experiments.

Dam release changes calibrate wave speed via fixed-window cross-correlation (avoiding zero-lag bias), while natural temperature and specific-conductance swings passing two stations give the reach-average water speed the same way. Fischer’s change-of-moment equation is the library’s check on dispersion K: it recovers a known K from a spreading parcel cloud.

Where this math came from

From pipe shear to self-calibrating gauges

← Back to Sturgeon overview Next: 02 · Delta & Estuary Math