0

Is there anyway I can count number of branches between specific buses?

I'm trying to write a code to count the number of devices in the buses that user chose.

I know how to count things like generators, shunts, etc.. but I don't know if there is anyway to count the number of branches and transformers.

Is there anyone who tried this before?

newbee123's avatar
15
newbee123
asked 2019-01-15 21:04:08 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Use inibrn and nxtbrn3, for example, to loop all branches and transfomers connected to ibus:

ibus = 154
ierr = psspy.inibrn(ibus, 2)
while True:
    ierr, jbus, kbus, ickt = psspy.nxtbrn3(ibus)
    if ierr>0: break
perolofl's avatar
3.8k
perolofl
answered 2019-01-16 02:00:46 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer