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 hvdc and default shunt models #191

Merged
merged 37 commits into from
Mar 23, 2023
Merged

Add hvdc and default shunt models #191

merged 37 commits into from
Mar 23, 2023

Conversation

Lisrte
Copy link
Contributor

@Lisrte Lisrte commented Mar 17, 2023

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • 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 ? If so, link to this issue using '#XXX' and skip the rest

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

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

Does this PR introduce a breaking change or deprecate an API? If yes, check the following:

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

(if any of the questions/checkboxes don't apply, please delete them entirely)

Lisrte and others added 30 commits February 27, 2023 11:38
DynaWaltzContext returns directly the dynamicModel linked to the static id or a default model/exception if not found depending on the method called

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Add side suffix value in CurrentLimitAutomaton name

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Handle MacroConnect index
Remove connector commutativity and ConnectedModels
Connect StandardBus only with DefaultModel

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Handle MacroConnect index
Remove connector commutativity and ConnectedModels
Connect StandardBus only with DefaultModel

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
…into refactor_macroconnect_creation

# Conflicts:
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/lines/StandardLine.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/utils/BusUtils.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/xml/DynaWaltzTestUtil.java
#	dynawaltz/src/test/resources/dyd.xml
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
# Conflicts:
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzContext.java
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/OmegaRef.java
#	dynawaltz/src/test/java/com/powsybl/dynawaltz/models/OmegaRefTest.java
#	dynawaltz/src/test/resources/dyd.xml
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
…dels

# Conflicts:
#	dynawaltz/src/main/java/com/powsybl/dynawaltz/models/AbstractBlackBoxModel.java
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
@Lisrte Lisrte requested a review from flo-dup March 17, 2023 14:44
Lisrte added 2 commits March 17, 2023 16:07
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Lisrte and others added 2 commits March 21, 2023 17:39
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Lisrte added 2 commits March 22, 2023 11:46
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that the DefaultShuntModel has been added, I just realize, shouldn't we protect the StandardBus from being connected to any default model?
We should add checkLinkedDynamicModels(bus.getShuntCompensatorStream(), "shunt", context); to the checks, or do it on all type of connectables with something like bus.getConnectedTerminalStream().map(Terminal::getConnectable).forEach(c -> checkLinkedDynamicModels(c, context));

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

54.2% 54.2% Coverage
0.0% 0.0% Duplication

@flo-dup flo-dup merged commit deb8d04 into main Mar 23, 2023
@flo-dup flo-dup deleted the add_hvdc_shunts_models branch March 23, 2023 10:25
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.

3 participants