0

How do I get the short circuit current with the ASCC_3 API?

I'm trying to get the short circuit currents of a case study. I've applied the ascc_3 api to get the three phase faults in the way down bellow:

ierr, Theveninimpedance = psspy.ascc3(sid=0,all=1,status11=1,scfile=scfilename)

I get the thevenin impedances in the console but I want to export them and the currents to excel as well, how do I do this? I've tried using the asccfile and ascccurrents API's but maybe I did something wrong.

g.valentim's avatar
1
g.valentim
asked 2018-11-01 12:48:00 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

ASCC_CURRENTS should return an array you can parse. Do you have the code you tried to use to implement that?

nelak's avatar
1
nelak
answered 2018-11-08 10:11:27 -0500
edit flag offensive 0 remove flag delete link

Comments

For the Thevenin Impedance I used the following code: def thevenin_impedance(): ierr, Thevenin_impedance = psspy.ascc_3(sid=0,all=1,status11=1) print Thevenin_impedance vector_thevenin=[] vector_thevenin.append(Thevenin_impedance) return vector_thevenin

g.valentim's avatar g.valentim (2018-11-14 10:49:58 -0500) edit

And to get the Thevenin impedance i used: Impedance = thevenin_impedance()

g.valentim's avatar g.valentim (2018-11-14 10:50:42 -0500) edit

For the short circuit current I used the following code: def cc_current(): ierr, current = pssarrays.ascc_currents(sid=0,all=1,flt3ph=1) print current vector_current=[] vector_current.append(current) return vector_current

g.valentim's avatar g.valentim (2018-11-14 10:54:16 -0500) edit

And to get the the short circuit current i used: Short_circuit = cc_current() but it doesn't appear in the console

g.valentim's avatar g.valentim (2018-11-14 10:55:47 -0500) edit

If you look in the api documentation, the ascc_currents command does not have an ierr in front of it like most of the other api calls. You're probably looping thru an empty array named "current"

nelak's avatar nelak (2018-12-08 19:31:38 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer