-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBEMDef.py
49 lines (41 loc) · 2.01 KB
/
BEMDef.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
Building Energy Model (BEM) class definition
Developed by Bruno Bueno
Building Technology, Massachusetts Institute of Technology (MIT), Cambridge, U.S.A.
Last update: 2012
"""
class BEMDef(object):
"""
attributes:
building; # building class type
mass; # mass element class
wall; # wall element class
roof; # roof element class
frac; # fraction of the urban floor space of this typology
fl_area; # Total building floor area in the urban area
ElecTotal; # Actual total electricity per unit floor area [W m^-2]
Elec; # Actual electricity consumption per unit floor area [W m^-2]
Gas; # Actual gas consumption per unit floor area [W m^-2]
Light; # Actual light per unit floor area [W m^-2]
Qocc; # Actual heat load from occupant [W m^-2]
SWH; # Actual hot water usage per unit floor area [kg hr^-1 m^-2]
Nocc; # Actual number of people
T_wallex; # Wall surface temp (ext) [K]
T_wallin; # Wall surface temp (int) [K]
T_roofex; # Roof surface temp (ext) [K]
T_roofin; # Roof surface temp (int) [K]
"""
def __init__(self,building,mass,wallSun,wallShade,roofImp,roofVeg,frac):
self.building = building # building class type
self.mass = mass # mass element class
self.wallSun = wallSun # Sunlit wall element class
self.wallShade = wallShade # Sunlit wall element class
self.roofImp = roofImp # Impervious roof element class
self.roofVeg = roofVeg # Vegetated roof element class
self.frac = frac # fraction of the urban floor space of this typology (~ bld_footprint/urba_footprint ?)
def __repr__(self):
return "BEMDef: {a}, {b}, {c}".format(
a=self.building.Type,
b=self.building.Zone,
c=self.building.Era
)