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

add regulating point for transformers #479

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

Conversation

EtienneLt
Copy link
Contributor

@EtienneLt EtienneLt commented Nov 20, 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?
no

What kind of change does this PR introduce?
it is a new feature and a bug fix

What is the current behavior?
when ratio tap changer and phase tap changer for 2 and 3 windings transformers regulate in remote,
if the regulated equipment is deleted they still regulate on the deleted element.

What is the new behavior (if this is a feature change)?
add regulating point for 2 and 3 windings transformers

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

  • Yes
  • No

Other information:
The list of regulating equipments in the equipment that can be regulated change from

Map<String, ResourceType>

to

List<RegulatingEquipmentIdentifier>

where is a class containing String, ResourceType because RatioTapChanger and PhaseTapChanger regulating point have the same regulatingEquipment id which is the transformerId and can not be distinguished with the map if they regulate the same equipment

@EtienneLt EtienneLt requested a review from antoinebhs November 20, 2024 10:27
@EtienneLt EtienneLt self-assigned this Nov 20, 2024
@EtienneLt EtienneLt requested a review from jonenst November 20, 2024 10:34
Copy link
Collaborator

@antoinebhs antoinebhs left a comment

Choose a reason for hiding this comment

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

Some first comments

@EtienneLt EtienneLt force-pushed the add-regulating-point-for-transformers branch from a7c9927 to a9562d3 Compare December 4, 2024 15:55
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
@EtienneLt EtienneLt force-pushed the add-regulating-point-for-transformers branch from 8ccff89 to 1217fdd Compare December 10, 2024 13:19
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
@antoinebhs
Copy link
Collaborator

Fix sonar issues

Comment on lines +49 to +51
// for three windings transformer the local side will be the leg number
// for two windings transformer the ratio is regulating on side 2
ThreeSides side = ThreeSides.TWO;
Copy link
Collaborator

Choose a reason for hiding this comment

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

still not sure where does this come from?

Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
@antoinebhs
Copy link
Collaborator

My last comment is that I'm not sure why we hard code:
// for two windings transformer the ratio is regulating on side 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants