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

Remote reactive power control support #266

Merged
merged 50 commits into from
Sep 19, 2021
Merged

Conversation

obrix
Copy link
Member

@obrix obrix commented Apr 8, 2021

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Issue: #111

The goal of this PR is to introduce a new regulation mode based on remote reactive power.
It also use the new regulation mode for generator to be introduced in powsybl-core (Seen here )

What is the new behavior (if this is a feature change)?

TBD

Does this PR introduce a breaking change or deprecate an API? If yes, check the following:

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

@obrix obrix changed the title []WIP] Regulation mode rework and remote reactive power regulation [WIP] Regulation mode rework and remote reactive power regulation Apr 8, 2021
@obrix obrix force-pushed the regulationMode_rework branch from c87abcf to dc481b8 Compare April 8, 2021 10:07
@obrix obrix requested a review from annetill April 16, 2021 08:02
return targetValue;
}

public LfBus getControlledBus() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should have a getControlledBranch.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is still basically a copy of VoltageControl class. I will update that with the new information you have given me regarding DiscretePhaseControl class.

@obrix obrix force-pushed the regulationMode_rework branch from 1be58df to de092d4 Compare April 16, 2021 13:46
@obrix obrix force-pushed the regulationMode_rework branch from d95a785 to 13b2173 Compare June 18, 2021 14:03
obrix and others added 21 commits June 24, 2021 14:48
Signed-off-by: Bertrand Rix <[email protected]>
Signed-off-by: Bertrand Rix <[email protected]>
…faithful to what is implemented. Also rename the associated test.

Signed-off-by: Bertrand Rix <[email protected]>
… control whether reactivePowerRemoteControl is enabled or not. It is enabled by default.

Signed-off-by: Bertrand Rix <[email protected]>
…to add remoteReactive power equation terms.

Signed-off-by: Bertrand Rix <[email protected]>
Signed-off-by: Bertrand Rix <[email protected]>
Signed-off-by: Bertrand Rix <[email protected]>
Signed-off-by: Bertrand Rix <[email protected]>
Signed-off-by: Bertrand Rix <[email protected]>
@obrix obrix force-pushed the regulationMode_rework branch from 47f553d to 77cfd3b Compare June 24, 2021 13:03
@annetill annetill changed the title [WIP] Regulation mode rework and remote reactive power regulation Regulation mode rework and remote reactive power regulation Jun 25, 2021
@annetill annetill requested review from flo-dup and geofjamg August 9, 2021 15:33
@annetill annetill changed the title Regulation mode rework and remote reactive power regulation Remote reactive power control support Aug 9, 2021
annetill and others added 8 commits August 9, 2021 17:35
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
@@ -45,6 +45,9 @@ private static void createBusEquations(LfNetwork network, VariableSet<AcVariable
createDiscreteVoltageControlEquation(bus, variableSet, equationSystem);
}
Equation<AcVariableType, AcEquationType> v = equationSystem.createEquation(bus.getNum(), AcEquationType.BUS_V);
if (creationParameters.isReactivePowerControl()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same concern with this, it it kind of hack that is done after createVoltageControlEquations. We could have a single place to configure control coming from generators.

Copy link
Contributor

@flo-dup flo-dup Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understood properly what you expected @geofjamg: I put this reactive power control code in a createGeneratorControlEquations method, together with the content of createVoltageControlEquations, using the fact that on LfBus it is also either voltage control or reactive power control

annetill and others added 8 commits September 15, 2021 14:56
Signed-off-by: Florian Dupuy <[email protected]>
For both voltage control and remote reactive power control

Signed-off-by: Florian Dupuy <[email protected]>
Signed-off-by: Florian Dupuy <[email protected]>
Useless as reactivePowerControl not created if parameter false

Signed-off-by: Florian Dupuy <[email protected]>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

96.0% 96.0% Coverage
0.0% 0.0% Duplication

@geofjamg geofjamg merged commit d0c4bdc into master Sep 19, 2021
@geofjamg geofjamg deleted the regulationMode_rework branch September 19, 2021 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants