powsybl-core
powsybl-core copied to clipboard
Add a method to know if a tap changer is at its max or min tap position
- Do you want to request a feature or report a bug?
A new feature.
- What is the current behavior?
You have three methods in a RatioTapChanger
or in a PhaseTapChanger
that are getTapPosition
, getHighTapPosition
and getLowTapPosition
, and with these three method we can know if the tap changer is at its max or min. I think that it could be interested to think about a more convient method that will say if the tap changer has reached its min or its max after a calculation for example.
-
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
-
What is the expected behavior?
-
What is the motivation / use case for changing the behavior?
-
Please tell us about your environment:
- PowSyBl Version: ...
- OS Version: ...
-
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)
(if a question doesn't apply, you can delete it)
I think this information could go into loadflow and security analysis results, like other information about regulations.
If we do it in the network:
- it's just a "shortcut" method, which we have avoided in other places (like shortcuts for
getTerminal().getP()
, so not sure it would be very consistent - more importantly, just checking if the tap is equal to min/max does not mean that it has been blocked during a calculation, it does not necessarily mean that the regulation wanted to go further
Ok ! Thanks !