wecopttool.check_impedance

check_impedance(Zi, min_damping=1e-06, uniform_shift=False)[source]

Ensure that the real part of the impedance (resistive) is positive.

Adds to real part of the impedance. Returns the (possibly) updated impedance with \(Re(Zi)>=\) min_damping.

Parameters:
  • Zi (DataArray) – Linear hydrodynamic impedance.

  • min_damping (float | None) – Minimum threshold for damping. Default is 1e-6.

  • uniform_shift (bool | None)

Return type:

DataArray