Ocean Wave Spectrum Simulator Back
Ocean Engineering

Ocean Wave Spectrum Simulator

Calculate wave spectra in real time using JONSWAP, Pierson-Moskowitz, and Bretschneider models. Display significant wave height, maximum wave height expectation, Rayleigh distribution, and wave surface animation.

SpectrumParameters
SpectrumModel
Sea-state presets
significant wave height Hs
m
Peakperiod Tp
s
PeakCoefficient γ
JONSWAP typical value: 3.3 / PM equivalent: 1.0
Storm duration [hr]
hr
Playback Controls
0.00 s
Selected frequency: — Hz
Results
Hs [m]
Tp [s]
Tz zero-crossing period [s]
Expected Hmax [m]
Bandwidth ε
Wave steepness Hs/Lp
Wave
Spec
$$S(\omega) = \frac{\alpha g^2}{\omega^5}\exp\!\left[-\frac{5}{4}\left(\frac{\omega_p}{\omega}\right)^4\right] \gamma^{\exp\!\left[-\frac{(\omega-\omega_p)^2}{2\sigma^2\omega_p^2}\right]}$$

SpectrumMoment:$m_n = \int_0^\infty \omega^n S(\omega)\,d\omega$

Significant wave height: $H_s = 4\sqrt{m_0}$  Zero-crossing period: $T_z = 2\pi\sqrt{m_0/m_2}$

Related Tools

Water Hammer Pressure Calculator
Calculate water hammer pressure ΔP during valve closure using the Joukowsky equation
Wave spectrum profile
Visualize centerline velocity decay and Gaussian radial profile of circular/planar jets
Pump Selection / System Curve / Operating Point Simulator
Find the intersection (operating point) of pump characteristic curve and system resistance curve
Diving (Water Jump) Phenomenon Simulator
Calculate water depth, velocity, and energy loss before and after hydraulic jump in open channels using Belanger…

What is an Ocean Wave Spectrum?

🙋
What exactly is a "wave spectrum"? The sea surface just looks like random waves, not a neat graph.
🎓
Great question! Basically, we can't describe every single wave. Instead, we use statistics. A wave spectrum, like the JONSWAP model in this simulator, is a mathematical way to describe the energy of the sea state distributed across different wave frequencies. Think of it as a recipe that tells you how much "choppiness" (high frequency) versus "swell" (low frequency) is present.
🙋
Wait, really? So the main parameter "Significant Wave Height (Hs)" isn't the biggest wave? What is it?
🎓
A common misconception! Hs is a statistical measure. It's roughly the average height of the highest one-third of the waves. It's what an experienced observer would report as the "visual" wave height. In practice, the maximum wave in a storm can be nearly twice Hs. Try moving the Hs slider above and watch how the entire spectrum curve shifts up, increasing the energy across all frequencies.
🙋
Okay, I see Hs and Tp (Peak Period). But what's the "Peak Coefficient (γ)" for? It says "JONSWAP" next to it.
🎓
That's the key to the JONSWAP spectrum! γ, or gamma, controls the "peakedness" of the spectrum. For instance, a fully developed sea (Pierson-Moskowitz spectrum) has γ=1. A young, wind-driven sea state has a sharper peak, with γ up to 7 or more. Adjust the γ slider and you'll see the spectrum curve get taller and narrower around the peak frequency, modeling a more severe, focused sea state.

Physical Model & Key Equations

The JONSWAP spectrum is an empirical model developed from a large ocean wave measurement project. It builds upon the Pierson-Moskowitz spectrum for a fully developed sea but adds a peak enhancement factor. The equation describes the wave energy density $S(\omega)$ at a given angular frequency $\omega$.

$$S(\omega) = \frac{\alpha g^2}{\omega^5}\exp\!\left[-\frac{5}{4}\left(\frac{\omega_p}{\omega}\right)^4\right] \gamma^{\exp\!\left[-\frac{(\omega-\omega_p)^2}{2\sigma^2\omega_p^2}\right]}$$

Where:
• $S(\omega)$: Spectral energy density [$m^2 \cdot s$]
• $\alpha$: Phillips' constant (related to energy scale, often a function of Hs)
• $g$: Acceleration due to gravity [$m/s^2$]
• $\omega$: Angular wave frequency [$rad/s$] ($\omega = 2\pi / T$)
• $\omega_p$: Angular peak frequency (where the spectrum is maximum, $\omega_p = 2\pi / T_p$)
• $\gamma$: Peak enhancement factor (the "Peak Coefficient" in the simulator)
• $\sigma$: Spectral width parameter (differs for $\omega \leq \omega_p$ and $\omega > \omega_p$)

The significant wave height $H_s$ is derived from the zeroth moment $m_0$ of the wave spectrum, which is the total area under the spectral curve. This connects the statistical parameter to the physical energy model.

$$H_s = 4.0 \sqrt{m_0}, \quad \text{where }m_0 = \int_0^{\infty} S(\omega) d\omega$$

Physical Meaning: $m_0$ represents the total variance of the sea surface elevation. Multiplying by 4 is a statistical rule (Rayleigh distribution) to estimate the significant height. In the simulator, you set $H_s$ as an input, and the model calculates the corresponding $\alpha$ to satisfy this equation.

Real-World Applications

Ship & Offshore Structure Design: Naval architects use wave spectra like JONSWAP as the input load for calculating vessel motions and structural stresses. By running simulations (RAO × Spectrum), they can predict how a ship will roll in a North Sea storm or if an oil platform's fatigue life is sufficient.

Marine Operations & Safety: Planning critical operations like installing wind turbines or loading cargo requires a "weather window." Engineers analyze the forecast wave spectrum (Hs, Tp, γ) to determine if sea conditions are within the safe limits of their equipment and procedures.

Coastal & Port Engineering: The design of breakwaters, seawalls, and port layouts depends on understanding the wave energy arriving from different directions and frequencies. Spectral analysis helps model wave penetration and sediment transport more accurately than using a single wave height.

CAE & Certification: JONSWAP is a standard design wave model in major classification society rules (like DNV) and international standards (ISO). CAE software for hydrodynamic analysis directly uses these spectral formulations to perform required simulations for certification and risk assessment.

Common Misconceptions and Points to Note

When you start using this tool, here are a few points that engineers, especially those with less field experience, often stumble on. First and foremost, Significant Wave Height (Hs) ≠ Maximum Wave Height. This is really important. Even if Hs=4m, individual waves with heights of 5m or 6m can appear probabilistically. In design, you need to consider values closer to this maximum wave height. For example, remember that if Hs=4m, Hmax can sometimes be around 7m.

Next, do not confuse Peak Period (Tp) with Average Period (Tz). The Tp you adjust in the tool is the period where the spectrum has its maximum energy (the peak of the mountain). However, the average period obtained from actual sea surface observations using methods like zero-up-crossing is the "Average Period (Tz)", which is shorter than this. As a rough relationship, you can think of it as Tz ≒ Tp / 1.2 ~ 1.3. If you think too rigidly in parameter setting that "waves with this Tp are coming, so let's avoid this natural period for the equipment," you might underestimate the actual repetitive loads.

Finally, approach model selection from the perspective of "which is appropriate" rather than "which is correct." For instance, a PM spectrum (γ=1) often fits well-developed wind waves like those in the North Sea. On the other hand, for young waves affected by typhoons along the Japanese coast, JONSWAP with γ around 3.3 is often chosen. The best way to learn is to switch between both in the tool and experience for yourself how the "regularity" and "roughness" of the wave surface animation change even for the same Hs.