First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version | asked 2013-04-16 01:18:10 -0500 Anonymous |
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?
2 | code format |
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?