netsse.model.envir_cond.wavespec1dto2d#
- netsse.model.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:
- Returns:
S2d (array_like of shape (Nfreq,Ntheta)) – 2-D wave spectrum, as a function of both the frequency and the wave heading [deg].
D_theta (array_like of shape (1,Ntheta)) – Directional spreading function, as a function of the wave heading [deg].
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)