Skip to content

Commit cf3dab8

Browse files
Merge pull request #55 from alliander-opensource/feature/validation-networks
Feature/validation networks
2 parents 3ed71d6 + aa445ff commit cf3dab8

Some content is hidden

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

54 files changed

+8490
-140
lines changed

examples/Power Flow Example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,4 +907,4 @@
907907
},
908908
"nbformat": 4,
909909
"nbformat_minor": 5
910-
}
910+
}

tests/data/power_flow/pandapower/components/asymmetric/line/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Test case for validation of the line component for asymmetrical power flow calcu
1212
The circuit diagram is as follows:
1313
```
1414
source_4--node_1--line_3--node_2--line_6--node_5 (Line from_status=to_status=1)
15-
node_2--line_7--node_5--load_9 (Line from_status=0)
15+
node_2--line_7--node_5--asym_load_9 (Line from_status=0)
1616
node_2--line_8--node_5 (Line to_status=0)
1717
node_2--line_10--node_5 (Line from_status=to_status=0)
1818
```
1919

2020
### Modelling incompatibility with pandapower
2121

22-
- Source impedance is set too low. Result of source component here should be ignored
22+
- Source impedance is set too low. Result of source component here should be ignored

tests/data/power_flow/pandapower/components/asymmetric/line/asym_output.json

Lines changed: 83 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,113 @@
11
{
2+
"asym_load": [
3+
{
4+
"id": 9,
5+
"p": [
6+
10000.0,
7+
9000.0,
8+
8000.0
9+
],
10+
"q": [
11+
2000.0,
12+
1519.9999999999998,
13+
1000.0
14+
]
15+
}
16+
],
217
"line": [
318
{
419
"id": 3,
520
"p_from": [
6-
3346.57481494105,
7-
3346.5748149410524,
8-
3346.574814941046
21+
10013.449151275032,
22+
9013.545175913314,
23+
8013.704976920892
924
],
1025
"q_from": [
11-
-45522.88059500142,
12-
-45522.880595001414,
13-
-45522.880595001414
14-
],
15-
"i_from": [
16-
7.529591908174013,
17-
7.529591908174012,
18-
7.529591908174012
26+
-44183.30349728233,
27+
-44664.31437904536,
28+
-45185.29930997558
1929
],
2030
"p_to": [
21-
-3335.749792569181,
22-
-3335.7497925691837,
23-
-3335.7497925691837
31+
-10002.730474875714,
32+
-9002.702975273703,
33+
-8002.701070086296
2434
],
2535
"q_to": [
26-
33983.95217419129,
27-
33983.95217419129,
28-
33983.95217419129
29-
],
30-
"i_to": [
31-
5.631748839239924,
32-
5.631748839239925,
33-
5.631748839239924
36+
32644.89778974039,
37+
33125.89872786074,
38+
33646.90175161841
3439
]
3540
},
3641
{
3742
"id": 6,
3843
"p_from": [
39-
3335.522998245504,
40-
3335.5229982455035,
41-
3335.5229982455025
44+
10002.503704441773,
45+
9002.476200568382,
46+
8002.474291011049
4247
],
4348
"q_from": [
44-
-22433.946877554623,
45-
-22433.94687755462,
46-
-22433.94687755462
47-
],
48-
"i_from": [
49-
3.740597506855328,
50-
3.7405975068553277,
51-
3.7405975068553277
49+
-21096.108092266782,
50+
-21576.891500900456,
51+
-22097.671976905407
5252
],
5353
"p_to": [
54-
-3333.5601586226703,
55-
-3333.560158622669,
56-
-3333.5601586226685
54+
-10000.226742660863,
55+
-9000.226789381093,
56+
-8000.226814799019
5757
],
5858
"q_to": [
59-
10884.908400691613,
60-
10884.908400691613,
61-
10884.908400691611
62-
],
63-
"i_to": [
64-
1.8773703214629625,
65-
1.8773703214629625,
66-
1.8773703214629616
59+
9549.14411713729,
60+
10029.579217345363,
61+
10550.02434666041
6762
]
6863
},
6964
{
7065
"id": 7,
7166
"p_from": [
72-
0.2267945227165256,
73-
0.22679452271665274,
74-
0.22679452271665274
67+
0.22677068984274487,
68+
0.22677496122649096,
69+
0.22677933114717724
7570
],
7671
"q_from": [
77-
-11550.005296466165,
78-
-11550.005296466165,
79-
-11550.005296466165
80-
],
81-
"i_from": [
82-
1.9048879694633376,
83-
1.9048879694633374,
84-
1.9048879694633374
72+
-11548.78969726049,
73+
-11549.007226747157,
74+
-11549.22977449989
8575
],
8676
"p_to": [
87-
-1.4218711657912315e-08,
88-
-1.4218711657912315e-08,
89-
-1.4218711657912311e-08
77+
-4.265011141136711e-08,
78+
-4.265047626787768e-08,
79+
-4.265045763571933e-08
9080
],
9181
"q_to": [
92-
-1.4209391859698516e-08,
93-
-1.4209391859698514e-08,
94-
-1.4209391859698512e-08
95-
],
96-
"i_to": [
97-
3.315175510578024e-12,
98-
3.315175510578024e-12,
99-
3.315175510578024e-12
82+
-2.8411902997709522e-08,
83+
-2.8411518657207115e-08,
84+
-2.8412061388767562e-08
10085
]
10186
},
10287
{
10388
"id": 8,
10489
"p_from": [
105-
1.4221545258098376e-08,
106-
1.4221545258098376e-08,
107-
1.4221545258098373e-08
90+
-4.266181329280263e-08,
91+
-4.266331345604111e-08,
92+
-4.266416173347648e-08
10893
],
10994
"q_from": [
110-
1.4208488567078116e-08,
111-
1.4208488567078113e-08,
112-
1.4208488567078115e-08
113-
],
114-
"i_from": [
115-
3.3151755105780235e-12,
116-
3.315175510578023e-12,
117-
3.315175510578023e-12
95+
-4.2618335607073664e-08,
96+
-4.26192478114737e-08,
97+
-4.262135815304642e-08
11898
],
11999
"p_to": [
120-
0.22682531300694397,
121-
0.226825313006897,
122-
0.226825313006897
100+
0.22677764726667307,
101+
0.2267861892023035,
102+
0.22679492835261136
123103
],
124104
"q_to": [
125-
-11551.575067323756,
126-
-11551.57506732375,
127-
-11551.575067323754
128-
],
129-
"i_to": [
130-
1.9050174125247001,
131-
1.9050174125247,
132-
1.9050174125247
105+
-11549.144201166057,
106+
-11549.57921783062,
107+
-11550.02427798368
133108
]
134109
},
135-
{
110+
{
136111
"id": 10,
137112
"p_from": [
138113
0.0,
@@ -144,12 +119,6 @@
144119
0.0,
145120
0.0
146121
],
147-
"i_from": [
148-
0.0,
149-
0.0,
150-
0.0
151-
],
152-
153122
"p_to": [
154123
0.0,
155124
0.0,
@@ -159,11 +128,6 @@
159128
0.0,
160129
0.0,
161130
0.0
162-
],
163-
"i_to": [
164-
0.0,
165-
0.0,
166-
0.0
167131
]
168132
}
169133
],
@@ -181,60 +145,45 @@
181145
6062.17782649107
182146
],
183147
"u_angle": [
184-
-6.407135007947588e-33,
148+
-3.120916463588467e-17,
185149
-2.0943951023931953,
186150
2.0943951023931953
187151
]
188152
},
189153
{
190154
"id": 2,
191155
"u_pu": [
192-
1.0001936034695873,
193-
1.0001936034695873,
194-
1.0001936034695873
156+
1.000140968579307,
157+
1.000150387710347,
158+
1.000160024042914
195159
],
196160
"u": [
197-
6063.351485151535,
198-
6063.351485151535,
199-
6063.351485151535
161+
6063.032403086779,
162+
6063.089503534115,
163+
6063.14792069573
200164
],
201165
"u_angle": [
202-
-0.00028856634027508906,
203-
-2.0946836687334702,
204-
2.0941065360529203
166+
-0.00031574723846294634,
167+
-2.0947086775127275,
168+
2.0940834271834676
205169
]
206170
},
207171
{
208172
"id": 5,
209173
"u_pu": [
210-
1.0002615697325472,
211-
1.0002615697325472,
212-
1.0002615697325472
174+
1.0001563187231832,
175+
1.0001751547755033,
176+
1.0001944253398605
213177
],
214178
"u": [
215-
6063.7635087237995,
216-
6063.7635087237995,
217-
6063.7635087237995
179+
6063.1254583886175,
180+
6063.239645887332,
181+
6063.356467475281
218182
],
219183
"u_angle": [
220-
-0.00041998578979774,
221-
-2.094815088182993,
222-
2.0939751166033975
223-
]
224-
}
225-
],
226-
"sym_load": [
227-
{
228-
"id": 9,
229-
"p": [
230-
3333.3333333333335,
231-
3333.3333333333335,
232-
3333.3333333333335
233-
],
234-
"q": [
235-
666.6666666666666,
236-
666.6666666666666,
237-
666.6666666666666
184+
-0.00047436543357409625,
185+
-2.0948651195028436,
186+
2.093928889261308
238187
]
239188
}
240189
]

tests/data/power_flow/pandapower/components/asymmetric/line/input.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,22 @@
9595
"i_n": 1000.0
9696
}
9797
],
98-
"sym_load": [
98+
"asym_load": [
9999
{
100100
"id": 9,
101101
"node": 5,
102102
"status": 1,
103103
"type": 0,
104-
"p_specified": 10000.0,
105-
"q_specified": 2000.0
104+
"p_specified": [
105+
10000.0,
106+
9000.0,
107+
8000.0
108+
],
109+
"q_specified": [
110+
2000.0,
111+
1520.0,
112+
1000.0
113+
]
106114
}
107115
],
108116
"source": [
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2022 Contributors to the Power Grid Model project <[email protected]>
3+
4+
SPDX-License-Identifier: MPL-2.0
5+
-->
6+
## Network Test Case: Distribution grid
7+
8+
Test case representing a typical distribution grid.
9+
The grid has 2 identical parallel transformers.
10+
They power a series of overhead lines and cables which supply different loads.
11+
12+
The case is validated for ring and radial configuration by open/close position of
13+
one end of Line 13 in symmetrical batch calculation.
14+
15+
The circuit diagram is as follows:
16+
```
17+
asym_load(22) sym_load(19)
18+
| |
19+
|------trafo(17)------|-----cable(9)-----|(3)----cable(11)---|(5)----OHL(13)---(On/off)-|
20+
source(16)--|(1) |(2) |(7)---OHL(15)-|(8)
21+
|------trafo(18)------|----cable(10)-----|(4)----cable(12)---|(6)----OHL(14)------------| |
22+
| | Load(21)
23+
asym_load(23) sym_oad(20)
24+
```

0 commit comments

Comments
 (0)