pwrs.core.makeBdc#
- pwrs.core.makeBdc.makeBdc_mpc(mpc)[source]#
Build the DC power flow
BbusandBfmatrices.Returns the B matrices and phase shift injection vectors needed for a DC power flow. The bus real power injections are related to bus voltage angles by:
P = BBUS * Va + PBUSINJ
The real power flows at the from end the lines are related to the bus voltage angles by:
Pf = BF * Va + PFINJ
Does appropriate conversions to p.u. Bus numbers must be consecutive beginning at 1 (i.e. internal ordering).
- Parameters:
mpc (MatpowerCase) – MATPOWER case struct.
- Returns:
(Bbus, Bf, Pbusinj, Pfinj)for the DC model.- Return type:
tuple
- pwrs.core.makeBdc.makeBdc_values(baseMVA, bus, branch)[source]#
Build the DC power flow
BbusandBfmatrices.Returns the B matrices and phase shift injection vectors needed for a DC power flow. The bus real power injections are related to bus voltage angles by:
P = BBUS * Va + PBUSINJ
The real power flows at the from end the lines are related to the bus voltage angles by:
Pf = BF * Va + PFINJ
Does appropriate conversions to p.u. Bus numbers must be consecutive beginning at 1 (i.e. internal ordering).
- Parameters:
baseMVA (float) – System MVA base.
bus (npt.NDArray[np.float64]) – Bus matrix.
branch (npt.NDArray[np.float64]) – Branch matrix.
- Returns:
(Bbus, Bf, Pbusinj, Pfinj)for the DC model.- Return type:
tuple
- pwrs.core.makeBdc.makeBdc(*args)[source]#
Build the DC power flow
BbusandBfmatrices.Returns the B matrices and phase shift injection vectors needed for a DC power flow. The bus real power injections are related to bus voltage angles by:
P = BBUS * Va + PBUSINJ
The real power flows at the from end the lines are related to the bus voltage angles by:
Pf = BF * Va + PFINJ
Does appropriate conversions to p.u. Bus numbers must be consecutive beginning at 1 (i.e. internal ordering).
- Parameters:
*args (tuple) – Positional arguments for one of the supported call forms.
- Returns:
(Bbus, Bf, Pbusinj, Pfinj)for the DC model.- Return type:
tuple