First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

display pssarrays.iecs_currents as polar

asked Jan 6 '0

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)**

1 answer

Sort by » oldest newest most voted
0

answered Jan 6 '0

jconto gravatar image

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

psspy.short_circuit_coordinates(fmt)   # fmt=0 for rectangular (default), =1 for polar
link

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 (Jan 7 '0)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Jan 6 '0

Seen: 448 times

Last updated: Jan 06 '20