Ask Your Question
0

Retrieve ASCC result and process it in Python

asked Mar 7 '17

QuangNguyen gravatar image

Hi,

By using ASCC command in PSSE, we can get the Thevenin impedance in the Output bar of PSSE. However, I would like to retrieve this Thevenin impedance value in Python environment in order to conduct further calculation. Can anyone help please!

Best regards,

Quang

1 answer

Sort by » oldest newest most voted
0

answered Mar 8 '17

perolofl gravatar image

Use ascc_currents in pssarrays! Example for bus 154:

import pssarrays
psspy.bsys(0,0,[ 1., 500.],0,[],1,154,0,[],0,[])
rlst = pssarrays.ascc_currents(0,0,fltlg=1)
z1 = rlst.thevz[0].z1
z2 = rlst.thevz[0].z2
z0 = rlst.thevz[0].z0

The impedance will in in ohm or pu, depending on your shortcircuitunits setting. Use thevzpu instead to always get in pu.

link

Comments

Thank you very much!

QuangNguyen gravatar imageQuangNguyen (Mar 9 '17)

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: Mar 7 '17

Seen: 645 times

Last updated: Mar 08 '17