wecopttool.core.WEC.residual
- WEC.residual(x_wec, x_opt, waves)[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.
waves (Dataset) –
xarray.Dataset
with the structure and elements shown bywecopttool.waves
.
- Return type: