Home

Awesome

<!-- SPDX-FileCopyrightText: 2017-2023 The PyPSA-Eur Authors SPDX-License-Identifier: CC-BY-4.0 -->

GitHub release (latest by date including pre-releases) Build Status Documentation Size Zenodo PyPSA-Eur Zenodo PyPSA-Eur-Sec Snakemake REUSE status Stack Exchange questions.

Modelling Flexibility in a Whole-System Power Model

In this repo we explore whole-system implications of demand flexibility events as in The Big Dirty Turn Down.

For this purpose, we make modifications to the energy model PyPSA-Eur, which is a linear model of the European energy system that optimises both operation and capacity expansion.

The present repo is a work in progress, but will feature interactive scenario presentations, and a ready-to-use pipeline to conduct various experiments.

For more details on the underlying PyPSA-Eur model, we refer to the model documentation or related research for instance PyPSA-Eur: An Open Optimisation Model of the European Transmission System, 2018, arXiv:1806.01613. The model building routines are defined through a snakemake workflow. Please see the documentation for installation instructions and other useful information about the snakemake workflow. The model is designed to be imported into the open toolbox PyPSA.

PyPSA-Eur Grid Model

The network is built up on the transmission network nodes from PyPSA-Eur:

network diagram

For computational reasons the model is usually clustered down to 50-200 nodes.

Already-built versions of the model can be found in the accompanying Zenodo repository.

Licence

The code in this repository is released as free software under the MIT License, see LICENSE.txt. However, different licenses and terms of use may apply to the various input data.

There are two Github Actions workflows:

Secrets configuration

If you want to use the Docker workflow, you need to set the following secrets:

Repo Setup

You need to set up your Python environment first.

  1. Clone this repo.
  2. Install micromamba. If you're on a mac, use brew install micromamba
  3. Run micromamba env create -f envs/environment.yaml
  4. Run micromamba activate pypsa-eur