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.
This commit is contained in:
Tom Brown 2020-08-11 09:55:39 +02:00
parent e7cf956902
commit 1d6b6483e0

View File

@ -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,