Skip to main content

Framework for calculating the steady-state energy flow and for solving optimization problems in coupled energy grids (gas, heat, electricity)

Project description

logo

PyPi | Docs

lifecycle MIT License Test mango-python codecov Quality Gate Status

The python project monee (a Modular Network-based Energy Grid Optimization) can be used to calculate the steady-state energy flow of coupled grids (electricity, water (heating), gas). It is also capable to flexibly formulate and solve optimal energy flow problems. For this monee currently uses GEKKO to solve these problems (further integrations are planned).

Further, there are unique key aspects of monee such as:

  • Timeseries simulation
  • Native support of multi-energy components as P2H/CHP/P2G
  • Integration of networkx as main internal datastructure, this enables easy appliance of graph-based approaches.
  • Modular component definitions
  • Importing of MATPOWER networks
  • Restricted import of pandapower and therefore simbench networks.

Installation

The monee framework is hosted on pypi, as such you can install it with:

pip install monee

Examples

Creating a network (express API)

from monee import mx, run_energy_flow

# create multi-grid container the monee.Network
net = mx.create_multi_energy_network()

# electricity grid
bus_0 = mx.create_bus(net)
bus_1 = mx.create_bus(net)

mx.create_line(net, bus_0, bus_1, 100, r_ohm_per_m=0.00007, x_ohm_per_m=0.00007)
mx.create_ext_power_grid(net, bus_0)
mx.create_power_load(net, bus_1, 0.1, 0)

# water-based district heating grid
junc_0 = mx.create_water_junction(net)
junc_1 = mx.create_water_junction(net)
junc_2 = mx.create_water_junction(net)

mx.create_ext_hydr_grid(net, junc_0)
mx.create_water_pipe(net, junc_0, junc_1, diameter_m=0.12, length_m=100)
mx.create_sink(net, junc_2, mass_flow=1)

# creating connection between el and water grid
mx.create_p2h(net, bus_1, junc_1, junc_2, heat_energy_mw=0.1, diameter_m=0.1, efficiency=0.9)

# execute an energy flow calculating the energy flow for the whole MES
result = run_energy_flow(net)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monee-1.1.0.tar.gz (62.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monee-1.1.0-py3-none-any.whl (73.4 kB view details)

Uploaded Python 3

File details

Details for the file monee-1.1.0.tar.gz.

File metadata

  • Download URL: monee-1.1.0.tar.gz
  • Upload date:
  • Size: 62.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for monee-1.1.0.tar.gz
Algorithm Hash digest
SHA256 df8c6f6d247c142e5d01f140d90081daa57df5f561f12b3a3e9a8cc7c1424ff3
MD5 5cb1c02a9947f0e738433cd08d3b7c36
BLAKE2b-256 3d6eda83e115861a6f43ded4639db4b1e8c2e346781cba469b910f9982c30f3e

See more details on using hashes here.

File details

Details for the file monee-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: monee-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 73.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for monee-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e04e8b427a66abe30789dc03db0d15c3bd7bf9155812da1f051f1e1de9405f49
MD5 c44a033333d0a571413f2642afd330a4
BLAKE2b-256 7d156f48c123adb9a27c8ebfe7ce791d10dbddae23f62bc6fb1d59f928b3bfbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page