How can create a file idv that decrement and decrease generations
how I can create a file PSSE idv that decrement generation or increase generation by tens blocks taking intoaccount the upper and lower limits.
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
how I can create a file PSSE idv that decrement generation or increase generation by tens blocks taking intoaccount the upper and lower limits.
Hi Juan
Check out the MACHINE_DATA_2
command in the PSSE API document
BAT_MACHINE_DATA_2 I 'ID' INTGAR(1)...INTGAR(6) REALAR(1)...REALAR(17)
You'll find that REALAR(1) is the machine active power output. Continue to increase it until the machine's limit PT.
This is the sort of job that a python file makes very easy.
busname, busid = 200, '1'
pt = psspy.macdat(busname, busid, "PMAX") # PT is the generator limit
p = psspy.macdat(busname, busid, "P") # P is the current active power
while p < pt:
psspy.machine_data_2(busname, busid, realar1=p + 10) # increment by 10 MW
p = psspy.macdat(busname, busid, "P")
If you can get your IDEV file to work - then that is great. But with Python you'll get more control.
Asked: 2013-02-04 21:13:08 -0500
Seen: 3,945 times
Last updated: Feb 05 '13