Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Criterium to prevent cases where two PV buses have a different target and are linked with low impedance lines #258

Open
Hadrien-Godard opened this issue Mar 24, 2021 · 4 comments
Assignees

Comments

@Hadrien-Godard
Copy link
Member

  • Do you want to request a feature or report a bug?
    A feature.

  • What is the current behavior?
    KLU issues may occur when an AC loadflow is performed on a network where a pair of PV buses linked by low impedent lines have a different voltage target.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    It is not a bug.

  • What is the expected behavior?
    The expected behavior is to not launch the loadflow before having remove a voltage controler from the regulation (beginning with transformers and ending with generators).
    To detect this case, the following algorithm is proposed:
    1/ Detect the pairs of PV buses which are at the same voltage level and have different voltage targets,
    2/ Build the shortest path in term of line impedance between both PV buses.
    3/ If the length of the path exceeds V1*(V1-V2)/Qmax, there is no risk to perform the loadflow with both buses as PV-buses.
    4/ If the length of the path is under the criterium (V1*(V1-V2)/Qmax), one of the PV bus must be switched to a PQ-bus (transformers before genrators).
    V1 and V2 are the two voltage targets, V1 is the larger target. Qmax depends on the voltage level:
    100 kV: 400 MVar
    220 KV: 880 Mvar
    400 kV: 1600 MVar
    750 kV : 3000 MVar

  • What is the motivation / use case for changing the behavior?
    Avoiding crashes of loadflow runs.

@Djazouli Djazouli linked a pull request Mar 30, 2021 that will close this issue
5 tasks
@annetill
Copy link
Member

annetill commented Apr 27, 2021

I have tried to use this new feature on real test cases and it seems that we still have KLU issue. Furthermore, it does not solve the controlled buses that have a shared mixed control (generators + ratio tap changers), but for sure it was not the purpose of this PR but it makes me thinking about a new (old) approach of resolving generation and tap changers regulations in two step:

  • Simulating first the generation controls ;
  • For the generator regulating terminals close or common to tap changer regulating terminals, we switch off the voltage regulation and we model the voltage regulation of tap changers. For that, we have to increase the outer loops by an init() method that will change the network after loading (in deactivating the tap changer controls for example) and change the tap changer control outer loop with a small graphe analysis.

Thinking about tap changer regulation: I think that a good feature for debugging purpose could be to deactivate the tap changer regulation if the continuous regulation leads to a too important variation in absolute value (maybe > 0.6)? Then we could locked the tap changer at its initial step. We can also discard from regulation, variations that lead to a rho > 1.3 or < 0.6`, it could help.

@AnkurArohi
Copy link

How did you come to this conclusion @Hadrien-Godard

/ If the length of the path exceeds V1*(V1-V2)/Qmax, there is no risk to perform the loadflow with both buses as PV-buses.
4/ If the length of the path is under the criterium (V1*(V1-V2)/Qmax), one of the PV bus must be switched to a PQ-bus (transformers before genrators).

@Hadrien-Godard
Copy link
Member Author

Hi @AnkurArohi

One could take a transmission line, neglect shunt impedance and line resistance over line reactance (true for HV transmission lines), assume that the difference of voltage angles between both ends is close to zero, then, the reactive flow from end 1 to end 2 is given by :
V1*(V1-V2)/X, where X is the line reactance.

Qmax is taken as a maximum power that could realistically flow on a HV line, that is why its value depend on the voltage level of the line.

Now consider two PV-nodes separated by an impedance distance lesser than the criterium, and that have target voltages V1 and V2, then above formula assesses that approximately more than Qmax reactive power should flow on the lines to hold both voltage targets, which is unrealistic and might lead to a KLU issue in the load flow algorithm.

@AnkurArohi
Copy link

AnkurArohi commented May 18, 2022

@Hadrien-Godard
I understand 👍
But this is not the case for low voltage grid and people would like to use powsybl also in there so to accept a global solution I would still suggest adding a resistance of negligible value or a virtual switch

@annetill annetill changed the title Criterium to prevent cases where two PV buses have a different target and are linked with low impedent lines Criterium to prevent cases where two PV buses have a different target and are linked with low impedance lines Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants