powsybl-open-loadflow
powsybl-open-loadflow copied to clipboard
[WIP] Set NO_CALCULATION status for dead components in LoadFlowResult-s
Please check if the PR fulfills these requirements
- [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?
No
What kind of change does this PR introduce?
Feature
What is the current behavior?
Synchronous Components (islands) without any generator connected are causing many ERROR logs to be reported. Hundreds of errors are logged on real case large networks when OLF configured to solve all components which is quite inconvenient, and not really an error.
What is the new behavior (if this is a feature change)? Synchronous Components (islands) without any generator are now flagged as dead.
With new LoadFlowResult API (see https://github.com/powsybl/powsybl-core/pull/2767) and #918 we new report new NO_CALCULATION status for dead islands.
Notes:
- DC Load Flow with this change will not solve islands without generators anymore. It was solving them before - in my opinion this is not a regular use case
- AC Load Flow: islands with generators but no voltage regulation are not considered dead, a FAILED status is reported in the case of generators present but no voltage regulation.
Does this PR introduce a breaking change or deprecate an API?
- [x] No
If yes, please check if the following requirements are fulfilled
n/a
What changes might users need to make in their application due to this PR? (migration steps)
n/a
Other information:
n/a
Quality Gate passed
Issues
29 New issues
0 Accepted issues
Measures
0 Security Hotspots
97.8% Coverage on New Code
0.0% Duplication on New Code