OchiHubble#

class waveresponse.OchiHubble(freq, freq_hz=False)[source]#

Ochi-Hubble wave spectrum, given as:

S(w) = C / w ** (4 * q + 1) * exp(-d / w ** 4)

where,

  • C = (1.0 / 4.0) * (c ** q * Hs ** 2) / gamma(q)

  • c = (4.0 * q + 1.0) * w_p ** 4 / 4.0

  • d = (4 * q + 1) * w_p ** 4 / 4.0

  • Hs is the significant wave height.

  • w_p = 2pi / Tp is the angular spectral peak frequency.

and q is a user-defined shape parameter. Note that gamma is the “Gamma function”.

Parameters:
  • freq (array-like) – Sequence of frequencies to use when generating the spectrum.

  • freq_hz (bool) – Whether the provided frequencies are in rad/s (default) or Hz.

Notes

The special case q=1 corresponds to the modified Pierson-Moskowitz spectrum.

The Ochi-Hubble spectrum is implemented as described in reference [1].

References

See also

ModifiedPiersonMoskowitz

Modified Pierson-Moskowitz wave spectrum.

JONSWAP

JONSWAP wave spectrum.