eelib.utils.simulation_setup.helper_create_grid

Helper functions for the generation of new simulations.

Author: elenia@TUBS
Copyright 2024 elenia
This file is part of eELib, which is free software under the terms of the GNU GPL Version 3.

Module Contents

Functions

create_excel_for_grid()

Create an empty excel fill to fill with information on grid components.

read_excel_for_grid(→ dict)

Read information on grid components from excel file and save into dict.

create_grid_file_with_name([pp_grid_name, grid_path, ...])

Create pandapower grid including saved json file from information about pandapower template.

create_grid_file(→ object)

Create pandapower grid including saved json file from information about grid components.

Attributes

bus_fields

load_fields

ext_grid_fields

trafo_fields

line_fields

grid

bus_fields = ['index', 'vn_kv', 'name', 'in_service', 'geodata']
load_fields = ['bus', 'name', 'scaling']
ext_grid_fields = ['bus', 'name', 'in_service']
trafo_fields = ['hv_bus', 'lv_bus', 'std_type', 'name', 'in_service', 'parallel']
line_fields = ['from_bus', 'to_bus', 'name', 'in_service', 'length_km', 'std_type', 'parallel']
grid
create_excel_for_grid()

Create an empty excel fill to fill with information on grid components.

read_excel_for_grid() dict

Read information on grid components from excel file and save into dict.

Returns:

Information on all grid components

Return type:

dict

create_grid_file_with_name(pp_grid_name: str = 'create_kerber_landnetz_kabel_1', grid_path: str = 'grid.json', adjust_comp_names: bool = True, plot_grid: bool = False)

Create pandapower grid including saved json file from information about pandapower template.

Parameters:
  • pp_grid_name (str) – PP method for grid. Defaults to “create_kerber_landnetz_kabel_1”.

  • grid_path (str) – path to save json file to. Defaults to “grid.json”.

  • adjust_comp_names (bool) – whether to adjust component names if None. Defaults to True.

  • plot_grid (bool) – whether to create simple plot of grid. Defaults to False.

Returns:

_description_

Return type:

_type_

create_grid_file(grid_data: dict, grid_path: str = 'grid.json', plot_grid: bool = False) object

Create pandapower grid including saved json file from information about grid components.

Parameters:
  • grid_data (dict) – information on all grid components

  • grid_path (str) – path to save json file to. Defaults to “grid.json”.

  • plot_grid (bool) – whether to create simple plot of grid. Defaults to False.

Returns:

pandapower grid object

Return type:

object