1

Scale all buses in a loop

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,1,[0,0,0,0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0]); 
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?

anonymous user
asked 2013-04-16 01:18:10 -0500
JervisW's avatar
1.3k
JervisW
updated 2013-04-16 22:13:46 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

JervisW's avatar
1.3k
JervisW
answered 2013-04-22 03:06:06 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer