Ask Your Question
1

How to check bus current in PSSE?

asked 2012-10-31 00:36:13 -0500

AaronH gravatar image

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.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
2

answered 2012-11-15 08:13:33 -0500

rimux gravatar image

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"
edit flag offensive delete link more

Comments

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

JervisW gravatar imageJervisW ( 2012-11-15 15:45:35 -0500 )edit
2

answered 2012-10-31 06:22:31 -0500

jsexauer gravatar image

updated 2012-10-31 17:40:11 -0500

JervisW gravatar image

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.

edit flag offensive delete link more

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 gravatar imageJervisW ( 2012-10-31 17:29:28 -0500 )edit
0

answered 2017-05-22 18:17:11 -0500

MAJID gravatar image

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

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: 2012-10-31 00:36:13 -0500

Seen: 2,787 times

Last updated: May 22 '17