1

How to check bus current in PSSE?

Need to check the load current (amps) for 40+ lines. Can Python check the load current?

This is what I have so far:

bus1 = 1004
bus2 = 1005
ckt = "1"

amps = brnmsc(bus1,bus2,ckt,"AMPS")
print amps

But I have 40+ lines. I only know to check the first line.

AaronH's avatar
45
AaronH
asked 2012-10-31 00:36:13 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

2

I'm a little confused by your question. It is titled "how to check bus current in PSSE." However, the concept of current is poorly defined for a bus as, per Kirchhoff's laws, the sum of the current at a bus is zero.

So I'm interpreting your question to mean "how do I report the current of all lines connected to a bus." First I would define a subsystem around the bus using the bsys() command:

psspy.bsys(1,0,[.12, 999], 0, [], 1, [busNum, ], 0, [], 0, [])

You can then use the bus subsystem API to get the amps of all tie-lines.

ierr, iarray = psspy.aflowreal(1,1,2,1,'AMPS')

If you are also interested in the other devices connected to a bus, there is a similar set of functions for the other circuit elements (amachreal, afxshuntreal, etc..) See Chapter 8 of the API documentation for more info.

jsexauer's avatar
586
jsexauer
answered 2012-10-31 06:22:31 -0500
JervisW's avatar
1.3k
JervisW
updated 2012-10-31 17:40:11 -0500
edit flag offensive 0 remove flag delete link

Comments

Using the subsystem API is a smart way to do this. @AaronH the "check bus current" title does raise some questions. If what you wanted was a report of currents connected to a bus, this is how you'd do that. I highly recommend looking into the subsystem functions `bsys` and `aflowreal`

JervisW's avatar JervisW (2012-10-31 17:29:28 -0500) edit
add a comment see more comments
2

if you have list of the lines, all currents from them you can get very easy:

lines=[[5001,5013,"1"],
       [5001,5035,"1"]] #put here as many lines as you want

l=len(lines)
for i in range (l):
  error, amp =  psspy.brnmsc(lines[i][0],lines[i][1],lines[i][2],"AMPS")
  if error==0:
    print str(i+1)+". Line: ",lines[i][0],lines[i][1],lines[i][2]," : ",round(amp,2)," A"
  else:
    print str(i+1)+". Line: ",lines[i][0],lines[i][1],lines[i][2]," : ","error in brnmsc"
rimux's avatar
296
rimux
answered 2012-11-15 08:13:33 -0500
edit flag offensive 0 remove flag delete link

Comments

Using `brnmsc` like this is another good way to get the current.

JervisW's avatar JervisW (2012-11-15 15:45:35 -0500) edit
add a comment see more comments
0

For those who don't use python ! , HOW to do it with psse ?

MAJID's avatar
1
MAJID
answered 2017-05-22 18:17:11 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer