def test_tutorial_3(): IDF.setiddname("C:/EnergyPlusV9-1-0/Energy+.idd", testing=True) idf = IDF("C:/EnergyPlusV9-1-0/ExampleFiles/Minimal.idf") idf.epw = "USA_CO_Golden-NREL.724666_TMY3.epw" idf.add_block( name="Two storey", coordinates=[(10, 0), (10, 5), (0, 5), (0, 0)], height=6, num_stories=2, ) idf.add_block(name="One storey", coordinates=[(10, 5), (10, 10), (0, 10), (0, 5)], height=3) idf.intersect_match() idf.set_wwr(0.25, construction="Project External Window") idf.set_default_constructions() for c in idf.idfobjects["CONSTRUCTION"]: print(c) print(idf.getobject("MATERIAL", "DefaultMaterial")) print(idf.getobject("WINDOWMATERIAL:SIMPLEGLAZINGSYSTEM", "DefaultGlazing")) src_idf = IDF("C:/EnergyPlusV9-1-0/ExampleFiles/WindowTestsSimple.idf") copy_constructions(source_idf=src_idf, target_idf=idf) for c in idf.idfobjects["CONSTRUCTION"]: print(c) for wall in idf.getsubsurfaces("wall"): wall.Construction_Name = "EXTERIOR" for roof in idf.getsubsurfaces("roof"): roof.Construction_Name = "ROOF31" for floor in idf.getsubsurfaces("floor"): floor.Construction_Name = "FLOOR38" idf.run(output_directory="tests/tutorial")
from geomeppy import IDF IDF.setiddname('/Applications/EnergyPlus-8-8-0/Energy+.idd') idf = IDF('/Users/soroush/Desktop/Noumena/bcn-energy/src/gh_template.idf') idf.epw = '/Users/soroush/Desktop/Noumena/bcn-energy/src/ESP_Barcelona.081810_IWEC.epw' constructions = idf.getobject("CONSTRUCTION", '') print(constructions) # idf.printidf()