Skip to content

Commit 9d30a84

Browse files
committed
H2 valleys docs
1 parent 1e37c14 commit 9d30a84

3 files changed

Lines changed: 75 additions & 0 deletions

File tree

docs/H2_valley_demands.rst

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
..
2+
SPDX-FileCopyrightText: 2019-2024 The PyPSA-Spain Authors
3+
4+
SPDX-License-Identifier: CC-BY-4.0
5+
6+
7+
####################################################################
8+
The model for H2 valley demands
9+
####################################################################
10+
11+
12+
PyPSA-Spain includes a functionality to model geolocalised annual hydrogen demands associated with so-called H2 valleys (clusters of industrial, mobility or sectoral H2 consumers planned at a given location). Each H2 valley represents a fixed annual amount of hydrogen consumed inside the Spanish system at a given geographical location, which the model then distributes as a constant load over the whole year.
13+
14+
The required elements are added during the rule ``prepare_sector_network``, after the regular sector-coupled network has been built. The configuration relies on two groups of elements: a YAML file describing the H2 valleys, and a corresponding entry in the ``pypsa_spain`` module of the configuration file.
15+
16+
17+
Model components
18+
========================
19+
20+
For each H2 valley, the following element is added to the network:
21+
22+
- a **fixed H2 load** with carrier ``H2``, attached to the closest H2 bus of the Spanish network and consuming a constant power such that the total annual consumption equals the configured amount of hydrogen.
23+
24+
The closest H2 bus is identified at runtime based on Euclidean distance between the H2 valley coordinates and the H2 buses in peninsular Spain.
25+
26+
The annual hydrogen amount is converted to a constant power setpoint using:
27+
28+
.. math::
29+
30+
p = \frac{\text{annual\_amount} \cdot 33.33 \times 10^6}{\sum_t w_t} \quad [\text{MW}]
31+
32+
where :math:`33.33 \times 10^6` MWh is the lower heating value of one million tonnes of H2, and :math:`\sum_t w_t` is the total weight of the snapshots (equal to 8760 hours for full-year runs at any temporal resolution).
33+
34+
The constant load is imposed by directly setting ``loads_t.p_set`` for the load.
35+
36+
37+
Configuration
38+
========================
39+
40+
The functionality is enabled in the ``pypsa_spain`` module of ``config/config_ES.yaml``:
41+
42+
.. code-block:: yaml
43+
44+
H2_valley_demands:
45+
enable: true
46+
file: data_ES/H2/H2_valley_demands.yaml
47+
48+
The characteristics of each H2 valley are defined in the file referenced above. Each entry specifies the valley coordinates (``x``, ``y``) and the annual hydrogen demand in MtH2/year. The ``bus`` field of the load is left empty in the YAML file and assigned at runtime to the closest H2 bus on the Spanish network.
49+
50+
.. note::
51+
52+
When this functionality is enabled, the electricity demand associated with H2 production should be removed from the regular electricity demand input to avoid double counting.
53+
54+
55+
The following figure shows the H2 valleys defined in the template file included in the repository. A more detailed description of these example valleys is provided in `PR #18 <https://github.com/cristobal-GC/pypsa-spain/pull/18>`__.
56+
57+
.. figure:: img/H2_valley_demands.png
58+
:width: 85%
59+
:align: center
60+
:alt: Map of H2 valley demands in PyPSA-Spain
61+
62+
63+
64+
65+
66+
67+
Modelling assumptions and limitations
68+
========================================
69+
70+
The current implementation deliberately makes some simplifications:
71+
72+
- The H2 demand of each valley is imposed as a **constant load** over all snapshots. Intra-annual variability of the demand is not represented.
73+
- Each valley is attached to a **single H2 bus**, identified as the closest one by Euclidean distance. The internal hydrogen distribution network within the valley is not modelled.
74+
- The annual amount is treated as **exogenous**: it is not co-optimised with the rest of the system.

docs/img/H2_valley_demands.png

113 KB
Loading

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Find the details of PyPSA-Spain v.0.0.0 in the `seminal paper <https://doi.org/1
3737
ISA_index
3838
interconnections
3939
regional_network_focus
40+
H2_valley_demands
4041
H2_imports_exports
4142

4243
.. toctree::

0 commit comments

Comments
 (0)