Skip to content

Support three windings transformer in terminals connection action#1338

Open
obrix wants to merge 8 commits intomainfrom
support_3wt_terminals_connection_action
Open

Support three windings transformer in terminals connection action#1338
obrix wants to merge 8 commits intomainfrom
support_3wt_terminals_connection_action

Conversation

@obrix
Copy link
Member

@obrix obrix commented Jan 30, 2026

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 issue

What kind of change does this PR introduce?

Support three windings transformers in terminals connection action

What is the current behavior?

Three windings transformers in terminals connection action raise an exception

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

Three windings transformers are now supported and the three related leg branches can be opened or closed using the action

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)

Other information:

@obrix obrix force-pushed the support_3wt_terminals_connection_action branch from 3da2dec to 74d7459 Compare February 26, 2026 09:20
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
This reverts commit dacca70.

Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
@obrix obrix force-pushed the support_3wt_terminals_connection_action branch from 50334e7 to a06c465 Compare February 26, 2026 09:46
@sonarqubecloud
Copy link

SecurityAnalysisResult result = runSecurityAnalysis(network, contingencies, Collections.emptyList(), securityAnalysisParameters,
operatorStrategies, actions, ReportNode.NO_OP);

assertTrue(result.getOperatorStrategyResults().stream().findAny().isPresent());
Copy link
Member

Choose a reason for hiding this comment

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

add assertions on LINE_12 flows via state monitors, here we can see it does not work as expected, because the 3WT opening should reduce LINE_12 flows to zero in this case, and we get 16 MW.

in the logs we see only leg3 is opened - all three legs should be opened:

INFO  18:29:33.146 c.p.o.s.AbstractSecurityAnalysis | Start operator strategy Strategy3WT after contingency 'LOAD_4' simulation on network {CC0 SC0}
TRACE 18:29:33.148 c.p.o.n.LfNetworkListenerTracer | onDisableChange(elementType=BUS, elementId='VL_4_0', disabled=true)
TRACE 18:29:33.150 c.p.o.n.LfNetworkListenerTracer | onDisableChange(elementType=BRANCH, elementId='T3wT_leg_3', disabled=true)

This is because LfTerminalsConnectionAction extends AbstractLfBranchAction, and AbstractLfBranchAction is currently able to handle only one branch, not multiple branches

Copy link
Member

@jeandemanged jeandemanged Feb 26, 2026

Choose a reason for hiding this comment

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

also improve this doc section to mention that only branches and three-windings transformer are supported for TerminalsConnectionAction: https://powsybl.readthedocs.io/projects/powsybl-open-loadflow/en/latest/security/inputs.html#implemented-remedial-actions

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.

3 participants