Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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