Ask Your Question

How to use python to scale the system load in psse?

asked 2014-07-09 17:42:06 -0500

anonymous user


updated 2014-07-09 17:42:30 -0500

I have a python script that will open and solve a case and take elements out of service as needed and then perform a contingency analysis on it.

What I would like to do is scale the load of the system from let's say 1000MW to 1100MW and then solve the case. What would be the python equivalent syntax for this?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-07-12 13:02:20 -0500

jconto gravatar image

PSSe allows the recording of activities to a python script. Activate the recording process, save it as a python script and execute the PSSe activities from the GUI: select PowerFlow-> Changing -> Scale Generation, Load -> all buses and made your changes in the form. press OK and then stop the recorder. In the savnw.sav case, I changed total system load from 3200 to 3400 MW python script:

psspy.scal2(0,1,2,[i,1,0,1,0],[ 3400.0, 3258.7,0.0,-600.0, 950.0,-.0, 1950.0])

repeat process for any other Psse activity that you want to have an equivalent python script for, including "solving the case"

edit flag offensive delete link more

answered 2014-08-05 06:53:37 -0500

Katherine gravatar image

You can record python activities, and then use the record as a template. For scaling you have the option also of including incremental changes. If the load is 1000 MW then the command for increasing by 100 MW is

psspy.scal_2(0,1,2,[_i,3,0,1,0],[ 100.0,0.0,0.0,0.0,0.0,0.0,0.0])

where the 3 denotes an incremental change. You can then use your preferred method for solving the case, for example

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


Asked: 2014-07-09 17:42:06 -0500

Seen: 1,207 times

Last updated: Aug 05 '14