Ask Your Question

Hadi's profile - activity

2022-05-04 07:40:49 -0500 received badge  Famous Question (source)
2019-06-25 10:55:34 -0500 received badge  Popular Question (source)
2019-06-25 10:55:34 -0500 received badge  Notable Question (source)
2018-07-11 11:42:25 -0500 asked a question Susbstation data retrieval APIs fail to return arrays

Hi everybody,

I am working on modeling the node-breaker topology of substation for our grid network. This procedure includes reading substation data from our EMS case, performing some modifications on the data, and then using these data to build substations in our planning cases. The problem comes when I try to retrieve the switching device data! For some substations, this API works without any problem. But for some of them it says "Array allocation failed in AFETCHNODE" and restarts the Shell! Here is the peace of code I use:

ParentEMSNUM = [6771,6772,6773,6774,6775,6776,6777,6778]

psspy.bsys(2,0,[ 1.0, 765.],0,[],len(ParentEMSNUM),ParentEMSNUM,0,[],0,[])

ierr, from_num = psspy.astaswdevint(2, 1, 'FROMNODE')

Note that in the second line, I define a bus subsystem that includes only buses inside a particular substation. It's because the substation data retrieval APIs need to specify a subsystem instead of the substation name itself (kinda weird). I am wondering if it is a memory problem! Because sometimes if I get lucky, the API returns the array successfully. Any thoughts on this would be greatly appreciated.

Thanks

2018-06-12 09:56:00 -0500 answered a question How to get ACCC violations output in python list?

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