mgrid
: Power Grid as Multilayer Networkmgrid
is a pure Python package to model power grids as multilayer
networks. All the electric devices at one voltage level compose one
layer. A directed bipartite for a pair of adjacent layers represents
transformers connecting two voltage levels. Moreover, mgrid
provides
an interface for power system analysis.
There are two kinds of edges in a multilayer network. Any intra-edge can only exist in a single layer and correspond to cables. Inter-edges connect layers, and correspond to transformers.
There are some features worth mentioning when modelling power grids as multilayer networks:
Electric devices can be modelled using built-in classes or customised classes, then instance using supported Python packages for power system analysis can be returned. Current, supported tools are:
pandapower
: combines
the data analysis library pandas and the power flow solver PYPOWER to
create an easy to use network calculation program aimed at automation
of analysis and optimization in power systems.PyPSA
: a free
software toolbox for simulating and optimising modern power systems
that include features such as conventional generators with unit
commitment, variable wind and solar generation, storage units,
coupling to other energy sectors, and mixed alternating and direct
current networks.and supported studies are:
In terms of:
Following tool is to be supported:
OpenDSS
:
OpenDSSDirect.py
is a cross-platform Python package implements a
"direct" library interface to OpenDSS
using dss_python
. OpenDSS
is an open-source distribution system simulator. See
OpenDSSDirect.jl
for a similar package in Julia.pf_impedance
:
pf_impedance
is a Python package to model (un)balanced power grids
using impedance matrices of cables and transformers. Generally
speaking, a bus impedance matrix is to be built for the whole power
grid, then used to calculated power flow for given snapshot(s).