Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: assign separate phases to load components #149

Merged
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@ jobs:
fetch-depth: 1

- name: Setting up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v3.2
with:
python-version: ${{ matrix.python-version }}
cache: true
architecture: x64
prerelease: true
enable-pep582: true
env:
PDM_DEPS: "urllib3<2"

- name: Check lockfile
run: pdm lock --check
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,12 @@ jobs:
fetch-depth: 0

- name: Set up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v3.2
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: true
architecture: x64
prerelease: true
enable-pep582: true
env:
PDM_DEPS: "urllib3<2"

- name: Get current date
id: get_date
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@ jobs:
fetch-depth: 1

- name: Set up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v3.2
with:
python-version: ${{ matrix.python-version }}
cache: true
architecture: x64
prerelease: true
enable-pep582: true
env:
PDM_DEPS: "urllib3<2"

- name: Install dependencies
run: pdm install
Expand Down
Binary file removed examples/grids/HV_8_Bus.pfd
Binary file not shown.
Binary file removed examples/grids/HV_8_Bus.png
Binary file not shown.
21 changes: 0 additions & 21 deletions examples/grids/HV_8_Bus_topology_case.json

This file was deleted.

Binary file added examples/grids/HV_9_Bus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,73 +19,91 @@
{
"active_power": {
"is_symmetrical": true,
"value": 20000000.0,
"value_a": 6666666.67,
"value_b": 6666666.67,
"value_c": 6666666.67
"value": 2000000.0,
"value_a": 666666.67,
"value_b": 666666.67,
"value_c": 666666.67
},
"name": "Load_8",
"name": "Load_3",
"reactive_power": {
"controller": null,
"is_symmetrical": true,
"value": 10000000.0,
"value_a": 3333333.33,
"value_b": 3333333.33,
"value_c": 3333333.33
"value": 0.0,
SebastianDD marked this conversation as resolved.
Show resolved Hide resolved
"value_a": 0.0,
"value_b": 0.0,
"value_c": 0.0
}
},
{
"active_power": {
"is_symmetrical": true,
"value": 60000000.0,
"value_a": 20000000.0,
"value_b": 20000000.0,
"value_c": 20000000.0
"value": 2000000.0,
"value_a": 666666.67,
"value_b": 666666.67,
"value_c": 666666.67
},
"name": "Load_3",
"name": "Load_1",
"reactive_power": {
"controller": null,
"is_symmetrical": true,
"value": 0.0,
"value_a": 0.0,
"value_b": 0.0,
"value_c": 0.0
"value": 9897813.0,
"value_a": 3299270.92,
"value_b": 3299270.92,
"value_c": 3299270.92
}
},
{
"active_power": {
"is_symmetrical": true,
"value": 10000000.0,
"value_a": 3333333.33,
"value_b": 3333333.33,
"value_c": 3333333.33
"value": 2000000.0,
"value_a": 666666.67,
"value_b": 666666.67,
"value_c": 666666.67
},
"name": "Load_1",
"name": "Load_2",
"reactive_power": {
"controller": null,
"is_symmetrical": true,
"value": 1402395.0,
"value_a": 467465.02,
"value_b": 467465.02,
"value_c": 467465.02
"value": -10000000.0,
"value_a": -3333333.38,
"value_b": -3333333.38,
"value_c": -3333333.38
}
},
{
"active_power": {
"is_symmetrical": true,
"value": 49999997.0,
"value_a": 16666665.83,
"value_b": 16666665.83,
"value_c": 16666665.83
"value": 2000000.0,
"value_a": 666666.67,
"value_b": 666666.67,
"value_c": 666666.67
},
"name": "Load_2",
"name": "Load_9",
"reactive_power": {
"controller": null,
"is_symmetrical": true,
"value": -10000012.0,
"value_a": -3333337.39,
"value_b": -3333337.39,
"value_c": -3333337.39
"value": 10000000.0,
"value_a": 3333333.33,
"value_b": 3333333.33,
"value_c": 3333333.33
}
},
{
"active_power": {
"is_symmetrical": false,
"value": 2000.0,
"value_a": 1000.0,
"value_b": 1000.0,
"value_c": 0.0
},
"name": "Load_8",
"reactive_power": {
"controller": null,
"is_symmetrical": true,
"value": 0.0,
"value_a": 0.0,
"value_b": 0.0,
"value_c": 0.0
}
},
{
Expand Down Expand Up @@ -306,6 +324,31 @@
"value_c": -42763.97
}
},
{
"active_power": {
"is_symmetrical": false,
"value": -3000.0,
"value_a": -3000.0,
"value_b": -0.0,
"value_c": -0.0
},
"name": "Battery",
"reactive_power": {
"controller": {
"control_type": {
"control_strategy": "Q_CONST",
"q_set": -0.0
},
"external_controller_name": null,
"node_target": "Node_8_LV"
},
"is_symmetrical": true,
"value": -0.0,
"value_a": -0.0,
"value_b": -0.0,
"value_c": -0.0
}
},
{
"active_power": {
"is_symmetrical": true,
Expand Down Expand Up @@ -333,11 +376,10 @@
}
],
"meta": {
"date": "2023-05-23",
"id": "1e7bfad1-620c-48ff-86b5-845116a6f650",
"name": "HV_8_Bus",
"project": "PowerFactory-Tools",
"version": "1.2.0"
"date": "2023-07-25",
"id": "b8662289-8422-4986-a2bb-54eb7b6a1ca5",
"name": "HV_9_Bus",
"project": "PowerFactory-Tools"
},
"transformers": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,54 @@
"elements": [
{
"disabled": true,
"name": "Node_8/IS1.2",
"name": "Line_34",
"open_switches": []
},
{
"disabled": true,
"name": "Load_1",
"name": "Node_7_LV",
"open_switches": []
},
{
"disabled": true,
"name": "Node_7_LV",
"name": "Node_9/IS1.2",
"open_switches": []
},
{
"disabled": true,
"name": "Node_9/ISField_2.3",
"open_switches": []
},
{
"disabled": false,
"name": "Line_23",
"name": "Line_56",
"open_switches": [
"Node_3"
"Node_6_MV",
"Node_5_MV"
]
},
{
"disabled": true,
"name": "Line_34",
"open_switches": []
},
{
"disabled": true,
"name": "Transformer_2w_110/20",
"name": "Load_1",
"open_switches": []
},
{
"disabled": false,
"name": "Line_56",
"name": "Line_23",
"open_switches": [
"Node_6_MV",
"Node_5_MV"
"Node_3"
]
},
{
"disabled": true,
"name": "Node_8/ISField_2.3",
"name": "Transformer_2w_110/20",
"open_switches": []
}
],
"meta": {
"date": "2023-05-23",
"id": "1e7bfad1-620c-48ff-86b5-845116a6f650",
"name": "HV_8_Bus",
"project": "PowerFactory-Tools",
"version": "1.2.0"
"date": "2023-07-25",
"id": "b8662289-8422-4986-a2bb-54eb7b6a1ca5",
"name": "HV_9_Bus",
"project": "PowerFactory-Tools"
}
}
Loading