Ask Your Question
1

How to list which buses are connected to THIS bus?

asked 2015-09-02 08:01:37 -0500

Gusimurrvl gravatar image

Say I got 5 buses connected to one another in the order 111-222-333-444-555.

Is there a command to list the buses directly connected to bus 333 (that is 222 and 444)?

What I'm trying to do is to get hold of the short circuit currents (SCBRN2-method) going from bus 333 to bus 222 and from bus 444 to bus 333 after a Line-To-Ground Fault has been made in bus 111.

The problem is that I actually don't know how the buses are connected to one another. I just know the fault bus and the "solution output"-bus and the SCBRN2-method requires me to enter both from and to buses.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-09-02 09:34:07 -0500

nwilson gravatar image

updated 2015-09-02 09:37:47 -0500

You can use the psspy.nxtbus function to find the next bus. Here's some code that may help:

ierr = psspy.inibus(startbus) if ierr < 1: while 1 == 1: ierr, foundbus, longbusname = psspy.nxtbus(startbus) if ierr < 1: buslist.append(foundbus) else: break

edit flag offensive delete link more
0

answered 2015-09-02 10:12:01 -0500

Gusimurrvl gravatar image

Thank you very much nwilson! It helped a lot

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

Stats

Asked: 2015-09-02 08:01:37 -0500

Seen: 2,560 times

Last updated: Sep 02 '15