Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Questions about running contingency analysis for a large-scale network?

Hi there,

I am new to Python for PSSE. I appreciate that Jervis for setting up such a great learning community for PSSE users who want to use Python.

Right now, I want to use Python to fully automate a comprehensive contingency analysis for a real world large system with over 18,000 buses and 13,000 lines and 2000 generators. I intend to do this in the following steps: First, call ACCC for all possible N-1 contingency for the whole network -Is there a way to automatically generate .sub, .mon and.con files? (now I can only do it through PSSE GUI and can only generate DFAX through Python) -Does anyone know how long it would take for this size of network in PSSE?

Second, based on the solution report, I record the solutions of all the contingencies that violated either the line ratings limit or voltage magnitude limits in the Excel (I know I need to use the PSSEXCEL module). - Since I need to continue work on these results in subsequent steps in Python, I wonder if I can save the the violated contingencies (only the contingency names/indices should be sufficient) to a list. If this won't work, can I save the results in ZIP format and access the specific contingency names/indices in next step?

Third, after finding those violated contingencies, for each specific violated contingency (either generator or branch failure), I first want to create it using some Python module and then iteratively opening a branch (same unknown Python module needed here) using a for loop to find out if there are some branch-opening options are helpful in alleviating the previous violations that were caused by the contingency being considered. - Does any one know the Python module that can be used to create a specific contingency for either generator or branch?

Thanks very much for your valuable time and kind help in advance!!

Please forgive any misconception since I am not a power engineer:-)

click to hide/show revision 2
retagged

Questions about running contingency analysis for a large-scale network?

Hi there,

I am new to Python for PSSE. I appreciate that Jervis for setting up such a great learning community for PSSE users who want to use Python.

Right now, I want to use Python to fully automate a comprehensive contingency analysis for a real world large system with over 18,000 buses and 13,000 lines and 2000 generators. I intend to do this in the following steps: First, call ACCC for all possible N-1 contingency for the whole network -Is there a way to automatically generate .sub, .mon and.con files? (now I can only do it through PSSE GUI and can only generate DFAX through Python) -Does anyone know how long it would take for this size of network in PSSE?

Second, based on the solution report, I record the solutions of all the contingencies that violated either the line ratings limit or voltage magnitude limits in the Excel (I know I need to use the PSSEXCEL module). - Since I need to continue work on these results in subsequent steps in Python, I wonder if I can save the the violated contingencies (only the contingency names/indices should be sufficient) to a list. If this won't work, can I save the results in ZIP format and access the specific contingency names/indices in next step?

Third, after finding those violated contingencies, for each specific violated contingency (either generator or branch failure), I first want to create it using some Python module and then iteratively opening a branch (same unknown Python module needed here) using a for loop to find out if there are some branch-opening options are helpful in alleviating the previous violations that were caused by the contingency being considered. - Does any one know the Python module that can be used to create a specific contingency for either generator or branch?

Thanks very much for your valuable time and kind help in advance!!

Please forgive any misconception since I am not a power engineer:-)