Ask Your Question
1

How to find out number of system components

asked 2012-07-17 18:20:01 -0600

Don gravatar image

updated 2012-07-17 22:55:46 -0600

Hi

I am wondering whether you have or come across a simple python code to do something like this:

To find out number of capacitor banks (of X MVAr) available at a Substation (Given a PSSE Case) Ans: 1 or 2 or 3 or etc

Eg 1: Number of 50 MVAr (Say) Capacitor Banks at JERVIS WHITLY Substation

EG 2: Number of gen units on line at a Substation

Ta DON

edit retag flag offensive close merge delete

Comments

@Don do you mean all components connected radially, or just ones connected to a particular bus?

JervisW gravatar imageJervisW ( 2012-07-19 02:38:21 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-29 13:32:53 -0600

acd1 gravatar image

updated 2016-06-29 13:34:15 -0600

If I am understanding your question correctly, I would do something along the lines of the following:

total_mvar = 0
for block in range(1,8):
    ierr, steps, mvar = psspy.swsblk(bus, block)
    total_mvar = total_mvar + steps * mvar

psspy.report('Total MVAR at bus ' + str(bus) + ': ' + str(total_mvar) + '\n')

This (untested, hasty code) takes a bus and adds up all the switched shunt support on it. You would still need to add in any fixed shunts to find the actual VAR support on the bus. This could probably be done with inifxs(), nxtfxs(), and fxsdt1().

You could wrap this up in a nice chunk of code, providing a simple list of buses, and you could automate the process pretty easily.

As far as for generators, it wouldn't be too hard to do something similar to the capacitor code above.

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: 2012-07-17 18:20:01 -0600

Seen: 498 times

Last updated: Jun 29 '16