Ask Your Question
0

SCMVA values don't match between PSSE GUI and Python API function

asked 2020-02-29 22:14:44 -0500

annuko gravatar image

updated 2020-03-02 08:28:59 -0500

I calculated SCMVA capacity at a bus in PSSE using a python "ascc_currents" function with the bus voltage option 1 (all buses at specified value):

Here is how the function was used:

rlst = pssarrays.ascccurrents(sid=sidin, all=all, flt3ph=1, voltop=1,genxop=0)

The calculated SCMVA using above function does not match with the value from GUI of PSSE with "all buses at specified voltage" is selected.

Surprisingly, the value from python function (using option 1) matches with the value from GUI when the voltage option is set to faulted bus at specified voltage in GUI.

Can anyone tell me what could be the reason for this difference?

Thanks

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2023-10-04 17:47:41 -0500

jconto gravatar image

Record to python script the GUI process and then compare this script with your script.

edit flag offensive delete link more
0

answered 2023-10-04 12:39:04 -0500

jbarberia gravatar image

updated 2023-10-04 12:50:03 -0500

The main difference lies in the coordinates used to display the information.

If the coordinates are set to "polar" then the real part is the magnitude of the short circuit current and the imaginary part is the angle in degrees.

rlst = pssarrays.ascccurrents(sid=sidin, all=all, flt3ph=1, voltop=1,genxop=0)
print rlst.scfmt # polar

base_power = psspy.sysmva()
buses = rlst.fltbus
scmva = {fltbus: rlst.flt3ph[i].ia1.real * base_power for i, fltbus in enumerate(buses)}
edit flag offensive delete link more

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-02-29 22:14:44 -0500

Seen: 295 times

Last updated: Oct 04 '23