1
1
![ PowSyBl Logo] ( _static/logos/logo_lfe_powsybl.svg )
2
2
# PowSyBl Metrix
3
3
4
+ ## Presentation
4
5
5
6
[ MappingTool] ( mapping.md ) provides a mapping configuration from csv timeseries to network.
6
7
This configuration allows to generate iidm network at specified times. Furthermore,
@@ -11,6 +12,113 @@ networks generated by the mapping tool. Its outputs are completed by synthesis.
11
12
12
13
MetrixTool calls * [ metrix simulator] ( metrix-simulator.md ) * as an external program. This program has its own requirements.
13
14
15
+ ## Installation
16
+
17
+ PowSyBl-Metrix can be installed easily in just a few steps, so that you can use it in command line:
18
+
19
+ ### Downloads
20
+
21
+ First, on [ the release page] ( https://github.com/powsybl/powsybl-metrix/releases ) , you can download:
22
+
23
+ * itools-metrix
24
+ * metrix-simulator
25
+
26
+ * itools-metrix* is written in Java, so there is only one version per release, and it works for
27
+ every OS. * metrix-simulator* however is written in C++ so you will need to
28
+ choose the version corresponding to your OS.
29
+
30
+ Note: Current versions of * metrix-simulator-ubuntu* were compiled on Ubuntu 24. If
31
+ you encounter issues regarding the compiler, don't hesitate to use the * metrix-simulator-centos*
32
+ version that has been compiled with an older version of the compiler.
33
+
34
+ Once the two zip files are downloaded, unzip them in a repository of your choosing.
35
+
36
+ ### Configuration
37
+
38
+ #### itools command
39
+
40
+ Now we need to make the * itools* command available. For this, you need to add itools to your PATH.
41
+
42
+ On Linux, you can for example do this by adding a few lines in your ` .bashrc ` file (or equivalent):
43
+
44
+ ``` shell
45
+ # PowSyBl-Metrix itools repository
46
+ export POWSYBL_METRIX_HOME=< repository_where_you_unzipped_itools-metrix>
47
+ # Add the repository to the path
48
+ export PATH=$POWSYBL_METRIX_HOME /bin:$PATH
49
+ ```
50
+
51
+ On Windows, follow for example [ this guide] ( https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/ ) .
52
+
53
+ To check if it works, open a new terminal and type the ` itools ` command. You should see
54
+ the following answer:
55
+
56
+ ```
57
+ $ itools
58
+ usage: itools [OPTIONS] COMMAND [ARGS]
59
+
60
+ Available options are:
61
+ --config-name <CONFIG_NAME> Override configuration file name
62
+
63
+ Available commands are:
64
+
65
+ Computation:
66
+ loadflow Run loadflow
67
+
68
+ Data conversion:
69
+ convert-network convert a network from one format to another
70
+
71
+ Metrix:
72
+ mapping Time series to network mapping tool
73
+ metrix Run Metrix
74
+ metrix-die Generate Metrix DIE files
75
+
76
+ Misc:
77
+ generate-completion-script Generates a bash autocompletion script
78
+ plugins-info List the available plugins
79
+
80
+ Script:
81
+ run-script run script (only groovy is supported)
82
+ ```
83
+
84
+ * Note: If you already have another version of itools installed (for example if you use powsybl-distribution),
85
+ you may want to have another configuration to use a specific command so that you can
86
+ use both independently:*
87
+
88
+ ``` shell
89
+ alias itoolsmetrix=' <repository_where_you_unzipped_itools-metrix>/bin/itools'
90
+ ```
91
+
92
+ #### Metrix configuration
93
+
94
+ Now you need to add some configuration to your PowSyBl ` config.yml ` file. By default,
95
+ this file should be in the ` <USER_HOME>/.itools ` directory. Create the file if it does not already exist.
96
+ Then add the following lines:
97
+
98
+ ``` yml
99
+ metrix :
100
+ home-dir : <directory_where_you_unzipped_metrix-simulator> # required
101
+ command : metrix-simulator
102
+
103
+ iidm-export-version : " 1.11" # default to latest available version
104
+ constant-loss-factor : false # enable constant loss factor
105
+ chunk-size : 10 # size of the batch processed by Metrix
106
+ result-limit : 10000 # max allowed output count
107
+ debug : false # enable debug mode
108
+ log-level : 2 # Metrix log level, available values: 0 (trace), 1 (debug), 2 (info), 3 (warn), 4 (error), 5 (critical)
109
+ debug-log-level : 0 # Metrix log level when debug mode is enabled, available values: 0 (trace), 1 (debug), 2 (info), 3 (warn), 4 (error), 5 (critical)
110
+
111
+ mapping-default-parameters :
112
+ tolerance-threshold : 0.0001f
113
+
114
+ metrix-default-parameters :
115
+ computation-type : LF # default computation type
116
+ loss-factor : 0f # default loss factor value
117
+ nominal-u : 100 # default nominal U
118
+ ` ` `
119
+
120
+
121
+
14
122
` ` ` {toctree}
15
123
---
16
124
maxdepth : 2
0 commit comments