Ask Your Question
1

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

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

anonymous user

Anonymous

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

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
3

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

jconto gravatar image

updated 2021-10-08 11:43:31 -0600

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.scal_2(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
1

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

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

psspy.fnsl([1,0,0,1,1,0,99,0])
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: 2014-07-09 17:42:06 -0600

Seen: 3,813 times

Last updated: Oct 08 '21