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

IIDM ThreeWindingsTransformer RatedU0 modification #3016

Merged
merged 9 commits into from
May 28, 2024

Conversation

marqueslanauja
Copy link
Contributor

@marqueslanauja marqueslanauja commented May 15, 2024

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?

What kind of change does this PR introduce?

Feature

What is the current behavior?

What is the new behavior (if this is a feature change)?
Allows to modify the ratedU0 attribute of a threeWindingsTransformer.
As the structural ratio of the three legs must be preserved, the ratedU of the three legs must be adjusted.

To set the ratedU0 attribute I added a new method, setRatedU0, in the threeWindingsTransformer interface.

I feel more comfortable with the previous interface where ratedU0 can only be set when the transformer is created.

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:

Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
zamarrenolm and others added 2 commits May 23, 2024 12:28
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
@marqueslanauja marqueslanauja marked this pull request as ready for review May 23, 2024 11:14
private final String transformerId;
private final Double ratedU0;

public ThreeWindingsTransformerModification(String transformerId, Double ratedU0) {
Copy link
Member

@annetill annetill May 27, 2024

Choose a reason for hiding this comment

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

I am not sure we need a Double here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better double as only one attribute can be modified. Changed.

Copy link
Member

@annetill annetill left a comment

Choose a reason for hiding this comment

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

Thanks a lot, working very well!

Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Copy link

sonarcloud bot commented May 28, 2024

@annetill annetill merged commit 1708c40 into main May 28, 2024
6 checks passed
@annetill annetill deleted the iidm_threeWindingsTransformerModification_ratedU0 branch May 28, 2024 06:44
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.

3 participants