Ask Your Question
0

How to call/change DYR file values from python

asked Oct 19 '1

anonymous user

Anonymous

Trying to call values from dyr file via python. and also trying to change the .dyr file values from python before running into dynamic simulations. looked up the dyradd, dyrnew, and dyda.

1 answer

Sort by » oldest newest most voted
0

answered Oct 25 '1

SqFKYo gravatar image

I'm going to assume you want to change the dynamic data values in memory after reading the dyr file?

Under the "Dynamic Simulation Operation" there's "changecon", "changeicon" etc. method that allow you to change values if you know the array index value of the value you want to change.

In order to find the indexes, use the "mind"-ending functions e.g. windmind for wind models.

PS. If you want to read the values, use "Single Element Data" section's "dsrval", "dsival" etc.

link

Comments

For synchronous machines , use: MDLIND Use this API to return plant-related model starting array indices and status.

jconto gravatar imagejconto (Oct 25 '1)

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: Oct 19 '1

Seen: 1,151 times

Last updated: Oct 25 '21