How to use the teaser.logic.buildingobjects.buildingphysics.rooftop.Rooftop function in teaser

To help you get started, we’ve selected a few teaser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RWTH-EBC / TEASER / teaser / examples / test_newxml.py View on Github external
for pyxb_roof in dc_old.element_bind.GroundFloor:
    write_dict(pyxb_roof)


for pyxb_wall in dc_old.element_bind.OuterWall:
    out_wall = OuterWall()
    out_wall.load_type_element(pyxb_wall.building_age_group[0]+2,
                               pyxb_wall.construction_type,
                               dc_old)
    for lay in out_wall.layer:
        lay.material.material_id = material_dict[lay.material.name][1]

    out_wall.save_type_element(data_class=dc_new)

for pyxb_wall in dc_old.element_bind.Rooftop:
    roof = Rooftop()
    roof.load_type_element(pyxb_wall.building_age_group[0] + 2,
                               pyxb_wall.construction_type,
                               dc_old)
    for lay in roof.layer:
        lay.material.material_id = material_dict[lay.material.name][1]

    roof.save_type_element(data_class=dc_new)

for pyxb_wall in dc_old.element_bind.GroundFloor:
    gf = GroundFloor()
    gf.load_type_element(pyxb_wall.building_age_group[0] + 2,
                               pyxb_wall.construction_type,
                               dc_old)
    for lay in gf.layer:
        lay.material.material_id = material_dict[lay.material.name][1]
github RWTH-EBC / TEASER / teaser / logic / archetypebuildings / tabula / de / singlefamilyhouse.py View on Github external
construction=self._construction_type_2,
                        data_class=self.parent.data,
                    )
                    gf.name = key
                    gf.tilt = value[0]
                    gf.orientation = value[1]
                    gf.area = (
                        self.facade_estimation_factors[self.building_age_group]["gf2"]
                        * type_bldg_area
                    ) / len(self.ground_floor_names_2)

        if self.facade_estimation_factors[self.building_age_group]["rt1"] != 0:
            for key, value in self.roof_names_1.items():

                for zone in self.thermal_zones:
                    rt = Rooftop(zone)
                    rt.load_type_element(
                        year=self.year_of_construction,
                        construction=self._construction_type_1,
                        data_class=self.parent.data,
                    )
                    rt.name = key
                    rt.tilt = value[0]
                    rt.orientation = value[1]
                    rt.area = (
                        self.facade_estimation_factors[self.building_age_group]["rt1"]
                        * type_bldg_area
                    ) / len(self.roof_names_1)

        if self.facade_estimation_factors[self.building_age_group]["rt2"] != 0:
            for key, value in self.roof_names_2.items():
github RWTH-EBC / TEASER / teaser / gui / controller / controller.py View on Github external
element.name = name
            element.area = area
        if type == "Window":
            element = Window(parent)
            element.name = name
            element.area = area
        if type == "GroundFloor":
            element = GroundFloor(parent)
            element.name = name
            element.area = area
        if type == "Ceiling":
            element = Ceiling(parent)
            element.name = name
            element.area = area
        if type == "Rooftop":
            element = Rooftop(parent)
            element.name = name
            element.area = area
        if type == "Floor":
            element = Floor(parent)
            element.name = name
            element.area = area
        return parent
github RWTH-EBC / TEASER / teaser / logic / buildingobjects / buildingphysics / rooftop.py View on Github external
def __init__(self, parent=None):
        """
        """
        super(Rooftop, self).__init__(parent)

        self._tilt = 0.0
        self._orientation = -1.0
        self._inner_convection = 1.7
        self._inner_radiation = 5.0
        self._outer_convection = 20.0
        self._outer_radiation = 5.0
github RWTH-EBC / TEASER / teaser / gui / controller / controller.py View on Github external
element.building_age_group = building_age_group
            element.add_layer_list(layer_set)

        elif type_of_element == "Ceiling":
            element = Ceiling()
            element.name = type_of_element
            element.construction_type = constr_type
            element.inner_convection = inner_con
            element.inner_radiation = inner_rad
            element.outer_convection = outer_con
            element.outer_radiation = outer_rad
            element.building_age_group = building_age_group
            element.add_layer_list(layer_set)

        elif type_of_element == "Rooftop":
            element = Rooftop()
            element.name = type_of_element
            element.construction_type = constr_type
            element.inner_convection = inner_con
            element.inner_radiation = inner_rad
            element.outer_convection = outer_con
            element.outer_radiation = outer_rad
            element.building_age_group = building_age_group
            element.add_layer_list(layer_set)

        elif type_of_element == "Floor":
            element = Floor()
            element.name = type_of_element
            element.construction_type = constr_type
            element.inner_convection = inner_con
            element.inner_radiation = inner_rad
            element.outer_convection = outer_con
github RWTH-EBC / TEASER / teaser / gui / controller / controller.py View on Github external
wall.inner_convection = innerwall.inner_convection
                wall.inner_radiation = innerwall.inner_radiation
                for layerBind in innerwall.Layers.layer:
                    layer = Layer()
                    layer.id = layerBind.id - 1
                    layer.thickness = layerBind.thickness
                    material = Material(layer)
                    material.name = layerBind.Material.name
                    material.density = layerBind.Material.density
                    material.thermal_conduc = layerBind.Material.thermal_conduc
                    material.heat_capac = layerBind.Material.heat_capac
                    wall.add_layer(layer, layer.id)
                zone.add_element(wall)

        for rooftop in project.data.element_bind.Rooftop:
                wall = Rooftop()
                wall.name = "Rooftop"
                wall.construction_type = rooftop.construction_type
                wall.year_of_construction = \
                    rooftop.year_of_construction
                wall.building_age_group = rooftop.building_age_group
                wall.inner_convection = rooftop.inner_convection
                wall.inner_radiation = rooftop.inner_radiation
                wall.outer_convection = rooftop.outer_convection
                wall.outer_radiation = rooftop.outer_radiation
                for layerBind in rooftop.Layers.layer:
                    layer = Layer()
                    layer.id = layerBind.id - 1
                    layer.thickness = layerBind.thickness
                    material = Material(layer)
                    material.name = layerBind.Material.name
                    material.density = layerBind.Material.density
github RWTH-EBC / TEASER / teaser / examples / e6_generate_building.py View on Github external
# orientation. Please read the docs to get more information on these
    # parameters.

    from teaser.logic.buildingobjects.buildingphysics.rooftop import Rooftop

    roof_south = Rooftop(parent=tz)
    roof_south.name = "Roof_South"
    roof_south.area = 75.0
    roof_south.orientation = 180.0
    roof_south.tilt = 55.0
    roof_south.inner_convection = 1.7
    roof_south.outer_convection = 20.0
    roof_south.inner_radiation = 5.0
    roof_south.outer_radiation = 5.0

    roof_north = Rooftop(parent=tz)
    roof_north.name = "Roof_North"
    roof_north.area = 75.0
    roof_north.orientation = 0.0
    roof_north.tilt = 55.0
    roof_north.inner_convection = 1.7
    roof_north.outer_convection = 20.0
    roof_north.inner_radiation = 5.0
    roof_north.outer_radiation = 5.0

    # To define the wall constructions we need to instantiate Layer and
    # Material objects and set attributes. id indicates the order of wall
    # construction from inside to outside (so 0 is on the inner surface). You
    # need to set this value!

    from teaser.logic.buildingobjects.buildingphysics.layer import Layer
github RWTH-EBC / TEASER / teaser / data / input / convert_tb.py View on Github external
year=out_wall.building_age_group[0] + 1,
        construction=out_wall.construction_type,
        data_class=data_class_old)
    wall.save_type_element(
        data_class=data_class_new)
for out_wall in data_class_old.element_bind.Window:
    wall = Window()
    be_input.load_type_element(
        element=wall,
        year=out_wall.building_age_group[0] + 1,
        construction=out_wall.construction_type,
        data_class=data_class_old)
    wall.save_type_element(
        data_class=data_class_new)
for out_wall in data_class_old.element_bind.Rooftop:
    wall = Rooftop()
    be_input.load_type_element(
        element=wall,
        year=out_wall.building_age_group[0] + 1,
        construction=out_wall.construction_type,
        data_class=data_class_old)
    wall.save_type_element(
        data_class=data_class_new)
for out_wall in data_class_old.element_bind.GroundFloor:
    wall = GroundFloor()
    be_input.load_type_element(
        element=wall,
        year=out_wall.building_age_group[0] + 1,
        construction=out_wall.construction_type,
        data_class=data_class_old)
    wall.save_type_element(
        data_class=data_class_new)
github RWTH-EBC / TEASER / teaser / examples / verification / verification_ASHRAE_140_900.py View on Github external
"""
    prj = Project(load_data=True)
    prj.name = "ASHRAE140Verification"

    bldg = Building(parent=prj)
    bldg.name = "TestBuilding"

    tz = ThermalZone(parent=bldg)
    tz.name = "TestRoom900"
    tz.area = 8.0 * 6.0
    tz.volume = tz.area * 2.7
    tz.use_conditions = UseConditions(parent=tz)
    tz.use_conditions.infiltration_rate = 0.41

    roof = Rooftop(parent=tz)
    roof.name = "Roof"
    roof.area = 8.0 * 6.0
    roof.orientation = -1.0
    roof.tilt = 0.0
    roof.inner_convection = 1
    roof.outer_convection = 24.67
    roof.inner_radiation = 5.13
    roof.outer_radiation = 4.63

    layer_r1 = Layer(parent=roof, id=0)
    layer_r1.thickness = 0.01

    material_r1 = Material(layer_r1)
    material_r1.name = "Plasterboard"
    material_r1.density = 950.0
    material_r1.heat_capac = 840.0 / 1000
github RWTH-EBC / TEASER / teaser / examples / verification / verification_ASHRAE_140_920.py View on Github external
"""
    prj = Project(load_data=True)
    prj.name = "ASHRAE140Verification"

    bldg = Building(parent=prj)
    bldg.name = "TestBuilding"

    tz = ThermalZone(parent=bldg)
    tz.name = "TestRoom920"
    tz.area = 8.0 * 6.0
    tz.volume = tz.area * 2.7
    tz.use_conditions = UseConditions(parent=tz)
    tz.use_conditions.infiltration_rate = 0.41

    roof = Rooftop(parent=tz)
    roof.name = "Roof"
    roof.area = 8.0 * 6.0
    roof.orientation = -1.0
    roof.tilt = 0.0
    roof.inner_convection = 1
    roof.outer_convection = 24.67
    roof.inner_radiation = 5.13
    roof.outer_radiation = 4.63

    layer_r1 = Layer(parent=roof, id=0)
    layer_r1.thickness = 0.01

    material_r1 = Material(layer_r1)
    material_r1.name = "Plasterboard"
    material_r1.density = 950.0
    material_r1.heat_capac = 840.0 / 1000