pypowsybl icon indicating copy to clipboard operation
pypowsybl copied to clipboard

Security Analysis module gives wrong loadflow results on PST outages

Open nicow-elia opened this issue 8 months ago • 0 comments

Describe the current behavior

Using DC loadflows, when outaging a PST through pypowsybl.security, the loadflow results are incorrect. Using net.remove_elements to remove the PST completely from the grid gives the correct post-outage loadflows, however the result in the security module are different. I am reasonably certain that the results using remove_elements are the correct ones as they match with our internal lodf based computation.

Describe the expected behavior

Loadflows p1_sec and p1_ref are equal up to floating point precision.

Describe the steps

Code to replicate available in this gist.

Environment

  • pypowsybl 1.3.1 (latest from pip, I think it should relate to 1.5.1 in this repository but pip freeze gives 1.3.1 as result)
  • Python 3.10

Relevant Log Output

image

Extra Information

No response

nicow-elia avatar Jun 04 '24 10:06 nicow-elia