Skip to content

Commit 6c1b4d8

Browse files
alicecaronbqth29
authored andcommitted
Clean documentation (powsybl#3731)
Clean documentation (powsybl#3731) * Rearrange itools documentation pages (fix links, create itools 'commands' section) * Clean excluded page from the generation + configure link to pypowsybl documentation * Clean itools modules pages, complete the configuraion part of the loadflow and security analysis regarding the module configuration * Some fixes among links to guide the user * Add itools-packager and itools plugins-info command documentation * Add link to powsybl-tutorial to create IIDM Importer/Exporter * Add network module * Add table-formatter module * Add itools usages examples in the documentation * Fix some documentation compilation errors * Handle feedbacks --------- Signed-off-by: CARON Alice <alice.caron@rte-france.com> Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
1 parent 50addac commit 6c1b4d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+591
-225
lines changed

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
# List of patterns, relative to source directory, that match files and
8787
# directories to ignore when looking for source files.
8888
# This pattern also affects html_static_path and html_extra_path.
89-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
89+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'README.md']
9090

9191
# Reference sections generation
9292
autosectionlabel_prefix_document = True
@@ -131,7 +131,8 @@
131131
"powsyblopenloadflow": ("https://powsybl.readthedocs.io/projects/powsybl-open-loadflow/en/latest/", None),
132132
"powsybldynawo": ("https://powsybl.readthedocs.io/projects/powsybl-dynawo/en/latest/", None),
133133
"powsybldiagram": ("https://powsybl.readthedocs.io/projects/powsybl-diagram/latest/", None),
134-
"powsybltutorials": ("https://powsybl.readthedocs.io/projects/powsybl-tutorials/en/latest/", None)
134+
"powsybltutorials": ("https://powsybl.readthedocs.io/projects/powsybl-tutorials/en/latest/", None),
135+
"pypowsybl": ("https://powsybl.readthedocs.io/projects/pypowsybl/en/latest/", None)
135136
}
136137
intersphinx_disabled_reftypes = ["*"]
137138

docs/grid_exchange_formats/cgmes/export.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ PowSyBl [`VoltageLevel`](../../grid_model/network_subnetwork.md#voltage-level) i
477477
(cgmes-control-areas-export)=
478478
### Control areas
479479

480-
PowSyBl [`ControlAreas`](import.md#cgmes-control-areas) are exported as several `ControlArea`.
480+
PowSyBl [`ControlAreas`](import.md#control-areas) are exported as several `ControlArea`.
481481

482482
<span style="color: red">TODO details</span>
483483

docs/grid_exchange_formats/cgmes/import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The mapping of an `EquivalentInjection` depends on its location relative to the
136136

137137
If the `EquivalentInjection` is outside the boundary area, it will be mapped to a PowSyBl `Generator`.
138138

139-
If the `EquivalentInjection` is at the boundary area, its regulating voltage data will be mapped to the generation data inside the PowSyBl `DanglingLine` created at the boundary point and its values for `P`, `Q` will be used to define the DanglingLine `P0`, `Q0`. Please note that the said `DanglingLine` can be created from an [`ACLineSegment`](#aclinesegment), a [`Switch`](#switch-switch-breaker-disconnector-loadbreakswitch-protectedswitch-grounddisconnector),
139+
If the `EquivalentInjection` is at the boundary area, its regulating voltage data will be mapped to the generation data inside the PowSyBl `DanglingLine` created at the boundary point and its values for `P`, `Q` will be used to define the DanglingLine `P0`, `Q0`. Please note that the said `DanglingLine` can be created from an [`ACLineSegment`](#aclinesegment), a [`Switch`](#switch-switch-breaker-disconnector-loadbreakswitch-protectedswitch-grounddisconnector-jumper),
140140
an [`EquivalentBranch`](#equivalentbranch) or a [`PowerTransformer`](#powertransformer).
141141

142142
Attributes of the PowSyBl generator or of the PowSyBl dangling line generation are created as such:

docs/grid_exchange_formats/iidm/export.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ The `iidm.export.xml.anonymised` property is an optional property that defines w
2020

2121
**iidm.export.xml.topology-level**<br>
2222
The `iidm.export.xml.topology-level` property is an optional property that defines the most detailed topology in which the XIIDM exporter can export the network. The topology level can be:
23-
- `NODE_BREAKER`: the voltage levels are exported using the [Node/Breaker view](). Voltage levels described in Bus/Breaker topology are exported using the [Bus/Breaker view]().
24-
- `BUS_BREAKER`: all voltage levels are all exported using the [Bus/Breaker view]()
25-
- `BUS_BRANCH`: all voltage levels are exported using the [Bus view]()
23+
- `NODE_BREAKER`: the voltage levels are exported using the Node/Breaker view. Voltage levels described in Bus/Breaker topology are exported using the Bus/Breaker view.
24+
- `BUS_BREAKER`: all voltage levels are all exported using the Bus/Breaker view
25+
- `BUS_BRANCH`: all voltage levels are exported using the Bus view
2626

2727
The default value is `NODE_BREAKER` to export all voltage levels in the same level of details than the one they are described.
2828

2929
**iidm.export.xml.topology-level.voltage-levels.node-breaker**<br>
30-
The `iidm.export.xml.topology-level.voltage-levels.node-breaker` property is an optional property that defines a list of voltage level IDs to be exported using the [Node/Breaker view]() by the IIDM exporter. Note: if the voltage level is described using a lower detailed topology (Bus/Breaker or Bus/Branch), it will be exported using the Bus/Breaker (or Bus/Branch) view (Node/Breaker is not possible since the voltage level has not enough details).
30+
The `iidm.export.xml.topology-level.voltage-levels.node-breaker` property is an optional property that defines a list of voltage level IDs to be exported using the Node/Breaker view by the IIDM exporter. Note: if the voltage level is described using a lower detailed topology (Bus/Breaker or Bus/Branch), it will be exported using the Bus/Breaker (or Bus/Branch) view (Node/Breaker is not possible since the voltage level has not enough details).
3131

3232
**iidm.export.xml.topology-level.voltage-levels.bus-breaker**<br>
33-
The `iidm.export.xml.topology-level.voltage-levels.bus-breaker` property is an optional property that defines a list of voltage level IDs to be exported using the [Bus/Breaker view]() by the IIDM exporter.
33+
The `iidm.export.xml.topology-level.voltage-levels.bus-breaker` property is an optional property that defines a list of voltage level IDs to be exported using the Bus/Breaker view by the IIDM exporter.
3434

3535
**iidm.export.xml.topology-level.voltage-levels.bus-branch**<br>
36-
The `iidm.export.xml.topology-level.voltage-levels.bus-branch` property is an optional property that defines a list of voltage level IDs to be exported using the [Bus/Branch view]() by the IIDM exporter.
36+
The `iidm.export.xml.topology-level.voltage-levels.bus-branch` property is an optional property that defines a list of voltage level IDs to be exported using the Bus/Branch view by the IIDM exporter.
3737

3838
**iidm.export.xml.throw-exception-if-extension-not-found**<br>
3939
The `iidm.export.xml.throw-exception-if-extension-not-found` property is an optional property that defines whether the XIIDM exporter throws an exception if the network contains an unknown or unserializable extension or if it just ignores it. Its default value is `false`.

docs/grid_features/extraction.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ reducer.reduce(network)
205205
saveNetwork("XIIDM", network, null, args[1])
206206
```
207207

208-
See the [groovy scripts]() documentation page for more information about this topic.
209-
210-
Then, we run the [groovy-script]() command to apply the previous script to the `network.xiidm` file, and then export the modified network to the `network2.xiidm` file.
208+
Then, we run the [groovy-script](../user/itools/run-script.md) command to apply the previous script to the `network.xiidm` file, and then export the modified network to the `network2.xiidm` file.
211209
```shell
212210
$> ./itools run-script --file extraction.groovy network.xiidm network2.xiidm
213211
```

docs/grid_features/loadflow_validation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ A load flow result is considered *acceptable* if it describes a feasible steady-
44
More practically, generations of practitioners have set quasi-standard ways to describe them that makes it possible to define precise rules.
55
They are described below for the different elements of the network.
66

7+
See the documentation [here](../user/configuration/loadflow-validation.md) to configure correctly this module.
8+
79
(loadflow-validation-buses)=
810
## Buses
911

docs/grid_features/network_modifications.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ It takes as input:
4646
- The ID of the bus or busbar section (in `BUS_BREAKER` or `NODE_BREAKER` voltage levels respectively) to which the
4747
injection should be connected.
4848
- The position order of the injection: when adding an injection to a `NODE_BREAKER` voltage level, this integer will be
49-
used to create the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension) that is
49+
used to create the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position) that is
5050
used for visualization. It is optional for `BUS_BREAKER` voltage levels and will be ignored if specified.
51-
- Optionally, a name for the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension).
51+
- Optionally, a name for the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position).
5252
By default, the ID of the injection will be used.
53-
- Optionally, the direction of the injection. It is also used to fill the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension).
53+
- Optionally, the direction of the injection. It is also used to fill the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position).
5454
It indicates if the injection should be displayed at the top or at the bottom of the busbar section. By default, it is
5555
`BOTTOM`.
5656
- Optionally, a boolean `logOrThrowIfIncorrectPositionOrder`, that indicates what should happen if the position order is
@@ -71,8 +71,8 @@ If the voltage level topology kind is `BUS_BREAKER`, then the injection is added
7171
bus without any extension or switches.
7272
If the voltage level topology kind is `NODE_BREAKER`, then the injection is added to the voltage level and connected to
7373
the busbar section with a closed disconnector and a breaker. Additionally, open disconnectors will be created on every
74-
parallel busbar section. To know which busbar sections are parallel, the [`BusbarSectionPosition` extension](../grid_model/extensions.md#busbar-section-position-extension)
75-
is used. The [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension) will also be
74+
parallel busbar section. To know which busbar sections are parallel, the [`BusbarSectionPosition` extension](../grid_model/extensions.md#busbar-section-position)
75+
is used. The [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position) will also be
7676
created for the injection with the given data, unless there are no extensions yet in the voltage level.
7777

7878
#### Create Branch Feeder bays
@@ -84,15 +84,15 @@ It takes as input:
8484
- The ID of the bus or busbar section (in `BUS_BREAKER` or `NODE_BREAKER` voltage levels respectively) to which the side
8585
2 of the branch should be connected.
8686
- The position order of the branch on side 1. If the voltage level on side 1 of the branch is `NODE_BREAKER`, then
87-
this integer is used to create the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension)
87+
this integer is used to create the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position)
8888
for the branch that is used for visualization and for positioning connectables relative to each other.
8989
It is optional for `BUS_BREAKER` voltage levels and will be ignored if specified.
9090
- The position order of the branch on side 2. It is the same but on the other side.
91-
- Optionally, a name for the feeder that will be added in the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension)
91+
- Optionally, a name for the feeder that will be added in the [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position)
9292
for side 1. This name is used for visualization. By default, it is the ID of the connectable.
9393
- Optionally, a name for the feeder for side 2.
9494
- Optionally, the direction of the feeder on side 1. This information will be used to fill the field in the
95-
[`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension) and indicates the relative
95+
[`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position) and indicates the relative
9696
position of the branch with its busbar section on side 1. The default value is `TOP`.
9797
- Optionally, the direction on side 2.
9898
- Optionally, a boolean `logOrThrowIfIncorrectPositionOrder1`, that indicates what should happen if the position order is
@@ -114,8 +114,8 @@ For each side, if the voltage level topology kind is `BUS_BREAKER`, then the bra
114114
connected to the bus without any extension or switches. If the voltage level topology kind is `NODE_BREAKER`, then the
115115
branch is added to the voltage level and connected to the busbar section with a closed disconnector and a breaker.
116116
Additionally, open disconnectors will be created on every parallel busbar section. To know which busbar sections are
117-
parallel, the [`BusbarSectionPosition` extension](../grid_model/extensions.md#busbar-section-position-extension)
118-
is used. The [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension) will also be
117+
parallel, the [`BusbarSectionPosition` extension](../grid_model/extensions.md#busbar-section-position)
118+
is used. The [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position) will also be
119119
created for the branch with the given data, unless no extensions are already available in the voltage level.
120120

121121
#### Create Coupling Device
@@ -133,7 +133,7 @@ busbar sections as such:
133133
A closed disconnector will be created on both busbar sections.
134134
A closed breaker will be created between the two closed disconnectors.
135135
An open disconnector will be created on every parallel busbar section. To find the parallel busbar sections, the
136-
[`BusbarSectionPosition` extension](../grid_model/extensions.md#busbar-section-position-extension) is used.
136+
[`BusbarSectionPosition` extension](../grid_model/extensions.md#busbar-section-position) is used.
137137
The coupling device can be created between busbar sections that are parallel or not. If the two busbar sections are
138138
parallel and there are exactly two parallel busbar sections, then no open disconnectors are created.
139139

@@ -199,7 +199,7 @@ It takes as input:
199199

200200
### Connect feeders to busbar sections
201201
This class allows the connection of feeders to busbar sections in `NODE_BREAKER` topology.
202-
The [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position-extension) must be available for each busbar section in the voltage level.
202+
The [`ConnectablePosition` extension](../grid_model/extensions.md#connectable-position) must be available for each busbar section in the voltage level.
203203

204204
It takes as input:
205205
- A list of connectables that should be connected. None of them should be a `BusbarSection`.

docs/grid_model/extensions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Every extension is considered as serializable unless explicitly specified as non
1313

1414
(active-power-control-extension)=
1515
## Active power control
16-
This extension is used to configure the participation factor of the generator, typically in the case of a load flow computation with distributed slack enabled (with [balance type](../simulation/loadflow/configuration.md#generic-parameters) on generator). This extension is attached to a [generator](network_subnetwork.md#generator) or a [battery](network_subnetwork.md#battery).
16+
This extension is used to configure the participation factor of the generator, typically in the case of a load flow computation with distributed slack enabled (with [balance type](../simulation/loadflow/configuration.md#optional-properties) on generator). This extension is attached to a [generator](network_subnetwork.md#generator) or a [battery](network_subnetwork.md#battery).
1717

1818
| Attribute | Type | Unit | Required | Default value | Description |
1919
|----------------------|---------|------------------------|----------|---------------|---------------------------------------------------------------------------------------|
@@ -610,9 +610,9 @@ This extension is used for generators with a remote reactive control.
610610
This extension is attached to a [voltage level](network_subnetwork.md#voltage-level) and is used to define the slack bus
611611
of a power flow calculation i.e. which bus will be used to balance the active and reactive power in load flow analysis.
612612
Use this extension before a computation to force the slack bus selection. You should enable default load flow parameter
613-
[`isReadSlackBus`](../simulation/loadflow/configuration.md#generic-parameters). Use this extension after a computation to attach
613+
[`readSlackBus`](../simulation/loadflow/configuration.md#optional-properties). Use this extension after a computation to attach
614614
to the network the slack bus that has been selected by the load flow engine (one by connected component). You should enable
615-
default load flow parameter [`isWriteSlackBus`](../simulation/loadflow/configuration.md#generic-parameters).
615+
default load flow parameter [`writeSlackBus`](../simulation/loadflow/configuration.md#optional-properties).
616616

617617
The slack bus is defined through the terminal of a connectable that belongs to the bus. It is totally allowed to define a disconnected terminal as slack as the connectable could be reconnected during a grid study.
618618

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PowSyBl (<b>Pow</b>er <b>Sy</b>stem <b>Bl</b>ocks) is an open source library wri
55
dedicated to electrical grid modeling, simulation and visualization, licensed under the [Mozilla Public License version 2.0](https://www.mozilla.org/en-US/MPL/2.0/).
66
It is part of [LF Energy](https://www.lfenergy.org/), an open source foundation focused on the energy sector, hosted within The Linux Foundation.
77

8-
PowSyBl is used through Python scripts using the library [Pypowsybl](https://powsybl.readthedocs.io/projects/pypowsybl/en/stable/), but also
8+
PowSyBl is used through Python scripts using the library [Pypowsybl](inv:pypowsybl:*:*#index), but also
99
to build state-of-the-art applications.
1010

1111
Check the [Getting started](./user/index.md) and [Configuration](./user/configuration/index.md) pages to learn how to install and configure PowSyBl.

docs/simulation/dynamic/configuration.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Configuration
22

3+
The `dynamic-simulation` module is used to configure the execution of the [dynamic-simulation](../../user/itools/dynamic-simulation.md) command and simulation.
4+
35
## Implementation
46
If you have several implementations in your classpath, you need to choose which implementation to use in your configuration file with the `default-impl-name` property.
57
Each implementation is identified by its name, that may be unique in the classpath:
68
- Use "Dynawo" to use powsybl-dynawo implementation
79

10+
The `com.powsybl.dynamicsimulation.DynamicSimulationParameters` class provides the generic parameters for all `com.powsybl.dynamicsimulation.DynamicSimulation`
11+
implementations. Specific parameters should be provided as an extension of the `DynamicSimulationParameters` class.
12+
813
**YAML configuration:**
914
```yaml
1015
dynamic-simulation:
@@ -55,7 +60,7 @@ This property specifies the directory path where debug files will be dumped. If
5560

5661
### Specific parameters
5762
Some implementations use specific parameters that can be defined in the configuration file or in the JSON parameters file:
58-
- [Dynawo](inv:powsybldynawo:*:*#dynamic_simulation/configuration)
63+
- [Dynawo](inv:powsybldynawo:*:*#dynamic_simulation/configuration) and its default parameters.
5964

6065
### Examples
6166

0 commit comments

Comments
 (0)