Small-amplitude, inviscid shallow-water motion with idealised linear damping and a distributed pressure drive. A single selected standing-wave mode is retained.
k = nπ/L · c = √(gh)
ω₀ = ck · f₀ = ω₀/(2π)
η(x,t) = q(t) cos(kx)
q″ + 2γq′ + ω₀²q = A sin(2πft)
Q = A / √[(ω₀²−ω²)² + (2γω)²]
Here q is end-wall elevation (m), γ is the decay rate (s⁻¹), A is modal forcing acceleration (m/s²), and Q is steady-state amplitude (m). The probe is at x = 0. Gravity is the textbook conventional value 9.81 m/s² (rounded). All adjustable values are illustrative, not a measured tank.
Fixed-step fourth-order Runge–Kutta integration uses Δt = 1/240 s (illustrative numerical setting). Checks compare free oscillation period, conserved undamped modal energy, and independently sampled forced amplitude against analytical predictions. The wall condition is zero normal flow; viscosity, breaking, surface tension, higher-mode interactions and nonlinear sloshing are omitted. Visual wave height is scaled for readability. This is an independent educational simulation, not affiliated with a laboratory or equipment manufacturer.