Fix non steel related coal demand during transition (using sector_ratios)

This commit is contained in:
Thomas Gilon 2024-05-02 17:22:56 +02:00
parent 5ecd56d53c
commit 02e434c8b0
2 changed files with 3 additions and 7 deletions

View File

@ -181,6 +181,8 @@ Upcoming Release
* Fix custom busmap read in `cluster_network`.
* Fix non steel related coal demand during transition (using `sector_ratios_fraction_future`).
PyPSA-Eur 0.10.0 (19th February 2024)
=====================================

View File

@ -3070,13 +3070,7 @@ def add_industry(n, costs):
p_set=p_set,
)
primary_steel = get(
snakemake.config["industry"]["St_primary_fraction"], investment_year
)
dri_steel = get(snakemake.config["industry"]["DRI_fraction"], investment_year)
bof_steel = primary_steel - dri_steel
if bof_steel > 0:
if (industrial_demand["coke"].sum() + industrial_demand["coal"].sum()) != 0:
add_carrier_buses(n, "coal")
mwh_coal_per_mwh_coke = 1.366 # from eurostat energy balance