Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When defining a bus subsystem with API bsys a subsystem id (SID) between 0 - 11 is selected. This means it is possible to have several subsystem definition at the same time.

In the example below I first define three different subsystems and allocate them to sid 1, 5 and 9 respectively. Thereafter I list the buses in the three different subsystem.

# Area 1 in sid 1:
psspy.bsys(1,0,[ 13.8, 500.],1,[1],0,[],0,[],0,[])
# Area 5 in sid 5:
psspy.bsys(5,0,[ 13.8, 500.],1,[5],0,[],0,[],0,[])
# 230 - 500 kV in sid 9:
psspy.bsys(9,1,[ 230., 500.],0,[],0,[],0,[],0,[])

# List the buses for the three defined subsystems
psspy.list(1,0,2,0)
psspy.list(5,0,2,0)
psspy.list(9,0,2,0)

You can normally use sid = 0 if you are only using one subsystem definition in your script. However, the GUI is using sid=0, so when a script is run inside PSSE and you use sid=0, that definition will be there when the script terminates.