mabuseif commited on
Commit
56c0f73
·
verified ·
1 Parent(s): 29c08da

Update app/internal_loads.py

Browse files
Files changed (1) hide show
  1. app/internal_loads.py +188 -25
app/internal_loads.py CHANGED
@@ -28,39 +28,203 @@ LOAD_TYPES = ["Occupancy", "Lighting", "Equipment", "Other"]
28
  SCHEDULE_TYPES = ["Continuous", "Day/Night", "Custom"]
29
  DAYS_OF_WEEK = ["Weekday", "Weekend"]
30
 
31
- # Default occupancy densities by building type (m² per person)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  DEFAULT_OCCUPANCY_DENSITIES = {
33
- "Office": 10.0,
34
- "Retail": 5.0,
35
- "Residential": 20.0,
36
- "Educational": 4.0,
37
- "Healthcare": 8.0,
38
- "Industrial": 15.0,
39
- "Hospitality": 3.0,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  "Other": 10.0
41
  }
42
 
43
- # Default lighting power densities by building type (W/m²)
44
  DEFAULT_LIGHTING_DENSITIES = {
45
- "Office": 12.0,
46
- "Retail": 18.0,
47
- "Residential": 8.0,
48
- "Educational": 15.0,
49
- "Healthcare": 15.0,
50
- "Industrial": 13.0,
51
- "Hospitality": 14.0,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  "Other": 12.0
53
  }
54
 
55
- # Default equipment power densities by building type (W/m²)
56
  DEFAULT_EQUIPMENT_DENSITIES = {
57
- "Office": 15.0,
58
- "Retail": 10.0,
59
- "Residential": 5.0,
60
- "Educational": 8.0,
61
- "Healthcare": 20.0,
62
- "Industrial": 25.0,
63
- "Hospitality": 10.0,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  "Other": 12.0
65
  }
66
 
@@ -882,6 +1046,5 @@ def display_internal_loads_help():
882
  * The summary section shows the combined effect of all internal loads.
883
  """)
884
 
885
-
886
  BUILDING_TYPES = list(DEFAULT_OCCUPANCY_DENSITIES.keys())
887
 
 
28
  SCHEDULE_TYPES = ["Continuous", "Day/Night", "Custom"]
29
  DAYS_OF_WEEK = ["Weekday", "Weekend"]
30
 
31
+ # Building types with categories for display
32
+ BUILDING_TYPES = [
33
+ "Residential - Single-Family Detached",
34
+ "Residential - Single-Family Attached",
35
+ "Residential - Multifamily (Low-rise and High-rise)",
36
+ "Residential - Dormitories",
37
+ "Residential - Hotels and Motels",
38
+ "Commercial/Retail - Strip Mall",
39
+ "Commercial/Retail - Enclosed Mall",
40
+ "Commercial/Retail - Department Store",
41
+ "Commercial/Retail - Supermarket",
42
+ "Commercial/Retail - Convenience Store",
43
+ "Commercial/Retail - Fast Food Restaurant",
44
+ "Commercial/Retail - Full-Service Restaurant",
45
+ "Office - Small Office (<10,000 ft²)",
46
+ "Office - Medium Office (≈50,000 ft²)",
47
+ "Office - Large Office (>100,000 ft²)",
48
+ "Office - Call Centre",
49
+ "Educational - Primary School",
50
+ "Educational - Secondary School",
51
+ "Educational - University/College Classroom",
52
+ "Educational - Lecture Hall",
53
+ "Educational - Laboratory",
54
+ "Educational - Library",
55
+ "Healthcare - Hospital (Inpatient)",
56
+ "Healthcare - Outpatient Clinic/Medical Office",
57
+ "Healthcare - Nursing Home/Aged Care",
58
+ "Assembly - Auditorium",
59
+ "Assembly - Theatre/Performing Arts",
60
+ "Assembly - Convention Centre",
61
+ "Assembly - Gymnasium/Sports Arena",
62
+ "Assembly - Religious Building",
63
+ "Industrial - Light Manufacturing",
64
+ "Industrial - Heavy Manufacturing",
65
+ "Industrial - Warehouse (Unconditioned or Semi-conditioned)",
66
+ "Industrial - Data Centre/Server Room",
67
+ "Public and Institutional - Courthouse",
68
+ "Public and Institutional - Police Station",
69
+ "Public and Institutional - Fire Station",
70
+ "Public and Institutional - Post Office",
71
+ "Public and Institutional - Museum",
72
+ "Lodging - Hotel (Full-Service, Midscale, or Economy)",
73
+ "Lodging - Motel",
74
+ "Lodging - Resort",
75
+ "Transportation - Airport Terminal",
76
+ "Transportation - Train/Bus Station",
77
+ "Transportation - Car Park (Enclosed)",
78
+ "Other"
79
+ ]
80
+
81
+ # Default occupancy density by building type (m² per person)
82
  DEFAULT_OCCUPANCY_DENSITIES = {
83
+ "Residential - Single-Family Detached": 40.0,
84
+ "Residential - Single-Family Attached": 30.0,
85
+ "Residential - Multifamily (Low-rise and High-rise)": 20.0,
86
+ "Residential - Dormitories": 10.0,
87
+ "Residential - Hotels and Motels": 15.0,
88
+ "Commercial/Retail - Strip Mall": 5.0,
89
+ "Commercial/Retail - Enclosed Mall": 4.0,
90
+ "Commercial/Retail - Department Store": 5.0,
91
+ "Commercial/Retail - Supermarket": 6.0,
92
+ "Commercial/Retail - Convenience Store": 5.0,
93
+ "Commercial/Retail - Fast Food Restaurant": 3.0,
94
+ "Commercial/Retail - Full-Service Restaurant": 2.5,
95
+ "Office - Small Office (<10,000 ft²)": 10.0,
96
+ "Office - Medium Office (≈50,000 ft²)": 10.0,
97
+ "Office - Large Office (>100,000 ft²)": 10.0,
98
+ "Office - Call Centre": 6.0,
99
+ "Educational - Primary School": 4.0,
100
+ "Educational - Secondary School": 4.0,
101
+ "Educational - University/College Classroom": 3.5,
102
+ "Educational - Lecture Hall": 2.0,
103
+ "Educational - Laboratory": 8.0,
104
+ "Educational - Library": 5.0,
105
+ "Healthcare - Hospital (Inpatient)": 8.0,
106
+ "Healthcare - Outpatient Clinic/Medical Office": 7.0,
107
+ "Healthcare - Nursing Home/Aged Care": 10.0,
108
+ "Assembly - Auditorium": 2.0,
109
+ "Assembly - Theatre/Performing Arts": 2.0,
110
+ "Assembly - Convention Centre": 3.0,
111
+ "Assembly - Gymnasium/Sports Arena": 4.0,
112
+ "Assembly - Religious Building": 3.0,
113
+ "Industrial - Light Manufacturing": 15.0,
114
+ "Industrial - Heavy Manufacturing": 20.0,
115
+ "Industrial - Warehouse (Unconditioned or Semi-conditioned)": 25.0,
116
+ "Industrial - Data Centre/Server Room": 10.0,
117
+ "Public and Institutional - Courthouse": 5.0,
118
+ "Public and Institutional - Police Station": 8.0,
119
+ "Public and Institutional - Fire Station": 10.0,
120
+ "Public and Institutional - Post Office": 6.0,
121
+ "Public and Institutional - Museum": 5.0,
122
+ "Lodging - Hotel (Full-Service, Midscale, or Economy)": 15.0,
123
+ "Lodging - Motel": 15.0,
124
+ "Lodging - Resort": 12.0,
125
+ "Transportation - Airport Terminal": 3.0,
126
+ "Transportation - Train/Bus Station": 3.0,
127
+ "Transportation - Car Park (Enclosed)": 20.0,
128
  "Other": 10.0
129
  }
130
 
131
+ # Default lighting power density by building type (W/m²)
132
  DEFAULT_LIGHTING_DENSITIES = {
133
+ "Residential - Single-Family Detached": 8.0,
134
+ "Residential - Single-Family Attached": 8.0,
135
+ "Residential - Multifamily (Low-rise and High-rise)": 8.0,
136
+ "Residential - Dormitories": 10.0,
137
+ "Residential - Hotels and Motels": 12.0,
138
+ "Commercial/Retail - Strip Mall": 15.0,
139
+ "Commercial/Retail - Enclosed Mall": 18.0,
140
+ "Commercial/Retail - Department Store": 16.0,
141
+ "Commercial/Retail - Supermarket": 18.0,
142
+ "Commercial/Retail - Convenience Store": 20.0,
143
+ "Commercial/Retail - Fast Food Restaurant": 14.0,
144
+ "Commercial/Retail - Full-Service Restaurant": 14.0,
145
+ "Office - Small Office (<10,000 ft²)": 12.0,
146
+ "Office - Medium Office (≈50,000 ft²)": 12.0,
147
+ "Office - Large Office (>100,000 ft²)": 12.0,
148
+ "Office - Call Centre": 13.0,
149
+ "Educational - Primary School": 14.0,
150
+ "Educational - Secondary School": 14.0,
151
+ "Educational - University/College Classroom": 14.0,
152
+ "Educational - Lecture Hall": 15.0,
153
+ "Educational - Laboratory": 16.0,
154
+ "Educational - Library": 13.0,
155
+ "Healthcare - Hospital (Inpatient)": 15.0,
156
+ "Healthcare - Outpatient Clinic/Medical Office": 14.0,
157
+ "Healthcare - Nursing Home/Aged Care": 13.0,
158
+ "Assembly - Auditorium": 12.0,
159
+ "Assembly - Theatre/Performing Arts": 12.0,
160
+ "Assembly - Convention Centre": 14.0,
161
+ "Assembly - Gymnasium/Sports Arena": 15.0,
162
+ "Assembly - Religious Building": 12.0,
163
+ "Industrial - Light Manufacturing": 13.0,
164
+ "Industrial - Heavy Manufacturing": 13.0,
165
+ "Industrial - Warehouse (Unconditioned or Semi-conditioned)": 10.0,
166
+ "Industrial - Data Centre/Server Room": 15.0,
167
+ "Public and Institutional - Courthouse": 14.0,
168
+ "Public and Institutional - Police Station": 13.0,
169
+ "Public and Institutional - Fire Station": 13.0,
170
+ "Public and Institutional - Post Office": 14.0,
171
+ "Public and Institutional - Museum": 15.0,
172
+ "Lodging - Hotel (Full-Service, Midscale, or Economy)": 12.0,
173
+ "Lodging - Motel": 12.0,
174
+ "Lodging - Resort": 12.0,
175
+ "Transportation - Airport Terminal": 14.0,
176
+ "Transportation - Train/Bus Station": 14.0,
177
+ "Transportation - Car Park (Enclosed)": 8.0,
178
  "Other": 12.0
179
  }
180
 
181
+ # Default equipment power density by building type (W/m²)
182
  DEFAULT_EQUIPMENT_DENSITIES = {
183
+ "Residential - Single-Family Detached": 5.0,
184
+ "Residential - Single-Family Attached": 5.0,
185
+ "Residential - Multifamily (Low-rise and High-rise)": 5.0,
186
+ "Residential - Dormitories": 8.0,
187
+ "Residential - Hotels and Motels": 10.0,
188
+ "Commercial/Retail - Strip Mall": 10.0,
189
+ "Commercial/Retail - Enclosed Mall": 12.0,
190
+ "Commercial/Retail - Department Store": 12.0,
191
+ "Commercial/Retail - Supermarket": 15.0,
192
+ "Commercial/Retail - Convenience Store": 15.0,
193
+ "Commercial/Retail - Fast Food Restaurant": 20.0,
194
+ "Commercial/Retail - Full-Service Restaurant": 25.0,
195
+ "Office - Small Office (<10,000 ft²)": 15.0,
196
+ "Office - Medium Office (≈50,000 ft²)": 15.0,
197
+ "Office - Large Office (>100,000 ft²)": 15.0,
198
+ "Office - Call Centre": 20.0,
199
+ "Educational - Primary School": 8.0,
200
+ "Educational - Secondary School": 8.0,
201
+ "Educational - University/College Classroom": 10.0,
202
+ "Educational - Lecture Hall": 10.0,
203
+ "Educational - Laboratory": 20.0,
204
+ "Educational - Library": 10.0,
205
+ "Healthcare - Hospital (Inpatient)": 20.0,
206
+ "Healthcare - Outpatient Clinic/Medical Office": 15.0,
207
+ "Healthcare - Nursing Home/Aged Care": 12.0,
208
+ "Assembly - Auditorium": 8.0,
209
+ "Assembly - Theatre/Performing Arts": 8.0,
210
+ "Assembly - Convention Centre": 10.0,
211
+ "Assembly - Gymnasium/Sports Arena": 10.0,
212
+ "Assembly - Religious Building": 8.0,
213
+ "Industrial - Light Manufacturing": 20.0,
214
+ "Industrial - Heavy Manufacturing": 25.0,
215
+ "Industrial - Warehouse (Unconditioned or Semi-conditioned)": 8.0,
216
+ "Industrial - Data Centre/Server Room": 50.0,
217
+ "Public and Institutional - Courthouse": 12.0,
218
+ "Public and Institutional - Police Station": 15.0,
219
+ "Public and Institutional - Fire Station": 15.0,
220
+ "Public and Institutional - Post Office": 12.0,
221
+ "Public and Institutional - Museum": 10.0,
222
+ "Lodging - Hotel (Full-Service, Midscale, or Economy)": 10.0,
223
+ "Lodging - Motel": 10.0,
224
+ "Lodging - Resort": 12.0,
225
+ "Transportation - Airport Terminal": 12.0,
226
+ "Transportation - Train/Bus Station": 12.0,
227
+ "Transportation - Car Park (Enclosed)": 5.0,
228
  "Other": 12.0
229
  }
230
 
 
1046
  * The summary section shows the combined effect of all internal loads.
1047
  """)
1048
 
 
1049
  BUILDING_TYPES = list(DEFAULT_OCCUPANCY_DENSITIES.keys())
1050