From 6ebcfcbe8f5cbc65c73a411282298c0e8df26fab Mon Sep 17 00:00:00 2001 From: lisrte Date: Wed, 3 May 2023 15:01:05 +0200 Subject: [PATCH] Add phaseShifter_P connection to PhaseShifterI Signed-off-by: lisrte --- .../models/automatons/phaseshifters/PhaseShifterIAutomaton.java | 1 + dynawaltz/src/test/resources/phase_shifter_i_dyd.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/automatons/phaseshifters/PhaseShifterIAutomaton.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/automatons/phaseshifters/PhaseShifterIAutomaton.java index 3a6219c02..9f2923c0f 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/automatons/phaseshifters/PhaseShifterIAutomaton.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/automatons/phaseshifters/PhaseShifterIAutomaton.java @@ -32,6 +32,7 @@ protected List getVarConnectionsWithTransformer(TransformerModel return Arrays.asList( new VarConnection("phaseShifter_tap", connected.getStepVarName()), new VarConnection("phaseShifter_iMonitored", connected.getIMonitoredVarName()), + new VarConnection("phaseShifter_P", connected.getPMonitoredVarName()), new VarConnection("phaseShifter_AutomatonExists", connected.getDisableInternalTapChangerVarName()) ); } diff --git a/dynawaltz/src/test/resources/phase_shifter_i_dyd.xml b/dynawaltz/src/test/resources/phase_shifter_i_dyd.xml index d7be849b7..c72a7e8da 100644 --- a/dynawaltz/src/test/resources/phase_shifter_i_dyd.xml +++ b/dynawaltz/src/test/resources/phase_shifter_i_dyd.xml @@ -5,6 +5,7 @@ +