-
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.
Fix LimitViolationsResult in dynamic SA (#407)
* Add 'constraints' option in JobsXml * Add DSA integration tests from Dynawo NRT * Mutualize Dynawo simulation input files writing Signed-off-by: lisrte <[email protected]>
- Loading branch information
Showing
20 changed files
with
433 additions
and
145 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
48 changes: 48 additions & 0 deletions
48
...ration-tests/src/test/resources/ieee14/dynamic-security-analysis/convergence/criteria.crt
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,48 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!-- | ||
Copyright (c) 2015-2021, RTE (http://www.rte-france.com) | ||
See AUTHORS.txt | ||
All rights reserved. | ||
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 | ||
This file is part of Dynawo, an hybrid C++/Modelica open source suite | ||
of simulation tools for power systems. | ||
--> | ||
<criteria xmlns="http://www.rte-france.com/dynawo"> | ||
<busCriteria> | ||
<parameters id ="Risque modele" scope="DYNAMIC" type="LOCAL_VALUE" uMinPu="0.8" uNomMin="225"/> | ||
<country id="AF"/> | ||
<country id="AFGHANISTAN"/> | ||
</busCriteria> | ||
<loadCriteria> | ||
<parameters id ="Risque protection" scope="DYNAMIC" type="SUM" pMax="100"> | ||
<voltageLevel uMaxPu="0.85"/> | ||
</parameters> | ||
<country id="AF"/> | ||
<country id="AFGHANISTAN"/> | ||
</loadCriteria> | ||
<loadCriteria> | ||
<parameters id ="Risque QdE" scope="FINAL" type="SUM" pMax="200"> | ||
<voltageLevel uMaxPu="0.92"/> | ||
</parameters> | ||
<country id="AF"/> | ||
<country id="AFGHANISTAN"/> | ||
</loadCriteria> | ||
<loadCriteria> | ||
<parameters id ="Risque Surete" scope="FINAL" type="SUM" pMax="1500"> | ||
<voltageLevel uMaxPu="0.92"/> | ||
</parameters> | ||
<country id="AF"/> | ||
<country id="AFGHANISTAN"/> | ||
</loadCriteria> | ||
<loadCriteria> | ||
<parameters id ="Risque IGA" scope="FINAL" type="SUM" pMax="3000"> | ||
<voltageLevel uMaxPu="0.92"/> | ||
</parameters> | ||
<country id="AF"/> | ||
<country id="AFGHANISTAN"/> | ||
</loadCriteria> | ||
</criteria> |
94 changes: 94 additions & 0 deletions
94
...ration-tests/src/test/resources/ieee14/dynamic-security-analysis/convergence/results.json
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,94 @@ | ||
{ | ||
"version" : "1.7", | ||
"preContingencyResult" : { | ||
"status" : "CONVERGED", | ||
"limitViolationsResult" : { | ||
"limitViolations" : [ { | ||
"subjectId" : "_BUS____1-BUS____2-1_AC", | ||
"subjectName" : "BUS 1-BUS 2-1", | ||
"limitType" : "CURRENT", | ||
"limitName" : "permanent", | ||
"limit" : 836.74, | ||
"limitReduction" : 1.0, | ||
"value" : 1248.0773003764798, | ||
"side" : "ONE" | ||
} ], | ||
"actionsTaken" : [ ] | ||
}, | ||
"networkResult" : { | ||
"branchResults" : [ ], | ||
"busResults" : [ ], | ||
"threeWindingsTransformerResults" : [ ] | ||
} | ||
}, | ||
"postContingencyResults" : [ { | ||
"contingency" : { | ||
"id" : "_BUS____1-BUS____5-1_AC", | ||
"elements" : [ { | ||
"id" : "_BUS____1-BUS____5-1_AC", | ||
"type" : "LINE" | ||
} ] | ||
}, | ||
"status" : "CONVERGED", | ||
"limitViolationsResult" : { | ||
"limitViolations" : [ { | ||
"subjectId" : "_BUS____1-BUS____2-1_AC", | ||
"subjectName" : "BUS 1-BUS 2-1", | ||
"limitType" : "CURRENT", | ||
"limitName" : "PATL", | ||
"limit" : 836.74, | ||
"limitReduction" : 1.0, | ||
"value" : 1248.100487597837, | ||
"side" : "ONE" | ||
} ], | ||
"actionsTaken" : [ ] | ||
}, | ||
"networkResult" : { | ||
"branchResults" : [ ], | ||
"busResults" : [ ], | ||
"threeWindingsTransformerResults" : [ ] | ||
}, | ||
"connectivityResult" : { | ||
"createdSynchronousComponentCount" : 0, | ||
"createdConnectedComponentCount" : 0, | ||
"disconnectedLoadActivePower" : 0.0, | ||
"disconnectedGenerationActivePower" : 0.0, | ||
"disconnectedElements" : [ ] | ||
} | ||
}, { | ||
"contingency" : { | ||
"id" : "_GEN____2_SM", | ||
"elements" : [ { | ||
"id" : "_GEN____2_SM", | ||
"type" : "GENERATOR" | ||
} ] | ||
}, | ||
"status" : "CONVERGED", | ||
"limitViolationsResult" : { | ||
"limitViolations" : [ { | ||
"subjectId" : "_BUS____1-BUS____2-1_AC", | ||
"subjectName" : "BUS 1-BUS 2-1", | ||
"limitType" : "CURRENT", | ||
"limitName" : "PATL", | ||
"limit" : 836.74, | ||
"limitReduction" : 1.0, | ||
"value" : 1248.100487597837, | ||
"side" : "ONE" | ||
} ], | ||
"actionsTaken" : [ ] | ||
}, | ||
"networkResult" : { | ||
"branchResults" : [ ], | ||
"busResults" : [ ], | ||
"threeWindingsTransformerResults" : [ ] | ||
}, | ||
"connectivityResult" : { | ||
"createdSynchronousComponentCount" : 0, | ||
"createdConnectedComponentCount" : 0, | ||
"disconnectedLoadActivePower" : 0.0, | ||
"disconnectedGenerationActivePower" : 0.0, | ||
"disconnectedElements" : [ ] | ||
} | ||
} ], | ||
"operatorStrategyResults" : [ ] | ||
} |
32 changes: 32 additions & 0 deletions
32
...ntegration-tests/src/test/resources/ieee14/dynamic-security-analysis/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,32 @@ | ||
/** | ||
* 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 | ||
*/ | ||
|
||
import com.powsybl.iidm.network.Load | ||
|
||
for (Load load : network.loads) { | ||
if (load.id != "_LOAD___2_EC") { | ||
LoadAlphaBeta { | ||
staticId load.id | ||
parameterSetId "LAB" | ||
} | ||
} | ||
} | ||
|
||
for (gen in ["_GEN____1_SM", "_GEN____2_SM", "_GEN____3_SM"]) { | ||
GeneratorSynchronousFourWindingsProportionalRegulations { | ||
staticId gen | ||
parameterSetId "GSFWPR" + gen | ||
} | ||
} | ||
|
||
for (gen in ["_GEN____6_SM", "_GEN____8_SM"]) { | ||
GeneratorSynchronousThreeWindingsProportionalRegulations { | ||
staticId gen | ||
parameterSetId "GSTWPR" + gen | ||
} | ||
} |
Oops, something went wrong.