1

How to list which buses are connected to THIS bus?

  • retag add tags

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.

Gusimurrvl's avatar
11
Gusimurrvl
asked 2015-09-02 08:01:37 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

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

nwilson's avatar
100
nwilson
answered 2015-09-02 09:34:07 -0500, updated 2015-09-02 09:37:47 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

Thank you very much nwilson! It helped a lot

Gusimurrvl's avatar
11
Gusimurrvl
answered 2015-09-02 10:12:01 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer