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

Detects coupler when propagating contingency in sensitivity analysis #303

Merged
merged 8 commits into from
May 6, 2021

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented May 5, 2021

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 ?
Yes, first step to solve issue #289. This doesn't fix that issue, but detects the problematic contingency, gives a warning and does not add it to the propagated contingencies to avoid giving wrong results.

@flo-dup flo-dup force-pushed the coupler_propagating_contingency branch from 35e2073 to 1dcd82d Compare May 5, 2021 08:33
@flo-dup flo-dup changed the title Coupler when propagating contingency Detects coupler when propagating contingency in sensitivity analysis May 5, 2021
@flo-dup flo-dup requested a review from annetill May 5, 2021 09:30
Hadrien-Godard and others added 7 commits May 5, 2021 11:36
Signed-off-by: Hadrien <[email protected]>
Done for sensitivity analysis, not for security analysis

Signed-off-by: Florian Dupuy <[email protected]>
Signed-off-by: Florian Dupuy <[email protected]>
Signed-off-by: Florian Dupuy <[email protected]>
Add switches set

Signed-off-by: Florian Dupuy <[email protected]>
@flo-dup flo-dup force-pushed the coupler_propagating_contingency branch from c8cc735 to f46f5d6 Compare May 5, 2021 09:37
return new PropagatedContingency(contingency, index, branchIdsToOpen, hvdcIdsToOpen, switchesToOpen, terminalsToDisconnect);
}

private static boolean isCoupler(Switch s) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hasBusBarSectionCoulper could be better here, what do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for me coupler already means busbar section coupler

propagatedContingencies.add(propagatedContingency);
} else {
// Sensitivity analysis works in bus view, it cannot deal (yet) with contingencies whose propagation encounters a coupler
LOGGER.warn("Propagated contingency '{}' not processed: coupler '{}' has been encountered while propagating the contingency",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if coupler has a meaning in English indeed. But for sure you have to precise that it is between two bus bar sections.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coupler is a well known term in power system

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you skip the contingency, so it means that the result will not contain this contingency. The other solution is to set a predefined result. What is preferable?

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 6, 2021

Kudos, SonarCloud Quality Gate passed!

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

94.4% 94.4% Coverage
0.0% 0.0% Duplication

@flo-dup flo-dup merged commit 9f387d3 into master May 6, 2021
@flo-dup flo-dup deleted the coupler_propagating_contingency branch May 6, 2021 15:59
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.

5 participants