Ask Your Question
0

How to call/change DYR file values from python

asked 2021-10-19 07:28:16 -0500

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2021-10-25 00:59:03 -0500

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.

edit flag offensive delete link more

Comments

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

jconto gravatar imagejconto ( 2021-10-25 09:09:02 -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: 2021-10-19 07:28:16 -0500

Seen: 1,095 times

Last updated: Oct 25 '21