powsybl / powsybl-open-loadflow

An open source loadflow based on PowSyBl
Mozilla Public License 2.0
45 stars 7 forks source link

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

Open Hadrien-Godard opened 3 years ago

Hadrien-Godard commented 3 years ago
annetill commented 3 years ago

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:

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@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