Ask Your Question

s0926386's profile - activity

2021-04-13 12:45:56 -0500 received badge  Taxonomist
2014-03-05 04:12:18 -0500 received badge  Notable Question (source)
2014-03-05 04:12:18 -0500 received badge  Famous Question (source)
2013-04-21 05:29:49 -0500 received badge  Popular Question (source)
2013-04-16 22:14:13 -0500 received badge  Student (source)
2013-04-16 01:18:10 -0500 asked a question 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?