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

Ask Your Question
0

Voltage Mismatch with Model Blow Up

asked Apr 4 '2

Willy gravatar image

updated Apr 5 '2

Hi all, I'm looking to capture the voltage controlling equipment that are associated with a bus whose voltage is outside of tolerance through the API.

There is the maxmsm() function that returns the worst of the bunch. However, I have a situation where turning those generators off (along with a series of other actions, which includes tolerance adjustments) to help with convergence does not work. But, there is a separate bus that has a smaller voltage mismatch does solve the problem. There is the regb() that can get the full list of mismatches, but it only performs a screen printout without storing as an output variable.

I have searched the API documentation, but haven't found a function that returns a full list of the controlled buses with a mismatch. Does anyone have a function reference for me, or some other workaround?

Cheers!

1 answer

Sort by » oldest newest most voted
0

answered Apr 7 '2

Willy gravatar image

A quick note: I'm currently just iterating through the generators catching their busnumber from the amachint() and associated ids from inimac() and nxtmac() to compare the voltage with a machine's regulation control bus from macint(). This is not the most computational efficient method, so any improvment suggestions would be much appreciated!

link

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: Apr 4 '2

Seen: 436 times

Last updated: Apr 07 '22