wecopttool.core.WEC.residual
- WEC.residual(x_wec, x_opt, wave)[source]
Return the residual of the dynamic equation (r = m⋅a-Σf).
- Parameters:
x_wec (ndarray) – WEC state vector.
x_opt (ndarray) – Optimization (control) state.
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).
- Return type: