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

Ask Your Question
1

Scale all buses in a loop

asked Apr 16 '13

anonymous user

Anonymous

updated Apr 17 '13

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,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?

1 answer

Sort by » oldest newest most voted
0

answered Apr 22 '13

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.

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: Apr 16 '13

Seen: 838 times

Last updated: Apr 22 '13