Last updated on Sep 04, 2024.

netsse.simul.ship_resp.sum_components#

netsse.simul.ship_resp.sum_components(aw, V_seed, W_seed, epsilon_seed, om_enc, time, seed, result, TRF_amps=0, TRF_phases=0, RespStr='Waves', AddNoise=False, snr=20)#

Performs the summation of the sine components to simulate in the time domain the encountered wave elevation or the wave-induced responses on a ship.

Parameters:
  • aw (array_like of shape (Nfreq,Nbeta,1)) – Amplitude of the wave components.

  • V_seed (array_like of shape (Nfreq,Nbeta,1)) – Standard normal distributed variables with mean 0 and std. 1.

  • W_seed (array_like of shape (Nfreq,Nbeta,1)) – Standard normal distributed variables with mean 0 and std. 1.

  • epsilon_seed (array_like of shape (Nfreq,Nbeta,1)) – Random phases [rad] of the wave components. Those are uniformly distributed variables between 0 and \(2\pi\).

  • om_enc (array_like of shape (Nfreq,1,1)) – Vector of encounter wave frequencies [rad/s].

  • time (array_like of shape (1,1,Nt)) – Vector of time [s].

  • seed (int) – Index of the seed number.

  • result (array_like of shape (Nseed,Nt)) –

    Anterior value of the vector of wave/response sequence.

    Note

    Consult the documentation of the netsse.simul.ship_resp.simul_ship_resp() function for information on the other parameters.

Returns:

result – Updated value of the vector of wave/response sequence.

Return type:

array_like of shape (Nseed,Nt)