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

Network should have at least one PV bus #415

Merged
merged 6 commits into from
Jan 10, 2022
Merged

Conversation

geofjamg
Copy link
Member

@geofjamg geofjamg commented Jan 8, 2022

Signed-off-by: Geoffroy Jamgotchian geoffroy.jamgotchian@gmail.com

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • 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 ? If so, link to this issue using '#XXX' and skip the rest
No

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix

What is the current behavior? (You can also link to an open issue here)
The check that is supposed to discard networks when there is not at least one bus controlling voltage is buggy. It is done before discarding generators from voltage control in case of narrow reactive range.
I have seen this bug, running load flow on CGMES RealGrid (Divergence using classical flat start, because of no PV bus).

What is the new behavior (if this is a feature change)?
2 fixes:

  • Check is done after network loading, so that we have the definitive controlled buses.
  • When reactive limits are disabled in LoadFlowParameters, we don't check anything on reactive limits.

Does this PR introduce a breaking change or deprecate an API? If yes, check the following:

  • 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:

(if any of the questions/checkboxes don't apply, please delete them entirely)

Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
@geofjamg geofjamg requested a review from annetill January 8, 2022 20:55
@geofjamg
Copy link
Member Author

geofjamg commented Jan 8, 2022

@annetill I suspect, CGMES import has a bug, because with RealGrid, we only have minQ/maxQ generators limits with [0, 0] which means in IIDM that we have a valid "zero only" reactive range and load flow fails on it.

Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
# Conflicts:
#	src/main/java/com/powsybl/openloadflow/network/LfNetwork.java
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2022

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

97.5% 97.5% Coverage
0.0% 0.0% Duplication

@annetill annetill merged commit bf83e25 into main Jan 10, 2022
@annetill annetill deleted the fix_controlled_bus_check branch January 10, 2022 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants