-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve docs and tests for PTDF calculation in Flow Decomposition (#159)
Improve docs and tests about PTDF calculation respecting the flow sign convention. Signed-off-by: Caio Luke <caioluke97@gmail.com>
- Loading branch information
Showing
6 changed files
with
155 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
flow-decomposition/src/test/resources/com/powsybl/flow_decomposition/ptdf_instability.xiidm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<iidm:network xmlns:iidm="http://www.powsybl.org/schema/iidm/1_13" xmlns:ld="http://www.itesla_project.eu/schema/iidm/ext/load_detail/1_0" xmlns:refpri="http://www.powsybl.org/schema/iidm/ext/reference_priorities/1_0" xmlns:apc="http://www.powsybl.org/schema/iidm/ext/active_power_control/1_2" id="ptdf-instability" caseDate="2024-09-30T12:53:22.809Z" forecastDistance="0" sourceFormat="code" minimumValidationLevel="STEADY_STATE_HYPOTHESIS"> | ||
<iidm:substation id="b1_UY_s" country="UY"> | ||
<iidm:voltageLevel id="b1_UY_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b1_UY" name="Bus 1 UY"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:danglingLine id="l_UYAR_UY" name="Halfline UY - AR" p0="0.0" q0="0.0" r="1.0" x="5.0" g="0.0" b="1.0E-4" bus="b1_UY" connectableBus="b1_UY" pairingKey="t_UY_AR"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:substation id="b1_PY_s" country="PY"> | ||
<iidm:voltageLevel id="b1_PY_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b1_PY" name="Bus 1 PY"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:generator id="gen_PY" name="Gen PY" energySource="OTHER" minP="-1.0" maxP="1.0" voltageRegulatorOn="true" targetP="0.0" targetV="220.0" targetQ="0.0" bus="b1_PY" connectableBus="b1_PY"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:substation id="b2_PY_s" country="PY"> | ||
<iidm:voltageLevel id="b2_PY_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b2_PY" name="Bus 2 PY"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:danglingLine id="l_PYBR_PY" name="Halfline PY - BR" p0="0.0" q0="0.0" r="1.0" x="5.0" g="0.0" b="1.0E-4" bus="b2_PY" connectableBus="b2_PY" pairingKey="t_PY_BR"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:substation id="b1_AR_s" country="AR"> | ||
<iidm:voltageLevel id="b1_AR_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b1_AR" name="Bus 1 AR"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:generator id="gen_AR" name="Gen AR" energySource="OTHER" minP="0.0" maxP="105.0" voltageRegulatorOn="true" targetP="104.5" targetV="220.0" targetQ="0.0" bus="b1_AR" connectableBus="b1_AR"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:substation id="b2_AR_s" country="AR"> | ||
<iidm:voltageLevel id="b2_AR_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b2_AR" name="Bus 2 AR"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:load id="load_AR" name="Load AR" loadType="UNDEFINED" p0="100.0" q0="0.0" bus="b2_AR" connectableBus="b2_AR"/> | ||
<iidm:danglingLine id="l_UYAR_AR" name="Halfline AR - UY" p0="0.0" q0="0.0" r="1.0" x="5.0" g="0.0" b="1.0E-4" bus="b2_AR" connectableBus="b2_AR" pairingKey="t_UY_AR"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:substation id="b3_AR_s" country="AR"> | ||
<iidm:voltageLevel id="b3_AR_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b3_AR" name="Bus 3 AR"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:danglingLine id="l_ARBR_AR" name="Halfline AR - BR" p0="0.0" q0="0.0" r="1.0" x="5.0" g="0.0" b="1.0E-4" bus="b3_AR" connectableBus="b3_AR" pairingKey="t_AR_BR"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:substation id="b1_BR_s" country="BR"> | ||
<iidm:voltageLevel id="b1_BR_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b1_BR" name="Bus 1 BR"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:danglingLine id="l_PYBR_BR" name="Halfline BR - PY" p0="0.0" q0="0.0" r="1.0" x="5.0" g="0.0" b="1.0E-4" bus="b1_BR" connectableBus="b1_BR" pairingKey="t_PY_BR"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:substation id="b2_BR_s" country="BR"> | ||
<iidm:voltageLevel id="b2_BR_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b2_BR" name="Bus 2 BR"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:load id="load_BR" name="Load BR" loadType="UNDEFINED" p0="100.0" q0="0.0" bus="b2_BR" connectableBus="b2_BR"/> | ||
<iidm:danglingLine id="l_ARBR_BR" name="Halfline BR - AR" p0="0.0" q0="0.0" r="1.0" x="5.0" g="0.0" b="1.0E-4" bus="b2_BR" connectableBus="b2_BR" pairingKey="t_AR_BR"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:substation id="b3_BR_s" country="BR"> | ||
<iidm:voltageLevel id="b3_BR_vl" nominalV="220.0" topologyKind="BUS_BREAKER"> | ||
<iidm:busBreakerTopology> | ||
<iidm:bus id="b3_BR" name="Bus 3 BR"/> | ||
</iidm:busBreakerTopology> | ||
<iidm:generator id="gen_BR" name="Gen BR" energySource="OTHER" minP="0.0" maxP="105.0" voltageRegulatorOn="true" targetP="100.0" targetV="220.0" targetQ="0.0" bus="b3_BR" connectableBus="b3_BR"/> | ||
</iidm:voltageLevel> | ||
</iidm:substation> | ||
<iidm:line id="l_1PY_2PY" name="Line PY 1 - PY 2" r="2.0" x="10.0" g1="0.0" b1="1.0E-4" g2="0.0" b2="1.0E-4" voltageLevelId1="b1_PY_vl" bus1="b1_PY" connectableBus1="b1_PY" voltageLevelId2="b2_PY_vl" bus2="b2_PY" connectableBus2="b2_PY"/> | ||
<iidm:line id="l_2AR_1AR" name="Line AR 2 - AR 1" r="2.0" x="10.0" g1="0.0" b1="1.0E-4" g2="0.0" b2="1.0E-4" voltageLevelId1="b2_AR_vl" bus1="b2_AR" connectableBus1="b2_AR" voltageLevelId2="b1_AR_vl" bus2="b1_AR" connectableBus2="b1_AR"/> | ||
<iidm:line id="l_3AR_2AR" name="Line AR 3 - AR 2" r="2.0" x="10.0" g1="0.0" b1="1.0E-4" g2="0.0" b2="1.0E-4" voltageLevelId1="b3_AR_vl" bus1="b3_AR" connectableBus1="b3_AR" voltageLevelId2="b2_AR_vl" bus2="b2_AR" connectableBus2="b2_AR"/> | ||
<iidm:line id="l_2BR_3BR" name="Line BR 2 - BR 3" r="2.0" x="10.0" g1="0.0" b1="1.0E-4" g2="0.0" b2="1.0E-4" voltageLevelId1="b2_BR_vl" bus1="b2_BR" connectableBus1="b2_BR" voltageLevelId2="b3_BR_vl" bus2="b3_BR" connectableBus2="b3_BR"/> | ||
<iidm:line id="l_1BR_2BR" name="Line BR 1 - BR 2" r="2.0" x="10.0" g1="0.0" b1="1.0E-4" g2="0.0" b2="1.0E-4" voltageLevelId1="b1_BR_vl" bus1="b1_BR" connectableBus1="b1_BR" voltageLevelId2="b2_BR_vl" bus2="b2_BR" connectableBus2="b2_BR"/> | ||
<iidm:tieLine id="t_PY_BR" name="Tieline PY - BR" danglingLineId1="l_PYBR_PY" danglingLineId2="l_PYBR_BR"/> | ||
<iidm:tieLine id="t_UY_AR" name="Tieline UY - AR" danglingLineId1="l_UYAR_UY" danglingLineId2="l_UYAR_AR"/> | ||
<iidm:tieLine id="t_AR_BR" name="Tieline AR - BR" danglingLineId1="l_ARBR_AR" danglingLineId2="l_ARBR_BR"/> | ||
</iidm:network> |