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

Ask Your Question
2

Scaling load

asked May 15 '13

bennettl gravatar image

Is there a way, within python code, to scale load by a certain amount rather than to set a new value? In other words I don't want to set the scaled load to a certain value, I'd like to instead change it by a certain value.

Comments

Yep, you can use `scal`

JervisW gravatar imageJervisW (May 23 '13)

2 answers

Sort by » oldest newest most voted
2

answered May 18 '13

yfwing gravatar image

check the API, you can set the incremental value, rather than a new total in the function scale_2

link
0

answered May 23 '13

JervisW gravatar image

Here is how you can use scal with Python to to an incremental scale instead of setting to a specific level.

psspy.scal(
         sid=1,         # only scale subsystem id 1
         status1=3,     # specify incremental power
         status3=5,     # incremental Q load
         scalval1=5,    # increment by 5 MW
         scalval7=5)    # increment by 5 MVAr

1.216 of the API manual has the full run down of options for scal

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: May 15 '13

Seen: 1,407 times

Last updated: May 23 '13