Ask Your Question
0

How to get ACCC violations output in python list?

asked 2014-02-06 07:57:07 -0500

MW gravatar image

updated 2014-02-09 06:47:13 -0500

I'm new to both PSS/E and Python but I'm starting to get the hang of it.

I'm doing several ACCC studies and I want to import my results from the different scenarios into different sheets according to what is being monitored, ie. all low voltage violations for all scenarios in one sheet, one sheet with all overloaded lines etc. To do this I want to have my violations for my scenarios in lists so I can plot the using excelpy. I'm a bit surprised that something which is fairly easy to get in an output report in PSS/E or in .txt is so much more work to get into a python list so you can plot it the way you want instead of using methods like pssexcel.

Question 1) Is there a good way to extract your flow/voltage violations from psspy.accc_solution or any other command? I'm reading through the API and I'm trying to use some of the code used in for example: "Help Refining Multiple ACCC Excel Report" but I can't find any commands or anything to do that.

Question 2) Is there a way of getting the voltage deviations from an .acc-file without subtracting pre-contingency bus voltage with post-contingency bus voltage?

Question 3) Right now I'm deciding whether to try and extract these result from a .txt file or try and import PSS/E results directly into a list (for example using accc_solution), but which way is more convenient/easier?

On a side-note: This forum has been very helpful in teaching the psspy module as well as python, thanks!

edit retag flag offensive close merge delete

Comments

Thanks for your answer Shengen. However mvrecmax/min only shows the limits I have put in the .mon file ex: Vmax = 1.10, that is what will show up for all the buses. .mvbuslabel shows the names of the monitored buses so it doesn't really give me any values of voltage deviations for different buses.

MW gravatar imageMW ( 2014-02-09 10:23:27 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-06-14 14:24:18 -0500

jconto gravatar image

The PSSe v.33 and v.34 installations have a python sample code (in 'Example' folder) , 'accc_reports.py', where accc reports are created from *.acc files. Reports id 12 and 13 export branch overloads and bus voltage violations to text reports. You could use it as a template to create functions that return violation data in list format.

edit flag offensive delete link more
0

answered 2018-06-12 09:56:00 -0500

Hadi gravatar image

This is also my question. I am new to PSS/E and Python!

I am trying to get the ACCC violation results both for line flows and voltages into Python lists or arrays so that I can compare them with violations of a different scenario. I will do this inside a loop that will update loading of the network and run ACCC and then compare the violations with the base case. As MW mentioned, the ACCC violations can be easily exported to .txt files with PSSARRAYS.ACCCVIOLATIONSREPORT function but I couldn't find any function to put these violation into a list or array.

Can somebody help me through this?

Thanks

edit flag offensive delete link more
0

answered 2014-02-07 10:40:21 -0500

SC gravatar image

Please look at help(pssarrays) or help(pssarrays.accc_summary)

and find the fellowing information.

rlst.mvbuslabel       = monitored voltage bus label
rlst.mvreclabel       = monitored voltage record label
rlst.mvrecmax         = monitored voltage bus maximum
rlst.mvrecmin         = monitored voltage bus minimum

I think this might solve your second question.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2014-02-06 07:57:07 -0500

Seen: 2,304 times

Last updated: Jun 14 '18