netsse.analys.enc_spec.resp_spec_1d =================================== .. py:function:: netsse.analys.enc_spec.resp_spec_1d(f0, ws, TRF1, TRF2, fe, U, beta) Computes a response cross-spectrum in both the absolute and encountered frequency domains, in a case of long-crested seas. :param f0: Vector of absolute frequencies [Hz]. :type f0: array_like of shape (Nf0,1) :param ws: 1-D wave spectrum, as a function of (absolute) wave frequency ``f0`` [Hz]. :type ws: array_like of shape (Nf0,1) in 1-D :param TRF1: Transfer functions of two response components, as a function of frequency ``f0`` [Hz]. :type TRF1: array_like of shape (Nf0,1) :param TRF2: Transfer functions of two response components, as a function of frequency ``f0`` [Hz]. :type TRF2: array_like of shape (Nf0,1) :param fe: Vector of encounter frequencies [Hz]. :type fe: array_like of shape (Nfe,1) :param U: Ship speed [m/s]. :type U: float :param beta: Ship heading, relative to the wave direction [deg]. :type beta: float :returns: * **RspecAbs** (*array_like of shape (Nf0,1)*) -- Response spectrum, as a function of absolute wave frequency ``f0`` [Hz]. * **RspecEnc** (*array_like of shape (Nfe,1)*) -- Response spectrum, as a function of encountered frequency ``fe`` [Hz]. .. seealso:: :obj:`resp_spec_2d` Computes a response cross-spectrum in the encounter-frequency domain, in case of short-crested sea. .. rubric:: Example >>> RspecAbs, RspecEnc = resp_spec_1d(f0,ws,TRF1,TRF2,fe,U,beta)