Skip to content

Commit 12254d2

Browse files
Rename loadflow -> power flow (#49)
* load flow -> power flow Signed-off-by: petersalemink95 <[email protected]> * loadflow -> power flow Signed-off-by: petersalemink95 <[email protected]> --------- Signed-off-by: petersalemink95 <[email protected]>
1 parent 5871eb9 commit 12254d2

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

docs/demos/connecting_new_consumer.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
" # Set the new feeder ids\n",
179179
" grid.set_feeder_ids()\n",
180180
"\n",
181-
" # Update the loadflow\n",
181+
" # Update the power flow\n",
182182
" core_interface = PowerGridModelInterface(grid=grid)\n",
183183
"\n",
184184
" core_interface.create_input_from_grid()\n",

docs/examples/pgm/basic_pgm_examples.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"source": [
77
"# PGM Calculation Engine Examples\n",
88
"\n",
9-
"These examples show how to interact with the [power-grid-model](https://github.com/PowerGridModel/power-grid-model) calculation engine to perform load flow calculations. For a detailed documentation on the calculation engine please refer to [power-grid-model docs](https://power-grid-model.readthedocs.io/en/stable/).\n"
9+
"These examples show how to interact with the [power-grid-model](https://github.com/PowerGridModel/power-grid-model) calculation engine to perform power flow calculations. For a detailed documentation on the calculation engine please refer to [power-grid-model docs](https://power-grid-model.readthedocs.io/en/stable/).\n"
1010
]
1111
},
1212
{
1313
"cell_type": "markdown",
1414
"metadata": {},
1515
"source": [
16-
"## Single Load Flow example\n",
16+
"## Single Power Flow example\n",
1717
"\n",
1818
"We will demonstrate how to use the PGMCoreInterface to perform Power Flow calculations on a `Grid` object.\n",
1919
"In the examples the `RadialGridGenerator` is used to create randomised input networks.\n"

docs/quick_start.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Quick Start\n",
88
"\n",
9-
"In this quick start we create an extension of the Grid object, generate a random instance of it and perform loadflow calculations and modifactions.\n"
9+
"In this quick start we create an extension of the Grid object, generate a random instance of it and perform power flow calculations and modifactions.\n"
1010
]
1111
},
1212
{
@@ -15,7 +15,7 @@
1515
"source": [
1616
"## Setting up a grid extension\n",
1717
"\n",
18-
"This shows how to add extra values to a `Grid` object. If these are present in the PGM output they will updated after a loadflow calculation.\n"
18+
"This shows how to add extra values to a `Grid` object. If these are present in the PGM output they will updated after a power flow calculation.\n"
1919
]
2020
},
2121
{
@@ -105,7 +105,7 @@
105105
"cell_type": "markdown",
106106
"metadata": {},
107107
"source": [
108-
"## Performing Loadflow calculations\n",
108+
"## Performing power flow calculations\n",
109109
"\n",
110110
"Using the `PowerGridModelInterface` the `Grid` data can be provided to the calculation engine. Using `update_grid` values can be transferred to the `Grid` object.\n"
111111
]

src/power_grid_model_ds/_core/load_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: MPL-2.0
44

5-
"""Load flow functions and classes"""
5+
"""Power flow functions and classes"""
66

77
from typing import Dict, Optional
88

tests/integration/loadflow/test_power_grid_model.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ExtendedLineArray(LineArray):
4545

4646

4747
def test_load_flow_on_random():
48-
"""Tests the load flow on a randomly configured grid"""
48+
"""Tests the power flow on a randomly configured grid"""
4949
grid_generator = RadialGridGenerator(grid_class=Grid, nr_nodes=5, nr_sources=1, nr_nops=0)
5050
grid = grid_generator.run(seed=0)
5151

@@ -61,7 +61,7 @@ def test_load_flow_on_random():
6161

6262

6363
def test_load_flow(grid: Grid):
64-
"""Tests the load flow on a test grid with 2 nodes"""
64+
"""Tests the power flow on a test grid with 2 nodes"""
6565
nodes = NodeArray.zeros(2)
6666
nodes.id = [0, 1]
6767
nodes.u_rated = [10_500] * 2
@@ -106,7 +106,7 @@ def test_load_flow(grid: Grid):
106106

107107

108108
def test_load_flow_with_transformer(grid: Grid):
109-
"""Tests the load flow on a test grid with 3 nodes and a trafo"""
109+
"""Tests the power flow on a test grid with 3 nodes and a trafo"""
110110
nodes = NodeArray.zeros(3)
111111
nodes.id = [0, 1, 2]
112112
nodes.u_rated = [10_500] * 2 + [3_000]
@@ -179,7 +179,7 @@ def test_load_flow_with_transformer(grid: Grid):
179179
# pylint: disable=too-many-statements
180180
# pylint: disable=duplicate-code
181181
def test_load_flow_with_three_winding_transformer(grid: Grid):
182-
"""Tests the load flow on a test grid with 3 nodes and a three winding trafo"""
182+
"""Tests the power flow on a test grid with 3 nodes and a three winding trafo"""
183183
nodes = NodeArray.zeros(3)
184184
nodes.id = [0, 1, 2]
185185
nodes.u_rated = [150_000, 20_000, 10_000]
@@ -250,7 +250,7 @@ def test_load_flow_with_three_winding_transformer(grid: Grid):
250250

251251

252252
def test_load_flow_with_link(grid: Grid):
253-
"""Tests the load flow on a test grid with 2 nodes and a link"""
253+
"""Tests the power flow on a test grid with 2 nodes and a link"""
254254
nodes = NodeArray.zeros(2)
255255
nodes.id = [0, 1]
256256
nodes.u_rated = [10_500] * 2
@@ -393,7 +393,7 @@ def test_automatic_tap_regulator(grid: Grid):
393393

394394

395395
def test_update_grid():
396-
"""Tests the load flow on a randomly configured grid and update grid with results"""
396+
"""Tests the power flow on a randomly configured grid and update grid with results"""
397397
grid_generator = RadialGridGenerator(grid_class=Grid, nr_nodes=5, nr_sources=1, nr_nops=0)
398398
grid = grid_generator.run(seed=0)
399399

0 commit comments

Comments
 (0)