config: Move heat pump sink temp from script to config.yaml
This commit is contained in:
parent
1ea31f0e57
commit
2c49b8e3c3
@ -99,7 +99,9 @@ sector:
|
|||||||
'transport_fuel_cell_efficiency': 0.5
|
'transport_fuel_cell_efficiency': 0.5
|
||||||
'transport_internal_combustion_efficiency': 0.3
|
'transport_internal_combustion_efficiency': 0.3
|
||||||
'shipping_average_efficiency' : 0.4 #For conversion of fuel oil to propulsion in 2011
|
'shipping_average_efficiency' : 0.4 #For conversion of fuel oil to propulsion in 2011
|
||||||
'time_dep_hp_cop' : True
|
'time_dep_hp_cop' : True #time dependent heat pump coefficient of performance
|
||||||
|
'heat_pump_sink_T' : 55. # Celsius, based on DTU / large area radiators; used in build_cop_profiles.py
|
||||||
|
# conservatively high to cover hot water and space heating in poorly-insulated buildings
|
||||||
'retrofitting' :
|
'retrofitting' :
|
||||||
'retro_exogen': True # space heat demand savings exogenously
|
'retro_exogen': True # space heat demand savings exogenously
|
||||||
'dE': # reduction of space heat demand (applied before losses in DH)
|
'dE': # reduction of space heat demand (applied before losses in DH)
|
||||||
|
@ -9,16 +9,13 @@ import xarray as xr
|
|||||||
cop_f = {"air" : lambda d_t: 6.81 -0.121*d_t + 0.000630*d_t**2,
|
cop_f = {"air" : lambda d_t: 6.81 -0.121*d_t + 0.000630*d_t**2,
|
||||||
"soil" : lambda d_t: 8.77 -0.150*d_t + 0.000734*d_t**2}
|
"soil" : lambda d_t: 8.77 -0.150*d_t + 0.000734*d_t**2}
|
||||||
|
|
||||||
sink_T = 55. # Based on DTU / large area radiators
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for area in ["total", "urban", "rural"]:
|
for area in ["total", "urban", "rural"]:
|
||||||
for source in ["air", "soil"]:
|
for source in ["air", "soil"]:
|
||||||
|
|
||||||
source_T = xr.open_dataarray(snakemake.input["temp_{}_{}".format(source,area)])
|
source_T = xr.open_dataarray(snakemake.input["temp_{}_{}".format(source,area)])
|
||||||
|
|
||||||
delta_T = sink_T - source_T
|
delta_T = snakemake.config['sector']['heat_pump_sink_T'] - source_T
|
||||||
|
|
||||||
cop = cop_f[source](delta_T)
|
cop = cop_f[source](delta_T)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user