Ask Your Question

display pssarrays.iecs_currents as polar

asked 2020-01-06 15:29:58 -0500

Ascegan gravatar image

After running pssarrays.iecs_currents(), rlst is returned with values in rectangular. After using the command, below, to change SC format to polar the results display in rectangular: What did I miss?

import pssarrays
rlst=pssarrays.iecs_currents(1,0,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0, 0.08333, 1.1,"","","")

print rslt.scfmt
print rlst.flt3ph[0].ia1

rlst['scfmt'] = 'polar'

print rslt.scfmt
print rlst.flt3ph[0].ia1
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-01-06 17:25:56 -0500

jconto gravatar image

before running "iecscurrents" [or "ascccurrents"], declare:

psspy.short_circuit_coordinates(fmt)   # fmt=0 for rectangular (default), =1 for polar
edit flag offensive delete link more


Thanks. Also note iecs_currents() has to be re-run each time >>psspy.short_circuit_coordinates(0) # fmt=0 for rectangular (default), =1 for polar >>rlst=pssarrays.iecs_currents(1,0,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0, 0.08333, 1.1,"","","") >>print rlst.flt3ph[0].ia1,"","","" (0.12169598043-3.092061281

Ascegan gravatar imageAscegan ( 2020-01-07 10:36:05 -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


Asked: 2020-01-06 15:29:58 -0500

Seen: 62 times

Last updated: Jan 06