Skip to content

Commit 5be1761

Browse files
authored
Merge pull request #1118 from PowerGridModel/test-sparse
Sparse matrix error: validation cases
2 parents 146e395 + d4ce5a3 commit 5be1761

File tree

12 files changed

+124
-0
lines changed

12 files changed

+124
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"version": "1.0",
3+
"type": "input",
4+
"is_batch": false,
5+
"attributes": {},
6+
"data": {
7+
"node": [
8+
{"id": 1, "u_rated": 10000},
9+
{"id": 2, "u_rated": 10000},
10+
{"id": 3, "u_rated": 10000},
11+
{"id": 4, "u_rated": 10000}
12+
],
13+
"line": [
14+
{"id": 5, "from_node": 2, "to_node": 3, "from_status": 1, "to_status": 1, "r1": 0.02, "x1": 0.05, "c1": 1.8e-07, "tan1": 0},
15+
{"id": 6, "from_node": 2, "to_node": 4, "from_status": 1, "to_status": 1, "r1": 0.03, "x1": 0.06, "c1": 2.4e-07, "tan1": 0},
16+
{"id": 7, "from_node": 3, "to_node": 4, "from_status": 1, "to_status": 1, "r1": 0.04, "x1": 0.07, "c1": 3.0e-07, "tan1": 0},
17+
{"id": 8, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "r1": 5e-7, "x1": 5e-7, "c1": 0, "tan1": 0}
18+
],
19+
"sym_load": [
20+
{"id": 9, "node": 4, "status": 1, "type": 0, "p_specified": 0, "q_specified": 0}
21+
],
22+
"source": [
23+
{"id": 10, "node": 1, "status": 1, "u_ref": 1, "sk": 2727980020, "rx_ratio": 0, "z01_ratio": 3}
24+
],
25+
"sym_power_sensor": [
26+
{"id": 11, "measured_object": 4, "measured_terminal_type": 9, "p_measured": -752000, "q_measured": 0, "p_sigma": 100, "q_sigma": 95200}
27+
],
28+
"sym_voltage_sensor": [
29+
{"id": 12, "measured_object": 1, "u_sigma": 525, "u_measured": 10000, "u_angle_measured": 0}
30+
]
31+
}
32+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2+
3+
SPDX-License-Identifier: MPL-2.0
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"calculation_method": ["newton_raphson", "iterative_linear"],
3+
"rtol": 1e-8,
4+
"atol": {
5+
"default": 1e-8
6+
},
7+
"raises": {
8+
"raises": "SparseMatrixError",
9+
"reason": "Observability check for meshed grids is not yet implemented. Also, pivot perturbation wouldn't be triggered as Matrix norm is smaller than the max pivot. See https://github.com/PowerGridModel/power-grid-model/pull/1118#issuecomment-3269339573"
10+
}
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2+
3+
SPDX-License-Identifier: MPL-2.0
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"version": "1.0",
3+
"type": "sym_output",
4+
"is_batch": false,
5+
"attributes": {},
6+
"data": {}
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2+
3+
SPDX-License-Identifier: MPL-2.0
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"version": "1.0",
3+
"type": "input",
4+
"is_batch": false,
5+
"attributes": {},
6+
"data": {
7+
"node": [
8+
{"id": 1, "u_rated": 10000},
9+
{"id": 2, "u_rated": 10000},
10+
{"id": 3, "u_rated": 10000},
11+
{"id": 4, "u_rated": 10000}
12+
],
13+
"line": [
14+
{"id": 5, "from_node": 2, "to_node": 3, "from_status": 1, "to_status": 1, "r1": 0.02, "x1": 0.05, "c1": 1.8e-07, "tan1": 0},
15+
{"id": 6, "from_node": 2, "to_node": 4, "from_status": 1, "to_status": 1, "r1": 0.03, "x1": 0.06, "c1": 2.4e-07, "tan1": 0},
16+
{"id": 7, "from_node": 3, "to_node": 4, "from_status": 1, "to_status": 1, "r1": 0.04, "x1": 0.07, "c1": 3.0e-07, "tan1": 0}
17+
],
18+
"link": [
19+
{"id": 8, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1}
20+
21+
],
22+
"sym_load": [
23+
{"id": 9, "node": 4, "status": 1, "type": 0, "p_specified": 0, "q_specified": 0}
24+
],
25+
"source": [
26+
{"id": 10, "node": 1, "status": 1, "u_ref": 1, "sk": 2727980020, "rx_ratio": 0, "z01_ratio": 3}
27+
],
28+
"sym_power_sensor": [
29+
{"id": 11, "measured_object": 4, "measured_terminal_type": 9, "p_measured": -752000, "q_measured": 0, "p_sigma": 100, "q_sigma": 95200}
30+
],
31+
"sym_voltage_sensor": [
32+
{"id": 12, "measured_object": 1, "u_sigma": 525, "u_measured": 10000, "u_angle_measured": 0}
33+
]
34+
}
35+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2+
3+
SPDX-License-Identifier: MPL-2.0
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"calculation_method": [
3+
"newton_raphson",
4+
"iterative_linear"
5+
],
6+
"rtol": 1e-8,
7+
"atol": {
8+
"default": 1e-8
9+
},
10+
"raises": {
11+
"raises": "SparseMatrixError",
12+
"reason": "Observability check for meshed grids is not yet implemented. Also, pivot perturbation wouldn't be triggered as Matrix norm is smaller than the max pivot. See https://github.com/PowerGridModel/power-grid-model/pull/1118#issuecomment-3269339573"
13+
}
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2+
3+
SPDX-License-Identifier: MPL-2.0

0 commit comments

Comments
 (0)