wecopttool.waves.jonswap_spectrum

jonswap_spectrum(freq, fp, hs, gamma=3.3)[source]

Calculate the Joint North Sea Wave Project (JONSWAP) omni-directional wave spectrum for the specified frequencies and parameters.

See, e.g., DNV-RP-C205

For gamma = 1, the JONSWAP spectrum reduces to a Pierson-Moskowitz spectrum.

Return is in units of \(m^2/Hz\).

Parameters:
  • freq (float | ArrayLike) – Wave frequencies in \(Hz\).

  • fp (float) – Peak frequency in \(Hz\).

  • hs (float) – Significant wave height in \(m\).

  • gamma (float) – Peakedness factor.

Return type:

float | ndarray