From 343aba1db943598d9c37d95bf7efbfa630b19458 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Mon, 23 Sep 2024 15:52:57 +0200 Subject: [PATCH] Methanol-to-kerosene: correct efficiency and add VOM (#1320) * MtK: add VOM * MtK: fix methanol input efficiency --- scripts/add_electricity.py | 6 +++++- scripts/prepare_sector_network.py | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/add_electricity.py b/scripts/add_electricity.py index 82c78a28..1bf690ba 100755 --- a/scripts/add_electricity.py +++ b/scripts/add_electricity.py @@ -231,10 +231,14 @@ def load_costs(tech_costs, config, max_hours, Nyears=1.0): # set all asset costs and other parameters costs = pd.read_csv(tech_costs, index_col=[0, 1]).sort_index() - # correct units to MW + # correct units from kW to MW costs.loc[costs.unit.str.contains("/kW"), "value"] *= 1e3 costs.unit = costs.unit.str.replace("/kW", "/MW") + # correct units from GW to MW + costs.loc[costs.unit.str.contains("/GW"), "value"] /= 1e3 + costs.unit = costs.unit.str.replace("/GW", "/MW") + fill_values = config["fill_values"] costs = costs.value.unstack().fillna(fill_values) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 8716de45..66fffcec 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -943,11 +943,12 @@ def add_methanol_to_kerosene(n, costs): suffix=f" {tech}", carrier=tech, capital_cost=capital_cost, + marginal_cost=costs.at[tech, "VOM"], bus0=spatial.methanol.nodes, bus1=spatial.oil.kerosene, bus2=spatial.h2.nodes, bus3="co2 atmosphere", - efficiency=costs.at[tech, "methanol-input"], + efficiency=1 / costs.at[tech, "methanol-input"], efficiency2=-costs.at[tech, "hydrogen-input"] / costs.at[tech, "methanol-input"], efficiency3=costs.at["oil", "CO2 intensity"] / costs.at[tech, "methanol-input"],