wecopttool.core.add_linear_friction

add_linear_friction(bem_data, friction=None)[source]

Add linear friction to BEM data.

Returns the Dataset with the additional information added.

Parameters:
  • bem_data (Dataset) – Linear hydrodynamic coefficients obtained using the boundary element method (BEM) code Capytaine, with sign convention corrected. Also includes inertia and hydrostatic stiffness.

  • friction (ArrayLike | None) – Linear friction, in addition to radiation damping, of size (ndof, ndof). None if included in bem_data or to set to zero.

Return type:

Dataset