Added Reactivation and Deactivation Temps

This commit is contained in:
Peter Yefi 2022-02-02 07:03:22 -05:00
parent 702c8c4103
commit 7f21cc22c3
2 changed files with 5 additions and 4 deletions

View File

@ -157,6 +157,10 @@ class HeatPumpExport:
constants_dict = yaml.load(file, Loader=yaml.FullLoader)
for key, value in constants_dict.items():
self._input_data[key] = value
# compute water to water HP specific values
if self._water_temp is not None:
self._input_data["HPDisactivationTemperature"] = self._input_data["HPSupTemp"] - 5
self._input_data["HPReactivationTemperature"] = self._input_data["HPSupTemp"] - 18
# compute maximum demand. TODO: This should come from catalog in the future
max_demand = self._compute_max_demand()

View File

@ -47,10 +47,7 @@ class TestEnergySystemsFactory(TestCase):
'FuelPrice': 0.12,
'FuelEF': 1887,
'FuelDensity': 0.717,
'HPSupTemp': 60,
# parameters below depend on HPSupTem
'HPDisactivationTemperature': 55,
'HPReactivationTemperature': 42
'HPSupTemp': 60
}
EnergySystemsExportFactory(self._city, user_input, 'ClimateMaster 156 kW', self._output_path).export('water')