Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I get the total generation MW in an Area using python in PSSE?

Hi,

I'm trying to use psspy.scal_2 to adjust an Area load. I'd like to adjust only the MW value, and have the MVAR scaled accordingly. I don't want generation to be scaled. I currently use VBA to create a python text file.

Here is roughly what I'm trying to do (example of changing from 5680->6000): psspy.scal_2(0,0,0,[1,1,0,1,0],[6000,AreaGenMW,0,0,0,0,0])

I know I can scale it based on a percentage and do this: psspy.scal_2(0,0,0,[1,2,0,1,0],[5.63,0,0,0,0,0,0])

But, if I do this, I have to know what the original case load is, which does take a little bit of time. I'd like for python to be able to just read the load as is, and put that into my first example code.

Basically, it seems I'm doing everything right, except for knowing how to do what I'm calling "AreaGenMW".

Thanks!