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

Fix 3WT feeder info on voltage level graphs #567

Merged
merged 11 commits into from
Nov 24, 2023
Merged

Fix 3WT feeder info on voltage level graphs #567

merged 11 commits into from
Nov 24, 2023

Conversation

So-Fras
Copy link
Member

@So-Fras So-Fras commented Nov 21, 2023

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?
#565

What kind of change does this PR introduce?
Bug fix

What is the current behavior?
The feeder arrows of the 2 external legs of a three-winding transformer on a voltage level graph are displayed in the wrong direction and the feeder info values have the wrong sign.

What is the new behavior (if this is a feature change)?
The arrow direction and value sign are fixed.

Other information:
This is a quick patch. We are thinking of removing the feeder arrows on the 2 external legs of the three-winding transformer and only display the flows for the leg connected to the displayed voltage level.

@So-Fras So-Fras requested a review from flo-dup November 21, 2023 20:20
@So-Fras So-Fras requested a review from flo-dup November 24, 2023 12:57
Comment on lines 27 to 29
network.getThreeWindingsTransformer("3WT").getLeg1().getTerminal().setP(1400.0).setQ(400.0);
network.getThreeWindingsTransformer("3WT").getLeg2().getTerminal().setP(1400.0).setQ(400.0);
network.getThreeWindingsTransformer("3WT").getLeg3().getTerminal().setP(1400.0).setQ(400.0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you just put values whose sum is more or less equals to 0?

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@flo-dup flo-dup merged commit 76eacce into main Nov 24, 2023
6 checks passed
@flo-dup flo-dup deleted the arrow_3wt branch November 24, 2023 14:46
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