Ask Your Question
0

display pssarrays.iecs_currents as polar

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

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
psspy.bsys(1,0,[0.0,0.0],0,[],1,[9999],0,[],0,[])
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
>rectangular
print rlst.flt3ph[0].ia1
>(0.12169598043-3.0920612812j)

rlst['scfmt'] = 'polar'

print rslt.scfmt
>polar
print rlst.flt3ph[0].ia1
>(0.12169598043-3.0920612812j)**
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

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

Comments

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 -0600 )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: 2020-01-06 15:29:58 -0600

Seen: 414 times

Last updated: Jan 06 '20