2

How can I find all 500kV buses in an area?

My saved case has over 100 buses that are 500kV in a PSSE area (area 3). Finding all of the 500kV area 3 buses is easy using the filters on the PSSE user interface. But my question is how to find those bus numbers in Python?

JervisW's avatar
1.3k
JervisW
asked 2012-01-10 01:36:07 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

I'd use the Subsystem Data Retrieval and Subsystem Definition APIs. Use these to create a subsystem of buses based on a filter, and then retrieve attributes like Voltage and Angle.

# filter all area 3, 500kV buses and put into subsystem 1.
psspy.bsys(
  sid=1,
  usekv=1,             # filter based on Base kV
  basekv=[500,500],    # select buses with base voltage 500kV
  numarea=1,
  areas=[3],           # only buses in area 3
)

# now get the bus numbers for buses in subsystem 1.
ierr, target_buses = psspy.abusint(
  sid=1,
  flag=1,              # only in service buses.
  string=["NUMBER", "TYPE"]    # request bus numbers and types.
)

There is a lot more you can do with subsystem data retrieval functions (like abusint). Look at Chapter 8 of the PSSE Application Program Interface (API) manual.

jtrain's avatar
411
jtrain
answered 2012-01-13 02:47:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer