0

Next Available CON

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.

jfconroy's avatar
186
jfconroy
asked 2019-09-17 09:17:58 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

wassup_doc's avatar
110
wassup_doc
answered 2019-09-18 13:09:10 -0500, updated 2019-09-18 13:21:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer