Skip to content

Commit 82cec32

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

File tree

15 files changed

+66
-180
lines changed

15 files changed

+66
-180
lines changed

tests/data/state_estimation/current-sensor/basic-global-current-sensor/sym_output.json

Lines changed: 0 additions & 75 deletions
This file was deleted.

tests/data/state_estimation/current-sensor/basic-local-current-sensor/params.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/data/state_estimation/current-sensor/basic-local-current-sensor/sym_output.json

Lines changed: 0 additions & 75 deletions
This file was deleted.

tests/data/state_estimation/current-sensor/basic-global-current-sensor/input.json renamed to tests/data/state_estimation/current-sensor/global-current-sensor/input.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{"id": 2, "u_rated": 10000}
1010
],
1111
"line": [
12-
{"id": 3, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "r1": 0.000416, "x1": 0.000136, "c1": 1e-09, "tan1": 0}
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}
1313
],
1414
"source": [
1515
{"id": 4, "node": 1, "status": 1, "u_ref": 1}
@@ -18,10 +18,10 @@
1818
{"id": 5, "node": 2, "status": 1, "type": 0}
1919
],
2020
"sym_voltage_sensor": [
21-
{"id": 6, "measured_object": 1, "u_sigma": 200, "u_measured": 10000, "u_angle_measured": 0.0}
21+
{"id": 6, "measured_object": 1, "u_sigma": 200, "u_measured": 10000, "u_angle_measured": 0}
2222
],
2323
"sym_current_sensor": [
24-
{"id": 7, "measured_object": 3, "measured_terminal_type": 1, "angle_measurement_type": 1, "i_sigma": 1, "i_angle_sigma": 0.05, "i_measured": 10, "i_angle_measured": 0.3}
24+
{"id": 7, "measured_object": 3, "measured_terminal_type": 1, "angle_measurement_type": 1, "i_sigma": 5, "i_angle_sigma": 0.10000000000000001, "i_measured": 10, "i_angle_measured": 0.5}
2525
]
2626
}
2727
}
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": 2.7755575615628914e-17, "p": -152081.2413973829, "q": 51572.482773851283},
9+
{"id": 2, "energized": 1, "u_pu": 1.0032295891835012, "u": 10032.295891835012, "u_angle": 0.0050437703573163505, "p": 152910.90226951908, "q": -82536.926436116293}
10+
],
11+
"line": [
12+
{"id": 3, "energized": 1, "p_from": -152081.2413973829, "q_from": 51572.482773851283, "i_from": 9.2715379818072332, "s_from": 160587.74848794736, "p_to": 152910.90226951908, "q_to": -82536.926436116293, "i_to": 10.000000000000068, "s_to": 173764.46201222876}
13+
],
14+
"source": [
15+
{"id": 4, "energized": 1, "p": -152081.2413973829, "q": 51572.482773851283, "i": 9.2715379818072332, "s": 160587.74848794736, "pf": -0.94702891614921103}
16+
],
17+
"sym_load": [
18+
{"id": 5, "energized": 1, "p": -152910.90226951908, "q": 82536.926436116293, "i": 10.000000000000066, "s": 173764.46201222876, "pf": -0.8799895012983604}
19+
],
20+
"sym_voltage_sensor": [
21+
{"id": 6, "energized": 1, "u_residual": 0, "u_angle_residual": -2.7755575615628914e-17}
22+
],
23+
"sym_current_sensor": [
24+
{"id": 7, "energized": 1, "i_residual": -6.57012251181051e-14, "i_angle_residual": -1.7597034940308731e-14}
25+
]
26+
}
27+
}

tests/data/state_estimation/current-sensor/basic-local-current-sensor/input.json renamed to tests/data/state_estimation/current-sensor/power-from-global-current-sensor/input.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{"id": 2, "u_rated": 10000}
1010
],
1111
"line": [
12-
{"id": 3, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "r1": 0.000416, "x1": 0.000136, "c1": 1e-09, "tan1": 0}
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}
1313
],
1414
"source": [
1515
{"id": 4, "node": 1, "status": 1, "u_ref": 1}
@@ -18,10 +18,10 @@
1818
{"id": 5, "node": 2, "status": 1, "type": 0}
1919
],
2020
"sym_voltage_sensor": [
21-
{"id": 6, "measured_object": 1, "u_sigma": 200, "u_measured": 10000, "u_angle_measured": 0.0}
21+
{"id": 6, "measured_object": 1, "u_sigma": 200, "u_measured": 10000, "u_angle_measured": 0}
2222
],
23-
"sym_current_sensor": [
24-
{"id": 7, "measured_object": 3, "measured_terminal_type": 1, "angle_measurement_type": 0, "i_sigma": 1, "i_angle_sigma": 0.05, "i_measured": 10, "i_angle_measured": 0.3}
23+
"sym_power_sensor": [
24+
{"id": 7, "measured_object": 3, "measured_terminal_type": 1, "p_measured": 152910.90226951957, "q_measured": -82536.926436113092, "p_sigma": 20000, "q_sigma": 10000}
2525
]
2626
}
2727
}

0 commit comments

Comments
 (0)