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

Ask Your Question
1

How can create a file idv that decrement and decrease generations

asked Feb 5 '13

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.

1 answer

Sort by » oldest newest most voted
0

answered Feb 6 '13

JervisW gravatar image

updated Feb 6 '13

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.

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: Feb 5 '13

Seen: 4,007 times

Last updated: Feb 05 '13