wecopttool.waves.general_spectrum

general_spectrum(a_param, b_param, freq)[source]

Create a spectrum function.

The general omni-directional spectrum formulation is \(S(f) = A f^(-5) e^(-B f^(-4))\).

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

Parameters:
  • a_param (float | ArrayLike) – Parameter \(A\) in the general spectrum equation.

  • b_param (float | ArrayLike) – Parameter \(B\) in the general spectrum equation.

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

Return type:

float | ArrayLike