[WIP] Fix boundary does not have the same power on each side #3165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am looking for some help on this PR.
This is not urgent at all :)
Thank you in advance !
TODO:
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
I have an issue that after an AC load flow, power on each side of the boundary may be different.
tieLine.getDanglingLine1().getBoundary().getP() != tieLine.getDanglingLine2().getBoundary().getP()
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
The current behavior is that by default the shunt admittance will be split.
This is wrong with a UCT network. (check this for other formats ? CGMES ?)
What is the new behavior (if this is a feature change)?
I found strange to use a line equivalent model (ie splitting the shunt admittance) for a dangling line.
So I tried to disable this behavior to fix the issue and it seems to work.
A new parameter
hasShuntAdmittanceLineEquivalentModel
has been added to specify if a dangling line has a shunt admittance line equivalent model or not.This parameter has no default value to see its impacts for the moment.
I was not able to fix such default value (
true
should keep the old behavior, but I disagree with this behavior).I added a parameter for backward compatibility issues XIIDM.
I found this PR #1728 that gives some details about the history.
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: