pypsa-eur/doc/index.rst

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

381 lines
14 KiB
ReStructuredText
Raw Normal View History

<<<<<<< HEAD
..
2023-02-16 10:50:55 +00:00
SPDX-FileCopyrightText: 2019-2023 The PyPSA-Eur Authors
SPDX-License-Identifier: CC-BY-4.0
2019-06-07 08:34:36 +00:00
PyPSA-Eur: An Open Optimisation Model of the European Transmission System
=========================================================================
2019-10-28 17:11:19 +00:00
.. image:: https://img.shields.io/github/v/release/pypsa/pypsa-eur?include_prereleases
:alt: GitHub release (latest by date including pre-releases)
.. image:: https://github.com/pypsa/pypsa-eur/actions/workflows/ci.yaml/badge.svg
:target: https://github.com/PyPSA/pypsa-eur/actions
.. image:: https://readthedocs.org/projects/pypsa-eur/badge/?version=latest
:target: https://pypsa-eur.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/github/repo-size/pypsa/pypsa-eur
:alt: GitHub repo size
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3520874.svg
:target: https://doi.org/10.5281/zenodo.3520874
.. image:: https://img.shields.io/badge/snakemake-≥5.0.0-brightgreen.svg?style=flat
:target: https://snakemake.readthedocs.io
:alt: Snakemake
.. image:: https://api.reuse.software/badge/github.com/pypsa/pypsa-eur
:target: https://api.reuse.software/info/github.com/pypsa/pypsa-eur
:alt: REUSE status
2019-08-06 14:53:32 +00:00
PyPSA-Eur is an open model dataset of the European power system at the
transmission network level that covers the full ENTSO-E area.
It contains alternating current lines at and above 220 kV voltage level and all high voltage direct current lines, substations, an open database of conventional power plants, time series for electrical demand and variable renewable generator availability, and geographic potentials for the expansion of wind and solar power.
The model is suitable both for operational studies and generation and transmission expansion planning studies. The continental scope and highly resolved spatial scale enables a proper description of the long-range smoothing effects for renewable power generation and their varying resource availability.
2022-09-20 16:33:21 +00:00
.. image:: img/elec.png
:width: 50%
:align: center
2019-08-12 17:01:53 +00:00
2019-08-06 14:53:32 +00:00
The restriction to freely available and open data encourages the open exchange of model data developments and eases the comparison of model results. It provides a full, automated software pipeline to assemble the load-flow-ready model from the original datasets, which enables easy replacement and improvement of the individual parts.
PyPSA-Eur is designed to be imported into the open toolbox `PyPSA <https://www.pypsa.org>`_ for which `documentation <https://pypsa.org/doc>`_ is available as well.
2019-08-06 14:53:32 +00:00
2021-09-20 09:43:04 +00:00
This project is currently maintained by the `Department of Digital
Transformation in Energy Systems <https:/www.ensys.tu-berlin.de>`_ at the
2021-09-20 09:43:04 +00:00
`Technische Universität Berlin <https://www.tu.berlin>`_. Previous versions were
developed within the `IAI <http://www.iai.kit.edu>`_ at the `Karlsruhe Institute of
Technology (KIT) <http://www.kit.edu/english/index.php>`_ and by the `Renewable
Energy Group
=======
PyPSA-Eur-Sec: A Sector-Coupled Open Optimisation Model of the European Energy System
=====================================================================================
.. image:: https://img.shields.io/github/v/release/pypsa/pypsa-eur-sec?include_prereleases
:alt: GitHub release (latest by date including pre-releases)
.. image:: https://readthedocs.org/projects/pypsa-eur-sec/badge/?version=latest
:target: https://pypsa-eur-sec.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/github/license/pypsa/pypsa-eur-sec
:alt: GitHub
.. image:: https://img.shields.io/github/repo-size/pypsa/pypsa-eur-sec
:alt: GitHub repo size
PyPSA-Eur-Sec is an open model dataset of the European energy system at the
transmission network level that covers the full ENTSO-E area.
PyPSA-Eur-Sec builds on the electricity generation and transmission
model `PyPSA-Eur <https://github.com/PyPSA/pypsa-eur>`_ to add demand
and supply for the following sectors: transport, space and water
2022-08-10 05:24:18 +00:00
heating, biomass, energy consumption in the agriculture, industry
2022-08-19 07:20:55 +00:00
and industrial feedstocks, carbon management, carbon capture and usage/sequestration.
This completes the energy system and includes all greenhouse gas emitters except waste management, agriculture,
2022-08-10 05:24:18 +00:00
forestry and land use.
**WARNING**: PyPSA-Eur-Sec is under active development and has several
`limitations <https://pypsa-eur-sec.readthedocs.io/en/latest/limitations.html>`_ which
you should understand before using the model. The github repository
`issues <https://github.com/PyPSA/pypsa-eur-sec/issues>`_ collect known
topics we are working on (please feel free to help or make suggestions).
The `documentation <https://pypsa-eur-sec.readthedocs.io/>`_ remains somewhat
patchy.
We cannot support this model if you choose to use it.
.. note::
2022-08-19 07:20:55 +00:00
You can find showcases of the model's capabilities in the Supplementary Materials of the
preprint `Benefits of a Hydrogen Network in Europe
2022-08-19 07:20:55 +00:00
<https://arxiv.org/abs/2207.05816>`_, the Supplementary Materials of the `paper in Joule with a
description of the industry sector
<https://arxiv.org/abs/2109.09563>`_, or in `a 2021 presentation
at EMP-E <https://nworbmot.org/energy/brown-empe.pdf>`_.
This diagram gives an overview of the sectors and the links between
them:
.. image:: ../graphics/multisector_figure.png
PyPSA-Eur-Sec was initially based on the model PyPSA-Eur-Sec-30 described
in the paper `Synergies of sector coupling and transmission
reinforcement in a cost-optimised, highly renewable European energy
system <https://arxiv.org/abs/1801.05290>`_ (2018) but it differs by
being based on the higher resolution electricity transmission model
`PyPSA-Eur <https://github.com/PyPSA/pypsa-eur>`_ rather than a
one-node-per-country model, and by including biomass, industry,
industrial feedstocks, aviation, shipping, better carbon management,
carbon capture and usage/sequestration, and gas networks.
PyPSA-Eur-Sec includes PyPSA-Eur as a
`snakemake <https://snakemake.readthedocs.io/en/stable/index.html>`_
`subworkflow <https://snakemake.readthedocs.io/en/stable/snakefiles/modularization.html#snakefiles-sub-workflows>`_. PyPSA-Eur-Sec
uses PyPSA-Eur to build the clustered transmission model along with
wind, solar PV and hydroelectricity potentials and time series. Then
PyPSA-Eur-Sec adds other conventional generators, storage units and
the additional sectors.
Currently the scripts to solve and process the resulting PyPSA models
are also included in PyPSA-Eur-Sec, although they could in future be
better integrated with the corresponding scripts in PyPSA-Eur. A
stumbling block to sharing solve_network.py between PyPSA-Eur and
PyPSA-Eur-Sec is the different extra_functionality required to build
storage and CHP constraints.
PyPSA-Eur-Sec is designed to be imported into the open toolbox `PyPSA
<https://www.pypsa.org>`_ for which `documentation <https://pypsa.org/doc>`_ is
available as well.
This project is currently maintained by the `Department of Digital
Transformation in Energy Systems <https://tub-ensys.github.io>`_ at the
`Technical University of Berlin <https://www.tu.berlin>`_. Previous versions
were developed by the `Energy System Modelling group
<https://www.iai.kit.edu/english/2338.php>`_ at the `Institute for Automation
and Applied Informatics <https://www.iai.kit.edu/english/index.php>`_ at the
`Karlsruhe Institute of Technology <http://www.kit.edu/english/index.php>`_
which was funded by the `Helmholtz Association <https://www.helmholtz.de/en/>`_,
and by the `Renewable Energy Group
>>>>>>> pypsa-eur-sec/master
2021-09-20 09:43:04 +00:00
<https://fias.uni-frankfurt.de/physics/schramm/renewable-energy-system-and-network-analysis/>`_
at `FIAS <https://fias.uni-frankfurt.de/>`_ to carry out simulations for the
`CoNDyNet project <http://condynet.de/>`_, financed by the `German Federal
Ministry for Education and Research (BMBF) <https://www.bmbf.de/en/index.html>`_
as part of the `Stromnetze Research Initiative
<http://forschung-stromnetze.info/projekte/grundlagen-und-konzepte-fuer-effiziente-dezentrale-stromnetze/>`_.
2019-08-06 14:53:32 +00:00
<<<<<<< HEAD
A version of the model that adds building heating, transport and industry sectors to the model,
as well as gas networks, is currently being developed in the `PyPSA-Eur-Sec repository <https://github.com/pypsa/pypsa-eur-sec>`_.
=======
2023-02-16 20:27:25 +00:00
Workflow Outline
================
.. image:: ../graphics/workflow.png
.. note::
The graph above was generated using
``snakemake --rulegraph -F | sed -n "/digraph/,/}/p" | dot -Tpng -o workflow.png``
>>>>>>> pypsa-eur-sec/master
2019-06-07 08:34:36 +00:00
Documentation
=============
**Getting Started**
<<<<<<< HEAD
2019-06-07 08:34:36 +00:00
* :doc:`introduction`
* :doc:`installation`
* :doc:`tutorial`
=======
* :doc:`installation`
>>>>>>> pypsa-eur-sec/master
2019-06-07 08:34:36 +00:00
.. toctree::
:hidden:
:maxdepth: 1
:caption: Getting Started
<<<<<<< HEAD
2019-06-07 08:34:36 +00:00
introduction
installation
tutorial
**Configuration**
* :doc:`wildcards`
* :doc:`configuration`
2019-10-02 12:56:04 +00:00
* :doc:`costs`
=======
installation
**Implementation details**
* :doc:`spatial_resolution`
* :doc:`supply_demand`
* :doc:`technology_assumptions`
>>>>>>> pypsa-eur-sec/master
.. toctree::
:hidden:
:maxdepth: 1
<<<<<<< HEAD
:caption: Configuration
2019-08-08 15:13:36 +00:00
wildcards
2019-06-07 08:34:36 +00:00
configuration
2019-10-02 12:56:04 +00:00
costs
2019-06-07 08:34:36 +00:00
2019-06-19 11:12:02 +00:00
**Rules Overview**
2019-06-07 08:34:36 +00:00
2019-06-19 11:12:02 +00:00
* :doc:`preparation`
* :doc:`simplification`
* :doc:`solving`
* :doc:`plotting`
=======
:caption: Implementation details
spatial_resolution
supply_demand
technology_assumptions
**Foresight options**
2020-08-14 10:18:18 +00:00
* :doc:`overnight`
2020-08-14 10:18:18 +00:00
* :doc:`myopic`
2022-08-19 09:46:28 +00:00
* :doc:`perfect`
>>>>>>> pypsa-eur-sec/master
2019-06-07 08:34:36 +00:00
.. toctree::
:hidden:
:maxdepth: 1
<<<<<<< HEAD
2019-06-19 11:12:02 +00:00
:caption: Rules Overview
2019-06-07 08:34:36 +00:00
2019-06-19 11:12:02 +00:00
preparation
simplification
solving
plotting
=======
:caption: Foresight options
2020-08-14 10:18:18 +00:00
overnight
2020-08-14 10:18:18 +00:00
myopic
perfect
>>>>>>> pypsa-eur-sec/master
2019-06-07 08:34:36 +00:00
**References**
2019-06-07 08:34:36 +00:00
* :doc:`release_notes`
2019-08-14 08:34:59 +00:00
* :doc:`limitations`
<<<<<<< HEAD
2019-06-07 08:34:36 +00:00
* :doc:`contributing`
=======
>>>>>>> pypsa-eur-sec/master
2019-06-07 08:34:36 +00:00
.. toctree::
:hidden:
:maxdepth: 1
:caption: References
release_notes
2019-08-14 08:34:59 +00:00
limitations
<<<<<<< HEAD
2019-06-07 08:34:36 +00:00
contributing
Warnings
========
Please read the `limitations <https://pypsa-eur.readthedocs.io/en/latest/limitations.html>`_ section of the
documentation and paper carefully before using the model. We do not
recommend to use the full resolution network model for simulations. At
high granularity the assignment of loads and generators to the nearest
network node may not be a correct assumption, depending on the topology of the underlying distribution grid,
and local grid
bottlenecks may cause unrealistic load-shedding or generator
curtailment. We recommend to cluster the network to a couple of
hundred nodes to remove these local inconsistencies.
2019-08-14 08:34:59 +00:00
Learning Energy System Modelling
================================
If you are (relatively) new to energy system modelling and optimisation
and plan to use PyPSA-Eur, the following resources are *one way* to get started
in addition to reading this documentation.
2021-08-27 10:30:29 +00:00
- Documentation of `PyPSA <https://pypsa.readthedocs.io>`__, the package for
2019-08-14 08:34:59 +00:00
simulating and optimising modern power systems which PyPSA-Eur uses under the hood.
2023-02-16 10:50:55 +00:00
- Course on `Energy Systems <https://nworbmot.org/courses/es-22/>`_,
Technical University of Berlin (TUB), `Prof. Dr. Tom Brown <https://nworbmot.org>`_
- Course on `Data Science for Energy System Modelling <https://fneum.github.io/data-science-for-esm/intro.html>`_,
Technical University of Berlin (TUB), `Dr. Fabian Neumann <https://neumann.fyi>`_
2019-06-07 08:34:36 +00:00
2019-08-06 14:53:32 +00:00
Citing PyPSA-Eur
================
If you use PyPSA-Eur for your research, we would appreciate it if you would cite the following paper:
- Jonas Hörsch, Fabian Hofmann, David Schlachtberger, and Tom Brown. `PyPSA-Eur: An open optimisation model of the European transmission system <https://arxiv.org/abs/1806.01613>`_. Energy Strategy Reviews, 22:207-215, 2018. `arXiv:1806.01613 <https://arxiv.org/abs/1806.01613>`_, `doi:10.1016/j.esr.2018.08.012 <https://doi.org/10.1016/j.esr.2018.08.012>`_.
2019-08-06 14:53:32 +00:00
Please use the following BibTeX: ::
@article{PyPSAEur,
author = "Jonas Hoersch and Fabian Hofmann and David Schlachtberger and Tom Brown",
2019-08-06 14:53:32 +00:00
title = "PyPSA-Eur: An open optimisation model of the European transmission system",
journal = "Energy Strategy Reviews",
volume = "22",
pages = "207 - 215",
year = "2018",
issn = "2211-467X",
doi = "10.1016/j.esr.2018.08.012",
eprint = "1806.01613"
}
If you want to cite a specific PyPSA-Eur version, each release of PyPSA-Eur is stored on Zenodo with a release-specific DOI.
This can be found linked from the overall PyPSA-Eur Zenodo DOI:
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3520874.svg
:target: https://doi.org/10.5281/zenodo.3520874
2019-08-06 14:53:32 +00:00
2020-01-09 13:09:28 +00:00
Pre-Built Networks as a Dataset
===============================
There are pre-built networks available as a dataset on Zenodo as well for every release of PyPSA-Eur.
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3601881.svg
:target: https://doi.org/10.5281/zenodo.3601881
2020-01-09 13:09:28 +00:00
The included ``.nc`` files are PyPSA network files which can be imported with PyPSA via:
.. code:: python
2020-01-09 13:09:28 +00:00
import pypsa
filename = "elec_s_1024_ec.nc" # example
n = pypsa.Network(filename)
=======
>>>>>>> pypsa-eur-sec/master
2019-06-07 08:34:36 +00:00
Licence
=======
<<<<<<< HEAD
PyPSA-Eur work is released under multiple licenses:
2021-09-14 14:37:41 +00:00
* All original source code is licensed as free software under `MIT <LICENSES/MIT.txt>`_.
* The documentation is licensed under `CC-BY-4.0 <LICENSES/CC-BY-4.0.txt>`_.
* Configuration files are mostly licensed under `CC0-1.0 <LICENSES/CC0-1.0.txt>`_.
* Data files are licensed under `CC-BY-4.0 <LICENSES/CC-BY-4.0.txt>`_.
See the individual files and the `dep5 <.reuse/dep5>`_ file for license details.
Additionally, different licenses and terms of use also apply to the various input data, which are summarised below.
More details are included in
2019-10-24 13:54:12 +00:00
`the description of the data bundles on zenodo <https://zenodo.org/record/3517935#.XbGeXvzRZGo>`_.
.. csv-table::
:header-rows: 1
:file: configtables/licenses.csv
* *BY: Attribute Source*
* *NC: Non-Commercial Use Only*
2019-10-28 17:04:44 +00:00
* *SA: Share Alike*
=======
2021-09-22 16:03:25 +00:00
The code in PyPSA-Eur-Sec is released as free software under the
`MIT license <https://opensource.org/licenses/MIT>`_, see
`LICENSE <https://github.com/PyPSA/pypsa-eur-sec/blob/master/LICENSE.txt>`_.
However, different licenses and terms of use may apply to the various input data.
>>>>>>> pypsa-eur-sec/master