pwrs.core.make_vcorr#

pwrs.core.make_vcorr.make_vcorr(DD, pv, nb, nl, f, Zb)[source]#

Build the PV-bus voltage correction vector for radial PF.

Mirrors MATPOWER’s make_vcorr helper. It propagates PV-bus correction currents through the radial tree to produce a complex voltage correction vector for all buses.

Parameters:
  • DD (array_like) – Complex correction current injections at PV buses.

  • pv (array_like) – One-based PV bus indices.

  • nb (int) – Number of buses.

  • nl (int) – Number of branches.

  • f (array_like) – One-based parent-bus indices for each branch.

  • Zb (array_like) – Branch series impedances.

  • nargout (int, optional) – MATLAB compatibility flag.

Returns:

Column vector of complex bus voltage corrections.

Return type:

numpy.ndarray