0

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

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 :)

ADP's avatar
1
ADP
asked 2019-06-05 21:34:09 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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

psspy.dyre_add([],dyrfileiso)
perolofl's avatar
3.8k
perolofl
answered 2019-06-06 04:21:14 -0500
edit flag offensive 0 remove flag delete link

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's avatar ADP (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's avatar ADP (2019-06-09 21:17:30 -0500) edit

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

ADP's avatar ADP (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's avatar perolofl (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's avatar ADP (2019-06-14 00:18:56 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer