Package pypower :: Module bustypes
[hide private]
[frames] | no frames]

Module bustypes

source code

Builds index lists of each type of bus.

Functions [hide private]
 
bustypes(bus, gen)
Builds index lists of each type of bus (REF, PV, PQ).
source code
Variables [hide private]
  __package__ = 'pypower'
Function Details [hide private]

bustypes(bus, gen)

source code 

Builds index lists of each type of bus (REF, PV, PQ).

Generators with "out-of-service" status are treated as PQ buses with zero generation (regardless of Pg/Qg values in gen). Expects bus and gen have been converted to use internal consecutive bus numbering.

Parameters:
  • bus - bus data
  • gen - generator data
Returns:
index lists of each bus type
Authors:
Ray Zimmerman (PSERC Cornell), Richard Lincoln