pwrs.core.dSbus_dV#

pwrs.core.dSbus_dV.dSbus_dV(Ybus, V, vcart=0)[source]#

Compute partial derivatives of bus power injections w.r.t. voltage.

Parameters:
  • Ybus (array_like or sparse matrix) – Bus admittance matrix.

  • 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.

Returns:

(dSbus_dV1, dSbus_dV2) where the derivatives are with respect to (Va, Vm) in polar mode or (Vr, Vi) in cartesian mode.

Return type:

tuple