Skip to content

Commit a029847

Browse files
author
Micha
authored
Fix h2 deriv import limit (#119)
* rename and changelog * fix double counting of methnaol * strengthen import limit for h2 derivatives * Update changelog for H2 derivative import limit
1 parent fd9cc02 commit a029847

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Changelog
2+
- Bugfix: Enforce stricter H2 derivative import limit to avoid that exports of one type of derivative compensate for imports of another
23
- Added an option to source mobility demand from UBA MWMS (Projektionsbericht 2025) for the years 2025-2035
34
- Renamed functions and script for exogenous mobility demand
45
- Improved the transport demand data, added an option to source 2020 and 2025 data from AGEB instead of Aladin

config/config.de.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# docs in https://pypsa-eur.readthedocs.io/en/latest/configuration.html#run
66
run:
7-
prefix: 20250807_merge_july
7+
prefix: 20250901_h2_deriv_fix
88
name:
99
# - ExPol
1010
- KN2045_Mix

scripts/pypsa-de/additional_functionality.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,10 +652,16 @@ def add_h2_derivate_limit(n, investment_year, limits_volume_max):
652652
].index
653653

654654
carrier_idx_dict = {
655+
# Every carrier should respect the limit individually
655656
"renewable_oil": 0,
656657
"methanol": 1,
657658
"renewable_gas": 2,
658-
"H2_derivate": [0, 1, 2],
659+
# Exports of one carrier should not compensate for imports of another carrier
660+
"H2_derivate_oil_meoh": [0, 1],
661+
"H2_derivate_oil_gas": [0, 2],
662+
"H2_derivate_meoh_gas": [1, 2],
663+
# The sum of all carriers should respect the limit
664+
"H2_derivate_oil_meoh_gas": [0, 1, 2],
659665
}
660666
for carrier, idx in carrier_idx_dict.items():
661667
cname = f"{carrier}_import_limit-{ct}"

scripts/pypsa-de/export_ariadne_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4619,7 +4619,7 @@ def get_export_import_links(n, region, carriers):
46194619
)
46204620

46214621
exports_oil_renew, imports_oil_renew = get_export_import_links(
4622-
n, region, ["renewable oil", "methanol"]
4622+
n, region, ["renewable oil"]
46234623
)
46244624

46254625
var["Trade|Secondary Energy|Liquids|Biomass|Volume"] = (

0 commit comments

Comments
 (0)