Add debugging code to idf.py
This commit is contained in:
parent
9444de6bae
commit
7328118861
@ -622,23 +622,23 @@ class Idf:
|
|||||||
_total_heat = (_occ.sensible_convective_internal_gain + _occ.sensible_radiative_internal_gain
|
_total_heat = (_occ.sensible_convective_internal_gain + _occ.sensible_radiative_internal_gain
|
||||||
+ _occ.latent_internal_gain) / _occ.occupancy_density
|
+ _occ.latent_internal_gain) / _occ.occupancy_density
|
||||||
_new_schedules = self._create_constant_value_schedules('Activity Level', _total_heat)
|
_new_schedules = self._create_constant_value_schedules('Activity Level', _total_heat)
|
||||||
|
print('add schedules')
|
||||||
self._add_schedules(usage, 'Activity Level', _new_schedules)
|
self._add_schedules(usage, 'Activity Level', _new_schedules)
|
||||||
|
print('add zone')
|
||||||
self._add_zone(thermal_zone, building.name)
|
self._add_zone(thermal_zone, building.name)
|
||||||
|
print('add heating system')
|
||||||
self._add_heating_system(thermal_zone, building.name)
|
self._add_heating_system(thermal_zone, building.name)
|
||||||
self._add_nodelist_system(thermal_zone,building.name)
|
print('add infiltration')
|
||||||
self._add_baseboard_system(thermal_zone, building.name)
|
|
||||||
self._add_air_terminal_system(thermal_zone, building.name)
|
|
||||||
self._add_air_distribution_system(thermal_zone, building.name)
|
|
||||||
self._add_equipment_list_system(thermal_zone, building.name)
|
|
||||||
|
|
||||||
self._add_sizing_zone(thermal_zone, building.name)
|
|
||||||
self._add_outdoor_air_design_specification(thermal_zone, building.name)
|
|
||||||
|
|
||||||
self._add_infiltration(thermal_zone, building.name)
|
self._add_infiltration(thermal_zone, building.name)
|
||||||
self._add_ventilation(thermal_zone, building.name)
|
# print('add ventilation')
|
||||||
self._add_occupancy(thermal_zone, building.name)
|
# self._add_ventilation(thermal_zone, building.name)
|
||||||
self._add_lighting(thermal_zone, building.name)
|
# print('add occupancy')
|
||||||
self._add_appliances(thermal_zone, building.name)
|
# self._add_occupancy(thermal_zone, building.name)
|
||||||
|
# print('add lighting')
|
||||||
|
# self._add_lighting(thermal_zone, building.name)
|
||||||
|
# print('appliances')
|
||||||
|
# self._add_appliances(thermal_zone, building.name)
|
||||||
|
#print('dhw')
|
||||||
self._add_dhw(thermal_zone, building.name)
|
self._add_dhw(thermal_zone, building.name)
|
||||||
if self._export_type == "Surfaces":
|
if self._export_type == "Surfaces":
|
||||||
if building.name in self._target_buildings or building.name in self._adjacent_buildings:
|
if building.name in self._target_buildings or building.name in self._adjacent_buildings:
|
||||||
@ -668,7 +668,6 @@ class Idf:
|
|||||||
Variable_Name="Water Use Equipment Heating Rate",
|
Variable_Name="Water Use Equipment Heating Rate",
|
||||||
Reporting_Frequency="Hourly",
|
Reporting_Frequency="Hourly",
|
||||||
)
|
)
|
||||||
|
|
||||||
# post-process to erase windows associated to adiabatic walls
|
# post-process to erase windows associated to adiabatic walls
|
||||||
windows_list = []
|
windows_list = []
|
||||||
for window in self._idf.idfobjects[self._WINDOW]:
|
for window in self._idf.idfobjects[self._WINDOW]:
|
||||||
@ -680,7 +679,6 @@ class Idf:
|
|||||||
windows_list.append(window)
|
windows_list.append(window)
|
||||||
for window in windows_list:
|
for window in windows_list:
|
||||||
self._idf.removeidfobject(window)
|
self._idf.removeidfobject(window)
|
||||||
|
|
||||||
self._idf.saveas(str(self._output_file))
|
self._idf.saveas(str(self._output_file))
|
||||||
return self._idf
|
return self._idf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user