correct call in add zone
This commit is contained in:
parent
027bea5c2f
commit
b306ecbd3b
|
@ -21,12 +21,12 @@ class IdfHelper:
|
||||||
self._eso_file_path = str((Path.cwd() / 'eplusout.eso').resolve())
|
self._eso_file_path = str((Path.cwd() / 'eplusout.eso').resolve())
|
||||||
|
|
||||||
def add_zone(self, building_name):
|
def add_zone(self, building_name):
|
||||||
IDF.newidfobject('ZONE', Name=building_name, Ceiling_Height='autocalculate', Volume='autocalculate',
|
self._idf.newidfobject(key='ZONE', Name=building_name, Ceiling_Height='autocalculate', Volume='autocalculate',
|
||||||
Floor_Area='autocalculate', Part_of_Total_Floor_Area='yes',)
|
Floor_Area='autocalculate', Part_of_Total_Floor_Area='yes', )
|
||||||
|
|
||||||
def add_surface(self, surface, building_name):
|
def add_surface(self, surface, building_name):
|
||||||
self._idf.newidfobject('BUILDINGSURFACE:DETAILED', Name=surface.name, Surface_Type=surface.type,
|
self._idf.newidfobject('BUILDINGSURFACE:DETAILED', Name=surface.name, Surface_Type=surface.type,
|
||||||
Zone_Name=building_name,)
|
Zone_Name=building_name, )
|
||||||
# Why is this thing here?
|
# Why is this thing here?
|
||||||
# self.wall.setcoords(surface.points_list.toList())
|
# self.wall.setcoords(surface.points_list.toList())
|
||||||
|
|
||||||
|
@ -37,10 +37,10 @@ class IdfHelper:
|
||||||
self._idf.translate_to_origin()
|
self._idf.translate_to_origin()
|
||||||
self._idf.view_model()
|
self._idf.view_model()
|
||||||
self._idf.newidfobject("HVACTEMPLATE:THERMOSTAT", Name="Zone Stat", Constant_Heating_Setpoint=20,
|
self._idf.newidfobject("HVACTEMPLATE:THERMOSTAT", Name="Zone Stat", Constant_Heating_Setpoint=20,
|
||||||
Constant_Cooling_Setpoint=24,)
|
Constant_Cooling_Setpoint=24, )
|
||||||
for zone in self._idf.idfobjects["ZONE"]:
|
for zone in self._idf.idfobjects["ZONE"]:
|
||||||
self._idf.newidfobject("HVACTEMPLATE:ZONE:IDEALLOADSAIRSYSTEM", Zone_Name=zone.Name,
|
self._idf.newidfobject("HVACTEMPLATE:ZONE:IDEALLOADSAIRSYSTEM", Zone_Name=zone.Name,
|
||||||
Template_Thermostat_Name='', Outdoor_Air_Method="DetailedSpecification",)
|
Template_Thermostat_Name='', Outdoor_Air_Method="DetailedSpecification", )
|
||||||
# Run
|
# Run
|
||||||
self._idf.run()
|
self._idf.run()
|
||||||
dd, data = esoreader.read(self._eso_file_path)
|
dd, data = esoreader.read(self._eso_file_path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user