Last updated on Sep 04, 2024.

netsse.analys.enc_spec.resp_spec_1d#

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.

Parameters:
  • f0 (array_like of shape (Nf0,1)) – Vector of absolute frequencies [Hz].

  • ws (array_like of shape (Nf0,1) in 1-D) – 1-D wave spectrum, as a function of (absolute) wave frequency f0 [Hz].

  • TRF1 (array_like of shape (Nf0,1)) – Transfer functions of two response components, as a function of frequency f0 [Hz].

  • TRF2 (array_like of shape (Nf0,1)) – Transfer functions of two response components, as a function of frequency f0 [Hz].

  • fe (array_like of shape (Nfe,1)) – Vector of encounter frequencies [Hz].

  • U (float) – Ship speed [m/s].

  • beta (float) – Ship heading, relative to the wave direction [deg].

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].

See also

resp_spec_2d

Computes a response cross-spectrum in the encounter-frequency domain, in case of short-crested sea.

Example

>>> RspecAbs, RspecEnc = resp_spec_1d(f0,ws,TRF1,TRF2,fe,U,beta)