Nodelist working

This commit is contained in:
Oriol Gavalda 2023-11-17 08:13:53 -05:00
parent cfd2586f80
commit 383a480f65

View File

@ -370,7 +370,7 @@ class Idf:
return
self._idf.newidfobject(self._ZONE, Name=name, Volume=thermal_zone.volume)
self._add_heating_system(thermal_zone, name)
#self._add_nodelist_system(thermal_zone, name)
#self._add_nodelist_system (name)
def _add_thermostat(self, thermal_zone):
thermostat_name = f'Thermostat {thermal_zone.usage_name}'
@ -397,13 +397,10 @@ class Idf:
Zone_Return_Air_Node_or_NodeList_Name=f'{zone_name} Return Node List')
def _add_nodelist_system(self, thermal_zone, zone_name):
self._idf.newidfobject(self._NODE_LIST,
Name=f'{zone_name} Inlet Node List',
Node_Name='Node 2')
self._idf.newidfobject(self._NODE_LIST, Name=f'{zone_name} Inlet Node List',Node_1_Name='Node 1')
self._idf.newidfobject(self._NODE_LIST,
Name=f'{zone_name} Return Node List',
Node_Name='Node 3')
Node_1_Name='Node 3')
def _add_occupancy(self, thermal_zone, zone_name):
number_of_people = thermal_zone.occupancy.occupancy_density * thermal_zone.total_floor_area
@ -565,7 +562,7 @@ class Idf:
self._add_schedules(usage, 'Activity Level', _new_schedules)
self._add_zone(thermal_zone, building.name)
self._add_heating_system(thermal_zone, building.name)
#self._add_nodelist_system(thermal_zone, building.name)
self._add_nodelist_system(thermal_zone,building.name)
self._add_infiltration(thermal_zone, building.name)
self._add_ventilation(thermal_zone, building.name)
self._add_occupancy(thermal_zone, building.name)