diff --git a/power_grid_model_c/power_grid_model/include/power_grid_model/common/common.hpp b/power_grid_model_c/power_grid_model/include/power_grid_model/common/common.hpp index f5257c4f59..2b33c37261 100644 --- a/power_grid_model_c/power_grid_model/include/power_grid_model/common/common.hpp +++ b/power_grid_model_c/power_grid_model/include/power_grid_model/common/common.hpp @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include diff --git a/power_grid_model_c/power_grid_model/include/power_grid_model/component/transformer.hpp b/power_grid_model_c/power_grid_model/include/power_grid_model/component/transformer.hpp index 9c7c297bcb..7d7a8a4960 100644 --- a/power_grid_model_c/power_grid_model/include/power_grid_model/component/transformer.hpp +++ b/power_grid_model_c/power_grid_model/include/power_grid_model/component/transformer.hpp @@ -258,6 +258,21 @@ class Transformer : public Branch { param0.ytt() = y0_series; } + auto const low_admittance = 0.5 * 1e-12 * sn_ / base_power_3p / uk_; + bool const zero_seq_available_from = + (winding_from_ == WindingType::wye_n && winding_to_ == WindingType::wye_n) || + (winding_from_ == WindingType::wye_n && winding_to_ == WindingType::delta) || + winding_from_ == WindingType::zigzag_n; + bool const zero_seq_available_to = (winding_to_ == WindingType::wye_n && winding_from_ == WindingType::wye_n) || + (winding_to_ == WindingType::wye_n && winding_from_ == WindingType::delta) || + winding_to_ == WindingType::zigzag_n; + if (!zero_seq_available_from && from_status()) { + param0.yff() += DoubleComplex{0.0, -low_admittance}; + } + if (!zero_seq_available_to && to_status()) { + param0.ytt() += DoubleComplex{0.0, -low_admittance}; + } + // for the rest param0 is zero // calculate yabc ComplexTensor const sym_matrix = get_sym_matrix(); @@ -269,6 +284,16 @@ class Transformer : public Branch { y012 << param0.value[i], 0.0, 0.0, 0.0, param1.value[i], 0.0, 0.0, 0.0, param2.value[i]; param.value[i] = dot(sym_matrix, y012, sym_matrix_inv); } + + // for (size_t phase = 0; phase < 3; ++phase) { + + // if (from_status()) { + // param.yff()(phase, phase) += DoubleComplex{0.0, -low_from_admittance}; + // } + // if (to_status()) { + // param.ytt()(phase, phase) += DoubleComplex{0.0, -low_to_admittance}; + // } + // } return param; } }; diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/asym_output.json new file mode 100644 index 0000000000..2d00bc8807 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/asym_output.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "energized": 1, "u_pu": [0.99999999999992251, 0.99999999999992251, 0.99999999999992251], "u": [5773.5026918958101, 5773.5026918958101, 5773.5026918958101], "u_angle": [6.3296256469447942e-14, -2.0943951023931322, 2.0943951023932588], "p": [3.3332500041435393, 3.3332500041126596, 3.3332500041243667], "q": [33.165418788836249, 33.165418788872792, 33.165418788742407]}, + {"id": 2, "energized": 1, "u_pu": [0.9999500024997976, 0.99995000249979771, 0.99995000249979749], "u": [57.732140311942509, 57.732140311942516, 57.732140311942501], "u_angle": [-0.52359877559823542, -2.6179938779914309, 1.5707963267949601], "p": [-2.4789040786828292e-12, -4.9578081573761396e-12, 2.7754187906233796e-11], "q": [-4.1299171686348346e-11, 8.2598343372696058e-11, -3.7005583874973505e-11]} + ], + "transformer": [ + {"id": 4, "energized": 1, "loading": 0.00099997500124996796, "p_from": [3.3332500041435393, 3.3332500041126596, 3.3332500041243667], "q_from": [33.165418788836249, 33.165418788872792, 33.165418788742407], "i_from": [0.0057733583615496827, 0.0057733583615554463, 0.0057733583615331785], "s_from": [33.332500041686274, 33.332500041719548, 33.332500041590983], "p_to": [-2.4789040786828292e-12, -4.9578081573761396e-12, 2.7754187906233796e-11], "q_to": [-4.1299171686348346e-11, 8.2598343372696058e-11, -3.7005583874973505e-11], "i_to": [7.1664588082487635e-13, 1.4332917616497527e-12, 8.012344526598183e-13], "s_to": [4.1373500545757385e-11, 8.2747001091514797e-11, 4.6256979843719079e-11]} + ], + "source": [ + {"id": 3, "energized": 1, "p": [3.3332500041435393, 3.3332500041126596, 3.3332500041243667], "q": [33.165418788836249, 33.165418788872792, 33.165418788742414], "i": [0.0057733583615496827, 0.0057733583615554454, 0.0057733583615331794], "s": [33.332500041686274, 33.332500041719541, 33.33250004159099], "pf": [0.099999999999247344, 0.099999999998221123, 0.099999999998958006]} + ], + "asym_load": [ + {"id": 21, "energized": 0, "p": [-0, -0, -0], "q": [-0, -0, -0], "i": [0, 0, 0], "s": [0, 0, 0], "pf": [0, 0, 0]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json new file mode 100644 index 0000000000..cdbc849f77 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 2, "winding_to": 1, "clock": 1, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 0, "type": 0, "p_specified": [1000, 1000, 2000], "q_specified": [1000, 1000, 2000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json new file mode 100644 index 0000000000..e9d8a3ca21 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json @@ -0,0 +1,5 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/asym_output.json new file mode 100644 index 0000000000..3880faf30d --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/asym_output.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json new file mode 100644 index 0000000000..e8f840c210 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 0, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 0, "type": 0, "p_specified": [1000, 1000, 2000], "q_specified": [1000, 1000, 2000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json new file mode 100644 index 0000000000..2e265a3704 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json @@ -0,0 +1,9 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08, + "xfail": { + "raises": "IterationDiverge", + "reason": "Not possible to converge on loaded floating ground" + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/asym_output.json new file mode 100644 index 0000000000..3880faf30d --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/asym_output.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json new file mode 100644 index 0000000000..bde07018a2 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 0, "winding_to": 1, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 0, "type": 0, "p_specified": [1000, 1000, 2000], "q_specified": [1000, 1000, 2000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json new file mode 100644 index 0000000000..2e265a3704 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json @@ -0,0 +1,9 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08, + "xfail": { + "raises": "IterationDiverge", + "reason": "Not possible to converge on loaded floating ground" + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/asym_output.json new file mode 100644 index 0000000000..3880faf30d --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/asym_output.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json new file mode 100644 index 0000000000..88be3cbcbb --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 1, "winding_to": 2, "clock": 1, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 0, "type": 0, "p_specified": [1000, 1000, 2000], "q_specified": [1000, 1000, 2000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json new file mode 100644 index 0000000000..2e265a3704 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json @@ -0,0 +1,9 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08, + "xfail": { + "raises": "IterationDiverge", + "reason": "Not possible to converge on loaded floating ground" + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/asym_output.json new file mode 100644 index 0000000000..3880faf30d --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/asym_output.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json new file mode 100644 index 0000000000..0c973bc86a --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 1, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 0, "type": 0, "p_specified": [1000, 1000, 2000], "q_specified": [1000, 1000, 2000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json new file mode 100644 index 0000000000..2e265a3704 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json @@ -0,0 +1,9 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08, + "xfail": { + "raises": "IterationDiverge", + "reason": "Not possible to converge on loaded floating ground" + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json.license b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/asym_output.json new file mode 100644 index 0000000000..a63d63aded --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/asym_output.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "energized": 1, "u_pu": [0.99999999999566591, 0.99999999998914324, 0.99999999998924516], "u": [5773.5026918712347, 5773.5026918335761, 5773.5026918341646], "u_angle": [7.4915929693360324e-14, -2.0943951023967693, 2.0943951023970944], "p": [1003.937292662088, 3401.1846204506114, 1615.948356796991], "q": [1039.1755421521718, 1716.5374268727244, 3453.9335695411701]}, + {"id": 2, "energized": 1, "u_pu": [0.99665033518158141, 0.99665056845676936, 0.98657290535610098], "u": [57.541633930501675, 57.54164739865093, 56.95981324825361], "u_angle": [-0.52629268653201255, -2.620688080165293, 1.559910231031256], "p": [-999.99999999996146, -1000.0000000000449, -4000.0000000000387], "q": [-999.99999999998295, -999.99999999997976, -4000.0000000000296]} + ], + "transformer": [ + {"id": 4, "energized": 1, "loading": 0.090679706380342645, "p_from": [1003.937292662088, 3401.1846204506114, 1615.948356796991], "q_from": [1039.1755421521718, 1716.5374268727244, 3453.9335695411701], "i_from": [0.25026641175094039, 0.65987629660171387, 0.6604758783245096], "s_from": [1444.913801929009, 3809.7975747071659, 3813.2592613980901], "p_to": [-999.99999999996146, -1000.0000000000449, -4000.0000000000387], "q_to": [-999.99999999998295, -999.99999999997976, -4000.0000000000296], "i_to": [24.577222886669006, 24.577217134146018, 99.313075779191877], "s_to": [1414.2135623730558, 1414.2135623731126, 5656.8542494924277]} + ], + "source": [ + {"id": 3, "energized": 1, "p": [1003.937292662088, 3401.1846204506114, 1615.9483567969912], "q": [1039.1755421521718, 1716.5374268727246, 3453.9335695411701], "i": [0.25026641175094039, 0.65987629660171399, 0.6604758783245096], "s": [1444.913801929009, 3809.7975747071659, 3813.2592613980901], "pf": [0.69480773961865239, 0.89274680708253584, 0.42377091249875343]} + ], + "asym_load": [ + {"id": 21, "energized": 1, "p": [1000, 1000, 4000], "q": [1000, 1000, 4000], "i": [24.577222886669688, 24.577217134145712, 99.313075779191038], "s": [1414.2135623730949, 1414.2135623730949, 5656.8542494923795], "pf": [0.70710678118654757, 0.70710678118654757, 0.70710678118654757]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/input.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/input.json new file mode 100644 index 0000000000..5127b283ea --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 2, "winding_to": 1, "clock": 1, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 1, "type": 0, "p_specified": [1000, 1000, 4000], "q_specified": [1000, 1000, 4000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/input.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/params.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/params.json new file mode 100644 index 0000000000..e9d8a3ca21 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/params.json @@ -0,0 +1,5 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/params.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/delta-wye_n/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/asym_output.json new file mode 100644 index 0000000000..da7fc65dc7 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/asym_output.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "energized": 1, "u_pu": [0.99999999914568205, 0.99999999968883047, 0.99999999998850797], "u": [5773.5026869638505, 5773.5026900997191, 5773.5026918299081], "u_angle": [1.4071359533789161e-10, -2.0943951015928572, 2.0943951023933409], "p": [168198.1372297316, -115298.15571070107, 2674.4133664322471], "q": [234531.16139748937, 261984.8336187799, 2743.0061157125119]}, + {"id": 2, "energized": 1, "u_pu": [0.0049003381328730812, 0.0049410195971993642, 1.4866214842473346], "u": [0.28292115401344614, 0.28526989945142689, 85.830131411327969], "u_angle": [-0.16318544655958905, 2.9887484324078768, 2.08719189099924], "p": [-1000.0000000000001, -1000.0000000000001, -4000.0000000000277], "q": [-999.99999999999977, -999.99999999999943, -4000.0000000000277]} + ], + "transformer": [ + {"id": 4, "energized": 1, "loading": 5.786742395132177, "p_from": [168198.1372297316, -115298.15571070107, 2674.4133664322471], "q_from": [234531.16139748937, 261984.8336187799, 2743.0061157125119], "i_from": [49.988642462962069, 49.577127127598949, 0.66354885439713573], "s_from": [288609.56157758675, 286233.67683860834, 3831.0010970225144], "p_to": [-1000.0000000000001, -1000.0000000000001, -4000.0000000000277], "q_to": [-999.99999999999977, -999.99999999999943, -4000.0000000000277], "i_to": [4998.6137208597802, 4957.4580602181404, 65.907556664253477], "s_to": [1414.2135623730951, 1414.2135623730946, 5656.8542494924186]} + ], + "source": [ + {"id": 3, "energized": 1, "p": [168198.1372297316, -115298.15571070106, 2674.4133664322471], "q": [234531.16139748937, 261984.8336187799, 2743.0061157125115], "i": [49.988642462962069, 49.577127127598956, 0.66354885439713562], "s": [288609.56157758675, 286233.67683860834, 3831.0010970225144], "pf": [0.5827878200234714, -0.40281128686234724, 0.69809778141562617]} + ], + "asym_load": [ + {"id": 21, "energized": 1, "p": [1000, 1000, 4000], "q": [1000, 1000, 4000], "i": [4998.6137208597793, 4957.4580602181422, 65.907556664253008], "s": [1414.2135623730949, 1414.2135623730949, 5656.8542494923795], "pf": [0.70710678118654757, 0.70710678118654757, 0.70710678118654757]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/input.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/input.json new file mode 100644 index 0000000000..35a7233957 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 0, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 1, "type": 0, "p_specified": [1000, 1000, 4000], "q_specified": [1000, 1000, 4000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/input.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/params.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/params.json new file mode 100644 index 0000000000..e9d8a3ca21 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/params.json @@ -0,0 +1,5 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/params.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/asym_output.json new file mode 100644 index 0000000000..da7fc65dc7 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/asym_output.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "energized": 1, "u_pu": [0.99999999914568205, 0.99999999968883047, 0.99999999998850797], "u": [5773.5026869638505, 5773.5026900997191, 5773.5026918299081], "u_angle": [1.4071359533789161e-10, -2.0943951015928572, 2.0943951023933409], "p": [168198.1372297316, -115298.15571070107, 2674.4133664322471], "q": [234531.16139748937, 261984.8336187799, 2743.0061157125119]}, + {"id": 2, "energized": 1, "u_pu": [0.0049003381328730812, 0.0049410195971993642, 1.4866214842473346], "u": [0.28292115401344614, 0.28526989945142689, 85.830131411327969], "u_angle": [-0.16318544655958905, 2.9887484324078768, 2.08719189099924], "p": [-1000.0000000000001, -1000.0000000000001, -4000.0000000000277], "q": [-999.99999999999977, -999.99999999999943, -4000.0000000000277]} + ], + "transformer": [ + {"id": 4, "energized": 1, "loading": 5.786742395132177, "p_from": [168198.1372297316, -115298.15571070107, 2674.4133664322471], "q_from": [234531.16139748937, 261984.8336187799, 2743.0061157125119], "i_from": [49.988642462962069, 49.577127127598949, 0.66354885439713573], "s_from": [288609.56157758675, 286233.67683860834, 3831.0010970225144], "p_to": [-1000.0000000000001, -1000.0000000000001, -4000.0000000000277], "q_to": [-999.99999999999977, -999.99999999999943, -4000.0000000000277], "i_to": [4998.6137208597802, 4957.4580602181404, 65.907556664253477], "s_to": [1414.2135623730951, 1414.2135623730946, 5656.8542494924186]} + ], + "source": [ + {"id": 3, "energized": 1, "p": [168198.1372297316, -115298.15571070106, 2674.4133664322471], "q": [234531.16139748937, 261984.8336187799, 2743.0061157125115], "i": [49.988642462962069, 49.577127127598956, 0.66354885439713562], "s": [288609.56157758675, 286233.67683860834, 3831.0010970225144], "pf": [0.5827878200234714, -0.40281128686234724, 0.69809778141562617]} + ], + "asym_load": [ + {"id": 21, "energized": 1, "p": [1000, 1000, 4000], "q": [1000, 1000, 4000], "i": [4998.6137208597793, 4957.4580602181422, 65.907556664253008], "s": [1414.2135623730949, 1414.2135623730949, 5656.8542494923795], "pf": [0.70710678118654757, 0.70710678118654757, 0.70710678118654757]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/input.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/input.json new file mode 100644 index 0000000000..21dc2e9cc2 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 0, "winding_to": 1, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 1, "type": 0, "p_specified": [1000, 1000, 4000], "q_specified": [1000, 1000, 4000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/input.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/params.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/params.json new file mode 100644 index 0000000000..e9d8a3ca21 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/params.json @@ -0,0 +1,5 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/params.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye-wye_n/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/asym_output.json new file mode 100644 index 0000000000..8843e13b35 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/asym_output.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "energized": 1, "u_pu": [0.99999999922683913, 1.0000000000696649, 0.99999999952651653], "u": [5773.5026874324112, 5773.502692298468, 5773.5026891625994], "u_angle": [6.273193347103442e-10, -2.0943951019064446, 2.0943951022203224], "p": [34375.183223876324, -131148.54063942318, 152347.75230100966], "q": [330096.32797227544, 98308.172690498584, 70854.500469208011]}, + {"id": 2, "energized": 1, "u_pu": [0.0049003381328730803, 0.0049410195971993651, 1.4866214842473344], "u": [0.28292115401344609, 0.28526989945142694, 85.830131411327955], "u_angle": [-0.6867842221578877, 2.4651496568095781, 1.5635931154009413], "p": [-1000.0000000000002, -1000.0000000000006, -4000.000000000015], "q": [-1000.0000000000002, -1000.0000000000002, -3999.9999999999791]} + ], + "transformer": [ + {"id": 4, "energized": 1, "loading": 6.6380354946383582, "p_from": [34375.183223876324, -131148.54063942318, 152347.75230100966], "q_from": [330096.32797227544, 98308.172690498584, 70854.500469208011], "i_from": [57.483538286915262, 28.388960808306624, 29.101648352615975], "s_from": [331881.36278262915, 163903.74165831396, 168018.44502289264], "p_to": [-1000.0000000000002, -1000.0000000000006, -4000.000000000015], "q_to": [-1000.0000000000002, -1000.0000000000002, -3999.9999999999791], "i_to": [4998.6137208597829, 4957.4580602181422, 65.907556664252979], "s_to": [1414.2135623730956, 1414.2135623730958, 5656.8542494923759]} + ], + "source": [ + {"id": 3, "energized": 1, "p": [34375.183223876324, -131148.54063942318, 152347.75230100969], "q": [330096.32797227544, 98308.172690498584, 70854.50046920804], "i": [57.483538286915262, 28.388960808306624, 29.101648352615982], "s": [331881.36278262915, 163903.74165831396, 168018.44502289267], "pf": [0.10357672071628464, -0.80015586778259939, 0.90673230715980124]} + ], + "asym_load": [ + {"id": 21, "energized": 1, "p": [1000, 1000, 4000], "q": [1000, 1000, 4000], "i": [4998.613720859782, 4957.4580602181404, 65.907556664253022], "s": [1414.2135623730949, 1414.2135623730949, 5656.8542494923795], "pf": [0.70710678118654757, 0.70710678118654757, 0.70710678118654757]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/input.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/input.json new file mode 100644 index 0000000000..c08acc0a22 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 1, "winding_to": 2, "clock": 1, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 1, "type": 0, "p_specified": [1000, 1000, 4000], "q_specified": [1000, 1000, 4000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/input.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/params.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/params.json new file mode 100644 index 0000000000..e9d8a3ca21 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/params.json @@ -0,0 +1,5 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/params.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-delta/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/asym_output.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/asym_output.json new file mode 100644 index 0000000000..da7fc65dc7 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/asym_output.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "asym_output", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "energized": 1, "u_pu": [0.99999999914568205, 0.99999999968883047, 0.99999999998850797], "u": [5773.5026869638505, 5773.5026900997191, 5773.5026918299081], "u_angle": [1.4071359533789161e-10, -2.0943951015928572, 2.0943951023933409], "p": [168198.1372297316, -115298.15571070107, 2674.4133664322471], "q": [234531.16139748937, 261984.8336187799, 2743.0061157125119]}, + {"id": 2, "energized": 1, "u_pu": [0.0049003381328730812, 0.0049410195971993642, 1.4866214842473346], "u": [0.28292115401344614, 0.28526989945142689, 85.830131411327969], "u_angle": [-0.16318544655958905, 2.9887484324078768, 2.08719189099924], "p": [-1000.0000000000001, -1000.0000000000001, -4000.0000000000277], "q": [-999.99999999999977, -999.99999999999943, -4000.0000000000277]} + ], + "transformer": [ + {"id": 4, "energized": 1, "loading": 5.786742395132177, "p_from": [168198.1372297316, -115298.15571070107, 2674.4133664322471], "q_from": [234531.16139748937, 261984.8336187799, 2743.0061157125119], "i_from": [49.988642462962069, 49.577127127598949, 0.66354885439713573], "s_from": [288609.56157758675, 286233.67683860834, 3831.0010970225144], "p_to": [-1000.0000000000001, -1000.0000000000001, -4000.0000000000277], "q_to": [-999.99999999999977, -999.99999999999943, -4000.0000000000277], "i_to": [4998.6137208597802, 4957.4580602181404, 65.907556664253477], "s_to": [1414.2135623730951, 1414.2135623730946, 5656.8542494924186]} + ], + "source": [ + {"id": 3, "energized": 1, "p": [168198.1372297316, -115298.15571070106, 2674.4133664322471], "q": [234531.16139748937, 261984.8336187799, 2743.0061157125115], "i": [49.988642462962069, 49.577127127598956, 0.66354885439713562], "s": [288609.56157758675, 286233.67683860834, 3831.0010970225144], "pf": [0.5827878200234714, -0.40281128686234724, 0.69809778141562617]} + ], + "asym_load": [ + {"id": 21, "energized": 1, "p": [1000, 1000, 4000], "q": [1000, 1000, 4000], "i": [4998.6137208597793, 4957.4580602181422, 65.907556664253008], "s": [1414.2135623730949, 1414.2135623730949, 5656.8542494923795], "pf": [0.70710678118654757, 0.70710678118654757, 0.70710678118654757]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/asym_output.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/asym_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/asym_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/input.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/input.json new file mode 100644 index 0000000000..6f73ae6665 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 1, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "asym_load": [ + {"id": 21, "node": 2, "status": 1, "type": 0, "p_specified": [1000, 1000, 4000], "q_specified": [1000, 1000, 4000]} + ] + } +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/input.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/params.json b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/params.json new file mode 100644 index 0000000000..e9d8a3ca21 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/params.json @@ -0,0 +1,5 @@ +{ + "calculation_method": "newton_raphson", + "rtol": 1e-08, + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/params.json.license b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/power_flow/floating-ground-edge-case/non-floating-ground-no-error/wye_n-wye/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/input.json new file mode 100644 index 0000000000..ff2d3eef46 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 2, "winding_to": 1, "clock": 1, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/sc_output_batch.json new file mode 100644 index 0000000000..050c15564f --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/sc_output_batch.json @@ -0,0 +1,98 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": true, + "attributes": {}, + "data": [ + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999997750298, 1.099999999999915, 1.0999999993731284], "u": [6350.8529597870174, 6350.852961085393, 6350.8529574666391], "u_angle": [5.3998444232934915e-10, -2.0943951023931322, 2.094395102486168]}, + {"id": 2, "energized": 1, "u_pu": [0, 1.0999358374787733, 1.0999358370769019], "u": [0, 63.50482518596862, 63.504825162766565], "u_angle": [0, -2.6179794449881841, 1.5707818940026461]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [36.670944435687595, 0.0063506941977069416, 36.670944435684888], "i_from_angle": [-1.9941410905363317, 2.7181612991517619, 1.1472783825067543], "i_to": [6350.95879653671, 6.4098756212785464e-13, 1.3043151910263324e-12], "i_to_angle": [1.1473649727801081, 1.5707963267948966, -2.9562447035940984]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [36.670938027698256, 0.0063362924080585283, 36.670930553381012], "i_angle": [-1.9941411801013165, 2.7173024449518475, 1.1472783519071938]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [6350.9587965367073, 0, 0], "i_f_angle": [-1.9942276808096853, 0, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999991482574, 1.1000000000884216, 1.0999999994855794], "u": [6350.8529561683454, 6350.8529615963853, 6350.8529581158746], "u_angle": [6.3288330006548035e-10, -2.094395101899674, 2.0943951022162106]}, + {"id": 2, "energized": 1, "u_pu": [0.54997250137488873, 0.54997250137488873, 1.0999450027497772], "u": [31.752677171568383, 31.752677171568383, 63.505354343136752], "u_angle": [-1.5707963267948328, -1.5707963267948328, 1.5707963267949601]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [63.511704988161533, 31.755852970350603, 31.755852970343604], "i_from_angle": [-1.4706289050004533, 1.6711369406789842, 1.6707905564996957], "i_to": [5499.9999957412847, 5499.9999957412865, 1.2819751242557093e-12], "i_to_angle": [1.67096374858934, -1.4706289050004533, 0]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [63.511686579668918, 31.755845818737146, 31.755851639489531], "i_angle": [-1.4706289872266858, 1.6711366130981662, 1.6707905793263016]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412847, 5499.9999957412847, 0], "i_f_angle": [-1.4706289050004533, 1.67096374858934, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999991482574, 1.0999999997750232, 1.0999999993731351], "u": [6350.8529561683454, 6350.8529597869792, 6350.8529574666773], "u_angle": [6.3288330006548035e-10, -2.0943951018532183, 2.0943951024861756]}, + {"id": 2, "energized": 1, "u_pu": [0, 0, 1.0999266712712679], "u": [0, 0, 63.504295974731548], "u_angle": [0, 0, 1.5707963270059071]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [63.511704988161533, 36.670638977569773, 36.670638964170465], "i_from_angle": [-1.4706289050004535, 2.194663545809906, 1.1472639511577638], "i_to": [6350.9058767357792, 6350.9058790561376, 1.2844765415108726e-12], "i_to_angle": [1.1473505399877872, -0.94701569660984752, -3.0791738435938361]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [63.511686579668918, 36.670632135963444, 36.670628707201409], "i_angle": [-1.4706289872266858, 2.1946632037515195, 1.1472637298351516]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [6350.9058767357783, 6350.9058790561376, 0], "i_f_angle": [-1.9942421136020061, 2.1945769569799456, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999997556327, 1.099999999999915, 1.0999999994312608], "u": [6350.8529596750277, 6350.852961085393, 6350.8529578022662], "u_angle": [4.6878039165085759e-10, -2.0943951023931322, 2.0943951024352949]}, + {"id": 2, "energized": 1, "u_pu": [0.13975800139931963, 1.0999356486494822, 1.0999379419205488], "u": [8.0689319729301285, 63.504814283904416, 63.504946685971177], "u_angle": [-1.1283330600089785, -2.6179815555432473, 1.5707828006583873]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [32.945367350897016, 0.0063506941977056249, 32.944856779383713], "i_from_angle": [-1.9136485767775111, 2.7181612991522219, 1.2277519348968129], "i_to": [5705.596514991842, 9.0649330367367893e-13, 4.0061722632990915e-13], "i_to_angle": [1.2278614301833666, -0.78539816339744828, -1.5707963267948966]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [32.945355199956914, 0.0063439813828656023, 32.944843836013668], "i_angle": [-1.9136490212624255, 2.7172547187517906, 1.227751644297306]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5705.5965149918411, 0, 0], "i_f_angle": [-1.9137312234064268, 0, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999991659664, 1.1000000000618806, 1.099999999520975], "u": [6350.852956270588, 6350.8529614431509, 6350.8529583202317], "u_angle": [5.6786711169442186e-10, -2.094395101922899, 2.0943951022069274]}, + {"id": 2, "energized": 1, "u_pu": [0.590435148293176, 0.51426498090185369, 1.0999450027497775], "u": [34.088789180608174, 29.691102515848296, 63.505354343136766], "u_angle": [-1.4841904407649718, -1.670269522095269, 1.5707963267949601]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [60.161020367135485, 30.080743802339299, 30.080277568573834], "i_from_angle": [-1.4282302557484861, 1.7135450701818742, 1.7131797226693839], "i_to": [5209.8081810063959, 5209.8081810063977, 1.3431136888747397e-12], "i_to_angle": [1.7133668726421265, -1.4282257809476671, -0.30288486837497142]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [60.161012864038511, 30.080744689041655, 30.080274034073422], "i_angle": [-1.4282301284916348, 1.7135448062163248, 1.7131797556486161]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5209.8081810063986, 5209.8081810063986, 0], "i_f_angle": [-1.4282257809476664, 1.7133668726421267, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999991482572, 1.0999999998307313, 1.099999999360266], "u": [6350.8529561683436, 6350.8529601086102, 6350.8529573923779], "u_angle": [6.3288339202224101e-10, -2.0943951018959663, 2.0943951024209428]}, + {"id": 2, "energized": 1, "u_pu": [0.12626409282220352, 0.12626409282220352, 1.0999302822362709], "u": [7.2898607979883092, 7.2898607979883092, 63.504504453893205], "u_angle": [-2.1102192663129316, -2.1102192663129316, 1.5707943616552378]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [63.511704988161526, 33.055925930075531, 36.977078468264409], "i_from_angle": [-1.4706289050004533, 2.1327240285452311, 1.2613227687364315], "i_to": [6404.0541966958981, 5724.8237846768361, 1.3043151910263324e-12], "i_to_angle": [1.2614250123350363, -1.00897480044767, 0.18534794999569476]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [63.511700275773677, 33.055925161771974, 36.977072073752232], "i_angle": [-1.4706290089000025, 2.1327237817474454, 1.2613226235720711]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [6404.0541966959008, 5724.8237846768352, 0], "i_f_angle": [-1.8801676412547568, 2.1326178531421229, 0]} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/delta-wye_n/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/input.json new file mode 100644 index 0000000000..2c91e082e8 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 0, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/sc_output_batch.json new file mode 100644 index 0000000000..d2ca44e73d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/sc_output_batch.json @@ -0,0 +1,98 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": true, + "attributes": {}, + "data": [ + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999999999153, 1.0999999999999153, 1.099999999999915], "u": [6350.8529610853939, 6350.8529610853939, 6350.852961085393], "u_angle": [6.3358207906926342e-14, -2.0943951023931322, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [0, 1.9051606302941033, 1.9051606302941033], "u": [0, 109.99450027497777, 109.99450027497777], "u_angle": [0, -2.6179938779914309, 2.6179938779915579]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [0.006350694197696947, 0.0063506941977199459, 0.0063506941977063448], "i_from_angle": [-1.4706289056319679, 2.7181612991521309, 0.62376619676010747], "i_to": [1.4332917616497527e-12, 6.4098756212785464e-13, 6.4098756212785464e-13], "i_to_angle": [2.0344439357957027, 1.5707963267948966, 3.1415926535897931]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [0.0063347746176986366, 0.0063328600383232552, 0.0063430470252739801], "i_angle": [-1.4728574023083705, 2.7158646025661142, 0.62201537718458677]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [1.4332917616497527e-12, 0, 0], "i_f_angle": [-1.1071487177940904, 0, 0]} + ] + }, + { + "node": [ + {}, + {} + ], + "transformer": [ + {} + ], + "source": [ + {} + ], + "fault": [ + {} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999990597507, 1.0999999996625927, 1.0999999999999148], "u": [6350.8529556573512, 6350.852959137861, 6350.8529610853911], "u_angle": [1.3942502412024955e-10, -2.094395101583264, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [0, 0, 1.6499175041246659], "u": [0, 0, 95.258031514705124], "u_angle": [0, 0, 2.0943951023932588]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [55.002750049066222, 55.002750049070258, 0.0063506941977063448], "i_from_angle": [-0.94708786009921575, 2.1946202548847, 0.62376619676010747], "i_to": [5499.9999957412856, 5499.9999957412856, 6.4098756212785464e-13], "i_to_angle": [2.1945625241876385, -0.94703012940215459, -1.5707963267948966]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [55.002738634396813, 55.002746946333353, 0.0063538709754221503], "i_angle": [-0.94708786596272787, 2.1946201463714075, 0.62346045524079408]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412847, 5499.9999957412847, 0], "i_f_angle": [-0.94703012940215459, 2.1945625241876385, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999999999153, 1.0999999999999153, 1.099999999999915], "u": [6350.8529610853939, 6350.8529610853939, 6350.852961085393], "u_angle": [6.3358207906926342e-14, -2.0943951023931322, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [3.01195421895329e-17, 1.9051606302941038, 1.9051606302941038], "u": [1.7389525790995109e-15, 109.99450027497778, 109.99450027497778], "u_angle": [2.1667677970753951, -2.6179938779914314, 2.6179938779915579]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [0.0063506941976707951, 0.0063506941977146784, 0.0063506941977040602], "i_from_angle": [-1.4706289056325685, 2.7181612991539716, 0.62376619675787948], "i_to": [1.3214297116801535e-12, 1.9229626863835639e-12, 1.4332917616497527e-12], "i_to_angle": [-1.8157749899217608, 1.5707963267948966, 2.0344439357957027]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [0.0063347746176986366, 0.0063328600383232552, 0.0063430470252739801], "i_angle": [-1.4728574023083705, 2.7158646025661142, 0.62201537718458677]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [1.2296251608431004e-12, 0, 0], "i_f_angle": [1.3813696336779466, 0, 0]} + ] + }, + { + "node": [ + {}, + {} + ], + "transformer": [ + {} + ], + "source": [ + {} + ], + "fault": [ + {} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999990597507, 1.0999999996625927, 1.0999999999999148], "u": [6350.8529556573512, 6350.852959137861, 6350.8529610853911], "u_angle": [1.3942502412024955e-10, -2.094395101583264, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [1.5141730041190059e-17, 1.5141730041190059e-17, 1.6499175041246661], "u": [8.7420819152777231e-16, 8.7420819152777231e-16, 95.258031514705138], "u_angle": [-2.3274186768508223, -2.3274186768508223, 2.0943951023932588]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [55.002750049066208, 55.002750049070265, 0.0063506941976951125], "i_from_angle": [-0.94708786009921564, 2.1946202548847, 0.62376619675764977], "i_to": [5499.9999957412856, 5499.9999957412856, 1.4332917616497527e-12], "i_to_angle": [2.1945625241876385, -0.94703012940215459, 2.0344439357957027]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [55.002738634396813, 55.002746946333353, 0.0063538709754221503], "i_angle": [-0.94708786596272787, 2.1946201463714075, 0.62346045524079408]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412847, 5499.9999957412847, 0], "i_f_angle": [-0.9470301294021547, 2.1945625241876385, 0]} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/input.json new file mode 100644 index 0000000000..7411c4ce8c --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 0, "winding_to": 1, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/sc_output_batch.json new file mode 100644 index 0000000000..d2ca44e73d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/sc_output_batch.json @@ -0,0 +1,98 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": true, + "attributes": {}, + "data": [ + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999999999153, 1.0999999999999153, 1.099999999999915], "u": [6350.8529610853939, 6350.8529610853939, 6350.852961085393], "u_angle": [6.3358207906926342e-14, -2.0943951023931322, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [0, 1.9051606302941033, 1.9051606302941033], "u": [0, 109.99450027497777, 109.99450027497777], "u_angle": [0, -2.6179938779914309, 2.6179938779915579]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [0.006350694197696947, 0.0063506941977199459, 0.0063506941977063448], "i_from_angle": [-1.4706289056319679, 2.7181612991521309, 0.62376619676010747], "i_to": [1.4332917616497527e-12, 6.4098756212785464e-13, 6.4098756212785464e-13], "i_to_angle": [2.0344439357957027, 1.5707963267948966, 3.1415926535897931]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [0.0063347746176986366, 0.0063328600383232552, 0.0063430470252739801], "i_angle": [-1.4728574023083705, 2.7158646025661142, 0.62201537718458677]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [1.4332917616497527e-12, 0, 0], "i_f_angle": [-1.1071487177940904, 0, 0]} + ] + }, + { + "node": [ + {}, + {} + ], + "transformer": [ + {} + ], + "source": [ + {} + ], + "fault": [ + {} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999990597507, 1.0999999996625927, 1.0999999999999148], "u": [6350.8529556573512, 6350.852959137861, 6350.8529610853911], "u_angle": [1.3942502412024955e-10, -2.094395101583264, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [0, 0, 1.6499175041246659], "u": [0, 0, 95.258031514705124], "u_angle": [0, 0, 2.0943951023932588]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [55.002750049066222, 55.002750049070258, 0.0063506941977063448], "i_from_angle": [-0.94708786009921575, 2.1946202548847, 0.62376619676010747], "i_to": [5499.9999957412856, 5499.9999957412856, 6.4098756212785464e-13], "i_to_angle": [2.1945625241876385, -0.94703012940215459, -1.5707963267948966]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [55.002738634396813, 55.002746946333353, 0.0063538709754221503], "i_angle": [-0.94708786596272787, 2.1946201463714075, 0.62346045524079408]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412847, 5499.9999957412847, 0], "i_f_angle": [-0.94703012940215459, 2.1945625241876385, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999999999153, 1.0999999999999153, 1.099999999999915], "u": [6350.8529610853939, 6350.8529610853939, 6350.852961085393], "u_angle": [6.3358207906926342e-14, -2.0943951023931322, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [3.01195421895329e-17, 1.9051606302941038, 1.9051606302941038], "u": [1.7389525790995109e-15, 109.99450027497778, 109.99450027497778], "u_angle": [2.1667677970753951, -2.6179938779914314, 2.6179938779915579]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [0.0063506941976707951, 0.0063506941977146784, 0.0063506941977040602], "i_from_angle": [-1.4706289056325685, 2.7181612991539716, 0.62376619675787948], "i_to": [1.3214297116801535e-12, 1.9229626863835639e-12, 1.4332917616497527e-12], "i_to_angle": [-1.8157749899217608, 1.5707963267948966, 2.0344439357957027]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [0.0063347746176986366, 0.0063328600383232552, 0.0063430470252739801], "i_angle": [-1.4728574023083705, 2.7158646025661142, 0.62201537718458677]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [1.2296251608431004e-12, 0, 0], "i_f_angle": [1.3813696336779466, 0, 0]} + ] + }, + { + "node": [ + {}, + {} + ], + "transformer": [ + {} + ], + "source": [ + {} + ], + "fault": [ + {} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999990597507, 1.0999999996625927, 1.0999999999999148], "u": [6350.8529556573512, 6350.852959137861, 6350.8529610853911], "u_angle": [1.3942502412024955e-10, -2.094395101583264, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [1.5141730041190059e-17, 1.5141730041190059e-17, 1.6499175041246661], "u": [8.7420819152777231e-16, 8.7420819152777231e-16, 95.258031514705138], "u_angle": [-2.3274186768508223, -2.3274186768508223, 2.0943951023932588]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [55.002750049066208, 55.002750049070265, 0.0063506941976951125], "i_from_angle": [-0.94708786009921564, 2.1946202548847, 0.62376619675764977], "i_to": [5499.9999957412856, 5499.9999957412856, 1.4332917616497527e-12], "i_to_angle": [2.1945625241876385, -0.94703012940215459, 2.0344439357957027]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [55.002738634396813, 55.002746946333353, 0.0063538709754221503], "i_angle": [-0.94708786596272787, 2.1946201463714075, 0.62346045524079408]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412847, 5499.9999957412847, 0], "i_f_angle": [-0.9470301294021547, 2.1945625241876385, 0]} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye-wye_n/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/input.json new file mode 100644 index 0000000000..3a640d0906 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 1, "winding_to": 2, "clock": 1, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/sc_output_batch.json new file mode 100644 index 0000000000..db97642d1e --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/sc_output_batch.json @@ -0,0 +1,98 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": true, + "attributes": {}, + "data": [ + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.099999999999915, 1.0999999999999148, 1.0999999999999148], "u": [6350.852961085393, 6350.8529610853911, 6350.8529610853911], "u_angle": [6.32662511429597e-14, -2.0943951023931322, 2.0943951023932583]}, + {"id": 2, "energized": 1, "u_pu": [0, 1.9051606302941027, 1.9051606302941031], "u": [0, 109.99450027497772, 109.99450027497775], "u_angle": [0, -3.1415926535897301, 2.0943951023932588]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [0.0063506941977342522, 0.0063506941976796162, 0.0063506941976795043], "i_from_angle": [-1.47062890563408, 2.718161299151483, 0.62376619675941836], "i_to": [1.4332917616497527e-12, 0, 2.5639502485114186e-12], "i_to_angle": [2.0344439357957027, 0, 0]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [0.0063423001869742516, 0.0063537032307233818, 0.0063427006899470124], "i_angle": [-1.4718835320585038, 2.719133857458762, 0.62472753867362829]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [1.4708709339010663e-12, 0, 0], "i_f_angle": [-1.058406866484159, 0, 0]} + ] + }, + { + "node": [ + {}, + {} + ], + "transformer": [ + {} + ], + "source": [ + {} + ], + "fault": [ + {} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999991482572, 1.1000000000884211, 1.0999999994855794], "u": [6350.8529561683436, 6350.8529615963835, 6350.8529581158746], "u_angle": [6.3288339198643598e-10, -2.094395101899674, 2.0943951022162102]}, + {"id": 2, "energized": 1, "u_pu": [0, 0, 1.6499175041246659], "u": [0, 0, 95.258031514705124], "u_angle": [0, 0, 1.5707963267949601]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [63.511704988161526, 31.755852970350585, 31.755852970343597], "i_from_angle": [-1.4706289050004533, 1.6711369406789844, 1.6707905564996959], "i_to": [5499.9999957412856, 5499.9999957412838, 1.2844765415108726e-12], "i_to_angle": [1.67096374858934, -1.4706289050004533, 0.06241880999595735]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [63.511700964028492, 31.755848576504697, 31.755865679367034], "i_angle": [-1.4706289010765261, 1.6711374756710209, 1.6707906438796403]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412847, 5499.9999957412838, 0], "i_f_angle": [-1.4706289050004533, 1.6709637485893398, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.099999999999915, 1.0999999999999148, 1.0999999999999148], "u": [6350.852961085393, 6350.8529610853911, 6350.8529610853911], "u_angle": [6.32662511429597e-14, -2.0943951023931322, 2.0943951023932583]}, + {"id": 2, "energized": 1, "u_pu": [4.6810857756536534e-17, 1.9051606302941024, 1.9051606302941029], "u": [2.7026261326733646e-15, 109.99450027497771, 109.99450027497774], "u_angle": [-0.37107552311696179, -3.1415926535897301, 2.0943951023932588]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [0.0063506941977343329, 0.0063506941976939372, 0.0063506941976847076], "i_from_angle": [-1.4706289056339545, 2.7181612991513924, 0.62376619675882883], "i_to": [1.6024689053196366e-12, 1.2819751242557093e-12, 2.8665835232995054e-12], "i_to_angle": [2.2142974355881808, -1.5707963267948966, 0.46364760900080609]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [0.0063423001869742516, 0.0063537032307233818, 0.0063427006899470124], "i_angle": [-1.4718835320585038, 2.719133857458762, 0.62472753867362829]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [1.9110452654253098e-12, 0, 0], "i_f_angle": [-1.1564736865144101, 0, 0]} + ] + }, + { + "node": [ + {}, + {} + ], + "transformer": [ + {} + ], + "source": [ + {} + ], + "fault": [ + {} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999991482572, 1.1000000000884211, 1.0999999994855794], "u": [6350.8529561683436, 6350.8529615963835, 6350.8529581158746], "u_angle": [6.3288339198643598e-10, -2.094395101899674, 2.0943951022162102]}, + {"id": 2, "energized": 1, "u_pu": [3.5560909891959048e-17, 3.5560909891959048e-17, 1.6499175041246656], "u": [2.0531100898750582e-15, 2.0531100898750582e-15, 95.25803151470511], "u_angle": [-1.8875760940350859, -1.8875760940350859, 1.5707963267949601]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [63.511704988161526, 31.755852970350585, 31.755852970343597], "i_from_angle": [-1.4706289050004533, 1.6711369406789847, 1.6707905564996957], "i_to": [5499.9999957412856, 5499.9999957412838, 0], "i_to_angle": [1.6709637485893398, -1.4706289050004533, 0]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [63.511700964028492, 31.755848576504697, 31.755865679367034], "i_angle": [-1.4706289010765261, 1.6711374756710209, 1.6707906438796403]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412838, 5499.9999957412838, 0], "i_f_angle": [-1.4706289050004535, 1.67096374858934, 0]} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-delta/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/input.json new file mode 100644 index 0000000000..7eb27bccb2 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 1, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/sc_output_batch.json new file mode 100644 index 0000000000..d2ca44e73d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/sc_output_batch.json @@ -0,0 +1,98 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": true, + "attributes": {}, + "data": [ + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999999999153, 1.0999999999999153, 1.099999999999915], "u": [6350.8529610853939, 6350.8529610853939, 6350.852961085393], "u_angle": [6.3358207906926342e-14, -2.0943951023931322, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [0, 1.9051606302941033, 1.9051606302941033], "u": [0, 109.99450027497777, 109.99450027497777], "u_angle": [0, -2.6179938779914309, 2.6179938779915579]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [0.006350694197696947, 0.0063506941977199459, 0.0063506941977063448], "i_from_angle": [-1.4706289056319679, 2.7181612991521309, 0.62376619676010747], "i_to": [1.4332917616497527e-12, 6.4098756212785464e-13, 6.4098756212785464e-13], "i_to_angle": [2.0344439357957027, 1.5707963267948966, 3.1415926535897931]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [0.0063347746176986366, 0.0063328600383232552, 0.0063430470252739801], "i_angle": [-1.4728574023083705, 2.7158646025661142, 0.62201537718458677]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [1.4332917616497527e-12, 0, 0], "i_f_angle": [-1.1071487177940904, 0, 0]} + ] + }, + { + "node": [ + {}, + {} + ], + "transformer": [ + {} + ], + "source": [ + {} + ], + "fault": [ + {} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999990597507, 1.0999999996625927, 1.0999999999999148], "u": [6350.8529556573512, 6350.852959137861, 6350.8529610853911], "u_angle": [1.3942502412024955e-10, -2.094395101583264, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [0, 0, 1.6499175041246659], "u": [0, 0, 95.258031514705124], "u_angle": [0, 0, 2.0943951023932588]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [55.002750049066222, 55.002750049070258, 0.0063506941977063448], "i_from_angle": [-0.94708786009921575, 2.1946202548847, 0.62376619676010747], "i_to": [5499.9999957412856, 5499.9999957412856, 6.4098756212785464e-13], "i_to_angle": [2.1945625241876385, -0.94703012940215459, -1.5707963267948966]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [55.002738634396813, 55.002746946333353, 0.0063538709754221503], "i_angle": [-0.94708786596272787, 2.1946201463714075, 0.62346045524079408]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412847, 5499.9999957412847, 0], "i_f_angle": [-0.94703012940215459, 2.1945625241876385, 0]} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999999999153, 1.0999999999999153, 1.099999999999915], "u": [6350.8529610853939, 6350.8529610853939, 6350.852961085393], "u_angle": [6.3358207906926342e-14, -2.0943951023931322, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [3.01195421895329e-17, 1.9051606302941038, 1.9051606302941038], "u": [1.7389525790995109e-15, 109.99450027497778, 109.99450027497778], "u_angle": [2.1667677970753951, -2.6179938779914314, 2.6179938779915579]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [0.0063506941976707951, 0.0063506941977146784, 0.0063506941977040602], "i_from_angle": [-1.4706289056325685, 2.7181612991539716, 0.62376619675787948], "i_to": [1.3214297116801535e-12, 1.9229626863835639e-12, 1.4332917616497527e-12], "i_to_angle": [-1.8157749899217608, 1.5707963267948966, 2.0344439357957027]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [0.0063347746176986366, 0.0063328600383232552, 0.0063430470252739801], "i_angle": [-1.4728574023083705, 2.7158646025661142, 0.62201537718458677]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [1.2296251608431004e-12, 0, 0], "i_f_angle": [1.3813696336779466, 0, 0]} + ] + }, + { + "node": [ + {}, + {} + ], + "transformer": [ + {} + ], + "source": [ + {} + ], + "fault": [ + {} + ] + }, + { + "node": [ + {"id": 1, "energized": 1, "u_pu": [1.0999999990597507, 1.0999999996625927, 1.0999999999999148], "u": [6350.8529556573512, 6350.852959137861, 6350.8529610853911], "u_angle": [1.3942502412024955e-10, -2.094395101583264, 2.0943951023932588]}, + {"id": 2, "energized": 1, "u_pu": [1.5141730041190059e-17, 1.5141730041190059e-17, 1.6499175041246661], "u": [8.7420819152777231e-16, 8.7420819152777231e-16, 95.258031514705138], "u_angle": [-2.3274186768508223, -2.3274186768508223, 2.0943951023932588]} + ], + "transformer": [ + {"id": 4, "energized": 1, "i_from": [55.002750049066208, 55.002750049070265, 0.0063506941976951125], "i_from_angle": [-0.94708786009921564, 2.1946202548847, 0.62376619675764977], "i_to": [5499.9999957412856, 5499.9999957412856, 1.4332917616497527e-12], "i_to_angle": [2.1945625241876385, -0.94703012940215459, 2.0344439357957027]} + ], + "source": [ + {"id": 3, "energized": 1, "i": [55.002738634396813, 55.002746946333353, 0.0063538709754221503], "i_angle": [-0.94708786596272787, 2.1946201463714075, 0.62346045524079408]} + ], + "fault": [ + {"id": 11, "energized": 1, "i_f": [5499.9999957412847, 5499.9999957412847, 0], "i_f_angle": [-0.9470301294021547, 2.1945625241876385, 0]} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error-succeeded-scenarios/wye_n-wye/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json new file mode 100644 index 0000000000..ff2d3eef46 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 2, "winding_to": 1, "clock": 1, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/sc_output_batch.json new file mode 100644 index 0000000000..294e3784cc --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/sc_output_batch.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/delta-wye_n/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json new file mode 100644 index 0000000000..2c91e082e8 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 0, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/sc_output_batch.json new file mode 100644 index 0000000000..294e3784cc --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/sc_output_batch.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json new file mode 100644 index 0000000000..7411c4ce8c --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 0, "winding_to": 1, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/sc_output_batch.json new file mode 100644 index 0000000000..294e3784cc --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/sc_output_batch.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye-wye_n/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json new file mode 100644 index 0000000000..3a640d0906 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 1, "winding_to": 2, "clock": 1, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/sc_output_batch.json new file mode 100644 index 0000000000..294e3784cc --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/sc_output_batch.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-delta/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json new file mode 100644 index 0000000000..7eb27bccb2 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 1, "u_rated": 10000}, + {"id": 2, "u_rated": 100} + ], + "transformer": [ + {"id": 4, "from_node": 1, "to_node": 2, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0.001, "p0": 10, "winding_from": 1, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 3, "node": 1, "status": 1, "u_ref": 1, "sk": 1000000000000000, "rx_ratio": 1, "z01_ratio": 2} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 1, "fault_phase": 1, "fault_object": 2, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json new file mode 100644 index 0000000000..7d25e6fe7d --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "short_circuit_voltage_scaling": "maximum", + "atol": 1e-08 +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/sc_output_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/sc_output_batch.json new file mode 100644 index 0000000000..294e3784cc --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/sc_output_batch.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/sc_output_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/sc_output_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/sc_output_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/update_batch.json b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/update_batch.json new file mode 100644 index 0000000000..fd7afcc021 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/update_batch.json @@ -0,0 +1,38 @@ +{ + "version": "1.0", + "type": "update", + "is_batch": true, + "attributes": {}, + "data": [ + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0, "x_f": 0} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 1, "fault_phase": 1, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 2, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + }, + { + "fault": [ + {"id": 11, "fault_type": 3, "fault_phase": 4, "r_f": 0.001, "x_f": 0.001} + ] + } + ] +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/update_batch.json.license b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/update_batch.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/floating-ground-no-error/wye_n-wye/update_batch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/input.json b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/input.json new file mode 100644 index 0000000000..d12b378f57 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/input.json @@ -0,0 +1,21 @@ +{ + "version": "1.0", + "type": "input", + "is_batch": false, + "attributes": {}, + "data": { + "node": [ + {"id": 2, "u_rated": 10000}, + {"id": 4, "u_rated": 100} + ], + "transformer": [ + {"id": 3, "from_node": 2, "to_node": 4, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 100, "sn": 100000, "uk": 0.10000000000000001, "pk": 1000, "i0": 0, "p0": 0, "winding_from": 1, "winding_to": 0, "clock": 0, "tap_side": 0, "tap_pos": -1, "tap_min": -10, "tap_max": 10, "tap_nom": 0, "tap_size": 100, "r_grounding_from": 0, "x_grounding_from": 0, "r_grounding_to": 0, "x_grounding_to": 0} + ], + "source": [ + {"id": 1, "node": 2, "status": 1, "u_ref": 1, "sk": 10000000000, "rx_ratio": 0.10000000000000001, "z01_ratio": 1} + ], + "fault": [ + {"id": 11, "status": 1, "fault_type": 2, "fault_phase": 4, "fault_object": 4, "r_f": 0, "x_f": 0} + ] + } +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/input.json.license b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/input.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/input.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/params.json b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/params.json new file mode 100644 index 0000000000..71db2d5f8e --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/params.json @@ -0,0 +1,6 @@ +{ + "calculation_method": "iec60909", + "rtol": 1e-08, + "atol": 1e-08, + "short_circuit_voltage_scaling": "maximum" +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/params.json.license b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/params.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/params.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/sc_output.json b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/sc_output.json new file mode 100644 index 0000000000..294e3784cc --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/sc_output.json @@ -0,0 +1,7 @@ +{ + "version": "1.0", + "type": "sc_output", + "is_batch": false, + "attributes": {}, + "data": {} +} \ No newline at end of file diff --git a/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/sc_output.json.license b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/sc_output.json.license new file mode 100644 index 0000000000..7601059167 --- /dev/null +++ b/tests/data/short_circuit/floating-ground-edge-case/sc-sparse-matrix-error/sc_output.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Contributors to the Power Grid Model project + +SPDX-License-Identifier: MPL-2.0 diff --git a/tests/unit/utils.py b/tests/unit/utils.py index 4f982b8b72..f1d7fb9287 100644 --- a/tests/unit/utils.py +++ b/tests/unit/utils.py @@ -27,6 +27,7 @@ InvalidMeasuredObject, InvalidRegulatedObject, InvalidTransformerClock, + IterationDiverge, MaxIterationReached, NotObservableError, PowerGridBatchError, @@ -70,6 +71,7 @@ InvalidCalculationMethod, InvalidMeasuredObject, InvalidRegulatedObject, + IterationDiverge, AutomaticTapCalculationError, AutomaticTapInputError, InvalidTransformerClock,