Pandaplan
The Pandaplan converter functions offer the opportunity to create Pandapower. and Pandapipes network models from DAVE-generated datasets. Furthermore, There is also the option to adapt the data to fit into definable boundaries
pandapower is a open source network analysis tool for electrical networks.
- dave_core.converter.create_pandapower(grid_data, opt_model, output_folder, save_data=True)[source]
This function creates a pandapower network based an the DaVe dataset
- INPUT:
grid_data (attrdict) - calculated grid data from dave
opt_model (bool) - optimize model during model processing
output_folder (str) - patht to the location where the results will be saved
save_data (boolean, default True) - if true, the resulting data will stored in a local folder
- OUTPUT:
net (attrdict) - pandapower attrdict with grid data
- dave_core.converter.power_processing(net, opt_model=False, min_vm_pu=0.95, max_vm_pu=1.05, max_line_loading=100, max_trafo_loading=100)[source]
This function run a diagnosis of the pandapower network and clean up occurring failures. Furthermore the grid will be adapt so all boundarys be respected.
- INPUT:
net (attrdict) - pandapower attrdict
- OPTIONAL:
opt_model (bool, default False) - If True the model will be optimized to respecting defined grid limits min_vm_pu (float, default 0.95) - minimal permissible node voltage in p.u.
max_vm_pu (float, default 1.05) - maximum permissible node voltage in p.u.
max_line_loading (int, default 100) - maximum permissible line loading in %
max_trafo_loading (int, default 100) - maximum permissible transformer loading in %
- OUTPUT:
net (attrdict) - A cleaned up and if necessary optimized pandapower attrdict
pandapipes is a open source network analysis tool for gas and heat networks.
- dave_core.converter.create_pandapipes(grid_data, save_data=True, output_folder=None, fluid=None, idx_ref='dave_name')[source]
This function creates a pandapipes network based an the DaVe dataset
- INPUT:
grid_data (attrdict) - calculated grid data from dave
- OPTIONAL:
save_data (boolean, default True) - if true, the resulting data will stored in a local folder output_folder (str, default=None) - patht to the location where the results will be saved
idx_ref (str, default=’dave_name’) - defines parameter which should use as referenz for setting the indices fluid (str, default=None) - A fluid that can be added to the net from the start. A fluid is required for pipeflow calculations. Existing fluids in pandapipes are “hgas”, “lgas”, “hydrogen”, “methane”, “water”, “air”
- OUTPUT:
net (attrdict) - pandapipes attrdict with grid data
If you already have a Pandapower or Pandapipes network model, DAVE can be used to integrate additional geographical data into the model. This could be helpful! for example, when planning network expansion.
- dave_core.converter.add_geodata(net, buffer=10, crs='epsg:4326', save_data=True)[source]
This function extends a pandapower/pandapipes net with geodata from DAVE
- INPUT:
net (pandapower net) - A pandapower network
dave_user (str) - User name of a DAVE Account
dave_password (str) - Password of a DAVE Account
- OPTIONAL:
- buffer (float) - Buffer around the considered network elements
crs (str, default: ‘epsg:4326’) - Definition of the network coordinate reference system
save_data (boolean, default True) - if true, the resulting data will stored in a local folder
- OUTPUT:
net (pandapower/pandapipes net) - pandapower net extended with geodata
- dave_core.converter.get_grid_area(net, buffer=10, crs='epsg:4326', convex_hull=True)[source]
Calculation of the grid area on the basis of an pandapower / pandapipes model and the inclusion of a buffer.
The crs will temporary project to epsg 3035 for adding the buffer in meter as unit
- Input:
net (pandapower/pandapipes net) - A energy grid in pandapower or pandapipes format
buffer (float, 10) - Buffer around the considered network elements in meter
crs (str, ‘epsg:4326’) - Definition of the network coordinate reference system
convex_hull (boolean, True)- If true the the convex hull will calculated for the given lines instaed of onyly using a buffer around the lines
- OUTPUT:
grid_area (Shapely polygon) - Polygon which defines the grid area for a given network
- dave_core.converter.reduce_network(net, area, cross_border=True, crs='epsg:4326')[source]
Reduce a pandapower/pandapipes network to a smaller area of interest
- Input:
net (pandapower/pandapipes net) - A energy grid in pandapower or pandapipes format
area (shapely Polygon) - Polygon of the considered network area
cross_border (bool, default True) - Definition how to deal with lines that going beyond the area border. If True these lines will considered and their associated nodes outside the area border as well. If False these lines will deleted and all network elements are within the area border
crs (str, default: ‘epsg:4326’) - Definition of the network coordinate reference system
- OUTPUT:
net (pandapower/pandapipes net) - network reduced to considered area
- dave_core.converter.request_geo_data(grid_area, crs, save_data=True)[source]
This function requests all available geodata for a given area from DAVE.
- Input:
grid_area (Shapely polygon) - Polygon which defines the considered grid area
crs (str, default: ‘epsg:4326’) - Definition of the network coordinate reference system
- OPTIONAL:
save_data (boolean, default True) - if true, the resulting data will stored in a local folder
- OUTPUT:
request_geodata (pandapower net) - geodata for the grid_area from DAVE
..Beschreibung der Tool, Bilder und Links noch mit rein machen .. zu dem extend ein Bild mit rein machen (aus Folien)