Skip to content

Conversation

@2nisb
Copy link

@2nisb 2nisb commented Nov 25, 2025

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)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Feature

What is the current behavior?

Open loadflow does not support DC detailed components from iidm

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

Open loadflow is able to modelize DC components (DcNode, DcLine, VoltageSourceConverter) and run loadflows on AC DC networks, with one unique jacobian matrix for the whole connected network.

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)

If you defined your own powsybl openloadflow implementation, you should:
Write your own implementations of LfAcDcConverter, LfVoltageSourceConverter and LfDcNode

Implement the following methods in your :

  • VoltageInitializer implementations:
    double getReactivePower(LfVoltageSourceConverter converter)
    double getActivePower(LfAcDcConverter converter)
    double getMagnitude(LfDcNode dcNode)
  • LfBus implementations:
    List<LfVoltageSourceConverter> getConverters()
    void addConverter(LfVoltageSourceConverter converter)

@2nisb 2nisb force-pushed the ac-dc-loadflow branch 2 times, most recently from 0f96108 to b6155c2 Compare November 25, 2025 13:27
JB-H and others added 26 commits November 25, 2025 14:29
…2 to keep the convention of positiveness of flow when injecting into DC node

Creation of an equation term for Pdc contributing to AC Active power injection because Pdc must be per-unitized when used on the AC part Pac = Pdc / SB

Signed-off-by: JB-H <[email protected]>
Signed-off-by: Denis Bonnand <[email protected]>
Signed-off-by: Denis Bonnand <[email protected]>
Signed-off-by: Denis Bonnand <[email protected]>
Denis Bonnand added 2 commits November 25, 2025 14:29
Signed-off-by: Denis Bonnand <[email protected]>
Signed-off-by: Denis Bonnand <[email protected]>
Denis Bonnand added 3 commits November 25, 2025 15:31
# Conflicts:
#	pom.xml
#	src/main/java/com/powsybl/openloadflow/network/impl/AbstractLfBus.java
# Conflicts:
#	src/main/java/com/powsybl/openloadflow/OpenLoadFlowParameters.java
#	src/test/java/com/powsybl/openloadflow/OpenLoadFlowParametersTest.java
#	src/test/resources/debug-parameters.json
Signed-off-by: Denis Bonnand <[email protected]>
Denis Bonnand added 4 commits November 25, 2025 17:22
Signed-off-by: Denis Bonnand <[email protected]>
Signed-off-by: Denis Bonnand <[email protected]>
Denis Bonnand added 3 commits November 26, 2025 11:49
Signed-off-by: Denis Bonnand <[email protected]>
Signed-off-by: Denis Bonnand <[email protected]>
Signed-off-by: Denis Bonnand <[email protected]>
@sonarqubecloud
Copy link

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.

4 participants