First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

How can you interpret a .acc file from PSSE and extract useful data?

asked Apr 30 '19

cheema gravatar image

updated Mar 24 '2

jconto gravatar image

I have a .acc file and it has a lot weird characters: e-g: f†?ff†? €?¶º…?¶º…?¶º…? €?q¡

how can you decode these characters? and extract data from .ACC file and store into an excel file?

I have already tried using "EXPORT RESULTS TO EXCEL" TOOL in PSSE but it misses some of the data I need. Additionally, the ACCC post processor is not very user friendly. I am thinking to write some sort of script to extract data from .ACC file.

Thanks for your guys help!

2 answers

Sort by » oldest newest most voted
0

answered May 1 '19

jconto gravatar image

updated Mar 24 '2

The *.acc file is a binary file and to extract its content its better to use API functions like accc_summary or 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)
link

Comments

using acccsolution , can i get the load flow for N-1? can u answer please?

randa gravatar imageranda (Mar 24 '2)

If the n-1 process creates a *.acc file, then yes. I prefer to use 'pssexcel'

jconto gravatar imagejconto (Mar 24 '2)

i ve been trying to use pssexcel but the issue is it always give me the same results even if im changing flowlimit, i dont know where the errror might be, it shows me an excel with data for a flowlimit = 0.0 can you help me with this one ? , and thank you so much

randa gravatar imageranda (Mar 31 '2)

Did you run the above code using savnw.acc? If it works for one data set, usually works for another data set. Can you recreate your *.acc file to double check for errors. Does your *.mon and *.con filse contain valid input? I can check your data set if provided.

jconto gravatar imagejconto (Mar 31 '2)
0

answered May 1 '19

cheema gravatar image

I am mainly looking for the lines which have load flow >100% and buses with certain voltage deviations, overvoltage and under voltages. I used the "Export results to excel" tool by PSSE but it missed some buses and lines with the violations. Thanks

link

Comments

These violation conditions are set in the monitor file (*.mon) used to create the *.dfx file, which is use in creating the *.acc files. Review the *.mon file and run again the ACCC as needed.

jconto gravatar imagejconto (May 1 '19)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Apr 30 '19

Seen: 1,330 times

Last updated: Mar 24 '22