powsybl-open-loadflow icon indicating copy to clipboard operation
powsybl-open-loadflow copied to clipboard

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

Open Hadrien-Godard opened this issue 3 years ago • 4 comments

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

Hadrien-Godard avatar Mar 24 '21 09:03 Hadrien-Godard

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.

annetill avatar Apr 27 '21 07:04 annetill

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

AnkurArohi avatar May 17 '22 14:05 AnkurArohi

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.

Hadrien-Godard avatar May 18 '22 15:05 Hadrien-Godard

@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

AnkurArohi avatar May 18 '22 19:05 AnkurArohi