Assumption: a single dominant periodic tide with mean level 0.35 m, amplitude 1.05 m and model period 180 s (accelerated simulation time).
η(t) = η₀ + A sin(2πt/T + φ)
u(t) ∝ dη/dt = A(2π/T) cos(2πt/T + φ)
The displayed current is the idealised rate of water-level change, used as a simple proxy for inlet flow. Real currents depend on channel cross-section, friction, bathymetry, wind, river discharge and phase lag. This scene does not solve shallow-water equations or predict real tides.
Three closed-form checks run in window.__selfTest().