Ask Your Question
0

subsystem identifiers range from 0 to 11

asked 2021-04-14 17:36:01 -0500

Automation Guy gravatar image

Can somebody explain how a subsystem is different from 0 to 11? I see this statement 276 times in API but couldn't find what each number means. Also, could you please point me where this information is available in API or other document?

Thanks in advance!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2021-04-15 10:35:19 -0500

perolofl gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2021-04-14 17:36:01 -0500

Seen: 588 times

Last updated: Apr 15 '21