Outputs of DHW incorporated. Values still relatively high, but consistent. Still need to incorporate adequately Cold Water Temperature

This commit is contained in:
Oriol Gavalda 2023-04-17 10:12:18 -04:00
parent fe7f44d51f
commit a59ef0937d
2 changed files with 19 additions and 9 deletions

View File

@ -604,9 +604,10 @@ class ThermalZone:
_mean_service_temperature = 0 _mean_service_temperature = 0
for usage in self.usages: for usage in self.usages:
#todo: change hardcoded density DHW #todo: change hardcoded density DHW
_mean_peak_density_load += usage.percentage * 1 #usage.domestic_hot_water.density #_mean_peak_density_load += usage.percentage * 1 #usage.domestic_hot_water.density
_mean_peak_flow += usage.percentage * usage.domestic_hot_water.peak_flow _mean_peak_flow += usage.percentage * usage.domestic_hot_water.peak_flow
_mean_service_temperature += usage.percentage * usage.domestic_hot_water.service_temperature # todo: change hardcoded service temperature
_mean_service_temperature += usage.percentage * 45
self._domestic_hot_water.density = _mean_peak_density_load self._domestic_hot_water.density = _mean_peak_density_load
self._domestic_hot_water.peak_flow = _mean_peak_flow self._domestic_hot_water.peak_flow = _mean_peak_flow
self._domestic_hot_water.service_temperature = _mean_service_temperature self._domestic_hot_water.service_temperature = _mean_service_temperature

View File

@ -428,15 +428,18 @@ class Idf:
fuel_type = 'Electricity' fuel_type = 'Electricity'
method = 'Watts/Area' method = 'Watts/Area'
factor_size = thermal_zone.total_floor_area / thermal_zone.footprint_area factor_size = thermal_zone.total_floor_area / thermal_zone.footprint_area
peak_flow_rate = thermal_zone.domestic_hot_water.peak_flow*factor_size #todo: revision of values of peak flow (too low). Added a factor, but to check original units
#_object = self._idf.newidfobject(self._DHW) peak_flow_rate = thermal_zone.domestic_hot_water.peak_flow*factor_size*thermal_zone.total_floor_area
# = self._idf.newidfobject(self._DHW)
#print(vars(_object)) #print(vars(_object))
self._idf.newidfobject(self._DHW, self._idf.newidfobject(self._DHW,
Name=f'{zone_name}_DHW', Name=f'DHW {zone_name}',
Peak_Flow_Rate=peak_flow_rate, Peak_Flow_Rate=peak_flow_rate,
Flow_Rate_Fraction_Schedule_Name=f'DHW_prof schedules {thermal_zone.usage_name}', Flow_Rate_Fraction_Schedule_Name=f'DHW_prof schedules {thermal_zone.usage_name}',
Target_Temperature_Schedule_Name=f'DHW_temp schedules {thermal_zone.usage_name}', Target_Temperature_Schedule_Name=f'DHW_temp schedules {thermal_zone.usage_name}',
EndUse_Subcategory=f'DHW {thermal_zone.usage_name}' Hot_Water_Supply_Temperature_Schedule_Name=f'DHW_temp schedules {thermal_zone.usage_name}',
EndUse_Subcategory=f'DHW {zone_name}',
Zone_Name=zone_name
) )
def _rename_building(self, city_name): def _rename_building(self, city_name):
name = str(str(city_name.encode("utf-8"))) name = str(str(city_name.encode("utf-8")))
@ -516,7 +519,7 @@ class Idf:
self._idf.newidfobject( self._idf.newidfobject(
"OUTPUT:VARIABLE", "OUTPUT:VARIABLE",
Variable_Name="Zone Ideal Loads Supply Air Total Heating Energy", Variable_Name="Zone Ideal Loads Supply Air Total Heating Energy",
Reporting_Frequency="Hourly", Reporting_Frequency="Monthly",
) )
#_object = self._idf.newidfobject("OUTPUT:VARIABLE") #_object = self._idf.newidfobject("OUTPUT:VARIABLE")
#print(vars(_object)) #print(vars(_object))
@ -524,7 +527,13 @@ class Idf:
self._idf.newidfobject( self._idf.newidfobject(
"OUTPUT:VARIABLE", "OUTPUT:VARIABLE",
Variable_Name="Zone Ideal Loads Supply Air Total Cooling Energy", Variable_Name="Zone Ideal Loads Supply Air Total Cooling Energy",
Reporting_Frequency="Hourly", Reporting_Frequency="Monthly",
)
self._idf.newidfobject(
"OUTPUT:VARIABLE",
Variable_Name="Water Use Equipment Heating Rate",
Reporting_Frequency="Monthly",
) )
#self._idf.newidfobject( #self._idf.newidfobject(