Skip to main content

Module gerstner

Module gerstner 

Expand description

Zero-Heap Gerstner Wave Spectrum & Nearshore Attenuation Engine.

Provides an 8-harmonic analytical Gerstner wave spectrum evaluated on CPU without allocations, with smooth shoreline boundary damping.

Structs§

GerstnerWave
Individual Gerstner wave harmonic component.
SimdGerstnerSpectrum
8-harmonic Gerstner wave spectrum for zero-allocation CPU water queries.

Constants§

GRAVITY_M_S2
Gravity constant in m/s².
MAX_GERSTNER_HARMONICS
Maximum number of analytical wave components evaluated simultaneously.
WATER_DENSITY_KG_M3
Standard water density in kg/m³ (freshwater = 1000.0, ocean = 1025.0).