-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Matpower non regulating generators connected PV buses #2639
Conversation
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
} | ||
mGen.setVoltageMagnitudeSetpoint(targetVpu); | ||
} else { | ||
mGen.setVoltageMagnitudeSetpoint(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you want to keep this zero value? Maybe the nominal voltage ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you keep zero, can you add a comment for later ?
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Kudos, SonarCloud Quality Gate passed! |
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com> (cherry picked from commit 3ee9e8a)
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
When a non regulating generator is connected to a bus with an already voltage regulating generator, Matpower power flow failed.
What is the new behavior (if this is a feature change)?
This is because the voltage regulating status is at the bus level in Matpower format (field type) and it is not allowed to have a non regulating generator connected to a PV bus. In that case even with a zero voltageMagnitudeSetPoint, the power try to reach the voltage.
The solution is to convert this king of generator to a load.
Does this PR introduce a breaking change or deprecate an API?
Other information: