Ask Your Question
0

How to add dynamic data to an existing dynamic data in PSSE through Python?

asked 2019-06-05 21:34:09 -0500

ADP gravatar image

Hi! I am currently conducting a dynamic simulation in PSSE through Python. My concern is changing the dynamic data of one generator's governor from 5% droop to 0% droop (isochronous mode). In my Python file, I used the DYRE_ADD from API (Use this API to read a Dynamics Model Raw Data File and append the model references specified in its data records to the simulation data already contained in dynamics working memory).

ierr = dyre_add(startindx, dyrefile, conecfile, conetfile)

I'm having trouble with identifying the values for "startindx" (CON, STATE, VAR, ICON) to connect the .dyr that I will add to the existing .dyr

I tried using (1,1,1,1), but it just replaced the existing .dyr. psspy.dyreadd([1,1,1,1],dyrfileiso,"","")

I run the existing .dyr in PSSE and got (571,189,80,10), then I applied on the to be added .dyr. But the result showed that PSSE was not able to read the .dyr I added. psspy.dyreadd([571,189,80,10],dyrfileiso,"","")

I hope someone can help me :)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-06-06 04:21:14 -0500

perolofl gravatar image

There is no need to enter the starting indices. Enter an empty list to use PSSE's default values:

psspy.dyre_add([],dyrfileiso)
edit flag offensive delete link more

Comments

Hello perolofl, I followed your advice but I still cannot successfully add the new dyr. May be my process of adding the dyr is wrong.

ADP gravatar imageADP ( 2019-06-09 21:14:12 -0500 )edit

Here is the process I used in my Python Code: 1. load .sav 2. set-up load flow parameter 3. perform load flow 4. load .dyr 5. set up dynamic solution parameters 6. set up output channel 7. convert generators and loads 8. initialize dyn simulation 9. apply disturbance

ADP gravatar imageADP ( 2019-06-09 21:17:30 -0500 )edit

10. run dyn simul 11. add new .dyr 12. run dyn simul

ADP gravatar imageADP ( 2019-06-09 21:18:34 -0500 )edit

Point 11 is wrong. You shall not replace a dynamic model during a dynamic simulation. It is only allowed to change a parameter for a model. Just change the droop value, but don’t replace the model.

perolofl gravatar imageperolofl ( 2019-06-09 23:57:11 -0500 )edit

Thank you for your help Sir. I am already able to change the dynamic data values through python using psspy.change_plmod_con

ADP gravatar imageADP ( 2019-06-14 00:18:56 -0500 )edit

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

1 follower

Stats

Asked: 2019-06-05 21:34:09 -0500

Seen: 105 times

Last updated: Jun 06