feature/upgrade_ep_to_23.2.0 #59

Merged
g_gutierrez merged 10 commits from feature/upgrade_ep_to_23.2.0 into main 2024-01-22 08:34:48 -05:00
Showing only changes of commit 227685695a - Show all commits

View File

@ -59,6 +59,7 @@ class Idf:
_BASEBOARD ='ZONEHVAC:BASEBOARD:CONVECTIVE:ELECTRIC' _BASEBOARD ='ZONEHVAC:BASEBOARD:CONVECTIVE:ELECTRIC'
_AIR_TERMINAL_NO_REHEAT= 'AIRTERMINAL:SINGLEDUCT:CONSTANTVOLUME:NOREHEAT' _AIR_TERMINAL_NO_REHEAT= 'AIRTERMINAL:SINGLEDUCT:CONSTANTVOLUME:NOREHEAT'
_AIR_DISTRIBUTION='ZONEHVAC:AIRDISTRIBUTIONUNIT' _AIR_DISTRIBUTION='ZONEHVAC:AIRDISTRIBUTIONUNIT'
_EQUIPMENT_LIST='ZONEHVAC:EQUIPMENTLIST'
idf_surfaces = { idf_surfaces = {
cte.WALL: 'wall', cte.WALL: 'wall',
@ -421,13 +422,26 @@ class Idf:
def _add_air_distribution_system(self, thermal_zone, zone_name): def _add_air_distribution_system(self, thermal_zone, zone_name):
"""for air_distribution in self._idf.idfobjects[self._AIR_DISTRIBUTION]: for air_distribution in self._idf.idfobjects[self._AIR_DISTRIBUTION]:
if air_distribution.Zone_Name == zone_name: if air_distribution.Zone_Name == zone_name:
return""" return
self._idf.newidfobject(self._AIR_DISTRIBUTION, self._idf.newidfobject(self._AIR_DISTRIBUTION,
Air_Distribution_Outlet_Node_Name='Node 2', Name='ADU Diffuser',
Air_Terminal_Name=f'Diffuser', Air_Distribution_Unit_Outlet_Node_Name='Node 2',
Air_Terminal_Object_Type='AirTerminal:SingleDuct:ConstantVolume:NoReheat') Air_Terminal_Object_Type='AirTerminal:SingleDuct:ConstantVolume:NoReheat',
Air_Terminal_Name='Diffuser')
def _add_equipment_list_system(self, thermal_zone, zone_name):
for air_distribution in self._idf.idfobjects[self._EQUIPMENT_LIST]:
if air_distribution.Zone_Name == zone_name:
return
self._idf.newidfobject(self._EQUIPMENT_LIST,
Name=f'{zone_name} Equipment List',
Load_Distribution_Scheme='SequentialLoad',
Zone_Equipment_1_Object_Type='ZoneHVAC:Baseboard:Convective:Electric',
Zone_Equipment_1_Name='Elec Baseboard',
Zone_Equipment_1_Heating_or_NoLoad_Sequence='1',
Zone_Equipment_2_Object_Type='ZoneHVAC:AirDistributionUnit',
Zone_Equipment_2_Name ='ADU Diffuser')
def _add_occupancy(self, thermal_zone, zone_name): def _add_occupancy(self, thermal_zone, zone_name):
number_of_people = thermal_zone.occupancy.occupancy_density * thermal_zone.total_floor_area number_of_people = thermal_zone.occupancy.occupancy_density * thermal_zone.total_floor_area
fraction_radiant = 0 fraction_radiant = 0
@ -592,6 +606,7 @@ class Idf:
self._add_baseboard_system(thermal_zone, building.name) self._add_baseboard_system(thermal_zone, building.name)
self._add_air_terminal_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_air_distribution_system(thermal_zone, building.name)
self._add_equipment_list_system(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) self._add_ventilation(thermal_zone, building.name)
self._add_occupancy(thermal_zone, building.name) self._add_occupancy(thermal_zone, building.name)