Skip to content
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

Merged
merged 3 commits into from
Jul 10, 2023

Conversation

geofjamg
Copy link
Member

@geofjamg geofjamg commented Jul 7, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

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?

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

geofjamg added 2 commits July 7, 2023 10:52
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
@geofjamg geofjamg changed the title [WIP] Fix Matpower hybrid PV buses Fix Matpower hybrid PV buses Jul 7, 2023
@geofjamg geofjamg requested a review from annetill July 7, 2023 10:20
@geofjamg geofjamg added the bug label Jul 7, 2023
@geofjamg geofjamg changed the title Fix Matpower hybrid PV buses Fix Matpower non regluating generators connected PV buses Jul 7, 2023
@geofjamg geofjamg changed the title Fix Matpower non regluating generators connected PV buses Fix Matpower non regulating generators connected PV buses Jul 7, 2023
}
mGen.setVoltageMagnitudeSetpoint(targetVpu);
} else {
mGen.setVoltageMagnitudeSetpoint(0);
Copy link
Member

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 ?

Copy link
Member

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>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

94.7% 94.7% Coverage
0.0% 0.0% Duplication

@annetill annetill merged commit 3ee9e8a into main Jul 10, 2023
@annetill annetill deleted the fix_matpower_pv_bus branch July 10, 2023 09:25
geofjamg added a commit that referenced this pull request Jul 10, 2023
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
(cherry picked from commit 3ee9e8a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants