Merge pull request #718 from PyPSA/coke

add coal and coke demand for integrated steelworks
This commit is contained in:
Fabian Neumann 2023-10-08 11:58:48 +02:00 committed by GitHub
commit 2bab27e2f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2894,6 +2894,30 @@ 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:
add_carrier_buses(n, "coal")
mwh_coal_per_mwh_coke = 1.366 # from eurostat energy balance
p_set = (
industrial_demand["coal"].sum()
+ mwh_coal_per_mwh_coke * industrial_demand["coke"].sum()
) / nhours
n.madd(
"Load",
spatial.coal.nodes,
suffix=" for industry",
bus=spatial.coal.nodes,
carrier="coal for industry",
p_set=p_set,
)
def add_waste_heat(n):
# TODO options?