Skip to content

Commit e599096

Browse files
Merge pull request #841 from PowerGridModel/feature/only-important-integration-tests-2
Keep only important integration tests: step 2
2 parents bfc58a1 + fd3f652 commit e599096

30 files changed

+409
-831
lines changed

docs/user_manual/components.md

+12
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,10 @@ with the highest probability.
569569
| ----------------- | --------- | ---- | ------------------------- | :------: | :------: | :---------------: |
570570
| `measured_object` | `int32_t` | - | ID of the measured object | ✔ | ❌ | a valid object ID |
571571

572+
#### Output
573+
574+
A sensor only has output for state estimation. For other calculation types, sensor output is undefined.
575+
572576
### Generic Voltage Sensor
573577

574578
* type name: `generic_voltage_sensor`
@@ -603,6 +607,10 @@ voltage is a line-to-line voltage. In a `asym_voltage_sensor` the measured volta
603607

604608
##### Steady state output
605609

610+
```{note}
611+
A sensor only has output for state estimation. For other calculation types, sensor output is undefined.
612+
```
613+
606614
| name | data type | unit | description |
607615
| ------------------ | ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------ |
608616
| `u_residual` | `RealValueOutput` | volt (V) | residual value between measured voltage magnitude and calculated voltage magnitude |
@@ -688,6 +696,10 @@ See the documentation on [state estimation calculation methods](calculations.md#
688696

689697
##### Steady state output
690698

699+
```{note}
700+
A sensor only has output for state estimation. For other calculation types, sensor output is undefined.
701+
```
702+
691703
| name | data type | unit | description |
692704
| ------------ | ----------------- | -------------------------- | ---------------------------------------------------------------------------- |
693705
| `p_residual` | `RealValueOutput` | watt (W) | residual value between measured active power and calculated active power |

tests/cpp_integration_tests/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
set(PROJECT_SOURCES
66
"test_entry_point.cpp"
7-
"test_main_model_sc.cpp"
87
"test_main_model_se.cpp"
98
"test_main_model.cpp"
109
"test_math_solver.cpp"

tests/cpp_integration_tests/test_main_model.cpp

+1-626
Large diffs are not rendered by default.

tests/cpp_integration_tests/test_main_model_sc.cpp

-202
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"version": "1.0",
3+
"type": "asym_output",
4+
"is_batch": true,
5+
"attributes": {},
6+
"data": [
7+
{
8+
"node": [
9+
{
10+
"id": 1,
11+
"u": [4.618802153517006, 4.618802153517006, 4.618802153517006]
12+
},
13+
{
14+
"id": 2,
15+
"u": [3.464101615137755, 3.464101615137755, 3.464101615137755]
16+
}
17+
]
18+
},
19+
{
20+
"node": [
21+
{
22+
"id": 1,
23+
"u": [4.618802153517006, 4.618802153517006, 4.618802153517006]
24+
},
25+
{
26+
"id": 2,
27+
"u": [3.464101615137755, 3.464101615137755, 3.464101615137755]
28+
}
29+
]
30+
},
31+
{
32+
"node": [
33+
{
34+
"id": 1,
35+
"u": [5.196152422706632, 5.196152422706632, 5.196152422706632]
36+
},
37+
{
38+
"id": 2,
39+
"u": [4.618802153517006, 4.618802153517006, 4.618802153517006]
40+
}
41+
]
42+
}
43+
]
44+
}
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

tests/data/power_flow/dummy-test-batch-incomplete-input/input.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"x1": 1.0,
2626
"c1": 0.0,
2727
"tan1": 0.0,
28-
"i_n": 1e3
28+
"i_n": 1e3,
29+
"r0": 0.0,
30+
"x0": 1.0,
31+
"c0": 0.0,
32+
"tan0": 0.0
2933
}
3034
],
3135
"source": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"version": "1.0",
3+
"type": "input",
4+
"is_batch": false,
5+
"attributes": {},
6+
"data": {
7+
"node": [
8+
{
9+
"id": 1,
10+
"u_rated": 100000.0
11+
},
12+
{
13+
"id": 2,
14+
"u_rated": 100000.0
15+
}
16+
],
17+
"line": [
18+
{
19+
"id": 3,
20+
"from_node": 1,
21+
"to_node": 2,
22+
"from_status": 1,
23+
"to_status": 1,
24+
"r1": 10.0,
25+
"x1": 0.0,
26+
"c1": 0.0,
27+
"tan1": 0.0,
28+
"r0": 10.0,
29+
"x0": 0.0,
30+
"c0": 0.0,
31+
"tan0": 0.0,
32+
"i_n": 1e3
33+
}
34+
],
35+
"source": [
36+
{
37+
"id": 4,
38+
"node": 1,
39+
"status": 1,
40+
"u_ref": 1.0
41+
}
42+
],
43+
"fault": [
44+
{
45+
"id": 5,
46+
"status": 1,
47+
"fault_type": 1,
48+
"fault_object": 1
49+
}
50+
]
51+
}
52+
}
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"calculation_method": "iec60909",
3+
"rtol": 1e-08,
4+
"atol": 1e-08,
5+
"short_circuit_voltage_scaling": "maximum"
6+
}
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)