-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathG36SimultaneousHeatingCooling.py
70 lines (51 loc) · 2.08 KB
/
G36SimultaneousHeatingCooling.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
"""
### Description
Section 5.16.2.3
- Supply air temperature shall be controlled to setpoint using a control loop whose output is mapped to sequence the heating coil (if applicable), outdoor air damper, return air damper, and cooling coil
### Code requirement
- Code Name: ASHRAE Guideline 36
- Code Year: 2021
- Code Section: 5.16.2 Supply Air Temperature Control
- Code Subsection: 5.16.2.3 Prevention of Simultaneous Heating and Cooling
### Verification Approach
The verification monitors heating and cooling outputs to ensure they are not active simultaneously. If both outputs show non-zero values at any time, this indicates improper control that wastes energy through simultaneous heating and cooling.
### Verification Applicability
- Building Type(s): any
- Space Type(s): any
- System(s): Any HVAC system with both heating and cooling capability
- Climate Zone(s): any
- Component(s): heating coils, cooling coils, control sequences
### Verification Algorithm Pseudo Code
```python
if output_coil_heating > 0 and output_coil_cooling > 0:
fail # Simultaneous heating and cooling detected
else:
pass # Normal operation
```
### Data requirements
- output_coil_heating: Heating signal
- Data Value Unit: percent
- Data Point Affiliation: System control
- output_coil_cooling: Cooling signal
- Data Value Unit: percent
- Data Point Affiliation: System control
"""
from constrain.checklib import RuleCheckBase
class G36SimultaneousHeatingCooling(RuleCheckBase):
points = ["output_coil_heating", "output_coil_cooling"]
def simultaneous_heating_and_cooling(self, data):
if data["output_coil_heating"] > self.get_tolerance("load", "coil") and data[
"output_coil_cooling"
] > self.get_tolerance("load", "coil"):
return False
else:
return True
def verify(self):
self.result = self.df.apply(
lambda d: self.simultaneous_heating_and_cooling(d), axis=1
)
def check_bool(self):
if len(self.result[self.result == False] > 0):
return False
else:
return True