Fully functional Domestic Hot Water. Pending validation of results
This commit is contained in:
parent
f62df2e873
commit
fe7f44d51f
@ -254,7 +254,7 @@ class Idf:
|
|||||||
_schedule.type = schedule_type
|
_schedule.type = schedule_type
|
||||||
_schedule.data_type = cte.ANY_NUMBER
|
_schedule.data_type = cte.ANY_NUMBER
|
||||||
_schedule.time_step = cte.HOUR
|
_schedule.time_step = cte.HOUR
|
||||||
_schedule.time_range = cte.YEAR
|
_schedule.time_range = cte.DAY
|
||||||
_schedule.day_types = ['monday',
|
_schedule.day_types = ['monday',
|
||||||
'tuesday',
|
'tuesday',
|
||||||
'wednesday',
|
'wednesday',
|
||||||
@ -265,7 +265,7 @@ class Idf:
|
|||||||
'holiday',
|
'holiday',
|
||||||
'winter_design_day',
|
'winter_design_day',
|
||||||
'summer_design_day']
|
'summer_design_day']
|
||||||
_schedule.values = [value for _ in range(0, 8760)]
|
_schedule.values = [value for _ in range(0, 24)]
|
||||||
return self._add_standard_compact_hourly_schedule(thermal_zone.usage_name, schedule_type, [_schedule])
|
return self._add_standard_compact_hourly_schedule(thermal_zone.usage_name, schedule_type, [_schedule])
|
||||||
|
|
||||||
def _add_construction(self, thermal_boundary):
|
def _add_construction(self, thermal_boundary):
|
||||||
@ -429,13 +429,13 @@ class Idf:
|
|||||||
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
|
peak_flow_rate = thermal_zone.domestic_hot_water.peak_flow*factor_size
|
||||||
_object = self._idf.newidfobject(self._DHW)
|
#_object = 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'{zone_name}_DHW',
|
||||||
Peak_Flow_Rate=peak_flow_rate,
|
Peak_Flow_Rate=peak_flow_rate,
|
||||||
Flow_Rate_Fraction_Schedule_Name=f'DHW_prof {thermal_zone.usage_name}',
|
Flow_Rate_Fraction_Schedule_Name=f'DHW_prof schedules {thermal_zone.usage_name}',
|
||||||
Target_Temperature_Schedule_Name=f'DHW_temp {thermal_zone.usage_name}',
|
Target_Temperature_Schedule_Name=f'DHW_temp schedules {thermal_zone.usage_name}',
|
||||||
EndUse_Subcategory=f'DHW {thermal_zone.usage_name}'
|
EndUse_Subcategory=f'DHW {thermal_zone.usage_name}'
|
||||||
)
|
)
|
||||||
def _rename_building(self, city_name):
|
def _rename_building(self, city_name):
|
||||||
@ -489,7 +489,7 @@ class Idf:
|
|||||||
self._add_schedules(usage, 'DHW_prof', thermal_zone.domestic_hot_water.schedules)
|
self._add_schedules(usage, 'DHW_prof', thermal_zone.domestic_hot_water.schedules)
|
||||||
# self._add_service_temp_schedules(thermal_zone)
|
# self._add_service_temp_schedules(thermal_zone)
|
||||||
value = int(thermal_zone.domestic_hot_water.service_temperature)
|
value = int(thermal_zone.domestic_hot_water.service_temperature)
|
||||||
self._add_constant_hourly_year_schedules(thermal_zone, value, cte.DOMESTIC_HOT_WATER)
|
self._add_constant_hourly_year_schedules(thermal_zone, value, 'DHW_temp')
|
||||||
self._add_people_activity_level_schedules(thermal_zone)
|
self._add_people_activity_level_schedules(thermal_zone)
|
||||||
self._add_zone(thermal_zone, building.name)
|
self._add_zone(thermal_zone, building.name)
|
||||||
self._add_heating_system(thermal_zone, building.name)
|
self._add_heating_system(thermal_zone, building.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user