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§
- Gerstner
Wave - Individual Gerstner wave harmonic component.
- Simd
Gerstner Spectrum - 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).