Wave Simulator

Controls

Typical ocean waves: 1-3m
Typical ocean waves: 0.1-0.2 Hz
Typical ocean waves: 50-150m
0° to 360° = one complete cycle
0 = no decay, 0.1 = rapid decay
Control simulation pace

Understanding the Wave Equation

Our wave equation is:
y(x, t) = A · e–d·x · sin(2π · f · t + (2π/λ) · x + φ)

A (Amplitude) determines the height of the wave.
d (Damping) shows how quickly the wave fades over distance.
f (Frequency) is how fast the wave oscillates.
λ (Wavelength) is the distance between two wave peaks.
φ (Phase) adjusts the starting point of the wave.

In simple terms, the equation multiplies the wave’s height by a decaying factor (e–d·x) and shapes it with a sine curve that moves over time. This precise formula lays the groundwork for your simulation.