Skip to content

Commit bfeb97d

Browse files
committed
current-power local sensor validation case
Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
1 parent 82cec32 commit bfeb97d

File tree

12 files changed

+154
-0
lines changed

12 files changed

+154
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
],
11+
"line": [
12+
{"id": 3, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "r1": 3, "x1": 2, "c1": 9.9999999999999995e-07, "tan1": 0}
13+
],
14+
"source": [
15+
{"id": 4, "node": 1, "status": 1, "u_ref": 1}
16+
],
17+
"sym_load": [
18+
{"id": 5, "node": 2, "status": 1, "type": 0}
19+
],
20+
"sym_voltage_sensor": [
21+
{"id": 6, "measured_object": 1, "u_sigma": 200, "u_measured": 10000, "u_angle_measured": 0}
22+
],
23+
"sym_current_sensor": [
24+
{"id": 7, "measured_object": 3, "measured_terminal_type": 1, "angle_measurement_type": 0, "i_sigma": 5, "i_angle_sigma": 0.10000000000000001, "i_measured": 10, "i_angle_measured": 0.5}
25+
]
26+
}
27+
}
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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"calculation_method": [
3+
"iterative_linear",
4+
"newton_raphson"
5+
],
6+
"rtol": 1e-8,
7+
"atol": {
8+
"default": 1e-8,
9+
".+_residual": 5e-4
10+
},
11+
"extra_params": {
12+
"iterative_linear": {
13+
"experimental_features": "enabled"
14+
},
15+
"newton_raphson": {
16+
"experimental_features": "enabled",
17+
"fail": {
18+
"raises": "SparseMatrixError",
19+
"reason": "Current sensors are not yet implemented for this calculation method"
20+
}
21+
}
22+
}
23+
}
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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": "1.0",
3+
"type": "sym_output",
4+
"is_batch": false,
5+
"attributes": {},
6+
"data": {
7+
"node": [
8+
{"id": 1, "energized": 1, "u_pu": 1, "u": 10000, "u_angle": -3.4694469519536142e-18, "p": -152009.12684220925, "q": -114546.21807138032},
9+
{"id": 2, "energized": 1, "u_pu": 1.0065370416981694, "u": 10065.370416981694, "u_angle": 7.4547572222640965e-05, "p": 152995.40009988801, "q": 83581.768571801134}
10+
],
11+
"line": [
12+
{"id": 3, "energized": 1, "p_from": -152009.12684220925, "q_from": -114546.21807138032, "i_from": 10.989026453358989, "s_from": 190335.52142936189, "p_to": 152995.40009988801, "q_to": 83581.768571801134, "i_to": 9.9999999999999787, "s_to": 174337.32959212991}
13+
],
14+
"source": [
15+
{"id": 4, "energized": 1, "p": -152009.12684220925, "q": -114546.21807138032, "i": 10.989026453358989, "s": 190335.52142936189, "pf": -0.79863771985737042}
16+
],
17+
"sym_load": [
18+
{"id": 5, "energized": 1, "p": -152995.40009988801, "q": -83581.768571801134, "i": 9.9999999999999769, "s": 174337.32959212991, "pf": -0.87758256053266204}
19+
],
20+
"sym_voltage_sensor": [
21+
{"id": 6, "energized": 1, "u_residual": 0, "u_angle_residual": 3.4694469519536142e-18}
22+
],
23+
"sym_current_sensor": [
24+
{"id": 7, "energized": 1, "i_residual": 2.243456467447491e-14, "i_angle_residual": -2.8319531719667168e-09}
25+
]
26+
}
27+
}
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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
],
11+
"line": [
12+
{"id": 3, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "r1": 3, "x1": 2, "c1": 9.9999999999999995e-07, "tan1": 0}
13+
],
14+
"source": [
15+
{"id": 4, "node": 1, "status": 1, "u_ref": 1}
16+
],
17+
"sym_load": [
18+
{"id": 5, "node": 2, "status": 1, "type": 0}
19+
],
20+
"sym_voltage_sensor": [
21+
{"id": 6, "measured_object": 1, "u_sigma": 200, "u_measured": 10000, "u_angle_measured": 0}
22+
],
23+
"sym_power_sensor": [
24+
{"id": 7, "measured_object": 3, "measured_terminal_type": 1, "p_measured": 152995.40033658801, "q_measured": 83581.768138525527, "p_sigma": 20000, "q_sigma": 10000}
25+
]
26+
}
27+
}
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"calculation_method": ["iterative_linear"],
3+
"rtol": 1e-5,
4+
"atol": 1e-5
5+
}
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)