Last updated on Sep 04, 2024.

netsse.tools.envir_cond.wavespec1dto2d#

netsse.tools.envir_cond.wavespec1dto2d(S1d, theta, theta0, s)#

Transforms a 1-D wave spectrum into a 2-D wave spectrum.

A cosine-2s function is used for the directional spreading distribution.

Parameters:
  • S1d (array_like of shape (Nfreq,)) – 1-D wave spectrum.

  • theta (array_like of shape (Ntheta,)) – Vector of wave headings [deg] at which the 2-D spectrum must be computed.

  • theta0 (float) – Mean wave direction [deg].

  • s (float) – Spreading parameter [-], related to the exponent of the cosine function.

Returns:

S2d – 2-D wave spectrum, as a function of both the frequency and the wave heading [deg].

Return type:

array_like of shape (Nfreq,Ntheta)

References

Naess, Arvid, and Torgeir Moan. 2010. Stochastic Dynamics of Marine Structures. Stochastic Dynamics of Marine Structures. Vol. 9780521881555. Cambridge University Press. https://doi.org/10.1017/CBO9781139021364.

Example

>>> S2d = wavespec1dto2d(S1d,theta,theta0,s)