Ask Your Question

Determine which shunts are toggling

asked 2014-01-04 13:24:01 -0500

nyga0082 gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-01-05 23:43:11 -0500

Eli Pack gravatar image

updated 2014-01-05 23:44:20 -0500

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
sys.stdout = temp = StringIO.StringIO()

# 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
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


Asked: 2014-01-04 13:24:01 -0500

Seen: 429 times

Last updated: Jan 05 '14