powsybl-open-loadflow
powsybl-open-loadflow copied to clipboard
Improve coupler detection
Please check if the PR fulfills these requirements (please use '[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)
- [x] 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, fixes #333
There's no so clean way to do it yet but still, the whole traverser is stopped if a terminal which is not a busbar is encountered
As @sylvlecl said in the issue, detecting couplers is probably not enough for identifying the contingencies that we cannot simulate correctly for now in open-loadflow. For instance, the network in PropagatedContingencyTest::testSwitchConnectedTo2wtAndBusbar
cannot be simulated properly due to the "B5"
switch, which is not detected as a coupler, as it is connected to a busbar on one side, and on a busbar and a transformer on the other side