Coverage for teaser/examples/e7_retrofit.py: 71%
7 statements
« prev ^ index » next coverage.py v7.4.4, created at 2025-04-29 16:01 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2025-04-29 16:01 +0000
1# # Example 7: Retrofit buildings
2# This module contains an example that shows how to retrofit all buildings
3# in a TEASER project with different setups
4# You can run this example using the [jupyter-notebook](https://mybinder.org/v2/gh/RWTH-EBC/TEASER/main?labpath=docs%2Fjupyter_notebooks)
6import teaser.examples.e1_generate_archetype as e1
9def example_retrofit_building():
10 """This function demonstrates retrofit options of TEASER API"""
12 # In e1_generate_archetype we created a Project with three archetype
13 # buildings to get this Project we rerun this example
15 prj = e1.example_generate_archetype()
17 # To apply simplified retrofit for all buildings in the project we can
18 # use Project.retrofit_all_buildings() function. This will retrofit all
19 # building in the project in following manner:
20 # 1. Replace all window with a new window (default is EnEv window with
21 # U-Value of XYZ
22 # 2. Add an additional insulation layer to all outer walls (including,
23 # roof and ground floor). Set the thickness that it corresponds to the
24 # retrofit standard od the year of retrofit.
25 # The year of retrofit has to be specified. In addition, we can set
26 # the used window_type and the type of insulation material used.
27 # As we have both `iwu`/`bmvbs` and `tabula` typology in our project we need
28 # to pass all keywords to the function year_of_retrofit, window_type,
29 # material for `iwu`/`bmvbs` and type_of_retrofit for `tabula`.
31 prj.retrofit_all_buildings(
32 year_of_retrofit=2015,
33 type_of_retrofit="adv_retrofit",
34 window_type='Alu- oder Stahlfenster, Isolierverglasung',
35 material='EPS_perimeter_insulation_top_layer')
38if __name__ == '__main__':
39 example_retrofit_building()
40 print("Example 7: That's it :)")