Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I wanted to post this as a comment, but it was too long. I think it should still give you what you're looking for though.

While it may be possible to do what you're saying directly with PSS/E API functions, I believe it would be much easier to do it with Python spreadsheet post-processing. Using a library like openpyxl or xlrd/xlwt you can insert things like case names or combine excel files quite easily.

What will make this a generalized solution (and reduce your workload) is writing the following scripts in a way that lets them automatically find all cases/.accc files. This will find all .sav cases located in the same folder as the script itself:

dirname = os.path.dirname(os.path.realpath(__file__))
for file in os.listdir(dirname):
    if file.endswith(".sav"):

Then, you can do the following:

  1. Write a python script which runs ACCC on each of your cases and outputs "casename.accc"
  2. Write a python script which goes through your ACCC files (or pssexcel excel outputs) and outputs the results in the format you want to an excel spreadsheet.