Ask Your Question
0

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

asked 2018-11-01 12:48:00 -0500

g.valentim gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-11-08 10:11:27 -0500

nelak gravatar image

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

edit flag offensive delete link more

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 gravatar imageg.valentim ( 2018-11-14 10:49:58 -0500 )edit

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

g.valentim gravatar imageg.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 gravatar imageg.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 gravatar imageg.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 gravatar imagenelak ( 2018-12-08 19:31:38 -0500 )edit

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: 2018-11-01 12:48:00 -0500

Seen: 777 times

Last updated: Nov 08 '18