TripoFisch.
← SturgeonNext: History & Lineage
Sturgeon Deep Dive · Reach 03 · Chipps Island past the Golden Gate to the shelf break

Bay & Coastal Math.

How 2D unstructured ocean forecasts take over where 1D channels end, how tidal harmonics plus Delta outflow extend a 48-hour forecast to 14 days, how parcels cross from the Delta to the Bay and from the Bay to the coast with zero mass loss, and how certainty fades across time.

Where this page sits: the Bay and the coastOne 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 Bay and the coast, 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…Delta1D tidal networkDSM2 HYDRO: flowQUAL: salt, heatGTM: sedimentshadow: our ownsolver, comparedExport canalsBay2D meshNOAASFBOFS,correctedto the Deltathis pageCoastthe shelfNOAAWCOFS, pastthe Farallonesat anodealong alinesharedmeshat the pumpsopen oceanWhere this page sits: the Bay and the coastOne 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 Bay and the coast, outlined in teal.WHERE IT SITS: THE BAY–DELTA EXAMPLERivers from the dams15 river reaches: Sacramento and itstributaries, Yolo, San Joaquin, east sideat a nodeDelta: 1D networkDSM2 HYDRO, QUAL, GTMshadow: our own solver,compared, not publishedExportcanalsalong a lineBay: 2D meshNOAA SFBOFS, corrected to the Deltathis pageshared 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 Bay and the coast, 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 · 2D FVCOM Mesh

Depth-averaged unstructured ocean forecast (NOAA SFBOFS)

∂H∂t + ∇·(Hu) = 0,     u(x, t) = 1H ∫−hη (u, v) dz

H = h + η total water depth on triangular FVCOM mesh elements; u = (u, v) depth-averaged velocity (temperature and salinity also published in three layers, the thirds of the depth, and currents in surface and near-bed views, on FDF1’s layers axis).

In plain English

Past Chipps Island, water spreads sideways across Grizzly Bay, Honker Bay, San Pablo Bay, and the central San Francisco Bay — shoals and deep shipping channels behave completely differently from a 1D pipe.

Sturgeon ingests NOAA’s SFBOFS (built on FVCOM’s finite-volume triangular mesh) four times daily from AWS, on a lighter mesh carried out toward NOAA’s own ocean edge just inside the Farallones, capturing lateral eddies and shoal-channel shear across the Bay. Past it, NOAA’s West Coast model (WCOFS, on ROMS) carries the water from Pescadero to Bodega Bay and out past the shelf break.

02 · 2D Random Walk

2D Lagrangian parcel advection–dispersion over triangles

xn+1 = xn + u(xn, t) Δt + √(2KhΔt) ξ,     ξ ~ N(0, I2)

xn = (x, y) horizontal position, u interpolated 2D current vector, Kh sub-grid horizontal diffusivity, ξ independent 2D normal draws.

In plain English

Each parcel locates its containing triangle in the Bay mesh, moves with the local 2D velocity vector (u, v), and receives an isotropic random kick representing sub-grid horizontal turbulent mixing.

In Suisun and San Pablo bays, you can literally watch plumes fan sideways into shallow bays on flood tides and squeeze back into the Carquinez Strait channel on the ebb.

03 · Harmonic + Drift Extension

Extending NOAA’s 48h forecast to 14 days with outflow drift

u(x, t) = a0(x) + b(x) QChipps(t) + ∑k [ck(x) cos(ωkt) + sk(x) sin(ωkt)]

Fitted per mesh node across a year of archived NOAA SFBOFS fields; frequencies ωk are astronomical tidal constituents (M2, K1, O1, S2, …) plus subtidal sensitivity b(x) to DSM2 outflow QChipps, and a term following the wind’s remembered stress off the Gate (buoy 46026), driven past NOAA’s wind by the Weather Service’s forecast.

In plain English

NOAA’s operational SFBOFS forecast runs 48 hours ahead, whereas water from Shasta takes days to cross the Bay. Extending past 48h with tides alone would freeze plumes in Suisun Bay because freshwater river push rivals the tide there.

Fitting a full year of NOAA’s open archive against DSM2’s Chipps Island outflow gives each node its astronomical tides, its seaward outflow drift and its wind-driven drift out to day 14; past the Weather Service’s week of wind forecast, the wind term relaxes to the year’s mean.

04 · Chipps Island Handoff

Bidirectional 1D ↔ 2D coupling with zero double-counting

Q1D,c(t) ↔ ∫Γc (u2D · n̂) H ds,     ΓChipps = ⋃c Γc

Line ΓChipps crossing each river just east of Chipps Island where it has narrowed to one channel (the Sacramento past Collinsville, the San Joaquin at Antioch, the south channel by Pittsburg), plus the Suisun Marsh slough mouths, partitioned into segments Γc per DSM2 channel; the mesh’s flow across each is made DSM2’s every hour.

In plain English

A parcel belongs to strictly one engine at any instant. Leaving a DSM2 channel seaward places it onto that channel’s exact Bay boundary segment; returning landward on a flood tide hands it straight back into the owning DSM2 channel. Because the mesh’s flow across each segment is made DSM2’s every hour, tide and net, nothing piles up or thins out at the line. The Bay mesh meets the coastal mesh the same way, node for node, on a line 7.5 km inside NOAA’s Bay boundary.

Both DSM2 and NOAA also overlap between the line and Martinez, as the Bay and coast models do past their own line, letting the server publish live agreement diagnostics at both joins every cycle.

05 · Certainty Memory

Piecewise linear forecast certainty & parcel min-memory

creach(t) = 1 − (1 − cmin) t − tsolidtend − tsolid  (tsolid < t < tend)

cparcel ← min(cparcel, creach(t))  |  ≥0.5 ⇒ Forecast, <0.5 ⇒ RoughGuide

Past days: 1.0 (Measured); River solid forecast ~5d, Delta tides 14d / inflows ~5d, Bay NOAA 48h, falling linearly to floor cmin = 0.2 at day 14; coast WCOFS 72h, reaching the floor by day 7; Rhine–Meuse rivers about a day.

In plain English

Forecast certainty decays honestly toward the 14-day horizon, reach by reach: each reach is certain to the end of its own solid forecast, then fades. Within a reach certainty never rises with time, so a parcel’s lowest certainty so far is the reach’s certainty now — water moved by uncertain assumptions never pretends to become certain again.

On the map, certainty fades plume saturation continuously so a day-12 forecast reads as a translucent guide rather than a false pinpoint prediction.

06 · Quantised Binary Format

FDF1 int16 quantisation & per-day lazy streaming

v = offset + scale · q,    q ∈ [−32767, 32767],    q = −32768 ≡ NaN

Header carries magic FDF1, major/minor version, reach id, dims (1/2/3), layers (depth axis), steps, t0, and step_s.

In plain English

Instead of pushing bloated JSON or raw float arrays, every reach publishes one compact binary .fdf file per day. Linear 16-bit quantisation cuts network size in half while keeping dynamic range per field.

Opening Sturgeon on “Now” fetches the days about now first rather than all 29, and the rest as you move through time — keeping mobile loads fast — while the depth-layer axis carries the Bay’s and the coast’s layers and surface and near-bed views.

Where this math came from

Tidal theory, unstructured coastal oceans & open operational forecasts

← 02 · Delta & Estuary Math Next: History & Contributors