From 6293d3baba420f2928853fdf6dce7b35253b9f78 Mon Sep 17 00:00:00 2001 From: Toni Seibold <153275395+toniseibold@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:48:00 +0200 Subject: [PATCH] Adding overnight costs in `modify_prenetwork` (#181) * robustely adding parameters for DE meoh and oil stores * adjust overnight costs for retrofitted gas plants * satisfy checklist and rename prefix * adding overnight costs to chps as well --------- Co-authored-by: Michael Lindner --- workflow/scripts/modify_prenetwork.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/workflow/scripts/modify_prenetwork.py b/workflow/scripts/modify_prenetwork.py index 478581a7..bf287858 100644 --- a/workflow/scripts/modify_prenetwork.py +++ b/workflow/scripts/modify_prenetwork.py @@ -370,14 +370,16 @@ def unravel_oilbus(n): ) # add stores + EU_oil_store = n.stores.loc["EU oil Store"].copy() n.add( "Store", "DE oil Store", bus="DE oil", carrier="oil", - e_nom_extendable=True, - e_cyclic=True, - capital_cost=0.02, + e_nom_extendable=EU_oil_store.e_nom_extendable, + e_cyclic=EU_oil_store.e_cyclic, + capital_cost=EU_oil_store.capital_cost, + overnight_cost=EU_oil_store.overnight_cost, ) # unravel meoh @@ -414,14 +416,16 @@ def unravel_oilbus(n): ) # add stores + EU_meoh_store = n.stores.loc["EU methanol Store"].copy() n.add( "Store", "DE methanol Store", bus="DE methanol", carrier="methanol", - e_nom_extendable=True, - e_cyclic=True, - capital_cost=0.02, + e_nom_extendable=EU_meoh_store.e_nom_extendable, + e_cyclic=EU_meoh_store.e_cyclic, + capital_cost=EU_meoh_store.capital_cost, + overnight_cost=EU_meoh_store.overnight_cost, ) @@ -758,6 +762,7 @@ def force_retrofit(n, params): h2_plants.efficiency -= params["efficiency_loss"] h2_plants.efficiency2 = 1 # default value h2_plants.capital_cost *= 1 + params["cost_factor"] + h2_plants.overnight_cost *= 1 + params["cost_factor"] # add the new links n.import_components_from_dataframe(h2_plants, "Link") n.links.drop(gas_plants, inplace=True) @@ -779,6 +784,7 @@ def force_retrofit(n, params): h2_plants.efficiency -= params["efficiency_loss"] h2_plants.efficiency3 = 1 # default value h2_plants.capital_cost *= 1 + params["cost_factor"] + h2_plants.overnight_cost *= 1 + params["cost_factor"] n.import_components_from_dataframe(h2_plants, "Link") n.links.drop(gas_plants, inplace=True)