Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a137a6e
initialize metrix tutorial
May 18, 2022
22a967e
add 3A repository with data and result repositories
May 18, 2022
be76876
initialize each part (3A>5F) and initialize the resources>main>README.md
May 18, 2022
b6b1d97
fixing a coding error
May 18, 2022
25bce10
add results
May 25, 2022
595d92e
update 5B results with all flows
May 25, 2022
cb201cb
Update README.md
pimanc May 30, 2022
76ac7aa
Add images file for .md
pimanc Jun 2, 2022
5f19378
corrected README
pimanc Jun 2, 2022
6574b67
work on readme .md
Jun 2, 2022
bdcd36b
without red lines image
pimanc Jun 2, 2022
c6a61d2
update .md
Jun 8, 2022
de7e8d2
section install + correction anglicismes
Jun 8, 2022
924465c
Merge branch 'metrix' into benjamin
Jun 8, 2022
2ff99d8
add conf.groovy in 3B
Jun 8, 2022
fb29151
.md corrections v1
Jun 9, 2022
d935760
.md corrections v2 => create table for results and correcting results
Jun 10, 2022
1155812
.md corrections v1
Jun 13, 2022
ce16a78
Update README.md
nomont Jun 17, 2022
0ca33b2
add tp 6 noeuds pdf
Jun 17, 2022
005459b
refactor tp 6 noeuds pdf
Jun 17, 2022
49593ec
delete pdf, not relevant for this case.
Jun 20, 2022
2642e1d
Review 3A -> 5A
bhorvilleur-artelys Jun 21, 2022
d36e42c
Review 5B -> 5F
bhorvilleur-artelys Jun 21, 2022
3eec707
Group -> Unit
bhorvilleur-artelys Jun 21, 2022
9d956ff
Add 6-node tutorial pdf
nomont Jun 22, 2022
9b9df87
Delete PowSyBl-metrix-6-node-tutorial-presentation.pdf
nomont Jun 22, 2022
f4401bc
Add metrix 6 node tutorial
nomont Jun 22, 2022
b17e36a
Update PowSyBl-metrix-6-node-tutorial-presentation
nomont Jul 22, 2022
9f821cf
Update Metrix tutorial readme
nomont Jul 22, 2022
b5695ff
Finalisation readme
bhorvilleur-artelys Oct 4, 2022
1a4d7b0
Merge remote-tracking branch 'origin/main' into metrix
bhorvilleur-artelys Oct 6, 2022
2bc5da2
Updating doc for easier installation process
Dec 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
654 changes: 654 additions & 0 deletions metrix/src/main/README.md

Large diffs are not rendered by default.

Binary file added metrix/src/main/images/mode_LF_fichiers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added metrix/src/main/images/result_LF_simple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added metrix/src/main/images/result_mapping_ss_HDVC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions metrix/src/main/resources/3A/data/conf.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

for (l in network.branches){
branch(l.id){
baseCaseFlowResults true
maxThreatFlowResults true
}
}

2 changes: 2 additions & 0 deletions metrix/src/main/resources/3A/data/contingencies.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
contingency("S_SO_1"){equipments "S_SO_1"}

33 changes: 33 additions & 0 deletions metrix/src/main/resources/3A/data/mapping_file_gen_load.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
mapToGenerators{
timeSeriesName 'SO_G1'
filter {generator.id=='SO_G1'}
}

mapToGenerators{
timeSeriesName 'SO_G2'
filter {generator.id=='SO_G2'}
}

mapToLoads{
timeSeriesName 'SE_L1'
filter {load.id=='SE_L1'}
}

timeSeries['nul']=0

mapToGenerators{
timeSeriesName 'nul'
filter {generator.id in ['N_G','SE_G'] }
}

mapToLoads{
timeSeriesName 'nul'
filter {load.id in ['SE_L2','SO_L']}
}

network.getTwoWindingsTransformer('NE_NO_1').phaseTapChanger.tapPosition=17

mapToHvdcLines{
timeSeriesName 'nul'
filter {hvdcLine.id in ['HVDC1','HVDC2'] }
}
407 changes: 407 additions & 0 deletions metrix/src/main/resources/3A/data/reseau_6noeuds.xiidm

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions metrix/src/main/resources/3A/data/ts/time-series-tp.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Time;Version;SE_L1;SO_G1;SO_G2;seuilN;seuilAM
2015-01-01T01:00+01:00;1;960;0;960;400;480
2015-01-01T02:00+01:00;1;960;960;0;400;480
2015-01-01T03:00+01:00;1;960;960;0;100;480
1 change: 1 addition & 0 deletions metrix/src/main/resources/3A/launch_metrix_3A.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
itools metrix --case-file data/reseau_6noeuds.xiidm --mapping-file data/mapping_file_gen_load.groovy --metrix-dsl-file data/conf.groovy --contingencies-file data/contingencies.groovy --time-series data/ts/time-series-tp.csv --versions 1 --first-variant 0 --variant-count 3 --csv-results-file results/results.csv --chunk-size 3 --log-archive logs --network-point-file results/output_network.xiidm
Empty file.
4 changes: 4 additions & 0 deletions metrix/src/main/resources/3A/results/results3A.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Time;Version;ERROR_CODE;FLOW_NE_NO_1;FLOW_NE_N_1;FLOW_NE_N_2;FLOW_NO_N_1;FLOW_NO_N_2;FLOW_SE_NE_1;FLOW_SE_NE_2;FLOW_SO_NO_1;FLOW_SO_NO_2;FLOW_S_SE_1;FLOW_S_SE_2;FLOW_S_SO_1;FLOW_S_SO_2;GEN_COST;INIT_BAL_AREA_0;LOAD_COST;LOSSES;MAX_THREAT_1_FLOW_NE_NO_1;MAX_THREAT_1_FLOW_NE_N_1;MAX_THREAT_1_FLOW_NE_N_2;MAX_THREAT_1_FLOW_NO_N_1;MAX_THREAT_1_FLOW_NO_N_2;MAX_THREAT_1_FLOW_SE_NE_1;MAX_THREAT_1_FLOW_SE_NE_2;MAX_THREAT_1_FLOW_SO_NO_1;MAX_THREAT_1_FLOW_SO_NO_2;MAX_THREAT_1_FLOW_S_SE_1;MAX_THREAT_1_FLOW_S_SE_2;MAX_THREAT_1_FLOW_S_SO_1;MAX_THREAT_1_FLOW_S_SO_2;OVERLOAD_BASECASE;OVERLOAD_OUTAGES;MAX_THREAT_1_NAME_NE_NO_1;MAX_THREAT_1_NAME_NE_N_1;MAX_THREAT_1_NAME_NE_N_2;MAX_THREAT_1_NAME_NO_N_1;MAX_THREAT_1_NAME_NO_N_2;MAX_THREAT_1_NAME_SE_NE_1;MAX_THREAT_1_NAME_SE_NE_2;MAX_THREAT_1_NAME_SO_NO_1;MAX_THREAT_1_NAME_SO_NO_2;MAX_THREAT_1_NAME_S_SE_1;MAX_THREAT_1_NAME_S_SE_2;MAX_THREAT_1_NAME_S_SO_1;MAX_THREAT_1_NAME_S_SO_2
2015-01-01T01:00:00+01:00;1;0.0;-176.9;-101.0;-101.0;101.0;101.0;-189.5;-189.5;189.5;189.5;290.5;290.5;-290.5;-290.5;0.0;0.0;0.0;24.3;-225.3;-125.3;-125.3;125.3;125.3;-237.9;-237.9;237.9;237.9;242.1;242.1;0.0;-484.2;0.0;0.0;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1
2015-01-01T02:00:00+01:00;1;0.0;-176.9;-101.0;-101.0;101.0;101.0;-189.5;-189.5;189.5;189.5;290.5;290.5;-290.5;-290.5;0.0;0.0;0.0;24.3;-225.3;-125.3;-125.3;125.3;125.3;-237.9;-237.9;237.9;237.9;242.1;242.1;0.0;-484.2;0.0;0.0;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1
2015-01-01T03:00:00+01:00;1;0.0;-176.9;-101.0;-101.0;101.0;101.0;-189.5;-189.5;189.5;189.5;290.5;290.5;-290.5;-290.5;0.0;0.0;0.0;24.3;-225.3;-125.3;-125.3;125.3;125.3;-237.9;-237.9;237.9;237.9;242.1;242.1;0.0;-484.2;0.0;0.0;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1;S_SO_1
6 changes: 6 additions & 0 deletions metrix/src/main/resources/3B/data/conf.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
branch("S_SO_2"){
baseCaseFlowResults true
maxThreatFlowResults true
branchRatingsBaseCase "seuilN"
branchRatingsOnContingency "seuilN"
}
3 changes: 3 additions & 0 deletions metrix/src/main/resources/3B/data/contingencies.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for (b in network.branches) {
contingency(b.id){equipments b.id}
}
33 changes: 33 additions & 0 deletions metrix/src/main/resources/3B/data/mapping_file_gen_load.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
mapToGenerators{
timeSeriesName 'SO_G1'
filter {generator.id=='SO_G1'}
}

mapToGenerators{
timeSeriesName 'SO_G2'
filter {generator.id=='SO_G2'}
}

mapToLoads{
timeSeriesName 'SE_L1'
filter {load.id=='SE_L1'}
}

timeSeries['nul']=0

mapToGenerators{
timeSeriesName 'nul'
filter {generator.id in ['N_G','SE_G'] }
}

mapToLoads{
timeSeriesName 'nul'
filter {load.id in ['SE_L2','SO_L']}
}

network.getTwoWindingsTransformer('NE_NO_1').phaseTapChanger.tapPosition=17

mapToHvdcLines{
timeSeriesName 'nul'
filter {hvdcLine.id in ['HVDC1','HVDC2'] }
}
407 changes: 407 additions & 0 deletions metrix/src/main/resources/3B/data/reseau_6noeuds.xiidm

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions metrix/src/main/resources/3B/data/ts/time-series-tp.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Time;Version;SE_L1;SO_G1;SO_G2;seuilN;seuilAM
2015-01-01T01:00+01:00;1;960;0;960;400;480
2015-01-01T02:00+01:00;1;960;960;0;400;480
2015-01-01T03:00+01:00;1;960;960;0;100;480
1 change: 1 addition & 0 deletions metrix/src/main/resources/3B/launch_metrix_3B.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
itools metrix --case-file data/reseau_6noeuds.xiidm --mapping-file data/mapping_file_gen_load.groovy --metrix-dsl-file data/conf.groovy --contingencies-file data/3B/contingencies.groovy --time-series data/ts/time-series-tp.csv --versions 1 --first-variant 0 --variant-count 3 --csv-results-file results/results3B.csv --chunk-size 3 --log-archive logs --network-point-file results/output_network.xiidm
4 changes: 4 additions & 0 deletions metrix/src/main/resources/3B/results/results3B.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Time;Version;ERROR_CODE;FLOW_S_SO_2;GEN_COST;INIT_BAL_AREA_0;LOAD_COST;LOSSES;MAX_THREAT_1_FLOW_S_SO_2;OVERLOAD_BASECASE;OVERLOAD_OUTAGES;MAX_THREAT_1_NAME_S_SO_2
2015-01-01T01:00:00+01:00;1;0.0;-290.5;0.0;0.0;0.0;24.3;-484.2;0.0;84.2;S_SO_1
2015-01-01T02:00:00+01:00;1;0.0;-290.5;0.0;0.0;0.0;24.3;-484.2;0.0;84.2;S_SO_1
2015-01-01T03:00:00+01:00;1;0.0;-290.5;0.0;0.0;0.0;24.3;-484.2;190.5;384.2;S_SO_1
10 changes: 10 additions & 0 deletions metrix/src/main/resources/4A/data/conf.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
parameters {
computationType OPF_WITHOUT_REDISPATCHING
}

branch('S_SO_2') {
baseCaseFlowResults true
maxThreatFlowResults true
branchRatingsBaseCase 'seuilN'
branchRatingsOnContingency 'seuilN'
}
3 changes: 3 additions & 0 deletions metrix/src/main/resources/4A/data/contingencies.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for (b in network.branches) {
contingency(b.id){equipments b.id}
}
33 changes: 33 additions & 0 deletions metrix/src/main/resources/4A/data/mapping_file_gen_load.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
mapToGenerators{
timeSeriesName 'SO_G1'
filter {generator.id=='SO_G1'}
}

mapToGenerators{
timeSeriesName 'SO_G2'
filter {generator.id=='SO_G2'}
}

mapToLoads{
timeSeriesName 'SE_L1'
filter {load.id=='SE_L1'}
}

timeSeries['nul']=0

mapToGenerators{
timeSeriesName 'nul'
filter {generator.id in ['N_G','SE_G'] }
}

mapToLoads{
timeSeriesName 'nul'
filter {load.id in ['SE_L2','SO_L']}
}

network.getTwoWindingsTransformer('NE_NO_1').phaseTapChanger.tapPosition=17

mapToHvdcLines{
timeSeriesName 'nul'
filter {hvdcLine.id in ['HVDC1','HVDC2'] }
}
5 changes: 5 additions & 0 deletions metrix/src/main/resources/4A/data/parades.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NB;4;;;
S_SO_1;1;SS1_SS1_DJ_OMN;;
S_SO_1;1;SOO1_SOO1_DJ_OMN;;
S_SO_1;2;SS1_SS1_DJ_OMN;SOO1_SOO1_DJ_OMN;
S_SO_1;1;S_SO_2;;
Loading