Ask Your Question
0

Changing the parameter of generators during dynamic simulation

asked Apr 2 '19

Rashid gravatar image

updated Apr 2 '19

jconto gravatar image

Hi everyone. I have a question about changing the parameter during the dynamic simulation, I run this code:

psspy.bsys(sid=2, numbus=1, buses=1)                     
psspy.addmodellibrary('C:\Program Files (x86)\PTI\PSSEXplore34')
psspy.change_plmod_con(5,r"""03""",r"""GENTPJ1""",5, 8)
psspy.change_plmod_con(6,r"""04""",r"""GENTPJ1""",5, 10)
psspy.dyre_new([1,1,1,1],dyrfile)

I try to change the parameter H for gentpj at bus 5 and 6. but the results are not different from the before. Can anyone help me with that?

1 answer

Sort by » oldest newest most voted
0

answered Apr 2 '19

jconto gravatar image

Read the dyre file first and then make the change to H

psspy.dyre_new([1,1,1,1],dyrfile)
psspy.change_plmod_con(5,r"""03""",r"""GENTPJ1""",5, 8)
...

What test was applied?

Also, line 2 may not be needed.

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

1 follower

Stats

Asked: Apr 2 '19

Seen: 503 times

Last updated: Apr 01 '19