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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,21 @@ We recognize different levels of contributions as shown below in increasing orde
23
23
1. Develop new mathematical algorithms
24
24
1. Improve or add new features into the C++ codebase
25
25
26
+
## Folder Structure
27
+
28
+
The repository folder structure is as follows. The `examples`, `docs` and `scripts` folders are self-explanatory.
29
+
30
+
- The C++ calculation core is inside [include/power-grid-model](include/power-grid-model).
31
+
- The python interface code is in [src/power_grid_model](src/power_grid_model)
32
+
- The code for validation of input data is in [validation](src/power_grid_model/validation) folder.
33
+
- The [tests](tests) folder is divided in the following way:
34
+
-`cpp_unit_tests` contains the tests for the C++ calculation core.
35
+
-`benchmark_cpp` contains a benchmark test case generator in C++.
36
+
-`unit` folder contains tests for the python code.
37
+
-`data` contains validation test cases designed for every component and algorithm. Some sample network types are also included.
38
+
The validation is either against popular power system analysis software or hand calculation.
39
+
40
+
26
41
## Filing bugs and change requests
27
42
28
43
You can file bugs against and change request for the project via GitHub issues. Consult [GitHub Help](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/creating-an-issue) for more
Copy file name to clipboardExpand all lines: README.md
+8-141Lines changed: 8 additions & 141 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ SPDX-License-Identifier: MPL-2.0
8
8
[](https://github.com/alliander-opensource/power-grid-model/actions/workflows/main.yml)
<imgsrc="docs\images\pgm-logo-color.svg"alt="Power Grid Model logo"width="100"/>
20
21
21
22
# Power Grid Model
22
23
23
24
`power-grid-model` is a Python library for steady-state distribution power system analysis.
24
25
The core of the library is written in C++.
25
26
Currently, it supports the following calculations:
26
27
27
-
* Symmetric and asymmetric power flow calculation with Newton-Raphson method and linear method
28
+
* Symmetric and asymmetric power flow calculation with Newton-Raphson method, iterative current method and linear method
28
29
* Symmetric and asymmetric state estimation with iterative linear method
29
30
31
+
See the [power-grid-model documentation](https://power-grid-model.readthedocs.io/en/stable/) for more information.
32
+
For various conversions to the power-grid-model, refer to the [power-grid-model-io](https://github.com/alliander-opensource/power-grid-model-io) repository.
33
+
30
34
# Installation
31
35
32
36
## Install from PyPI
@@ -41,146 +45,9 @@ pip install power-grid-model
41
45
42
46
To install the library from source, refer to the [Build Guide](docs/build-guide.md).
43
47
44
-
# Quick Start
45
-
46
-
In this quick start a simple 10kV network as below is calculated.
47
-
A line connects two nodes. One node has a source. One node has a symmetric load.
48
-
The code in the quick start is in [quick_example.py](scripts/quick_example.py).
49
-
50
-
```
51
-
node_1 ---line_3--- node_2
52
-
| |
53
-
source_5 sym_load_4
54
-
```
55
-
56
-
The library uses a graph data model to represent the physical components and their attributes,
57
-
see [Graph Data Model](docs/graph-data-model.md).
58
-
59
-
Firstly, import the main model class
60
-
as well as some helper functions for enumerations and meta data.
0 commit comments