First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
I wrote a similar python script to export all branch and voltage violations in an excel sheet. You can extract the list of contingencies from .acc file using acccsummary function. You can then loop through each contingency using acccsolution to get the branch and voltage violation flows. You are right, this will give all the flows in all the monitored branches and volts in monitored buses, but you can do some filtering later to just keep the violations. Finally, you can dump the results in an excel sheet using using xlwt or a csv writer function. Its a little complicated, but trust me all your dreams will come true at the end.
2 | No.2 Revision |
I wrote a similar python script to export all branch and voltage violations in an excel sheet. You can extract the list of contingencies from .acc file using acccsummary function. You can then loop through each contingency using acccsolution to get the branch and voltage violation flows. You are right, this will give all the flows in all the monitored branches and volts in monitored buses, but you can do some filtering later to just keep the violations. Finally, you can dump the results in an excel sheet using using xlwt or a csv writer function. Its a little complicated, but trust me all your dreams will come true at the end.