netsse.analys.enc_spec.resp_spec_2d =================================== .. py:function:: netsse.analys.enc_spec.resp_spec_2d(freq0, mu, ws0, beta_TRF, TRF1, TRF2, freqE, U, psi, conv='from', unit_freq='rad/s') Computes a response cross-spectrum in the encounter-frequency domain, in a case of short-crested seas. .. note:: This is a Python implementation of the algorithm given in Nielsen et al. (2021). :param freq0: Vector of absolute frequencies, in which the wave spectrum and the transfer functions are expressed. :type freq0: array_like of shape (Nf0,) :param mu: Vector of wave directions [deg], relative to North (in a NED-reference frame). :type mu: array_like of shape (Nmu,) :param ws0: 2-D wave spectrum, as a function of (absolute) wave frequency ``freq0`` and wave direction ``mu`` [rad]. :type ws0: array_like of shape (Nf0,Nmu) in 2-D :param beta_TRF: Vector of relative wave headings [deg], in which the transfer functions are expressed. :type beta_TRF: array_like of shape (Nbeta,) :param TRF1: Transfer function of the first and second response component, respectively, as a function of frequency ``freq0`` and relative wave heading. :type TRF1: array_like of shape (Nf0,Nbeta) :param TRF2: Transfer function of the first and second response component, respectively, as a function of frequency ``freq0`` and relative wave heading. :type TRF2: array_like of shape (Nf0,Nbeta) :param freqE: Vector of encounter frequencies for the output response spectrum. :type freqE: array_like of shape (Nfe,) :param U: Ship speed [m/s] :type U: float :param psi: Ship heading [deg], relative to North (in a NED-reference frame). :type psi: float :param conv: The convention that is used to express the direction ``mu`` of wave spectrum: - 'from' : The naval architecture convention, indicating where the waves are COMING FROM. - 'to' : The oceanographic convention, indicating where the waves are GOING TO. The default is "from" direction. :type conv: {'from','to'}, optional :param unit_freq: Unit of the frequencies: - 'rad/s' : The variables ``freq0`` and ``freqE`` denote the angular frequencies in radians per second. - 'Hz' : The 2-D wave spectrum ``ws0`` is expressed as a function of frequency in Hertz. The default is 'rad/s'. :type unit_freq: {'rad/s','Hz'}, optional :returns: **RspecEnc** -- Response spectrum, as a function of encounter frequency ``freqE``. :rtype: array_like of shape (Nfe,) .. seealso:: :obj:`resp_spec_1d` Computes a response cross-spectrum in both the absolute and encountered frequency domains, in a case of long-crested seas. .. rubric:: References Nielsen, U. D., Mounet, R. E. G., & Brodtkorb, A. H. (2021). Tuning of transfer functions for analysis of wave-ship interactions. Marine Structures, 79, 103029. https://doi.org/10.1016/j.marstruc.2021.103029 .. rubric:: Example >>> RspecEnc = ... resp_spec_2d(freq0,mu,ws0,beta_TRF,TRF1,TRF2,freqE,U,psi,'from','rad/s')