1

Determine which shunts are toggling

I have a handful of cases that I'm running a large number of outages on. In some of the scenarios, there are one or two switched shunt devices that are toggling (every few iterations) in an attempt to find a happy voltage on their buses; thus causing my solution to not reach convergence. I know I could just widen the scheduled range for these devices, but I'm wondering if there's any way to programmatically pour through the solution report and find any shunt that switches more than 'x' number of times so I could go in and lock that device to allow for convergence.

Any thoughts

nyga0082's avatar
106
nyga0082
asked 2014-01-04 13:24:01 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

This should get you started. The following code will give you a string variable "temp" with the solution text. Now you just have to step through it and count how many times each shunt changes.

import redirect, sys, StringIO

# Redirect the output to a string, solve, then reset output
redirect.psse2py()
sys.stdout = temp = StringIO.StringIO()
psspy.fnsl([1,0,0,1,1,0,99,0])
redirect.py2psse()

# Convert temp to a normal string
temp = "" + temp.getvalue()

# Insert code to analyse the "temp" string and count shunt changes
# (This will differ depending on your PSSE version)
print temp
Eli Pack's avatar
823
Eli Pack
answered 2014-01-05 23:43:11 -0500, updated 2014-01-05 23:44:20 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer