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

Support multiple generators connected to same bus controlling voltage of a different bus

Open geofjamg opened this issue 3 years ago • 2 comments

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

  • What is the current behavior? If we have several generators connected to same bus but controlling voltage of different buses we have the following exception:

"Generators [_ee520ab7-786a-499b-a3ae-d96fb5b12596, _9064117a-2da4-46db-b1ee-f60810974a76] connected to bus '_55207717-1417-458c-9b5f-e67a3eedc46a_0' must control the voltage of the same bus".
  • What is the expected behavior? We can support this case by just adaping the LF network creation (so without any change in the equations) by just creating FakeLfBus in addition to real LfBus for other generators connected to the bus and by linking FakeLfBus to real LfBus with a FakeLfSwitch. Fake or fictitious in that case means there is no equivalent object in IIDM.

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment:

    • PowSyBl Version: ...
    • OS Version: ...
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)

(if a question doesn't apply, you can delete it)

geofjamg avatar Jun 13 '22 07:06 geofjamg

@annetill after thinking again and prototyping the proposed solution (not working...) I am wondering if the real and clean solution is to move controller from LfBus to LfGenerator. So the VoltageControl class will reference LFGenerators as controllers. voltageControlEnabled will move to LfGenerator too. It will kind of complexify some part of the code but it will be probably cleaner as controller are LfGenerator and not LfBus (On LfBus it is an aggregated view). And this is exactly what we did for ShuntVoltageControl where controllers are LfShunt and not LfBus.

geofjamg avatar Aug 29 '22 10:08 geofjamg

Can I close this issue?

annetill avatar Dec 12 '23 15:12 annetill