First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
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)
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.
2 | No.2 Revision |
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)
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.