fix unit conversion for thermal energy storage (closes #247)

This commit is contained in:
Fabian Neumann 2022-07-11 15:46:21 +02:00
parent 5082c8761b
commit adc0dd1e0c

View File

@ -1481,9 +1481,6 @@ def add_heat(n, costs):
"for 'decentral' and 'central' separately.") "for 'decentral' and 'central' separately.")
tes_time_constant_days = options["tes_tau"] if name_type == "decentral" else 180. tes_time_constant_days = options["tes_tau"] if name_type == "decentral" else 180.
# conversion from EUR/m^3 to EUR/MWh for 40 K diff and 1.17 kWh/m^3/K
capital_cost = costs.at[name_type + ' water tank storage', 'fixed'] / 0.00117 / 40
n.madd("Store", n.madd("Store",
nodes[name] + f" {name} water tanks", nodes[name] + f" {name} water tanks",
bus=nodes[name] + f" {name} water tanks", bus=nodes[name] + f" {name} water tanks",
@ -1491,7 +1488,7 @@ def add_heat(n, costs):
e_nom_extendable=True, e_nom_extendable=True,
carrier=name + " water tanks", carrier=name + " water tanks",
standing_loss=1 - np.exp(- 1 / 24 / tes_time_constant_days), standing_loss=1 - np.exp(- 1 / 24 / tes_time_constant_days),
capital_cost=capital_cost, capital_cost=costs.at[name_type + ' water tank storage', 'fixed'],
lifetime=costs.at[name_type + ' water tank storage', 'lifetime'] lifetime=costs.at[name_type + ' water tank storage', 'lifetime']
) )