pwrs.core.dIbr_dV#

pwrs.core.dIbr_dV.dIbr_dV(branch, Yf, Yt, V, vcart=0)[source]#

Compute partial derivatives of branch currents w.r.t. voltage.

Parameters:
  • branch (ndarray) – Branch matrix. Accepted for MATLAB interface compatibility.

  • Yf (array_like or sparse matrix) – Branch admittance matrices for the from and to ends.

  • Yt (array_like or sparse matrix) – Branch admittance matrices for the from and to ends.

  • V (array_like) – Complex bus voltage vector.

  • vcart (int, optional) – Coordinate selector. 0 uses polar derivatives with respect to voltage angle and magnitude, 1 uses cartesian derivatives with respect to real and imaginary voltage parts.

  • nargout (int, optional) – Number of outputs to emulate from the MATLAB interface.

Returns:

(dIf_dV1, dIf_dV2, dIt_dV1, dIt_dV2, If, It) in MATLAB-compatible form.

Return type:

tuple