-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Signal N and signal N generators * Add integration tests * Add documentation Signed-off-by: lisrte <[email protected]>
- Loading branch information
Showing
18 changed files
with
620 additions
and
11 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
118 changes: 118 additions & 0 deletions
118
dynawo-integration-tests/src/test/resources/ieee14/signal_n/IEEE14.par
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,118 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<parametersSet xmlns="http://www.rte-france.com/dynawo"> | ||
<set id="Network"> | ||
<par type="DOUBLE" name="capacitor_no_reclosing_delay" value="300"/> | ||
<par type="DOUBLE" name="dangling_line_currentLimit_maxTimeOperation" value="90"/> | ||
<par type="DOUBLE" name="line_currentLimit_maxTimeOperation" value="90"/> | ||
<par type="DOUBLE" name="load_Tp" value="90"/> | ||
<par type="DOUBLE" name="load_Tq" value="90"/> | ||
<par type="DOUBLE" name="load_alpha" value="1"/> | ||
<par type="DOUBLE" name="load_alphaLong" value="0"/> | ||
<par type="DOUBLE" name="load_beta" value="2"/> | ||
<par type="DOUBLE" name="load_betaLong" value="0"/> | ||
<par type="BOOL" name="load_isControllable" value="false"/> | ||
<par type="BOOL" name="load_isRestorative" value="false"/> | ||
<par type="DOUBLE" name="load_zPMax" value="100"/> | ||
<par type="DOUBLE" name="load_zQMax" value="100"/> | ||
<par type="DOUBLE" name="reactance_no_reclosing_delay" value="0"/> | ||
<par type="DOUBLE" name="transformer_currentLimit_maxTimeOperation" value="90"/> | ||
<par type="DOUBLE" name="transformer_t1st_HT" value="60"/> | ||
<par type="DOUBLE" name="transformer_t1st_THT" value="30"/> | ||
<par type="DOUBLE" name="transformer_tNext_HT" value="10"/> | ||
<par type="DOUBLE" name="transformer_tNext_THT" value="10"/> | ||
<par type="DOUBLE" name="transformer_tolV" value="0.015"/> | ||
</set> | ||
<set id="GenericRestorativeLoad"> | ||
<par type="DOUBLE" name="load_Alpha" value="1.5"/> | ||
<par type="DOUBLE" name="load_Beta" value="2.5"/> | ||
<par type="DOUBLE" name="load_UMaxPu" value="1.05"/> | ||
<par type="DOUBLE" name="load_UMinPu" value="0.95"/> | ||
<par type="DOUBLE" name="load_tFilter" value="10"/> | ||
<reference type="DOUBLE" name="load_P0Pu" origData="IIDM" origName="p_pu"/> | ||
<reference type="DOUBLE" name="load_Q0Pu" origData="IIDM" origName="q_pu"/> | ||
<reference type="DOUBLE" name="load_U0Pu" origData="IIDM" origName="v_pu"/> | ||
<reference type="DOUBLE" name="load_UPhase0" origData="IIDM" origName="angle_pu"/> | ||
</set> | ||
<set id="Generator1"> | ||
<par type="DOUBLE" name="generator_PMin" value="0"/> | ||
<par type="DOUBLE" name="generator_PMax" value="1090"/> | ||
<par type="DOUBLE" name="generator_PNom" value="1090"/> | ||
<par type="DOUBLE" name="generator_QMin" value="-10000"/> | ||
<par type="DOUBLE" name="generator_QMax" value="10000"/> | ||
<par type="DOUBLE" name="generator_KGover" value="1"/> | ||
<reference name="generator_P0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_Q0Pu" origData="IIDM" origName="q_pu" type="DOUBLE"/> | ||
<reference name="generator_U0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
<reference name="generator_UPhase0" origData="IIDM" origName="angle_pu" type="DOUBLE"/> | ||
<reference name="generator_PRef0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_URef0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
</set> | ||
<set id="Generator2"> | ||
<par type="DOUBLE" name="generator_PMin" value="0"/> | ||
<par type="DOUBLE" name="generator_PMax" value="1008"/> | ||
<par type="DOUBLE" name="generator_PNom" value="1008"/> | ||
<par type="DOUBLE" name="generator_QMin" value="-10000"/> | ||
<par type="DOUBLE" name="generator_QMax" value="10000"/> | ||
<par type="DOUBLE" name="generator_KGover" value="1"/> | ||
<reference name="generator_P0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_Q0Pu" origData="IIDM" origName="q_pu" type="DOUBLE"/> | ||
<reference name="generator_U0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
<reference name="generator_UPhase0" origData="IIDM" origName="angle_pu" type="DOUBLE"/> | ||
<reference name="generator_PRef0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_URef0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
</set> | ||
<set id="Generator3"> | ||
<par type="DOUBLE" name="generator_PMin" value="0"/> | ||
<par type="DOUBLE" name="generator_PMax" value="1485"/> | ||
<par type="DOUBLE" name="generator_PNom" value="1485"/> | ||
<par type="DOUBLE" name="generator_QMin" value="-10000"/> | ||
<par type="DOUBLE" name="generator_QMax" value="10000"/> | ||
<par type="DOUBLE" name="generator_KGover" value="1"/> | ||
<reference name="generator_P0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_Q0Pu" origData="IIDM" origName="q_pu" type="DOUBLE"/> | ||
<reference name="generator_U0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
<reference name="generator_UPhase0" origData="IIDM" origName="angle_pu" type="DOUBLE"/> | ||
<reference name="generator_PRef0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_URef0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
</set> | ||
<set id="Generator6"> | ||
<par type="DOUBLE" name="generator_PMin" value="0"/> | ||
<par type="DOUBLE" name="generator_PMax" value="74.4"/> | ||
<par type="DOUBLE" name="generator_PNom" value="74.4"/> | ||
<par type="DOUBLE" name="generator_QMin" value="-10000"/> | ||
<par type="DOUBLE" name="generator_QMax" value="10000"/> | ||
<par type="DOUBLE" name="generator_KGover" value="1"/> | ||
<reference name="generator_P0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_Q0Pu" origData="IIDM" origName="q_pu" type="DOUBLE"/> | ||
<reference name="generator_U0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
<reference name="generator_UPhase0" origData="IIDM" origName="angle_pu" type="DOUBLE"/> | ||
<reference name="generator_PRef0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_URef0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
</set> | ||
<set id="Generator8"> | ||
<par type="DOUBLE" name="generator_PMin" value="0"/> | ||
<par type="DOUBLE" name="generator_PMax" value="228"/> | ||
<par type="DOUBLE" name="generator_PNom" value="228"/> | ||
<par type="DOUBLE" name="generator_QMin" value="-10000"/> | ||
<par type="DOUBLE" name="generator_QMax" value="10000"/> | ||
<par type="DOUBLE" name="generator_KGover" value="1"/> | ||
<reference name="generator_P0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_Q0Pu" origData="IIDM" origName="q_pu" type="DOUBLE"/> | ||
<reference name="generator_U0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
<reference name="generator_UPhase0" origData="IIDM" origName="angle_pu" type="DOUBLE"/> | ||
<reference name="generator_PRef0Pu" origData="IIDM" origName="p_pu" type="DOUBLE"/> | ||
<reference name="generator_URef0Pu" origData="IIDM" origName="v_pu" type="DOUBLE"/> | ||
</set> | ||
<set id="DisconnectLine"> | ||
<par type="DOUBLE" name="event_tEvent" value="100"/> | ||
<par type="BOOL" name="event_disconnectOrigin" value="true"/> | ||
<par type="BOOL" name="event_disconnectExtremity" value="true"/> | ||
</set> | ||
<set id="SimplifiedSolver"> | ||
<par type="DOUBLE" name="hMin" value="1"/> | ||
<par type="DOUBLE" name="hMax" value="10"/> | ||
<par type="DOUBLE" name="kReduceStep" value="0.5"/> | ||
<par type="INT" name="maxNewtonTry" value="10"/> | ||
<par type="STRING" name="linearSolverName" value="KLU"/> | ||
</set> | ||
</parametersSet> |
40 changes: 40 additions & 0 deletions
40
dynawo-integration-tests/src/test/resources/ieee14/signal_n/dynamicModels.groovy
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,40 @@ | ||
/** | ||
* Copyright (c) 2023, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
package ieee14.signal_n | ||
|
||
GeneratorPVSignalN { | ||
staticId "_GEN____1_SM" | ||
parameterSetId "Generator1" | ||
} | ||
|
||
GeneratorPVSignalN { | ||
staticId "_GEN____2_SM" | ||
parameterSetId "Generator2" | ||
} | ||
|
||
GeneratorPVSignalN { | ||
staticId "_GEN____3_SM" | ||
parameterSetId "Generator3" | ||
} | ||
|
||
GeneratorPVSignalN { | ||
staticId "_GEN____6_SM" | ||
parameterSetId "Generator6" | ||
} | ||
|
||
GeneratorPVSignalN { | ||
staticId "_GEN____8_SM" | ||
parameterSetId "Generator8" | ||
} | ||
|
||
for (load in network.loads) { | ||
LoadAlphaBetaRestorative { | ||
staticId load.id | ||
parameterSetId "GenericRestorativeLoad" | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
dynawo-simulation/src/main/java/com/powsybl/dynawo/models/buses/BusOfSignalNModel.java
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,20 @@ | ||
/** | ||
* Copyright (c) 2024, RTE (http://www.rte-france.com/) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
package com.powsybl.dynawo.models.buses; | ||
|
||
import com.powsybl.dynawo.models.Model; | ||
|
||
/** | ||
* View of signal N equipment from the bus to which it is connected | ||
* Used by Signal N in order to get phi var name | ||
* @author Laurent Issertial {@literal <laurent.issertial at rte-france.com>} | ||
*/ | ||
public interface BusOfSignalNModel extends Model { | ||
|
||
String getPhiVarName(); | ||
} |
43 changes: 43 additions & 0 deletions
43
dynawo-simulation/src/main/java/com/powsybl/dynawo/models/buses/DefaultBusOfSignalN.java
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,43 @@ | ||
/** | ||
* Copyright (c) 2024, RTE (http://www.rte-france.com/) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
package com.powsybl.dynawo.models.buses; | ||
|
||
import java.util.List; | ||
import com.powsybl.dynawo.models.defaultmodels.AbstractDefaultModel; | ||
import com.powsybl.dynawo.models.macroconnections.MacroConnectAttribute; | ||
import com.powsybl.dynawo.xml.DynawoSimulationXmlConstants; | ||
|
||
/** | ||
* @author Laurent Issertial {@literal <laurent.issertial at rte-france.com>} | ||
*/ | ||
public class DefaultBusOfSignalN extends AbstractDefaultModel implements BusOfSignalNModel { | ||
|
||
private final String signalNEquipmentStaticId; | ||
|
||
public DefaultBusOfSignalN(String staticId, String signalNEquipmentStaticId) { | ||
super(staticId); | ||
this.signalNEquipmentStaticId = signalNEquipmentStaticId; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "DefaultBusOfSignalN"; | ||
} | ||
|
||
public String getPhiVarName() { | ||
return "@@NAME@@@NODE@_phi_value"; | ||
} | ||
|
||
@Override | ||
public List<MacroConnectAttribute> getMacroConnectToAttributes() { | ||
return List.of( | ||
MacroConnectAttribute.of("id2", DynawoSimulationXmlConstants.NETWORK), | ||
MacroConnectAttribute.of("name2", signalNEquipmentStaticId) | ||
); | ||
} | ||
} |
Oops, something went wrong.