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.
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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.
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.
Asked: 2019-09-17 09:17:58 -0600
Seen: 409 times
Last updated: Sep 18 '19
How to Convert Text contingencies file to con file
Missing CON descriptions for user-defined model
Creating a CON file from ACC results?
Conversion of PowerWorld AUX contingency file to PTI CON file
Messages for api TLTG Specified subsystems overlap
What is the KP in the CLOD model stand for and what does it do?