Ask Your Question
1

How can create a file idv that decrement and decrease generations

asked 2013-02-04 21:13:08 -0500

Juan gravatar image

how I can create a file PSSE idv that decrement generation or increase generation by tens blocks taking intoaccount the upper and lower limits.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-02-05 21:38:47 -0500

JervisW gravatar image

updated 2013-02-05 21:39:34 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2013-02-04 21:13:08 -0500

Seen: 3,945 times

Last updated: Feb 05 '13