Tech-Meld commited on
Commit
1d72c79
·
verified ·
1 Parent(s): 42fc61f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +104 -0
README.md CHANGED
@@ -1,3 +1,107 @@
1
  ---
2
  license: mit
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ language:
4
+ - en
5
  ---
6
+ # HeatBee: Surrogate Modeling of High-Mass Vernacular Architecture in Arid Climates
7
+
8
+ [![EnergyPlus](https://img.shields.io/badge/EnergyPlus-26.2.0-blue.svg)](https://energyplus.net/)
9
+ [![Python](https://img.shields.io/badge/Python-3.13-green.svg)](https://www.python.org/)
10
+ [![Model](https://img.shields.io/badge/Surrogate-XGBoost_GBDT-orange.svg)](https://xgboost.readthedocs.io/)
11
+ [![License](https://img.shields.io/badge/License-MIT-purple.svg)](LICENSE)
12
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.23145635.svg)]((https://doi.org/10.5281/zenodo.23145635))
13
+
14
+ HeatBee is an open-source building performance simulation pipeline and Machine Learning surrogate model investigating the transient thermodynamic behavior of vernacular rammed earth (*pisé*) architecture versus contemporary construction in **Marrakesh, Morocco (Zone Climatique 5)**.
15
+
16
+ ---
17
+
18
+ ## 🎯 Key Physical Findings
19
+
20
+ Simulations were performed under the peak summer period of the Marrakesh Menara Airport EPW (peak outdoor dry-bulb: **45.52°C**).
21
+
22
+ ### 1. The Typology Comparison: Interior Mass vs. Envelope Insulation
23
+ * **As-Built Typology (Mode A):** A 50 cm pisé room (with earth partitions and floor) maintains a peak operative temperature of **30.63°C** and **20.3 Discomfort Degree Hours (>30°C)**, compared to **31.48°C** and **81.1 DDH** for an RTCM Zone 5 modern room (20 cm hollow brick with 4 cm XPS insulation and 15 cm concrete slabs).
24
+ * **Shared Interior Mass (Mode B):** When both rooms are modeled with identical 15 cm concrete slab floors and partitions, the result equalizes: the RTCM-insulated room reaches **31.48°C** (81.1 DDH), while the pisé room reaches **31.76°C** (165.8 DDH).
25
+ * **Takeaway:** The vernacular advantage is driven primarily by **interior volumetric thermal mass** coupled with nocturnal free cooling, rather than the exterior earth wall possessing superior steady-state thermal resistance over continuous code insulation.
26
+
27
+ ### 2. Component Apportionment (Wall vs. Roof)
28
+ Holding interior mass constant (15 cm concrete partitions for all), component swapping reveals:
29
+ * **The 50 cm pisé exterior wall outperforms the RTCM insulated wall by 0.16°C** (31.32°C vs 31.48°C peak), as extreme thermal inertia suppresses peak daytime flux.
30
+ * **The traditional mud/timber roof is the primary thermal vulnerability**, admitting **+0.50°C** of excess heat compared to the RTCM-insulated roof (31.98°C vs 31.48°C).
31
+
32
+ ### 3. Realistic Ground-Coupled Boundary
33
+ * Under an adiabatic floor assumption (isolated upper-floor room), the pisé room peaks at **30.63°C**.
34
+ * Under realistic summer ground coupling (Kusuda $24.0^\circ\text{C}$–$25.0^\circ\text{C}$ subsoil), downward heat dissipation drops the pisé room peak to **29.61°C**, bringing it completely below the 30.0°C adaptive comfort limit during a 45.5°C heatwave.
35
+
36
+ ### 4. Thermal Mass and Ventilation Sweeps
37
+ * **Mass Diminishing Returns:** Increasing pisé thickness from 15 cm to 45 cm reduces peak temperatures by **2.40°C**, whereas adding another 30 cm (to 75 cm) yields only **0.71°C** of marginal cooling. This aligns with the 1D periodic thermal penetration depth:
38
+ $$\delta = \sqrt{\frac{k}{\rho c_p} \frac{P}{\pi}} \approx 11\text{ cm}$$
39
+ Beyond $4\delta \approx 44\text{ cm}$, the diurnal thermal wave is attenuated by ~98%.
40
+ * **Nocturnal Ventilation:** Increasing airflow from 0 to 4 ACH drops peak temperatures by **1.46°C**, but tripling airflow from 4 to 12 ACH yields only **0.51°C** of additional relief as indoor air approaches ambient night temperature.
41
+
42
+ ---
43
+
44
+ ## 🔬 Benchmark Comparison (July–August Peak Heatwave)
45
+
46
+ *Shared boundary conditions: Roof albedo 0.60, external wall solar absorptance 0.50, glazing SHGC 0.40, 4.0 ACH free cooling, adiabatic perimeter.*
47
+
48
+ | Archetype | Peak Temp [°C] | Mean Temp [°C] | DDH (>30°C) | Decrement ($f$) |
49
+ | :--- | :--- | :--- | :--- | :--- |
50
+ | **Ambient Outdoor (Menara EPW)** | **45.52** | 29.67 | 3642.2 | 1.00 |
51
+ | **Modern Uninsulated (20cm Hollow Brick, Brick Floor)** | **35.21** | 28.68 | 740.1 | 0.34 |
52
+ | **Modern RTCM Zone 5 (4cm XPS, 15cm Concrete Slab)** | **31.48** | **28.14** | 81.1 | **0.12** |
53
+ | **Vernacular Medina Riad (50cm Pisé, Pisé Floor)** | **30.63** | 28.24 | **20.3** | 0.14 |
54
+ | *Riad with Concrete Slab Floor (Mode B)* | *31.76* | *28.45* | *165.8* | *0.13* |
55
+
56
+ ---
57
+
58
+ ## ⚡ Machine Learning Surrogate Fidelity
59
+
60
+ * **Model:** Gradient Boosted Decision Trees (`XGBoostRegressor`)
61
+ * **Training Dataset:** 256 Latin Hypercube samples evaluated via EnergyPlus 26.2 `ConductionFiniteDifference`
62
+ * **5-Fold Cross Validation:** $R^2 = 0.9450$ | $\text{RMSE} = 0.358^\circ\text{C}$ | $\text{MAE} = 0.275^\circ\text{C}$ (Spread $\sigma = 1.53^\circ\text{C}$)
63
+ * **Out-of-Sample Holdout (N=32 Unseen Runs, Seed 999):** $\text{RMSE} = 0.316^\circ\text{C}$ | $\text{MAE} = 0.262^\circ\text{C}$
64
+ * **Inference Latency:** $< 1\text{ ms}$ on CPU
65
+
66
+ ---
67
+
68
+ ## ⚠️ Limitations
69
+
70
+ 1. **Single-Zone Idealization:** The model represents an isolated single-room perimeter zone facing an exterior aperture, not a fully coupled 3D computational fluid dynamics (CFD) courtyard void.
71
+ 2. **Simplified Infiltration & Internal Loads:** Constant occupancy sensible gains (2 people, 240 W) without dynamic appliance scheduling or variable occupant window operation.
72
+ 3. **No Sensor Calibration:** This is a numerical comparative simulation; boundary conditions have not yet been calibrated against empirical data-logger measurements from historic medina structures.
73
+
74
+ ---
75
+
76
+ ## 🚀 Quickstart
77
+
78
+ ```bash
79
+ # 1. Clone repository
80
+ git clone https://github.com/<your-username>/HeatBee.git
81
+ cd HeatBee
82
+
83
+ # 2. Install dependencies
84
+ pip install -r requirements.txt
85
+
86
+ # 3. Run verified benchmark, sweeps, and holdout validation
87
+ python cli.py --benchmark
88
+ python cli.py --sweeps
89
+ python cli.py --holdout
90
+
91
+ # 4. Launch interactive dashboard
92
+ streamlit run app.py
93
+ ```
94
+
95
+ ---
96
+
97
+ ## 📄 Citation & License
98
+ MIT License. If citing this software or dataset:
99
+ ```bibtex
100
+ @software{heatbee2026,
101
+ author = {Haytam Aarab},
102
+ title = {HeatBee: Surrogate Modeling of High-Mass Vernacular Architecture in Arid Climates},
103
+ year = {2026},
104
+ publisher = {Zenodo},
105
+ doi = {10.5281/zenodo.23145635}
106
+ }
107
+ ```