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

SetGeneratorToLocalRegulation: set same targetV on all locally regulating generators #3287

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

quinarygio
Copy link
Contributor

@quinarygio quinarygio commented Jan 22, 2025

Please check if the PR fulfills these requirements

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

Does this PR already have an issue describing the problem?

Fixes #3231

What kind of change does this PR introduce?

What is the current behavior?

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

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

@olperr1 olperr1 changed the title SetGeneratorToLocalRegulation : set same targetV on all locally regul… SetGeneratorToLocalRegulation: set same targetV on all locally regulating generators Jan 23, 2025
@@ -66,19 +66,31 @@ private void setLocalRegulation(Generator generator, ReportNode reportNode) {

// Change the regulation (local instead of remote)
generator.setRegulatingTerminal(generator.getTerminal());
generator.setTargetV(localTargetV);

com.powsybl.iidm.network.Bus bus = generator.getTerminal().getVoltageLevel().getBusView().getBus("VL20_0");
Copy link
Member

Choose a reason for hiding this comment

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

Don't forget to change the bus detection here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
2 participants