wecopttool.waves.pierson_moskowitz_spectrum

pierson_moskowitz_spectrum(freq, fp, hs)[source]

Calculate the Pierson-Moskowitz omni-directional wave spectrum for the specified frequencies and parameters.

This is included as one example of a spectrum function.

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

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

  • fp (float) – Peak frequency of the sea-state in \(Hz\).

  • hs (float) – Significant wave height of the sea-state in \(m\).

Return type:

float | ndarray