Skip to content

Commit

Permalink
Merge pull request #841 from PowerGridModel/feature/only-important-in…
Browse files Browse the repository at this point in the history
…tegration-tests-2

Keep only important integration tests: step 2
  • Loading branch information
TonyXiang8787 authored Nov 27, 2024
2 parents bfc58a1 + fd3f652 commit e599096
Show file tree
Hide file tree
Showing 30 changed files with 409 additions and 831 deletions.
12 changes: 12 additions & 0 deletions docs/user_manual/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@ with the highest probability.
| ----------------- | --------- | ---- | ------------------------- | :------: | :------: | :---------------: |
| `measured_object` | `int32_t` | - | ID of the measured object | ✔ | ❌ | a valid object ID |

#### Output

A sensor only has output for state estimation. For other calculation types, sensor output is undefined.

### Generic Voltage Sensor

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

##### Steady state output

```{note}
A sensor only has output for state estimation. For other calculation types, sensor output is undefined.
```

| name | data type | unit | description |
| ------------------ | ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------ |
| `u_residual` | `RealValueOutput` | volt (V) | residual value between measured voltage magnitude and calculated voltage magnitude |
Expand Down Expand Up @@ -688,6 +696,10 @@ See the documentation on [state estimation calculation methods](calculations.md#

##### Steady state output

```{note}
A sensor only has output for state estimation. For other calculation types, sensor output is undefined.
```

| name | data type | unit | description |
| ------------ | ----------------- | -------------------------- | ---------------------------------------------------------------------------- |
| `p_residual` | `RealValueOutput` | watt (W) | residual value between measured active power and calculated active power |
Expand Down
1 change: 0 additions & 1 deletion tests/cpp_integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

set(PROJECT_SOURCES
"test_entry_point.cpp"
"test_main_model_sc.cpp"
"test_main_model_se.cpp"
"test_main_model.cpp"
"test_math_solver.cpp"
Expand Down
627 changes: 1 addition & 626 deletions tests/cpp_integration_tests/test_main_model.cpp

Large diffs are not rendered by default.

202 changes: 0 additions & 202 deletions tests/cpp_integration_tests/test_main_model_sc.cpp

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"version": "1.0",
"type": "asym_output",
"is_batch": true,
"attributes": {},
"data": [
{
"node": [
{
"id": 1,
"u": [4.618802153517006, 4.618802153517006, 4.618802153517006]
},
{
"id": 2,
"u": [3.464101615137755, 3.464101615137755, 3.464101615137755]
}
]
},
{
"node": [
{
"id": 1,
"u": [4.618802153517006, 4.618802153517006, 4.618802153517006]
},
{
"id": 2,
"u": [3.464101615137755, 3.464101615137755, 3.464101615137755]
}
]
},
{
"node": [
{
"id": 1,
"u": [5.196152422706632, 5.196152422706632, 5.196152422706632]
},
{
"id": 2,
"u": [4.618802153517006, 4.618802153517006, 4.618802153517006]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>

SPDX-License-Identifier: MPL-2.0
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
"x1": 1.0,
"c1": 0.0,
"tan1": 0.0,
"i_n": 1e3
"i_n": 1e3,
"r0": 0.0,
"x0": 1.0,
"c0": 0.0,
"tan0": 0.0
}
],
"source": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": "1.0",
"type": "input",
"is_batch": false,
"attributes": {},
"data": {
"node": [
{
"id": 1,
"u_rated": 100000.0
},
{
"id": 2,
"u_rated": 100000.0
}
],
"line": [
{
"id": 3,
"from_node": 1,
"to_node": 2,
"from_status": 1,
"to_status": 1,
"r1": 10.0,
"x1": 0.0,
"c1": 0.0,
"tan1": 0.0,
"r0": 10.0,
"x0": 0.0,
"c0": 0.0,
"tan0": 0.0,
"i_n": 1e3
}
],
"source": [
{
"id": 4,
"node": 1,
"status": 1,
"u_ref": 1.0
}
],
"fault": [
{
"id": 5,
"status": 1,
"fault_type": 1,
"fault_object": 1
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>

SPDX-License-Identifier: MPL-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"calculation_method": "iec60909",
"rtol": 1e-08,
"atol": 1e-08,
"short_circuit_voltage_scaling": "maximum"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>

SPDX-License-Identifier: MPL-2.0
Loading

0 comments on commit e599096

Please sign in to comment.