-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support of BusbarSectionContingency for everything #667
Conversation
Kudos, SonarCloud Quality Gate passed! |
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
assertEquals(-3.895, postContingencyResult.getNetworkResult().getBranchResult("L1").getP2(), LoadFlowAssert.DELTA_POWER); | ||
assertEquals(603.769, postContingencyResult.getNetworkResult().getBranchResult("L2").getP1(), LoadFlowAssert.DELTA_POWER); | ||
assertEquals(-596.104, postContingencyResult.getNetworkResult().getBranchResult("L2").getP2(), LoadFlowAssert.DELTA_POWER); | ||
assertEquals(0.099, postContingencyResult.getNetworkResult().getBranchResult("L1").getP1(), LoadFlowAssert.DELTA_POWER); |
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.
Because I have changed minP and maxP.
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
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.
ok for me
note: to be continued with bus contingencies after powsybl-core 5.1.0 RC (powsybl-core support of BUS contingencies were added in powsybl/powsybl-core#2416)
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
…l/powsybl-open-loadflow into busbarsection-contingency
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
@@ -287,6 +295,17 @@ public Optional<LfContingency> toLfContingency(LfNetwork network) { | |||
.filter(LfBranch::isConnectedAtBothSides) | |||
.forEach(connectivity::removeEdge); | |||
|
|||
// FIXME |
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.
@geofjamg to ne removed after merging your big PR about zero impedance lines
# Conflicts: # src/main/java/com/powsybl/openloadflow/network/impl/ContingencyTripping.java # src/main/java/com/powsybl/openloadflow/network/impl/PropagatedContingency.java # src/test/java/com/powsybl/openloadflow/sa/OpenSecurityAnalysisTest.java
# Conflicts: # src/test/java/com/powsybl/openloadflow/sa/OpenSecurityAnalysisTest.java
@@ -325,8 +344,11 @@ public Optional<LfContingency> toLfContingency(LfNetwork network) { | |||
Set<LfGenerator> generators = new HashSet<>(1); | |||
for (String generatorId : generatorIdsToLose) { | |||
LfGenerator generator = network.getGeneratorById(generatorId); | |||
if (generator != null) { // could be in another component | |||
generators.add(generator); | |||
if (generator != null) { // could be in another component FIXME |
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.
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)Does this PR already have an issue describing the problem ? If so, link to this issue using
'#XXX'
and skip the restMaybe :-)
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
This PR is a trial, to see what is missing in the API and what kind of difficulties we can met in the implementation. I am only testing on node/breaker topology network for the moment, but I have in mind to test on bus/breaker topology through the busId.
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API? If yes, check the following:
Other information:
(if any of the questions/checkboxes don't apply, please delete them entirely)