Ask Your Question
0

Next Available CON

asked 2019-09-17 09:17:58 -0500

jfconroy gravatar image

I can use DLST to see the size of the CON array in the PSS/E GUI.

Is there a way to obtain the size of the CON array (or the next available CON array index) using Python? I would like to use these in the dyre_new function.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-09-18 13:09:10 -0500

wassup_doc gravatar image

updated 2019-09-18 13:21:13 -0500

The DYRE_NEW() python API is designed in such a way that it assumes you are trying to clear the dynamic working memory in PSS/E and read in new model data (usually starting at the 1st location). From your question it seems that you are trying to append models (CONs) to the existing data in dynamics working memory. If this is the case you might want to take a look at DYRE_ADD() python API. This allows you to specify the default integer (psspy._i) which automatically gives you the last CON in the CON array as described in the DYRE_ADD() functionality.

In short, I do not know of a python API that gives you the current length (or ending index) of the CON array. Based on the limited info in your question, it sounds like what I suggest above should suffice as you shouldn't need to know the ending CON to append data... I took a quick look through the API too, but don't see anything for returning the specific ending CON.

EDIT: I just looked again in the API... the DLST PSSE function is available in python. Search the PSSE API Manual for DLST. That should give you the exact functionality you are looking for... though I am still not sure that using it in conjunction with dyre_new is what you really want to do.

edit flag offensive delete link more

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-09-17 09:17:58 -0500

Seen: 44 times

Last updated: Sep 18