bugfix: coal emissions for industry weren't tracked
Also allow industrial coal demand to be regional (so we can include them in regional CO2 constraints).
This commit is contained in:
parent
cbb3ab36a6
commit
8781e69066
@ -501,6 +501,7 @@ sector:
|
|||||||
SMR_cc: true
|
SMR_cc: true
|
||||||
regional_methanol_demand: false
|
regional_methanol_demand: false
|
||||||
regional_oil_demand: false
|
regional_oil_demand: false
|
||||||
|
regional_coal_demand: false
|
||||||
regional_co2_sequestration_potential:
|
regional_co2_sequestration_potential:
|
||||||
enable: false
|
enable: false
|
||||||
attribute: 'conservative estimate Mt'
|
attribute: 'conservative estimate Mt'
|
||||||
|
@ -172,6 +172,13 @@ def define_spatial(nodes, options):
|
|||||||
spatial.coal.nodes = ["EU coal"]
|
spatial.coal.nodes = ["EU coal"]
|
||||||
spatial.coal.locations = ["EU"]
|
spatial.coal.locations = ["EU"]
|
||||||
|
|
||||||
|
if options["regional_coal_demand"]:
|
||||||
|
spatial.coal.demand_locations = nodes
|
||||||
|
spatial.coal.industry = nodes + " coal for industry"
|
||||||
|
else:
|
||||||
|
spatial.coal.demand_locations = ["EU"]
|
||||||
|
spatial.coal.industry = ["EU coal for industry"]
|
||||||
|
|
||||||
# lignite
|
# lignite
|
||||||
spatial.lignite = SimpleNamespace()
|
spatial.lignite = SimpleNamespace()
|
||||||
spatial.lignite.nodes = ["EU lignite"]
|
spatial.lignite.nodes = ["EU lignite"]
|
||||||
@ -3048,19 +3055,41 @@ def add_industry(n, costs):
|
|||||||
|
|
||||||
mwh_coal_per_mwh_coke = 1.366 # from eurostat energy balance
|
mwh_coal_per_mwh_coke = 1.366 # from eurostat energy balance
|
||||||
p_set = (
|
p_set = (
|
||||||
industrial_demand["coal"].sum()
|
industrial_demand["coal"]
|
||||||
+ mwh_coal_per_mwh_coke * industrial_demand["coke"].sum()
|
+ mwh_coal_per_mwh_coke * industrial_demand["coke"]
|
||||||
) / nhours
|
) / nhours
|
||||||
|
|
||||||
|
if not options["regional_coal_demand"]:
|
||||||
|
p_set = p_set.sum()
|
||||||
|
|
||||||
|
n.madd(
|
||||||
|
"Bus",
|
||||||
|
spatial.coal.industry,
|
||||||
|
location=spatial.coal.demand_locations,
|
||||||
|
carrier="coal for industry",
|
||||||
|
unit="MWh_LHV",
|
||||||
|
)
|
||||||
|
|
||||||
n.madd(
|
n.madd(
|
||||||
"Load",
|
"Load",
|
||||||
spatial.coal.nodes,
|
spatial.coal.industry,
|
||||||
suffix=" for industry",
|
bus=spatial.coal.industry,
|
||||||
bus=spatial.coal.nodes,
|
|
||||||
carrier="coal for industry",
|
carrier="coal for industry",
|
||||||
p_set=p_set,
|
p_set=p_set,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
n.madd(
|
||||||
|
"Link",
|
||||||
|
spatial.coal.industry,
|
||||||
|
bus0=spatial.coal.nodes,
|
||||||
|
bus1=spatial.coal.industry,
|
||||||
|
bus2="co2 atmosphere",
|
||||||
|
carrier="coal for industry",
|
||||||
|
p_nom_extendable=True,
|
||||||
|
efficiency2=costs.at["coal", "CO2 intensity"],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def add_waste_heat(n):
|
def add_waste_heat(n):
|
||||||
# TODO options?
|
# TODO options?
|
||||||
|
Loading…
Reference in New Issue
Block a user