You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example Cable `201` connects Node `101` and `102`, and Cable `201` connects Node `102` and `103`.
233
233
These Node Numbers are stored in the columns `From_Number` and `To_Number`.
234
-
In order to retrieve the right PGM IDs, we have to explicitly state that the table in which the Nodes are
234
+
In order to retrieve the right PGM IDs, we have to explicitly state that the table in which the Nodes are
235
235
defined is called `Nodes` and the original column storing the Node Numbers is called `Number`.
236
236
* On the 'from' side of the cables:
237
237
* `{"table": "Nodes", "key" {"Number": 101} -> 0`
@@ -337,19 +337,19 @@ Mapping files enable the specification of custom mappings or filter functions. T
337
337
We use the `yaml.safe_load` functionality from the PyYAML library to load configuration files securely. This method prevents the execution of potentially malicious code during the loading process.
338
338
339
339
### Secure Function Handling
340
-
* No `eval`-like Functionality:
341
-
340
+
* No `eval`-like Functionality:
341
+
342
342
We do not use `eval` or similar functions that can execute arbitrary code.
343
343
* Loadable/Loaded Functions Only
344
-
344
+
345
345
Only functions and symbols that are explicitly loadable or loaded are allowed. These must be:
346
346
347
-
* Python Builtins:
348
-
347
+
* Python Builtins:
348
+
349
349
Such as `max`.
350
350
351
-
* Prefixed by Import Path:
352
-
351
+
* Prefixed by Import Path:
352
+
353
353
Functions must include their relative or absolute import path, ensuring they are importable using `import_module`. For example, `numpy.max` is allowed, but `np.max` is not.
Copy file name to clipboardExpand all lines: docs/converters/vision_converter.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,20 +9,20 @@ The Vision Excel converter converts the Excel exports from Vision to PGM data fo
9
9
The default mapping of all attributes is stored in the `vision_en.yaml` and `vision_nl.yaml` files in [config](https://github.com/PowerGridModel/power-grid-model-io/tree/main/src/power_grid_model_io/config) directory.
10
10
Custom mapping files are supported via passing the file directory to the constructor of the converter.
11
11
12
-
## Load rate of elements
12
+
## Load rate of elements
13
13
14
14
Certain `elements` in Vision, i.e., appliances like transformer loads and induction motor have a result parameter of load rate.
15
15
In Vision, load rates are calculated without considering the simultaneity factors of connected nodes.
16
16
So we may observe a variation in power inflow/outflow result (i.e., P, Q and S) due to different simultaneity factors. But the load rate always corresponds to `simultaneity of loads=1`.
17
17
18
-
When we make conversion to PGM, the input data attributes of PGM for loads like `p_specified` and `q_specified` are modified as per simultaneity. The resulting loading then takes simultaneity into account.
18
+
When we make conversion to PGM, the input data attributes of PGM for loads like `p_specified` and `q_specified` are modified as per simultaneity. The resulting loading then takes simultaneity into account.
19
19
**Hence, the loading of such elements may not correspond to the load rate obtained in Vision**
20
20
21
21
## Transformer load modeling
22
22
23
-
power-grid-model-io converts the transformer load into a individual transformer and a load for usage in power-grid-model.
23
+
power-grid-model-io converts the transformer load into a individual transformer and a load for usage in power-grid-model.
24
24
To the best of our knowledge, Vision modeles a transformer load differently than an individual transformer plus load.
25
-
There is a minor difference in both the reactive power consumed and generated.
25
+
There is a minor difference in both the reactive power consumed and generated.
26
26
This might correspond to a minor voltage deviation in the results.
27
27
28
28
```{tip}
@@ -38,9 +38,9 @@ Note that in symmetrical calculations, Vision does not include clock angles of t
38
38
39
39
Some components are yet to be modeled for conversions because they might not have a straightforward mapping in power-grid-model. Those are listed here.
40
40
41
-
- power-grid-model currently does not support PV(Active Power-Voltage) bus and related corresponding features.
41
+
- power-grid-model currently does not support PV(Active Power-Voltage) bus and related corresponding features.
42
42
- Currently, the efficiency type of PVs(Photovoltaics) element is also unsupported for all types except the `100%` type. For the efficiency type: `0, 1 pu: 93 %; 1 pu: 97 %`, the generation power is multiplied by 97% as a closest approximation.
43
-
- The conversions for load behaviors of `industry`, `residential` and `business` are not yet modeled. The load behaviors usually do not create a significant difference in power-flow results for most grids when the voltage at bus is close to `1 pu`. Hence, the conversion of the mentioned load behaviors is approximated to be of `Constant Power` type for the time being.
43
+
- The conversions for load behaviors of `industry`, `residential` and `business` are not yet modeled. The load behaviors usually do not create a significant difference in power-flow results for most grids when the voltage at bus is close to `1 pu`. Hence, the conversion of the mentioned load behaviors is approximated to be of `Constant Power` type for the time being.
44
44
- The source bus in power-grid-model is mapped with a source impedance. `Sk"nom`, `R/X` and `Z0/Z1` are the attributes used in modeling source impedance. In Vision, these attributes are used only for short circuit calculations
45
45
- The load rate for transformer is calculated in Vision by current i.e., `load_rate = max(u1 * I1, u2 * I2) * sqrt(3) / Snom * 100`. Whereas in power-grid-model, loading is calculated by power, i.e., `loading = max(s1,s2)/sn`. (Note: The attribute names are as per relevant notation in Vision and PGM respectively). This gives a slight difference in load rate of transformer.
46
46
- A minor difference in results is expected since Vision uses a power mismatch in p.u. as convergence criteria whereas power-grid-model uses voltage mismatch.
@@ -52,7 +52,7 @@ Vision introduced UUID based identifier system since version 9.7. It is implemen
52
52
53
53
An examplery usage can be found in the example notebook as well as in the test cases.
54
54
55
-
## Common/Known issues related to Vision
55
+
## Common/Known issues related to Vision
56
56
So far we have the following issue known to us related to Vision exported spread sheets. We provide a solution from user perspective to the best of our knowledge.
0 commit comments