First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
1

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

asked Jul 9 '14

anonymous user

Anonymous

updated Jul 9 '14

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?

2 answers

Sort by » oldest newest most voted
3

answered Jul 12 '14

jconto gravatar image

updated Oct 8 '1

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"

link
1

answered Aug 5 '14

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])
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Jul 9 '14

Seen: 3,880 times

Last updated: Oct 08 '21