powsybl / powsybl-core

A framework to build power system oriented software
https://www.powsybl.org
Mozilla Public License 2.0
123 stars 39 forks source link

[Load flow] Add warning when connecting voltage levels with different nominal voltages #2526

Open FredericSabot opened 1 year ago

FredericSabot commented 1 year ago

Feature

Currently, it is possible to accidentally connect, say a 400kV bus to a 220kV one which can lead to weird load flow results (in my case, I also obtain different results when using itools and pypowsybl, maybe because of different versions/default parameters).

Output a warning when computing a load flow for such invalid cases (I guess no warning should be given for connections between 380 and 400KV buses).

geofjamg commented 1 year ago

Do you have a small example with such a configuration and given / expected results?

FredericSabot commented 1 year ago

Upon further examination and installation of a more recent itools distribution, both tools give the expected results (results are actually independent of the nominal_v of buses, and only depend on the generator/transformer ratings. This was not the case with v1.4 of powsybl.

My point was mainly that a warning could be output when a line is used to connect voltage levels with significantly different nominal_v as this is most likely an error from the user.

Test_itools_old Test_pypowsybl eurostag_itools_old.txt eurostag_pypowsybl.txt