Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The *.acc file is a binary file and to extract its content its better to use API functions like acccsummary or acccsolution. Search the API document for "ACCC" to get what is being offered.

What data is not being reported by pssexcel.pyc or pssarrays.pyc? What kind of output data are you looking for?

The *.acc file is a binary file and to extract its content its better to use API functions like acccsummary accc_summary or acccsolution. accc_solution. Search the API document for "ACCC" to get what is being offered. The selection of violations is set in the MON file, which is used to create the DFX file, which is used to create the ACC file.

What data is not being reported by pssexcel.pyc or pssarrays.pyc? What kind of output data are you looking for?

A simplified code from "pssexcel_demo.py" (located in 'example' folder, PSSe installation) to export accc results from a *.acc file to excel follows:

# pssexcel_accc.py - Use of pssexcel to export ACCC results
import psse34
import pssexcel

accfile = 'savnw.acc'
xlsfile = 'savnw.xlsx'
string  = ['s','e','b','i','v','l','g','p']
colabel = []                #'base case', 'trip1nuclear', 'trip2nuclear']
sheet = ''
overwritesheet = True
show = True
baseflowvio = False
basevoltvio = False
flowlimit   = 0.0
flowchange  = 0.0
voltchange  = 0.0
cosep = True

pssexcel.accc(accfile,
              xlsfile=xlsfile,sheet=sheet,overwritesheet=overwritesheet,show=show,
              string=string,
              colabel=colabel,
              baseflowvio=baseflowvio, basevoltvio=basevoltvio, 
              flowlimit=flowlimit,flowchange=flowchange, 
              voltchange=voltchange, cosep=cosep)