From 1d6b6483e084e31edbe34ac12fdab551ea5c4560 Mon Sep 17 00:00:00 2001 From: Tom Brown Date: Tue, 11 Aug 2020 09:55:39 +0200 Subject: [PATCH] add_existing_baseyear: Divide p_nom by efficiency for Links This is because the p_nom of a Link is the thermal capacity at bus0, whereas the capacities we have are the electrical capacity at bus1. --- scripts/add_existing_baseyear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add_existing_baseyear.py b/scripts/add_existing_baseyear.py index c79a9e06..86d50ec1 100755 --- a/scripts/add_existing_baseyear.py +++ b/scripts/add_existing_baseyear.py @@ -206,7 +206,7 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs): carrier=generator, marginal_cost=costs.at[generator,'efficiency']*costs.at[generator,'VOM'], #NB: VOM is per MWel capital_cost=costs.at[generator,'efficiency']*costs.at[generator,'fixed'], #NB: fixed cost is per MWel - p_nom=capacity, + p_nom=capacity/costs.at[generator,'efficiency'], efficiency=costs.at[generator,'efficiency'], efficiency2=costs.at[carrier[generator],'CO2 intensity'], build_year=grouping_year,