GithubHelp home page GithubHelp logo

e2niee / pandapower-qgis Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 163 KB

Plugin for interaction between QGis and pandapower Networks

License: Other

Makefile 6.19% Python 89.55% Batchfile 2.22% QMake 0.10% Shell 1.18% QML 0.75%

pandapower-qgis's Introduction

pandapower-qgis

Plugin for interaction between QGis and pandapower or pnadapipes Networks

Import and export of pandapower and pandapipes networks.


Overview


pandapower

import from pandapower

import icon

The plugin can automatically detect if you are importing a pandapower or pandapipes network, it will show only relevant settings.

• crs - coordinate reference system

Selecting the appropriate crs is required as pandapower does not store this information by default.

The crs for the resulting GeoJSON is taken from the QGIS Project. GeoJSON has deprecated support for crs, WGS-84 is highly recommended. If a specific crs is preferred it is recommended to create a Project with that crs first and then import the network.

• run pandapower

If this option is selected pandapower.runpp() is executed before exporting any data.

• color lines by load

If this option is selected the network is coloured by load for each line individually. If not the different voltage levels are colored in different colors.

• Select save folder

If no folder is selected the network will be loaded into QGIS from memory. The network then can not be edited directly. If a folder is selected each layer will be saved there as a GeoJSON file and then loaded into QGIS. The network can then be edited directly from within QGIS. It is recommended to select a save folder.


Editing the network in QGIS

Required Attributes

line

name type comment
from_bus integer pandapower id
to_bus integer pandapower id
std_type string name of a standard linetype

Optional Attributes

bus

name type default value comment
name string None
pp_index int None these might change after export
type string b
zone string None
in_service boolean True
max_vm_pu float NAN
min_vm_pu float NAN

line

name type default value comment
length_km float if not present derived from QGIS
name string None
in_service boolean True
df float 1.0
parallel integer 1
max_loading_percent float
pp_index integer None these might change after export

export to pandapower

export icon

• Name

This is optional. The name is set when creating the pandapower network

• Frequency

Default value: 50
The Frequency of the network in Hz.

• Reference apparent power p.U.

Default value: 1
The Reference apparent power per Unit.

• add standard types

If selected the pandapower standard types are added to the network.

• Select layers to export

The plugin attempts to export all selected layers. It will export all features of vector layers that have pp_type set to bus or line.


pandapipes

import from pandapipes

import icon

The plugin can automatically detect if you are importing a pandapower or pandapipes network, it will show only relevant settings.

• crs - coordinate reference system

Selecting the appropriate crs is required as pandapipes does not store this information by default.

The crs for the resulting GeoJSON is taken from the QGIS Project. GeoJSON has deprecated support for crs, WGS-84 is highly recommended. If a specific crs is preferred it is recommended to create a Project with that crs first and then import the network.

• run pandapipes

If this option is selected pandapipes.runpp() is executed before exporting any data.

• color pipes by pressure

If this option is selected the network is coloured by pressure for each line individually. If not the different pressure levels are colored in different colors.

• Select save folder

If no folder is selected the network will be loaded into QGIS from memory. The network then can not be edited directly. If a folder is selected each layer will be saved there as a GeoJSON file and then loaded into QGIS. The network can then be edited directly from within QGIS. It is recommended to select a save folder.


Editing the network in QGIS

Required Attributes

junction

name type comment
pn_bar float fluid pressure in bar
tfluid_k float fluid temperature in °K

pipe

name type comment
from_bus integer pandapower id
to_bus integer pandapower id
diameter_m float

Optional Attributes

junction

name type default value comment
height_m float 0
name string None
pp_index int None these might change after export
in_service boolean True

pipe

name type default value comment
length_km float if not present derived from QGIS
k_mm float 1.0 pipe roughness
loss_coefficient float 0.0 additional pressure loss coefficient
sections integer 1 number of internal pipe sections
alpha_w_per_m2k float 0.0 heat transfer coefficient
qext_w float 0.0 external heat input
text_k float 293 ambient temperature of pipe
name string None
in_service boolean True
pp_index integer None these might change after export

export to pandapipes

export icon

• Name

This is optional. The name is set when creating the pandapower network

• Fluid

If the fluid is in the standard library this is used to create the pipes. If not the pipes are created using the properties from the attributes table.

• add standard types

If selected the pandapipes standard types are added to the network.

• Select layers to export

The plugin attempts to export all selected layers. It will export all features of vector layers that have pp_type set to junction or pipe.

pandapower-qgis's People

Contributors

ks-htk avatar vogt31337 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

pandapower-qgis's Issues

[feature] value constraints for known fields

It is possible to set value constraints for attributes on QGis layers.


For bus layers

name type values features
pp_type QString "bus" or "line"
pp_index int enforce unique (for bus layers only if possible)
in_service double 1 or 0

for line layers

name type values features
pp_type QString "bus" or "line"
pp_index int enforce unique (for line layers only if possible)
in_service double 1 or 0

possibly limit std_type to a known string if metadata can be added to qgis

fluid field shown

when first opening the export dialog it should be in power export mode, but the fluid field is visible.
After switching it works correctly.

Make all layers de-/selectable with one click

Hi,

if there are many layers and you only want one or two selected, its quite annoying to deselect all of them.
So I would suggest a button for selecting / deselecting all layers.

BR

No or partial geodata leads to crash.

If the network only contains a subset of geodata (not every bus and line has geodata) QGIS might crash or return a Stacktrace.

This should be fixed with a Warningmessage and continued by loading available data.

Set SN_MVA = 1

Hi,

pandapower normally expects an sn_mva = 1, currently it is configurable and set to 1000.
Just remove the box and set it straight to one.

BR

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.