powsybl-core icon indicating copy to clipboard operation
powsybl-core copied to clipboard

Add a method to know if a tap changer is at its max or min tap position

Open annetill opened this issue 3 years ago • 1 comments

  • 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)

annetill avatar Feb 11 '22 07:02 annetill

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

sylvlecl avatar Feb 17 '22 12:02 sylvlecl

Ok ! Thanks !

annetill avatar Oct 11 '23 14:10 annetill