wecopttool.core.wave_excitation
- wave_excitation(exc_coeff, wave)[source]
Calculate the complex, frequency-domain, excitation force due to the wave.
The resulting force is indexed only by frequency and not direction angle. The input
wavefrequencies must be same asexc_coeff, but the directions can be a subset.- Parameters:
exc_coeff (DataArray) – Complex excitation coefficients indexed by frequency, direction angle, and degree of freedom.
wave (DataArray) – 2D
xarray.DataArraycontaining the wave’s complex amplitude for a single realization as a function of wave angular frequencyomega(rad/s) and directionwave_direction(rad).
- Raises:
ValueError – If the frequency vectors of
exc_coeffandwaveare different.ValueError – If any of the directions in
waveis not inexc_coeff.
- Return type: