Ask Your Question

Scale all buses in a loop

asked 2013-04-16 01:18:10 -0500

anonymous user


updated 2013-04-16 22:13:46 -0500

JervisW gravatar image

I am trying to run a python script to produce a time series analysis of my system. I have the total MW load demand values for every half hour.

My python script is set up to read a new load value, and then scale all the buses appropriately keeping a constant P-Q ratio. The Scaling Code used in the loop is:

psspy.scal(0,1,2,[1,0,1,0],[LOAD[N], 4629.4,0.0,0.0, 18.0,0.0, 1038.2 ])

Where LOAD[N] is the new load value.

The problem with the above is that 1038.2 is a variable that affects the scaling. Is there a better way to scale all the buses in the system and keep a constant P-Q ratio, or must I defined the 1038.2 as a variable of some sort?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-22 03:06:06 -0500

JervisW gravatar image

You've set the status(3) value equal to 1. Which is Constant P/Q. Therefore your SCALVAL(7) 1038.2 has no effect. You can ignore the 1038.2 or set it to zero if you want.

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: 2013-04-16 01:18:10 -0500

Seen: 630 times

Last updated: Apr 22 '13