Dynamic Models for Building Energy Management

Dynamic Models for Building Energy Management#

by Christian Ghiaus (Researcher ID: ORCID, SciProfiles, Scopus, Web of Science, HAL)

Binder License: CC BY 4.0 License: MIT Hits

“Il y a trois sortes de savoir : le savoir proprement dit, le savoir-faire et le savoir-vivre ; les deux derniers dispensent assez bien du premier.” (There are three types of knowledge: knowledge itself, know-how, and know how to live (or soft skills); the last two quite adequately dispense with the first), Talleyrand (1754-1838)

State-space representation is widely used for developing control algorithms. This Jupyter Book shows how thermal transfer in buildings can be modeled by assembling thermal networks that are then converted to state-space representation (Ghiaus 2013, Ghiaus 2021). These steps are implemented by using dm4bem module written in Python 3.8 and tested on Python 3.11. The book does not cover the development of control algorithms.

Quick overview

The specifics of this book are:

  • Modeling heat transfers (conduction, convection, short wave and long wave radiation, advection) through a matrix representation of thermal circuits.

  • Formulating the thermal load calculation as a control problem.

  • Obtaining thermal circuits of walls through spatial discretization.

  • Assembling thermal circuits.

  • Transforming thermal circuits into state-space representations.

  • Providing examples for nonlinear models and control algorithms.

The workflow is presented in Assembling thermal circuits and an example is given in the Jupyter Notebook on inputs and simulation (see section Python script). A short example on GitHub shows the workflow.

Prerequisites

It is assumed that readers have a foundational knowledge at the undergraduate level in linear algebra (Strang, G. 2023), heat transfer (Incropera et al. 2007, RE2020 2021), and Python programming (Docs.Python 2024).

Notations used for values of quantities

This book uses the writing conventions for SI unit symbols and names recommanded by the International Bureau of Weights and Measures (BIPM 2019, Gőbel et al. 2006) and National Institute of Standards and Technology (Thomson and Taylor. 2008).

Some rules:

  • Unit symbols are in roman type and quantity symbols are in italic; the unit symbol is placed after the numerical value and a space is left between the numerical value and the unit symbol (BIPM 2019 §2.1, pp.129-142), e.g. \(h = 10 \, \mathrm{W \, m^{−2} \, K^{−1}}\) or \(h = 10\, \mathrm{W·m^{−2}·K^{−1}}\) or \(h\) = 10 W/(m²·K).

  • Symbols for units formed from other units by multiplication are indicated by means of either a half-high (that is, centered) dot or a space, e.g. W/(m⋅K) or W/(m K).

  • A prefix symbol attached to a unit symbol constitutes a new inseparable symbol, forming a multiple or submultiple of the unit concerned (BIPM 2019, §3, pp.143-144), e.g. \(1 \, \mathrm{mK} = 10^{-3} \, \mathrm{K}\) while \(1 \, \mathrm{m·K} = 1 \, \mathrm{m \ K} = 1 \, \mathrm{m} · 1 \, \mathrm{K}.\)

  • When writing the value of a quantity as the product of a numerical value and a unit, both the number and the unit may be treated by the ordinary rules of algebra (BIPM 2019, §5.4, pp.148-151, Thomson and Taylor, 2008, §7.1 p.15), e.g.:

    • In \(T = 273.15 \, \mathrm{K}\), the number \(273.15 = T /\mathrm{K}\) is the numerical value of thermodynamic temperature \(T.\)

    • The numerical value of a temperature expressed in degrees Celsius, \(\theta\), is related to the numerical value of the thermodynamic temperature expressed in kelvins, \(T\), by the relation \(\theta /\mathrm{°C} = T/ \mathrm{K} − 273.15\) or \(\theta\)/(°C) = \(T\)/(K) − 273.15.

    • The ordinate of a graph or the heading of a table is labeled \(Temperature,\) \(T/(10³\) K \()\), where \(T\) is the thermodynamic temperature and K is the unit symbol for kelvin. If the ordinate value of a point on a curve of the graph or the entry in a table is 0.273, then the corresponding temperature is \(T/(10³\) K \()\) = 0.273 or \(T\) = 273 K.

    • The logarithm ordinate of a graph or the heading of a table is labeled \(\log_{10}(T /\textrm{(K)})\). If the ordinate value of a point on a curve of the graph or the entry in a table is 2.436…, then \(\log_{10}(T/\textrm{(K)}) = 2.436...\) (or \(T/\textrm{(K)} = 10^{2.436...}\) ) and the corresponding temperature is \(T\) = 273 K.

    • Symbol % (percent) is used for the number 0.01, e.g., the emmisivity is \(\varepsilon\) = 0.85 = 85 %.

Nomenclature

Symbol

±

Plus-minus sign

⁻ ¹ ² ³ ⁴

Superscripts

· ×

Multiplication

Symbol

SI unit

Quantity

t

s

Time

w

m

Widh

θ

°C

Temperature

q

W

Heat flow rate

A, S

Surface area

V

Volume

T

K

Thermodynamic temperature

T

°C

Temperature source

Q̇, Φ

W

Heat flow rate source

λ

W/(m·K)

W·m⁻¹·K⁻¹

Thermal conductivity

ρ

kg/m³

kg·m⁻³

Density

c

J/(kg·K)

J·kg⁻¹·K⁻¹

Specific heat capacity

h

W/(m²·K)

W·m⁻²·K⁻¹

Heat transfer coefficient

C

J/K

J·K⁻¹

Thermal capacity

E

W/m²

W·m⁻²

Irradiance

G

W/K

W·K⁻¹

Thermal conductance

R

K/W

K·W⁻¹

Thermal resistance

kg/s

kg·s⁻¹

Mass flow rate

m³/s

m³·s⁻¹

Volumetric flow rate

Reproducibility

The results presented are reproducible. The Jupyter Notebooks can be run interactively on mybinder.org by pushing the launch binder button:

Binder

Licences

License: CC BY 4.0 License: MIT

The text of this book is under Creative Commons Attribution 4.0 International (CC BY 4.0).

The software is under MIT Licence.

GitHub repository: cghiaus/dm4bem_book

Contents

References

  1. Ghiaus, C. (2013). Causality issue in the heat balance method for calculating the design heating and cooling loads, Energy 50: 292-301, hal-03605823

  2. Ghiaus, C. (2021). Dynamic Models for Energy Control of Smart Homes, in S. Ploix M. Amayri, N. Bouguila (eds.) Towards Energy Smart Homes, Online ISBN: 978-3-030-76477-7, Print ISBN: 978-3-030-76476-0, Springer, pp. 163-198, hal-03578578

  3. BIPM (2019). The International System of Units (SI), 9th edition, licence CC-BY-3.0

  4. Gőbel, E., Mills, I., Wallard, A. (2006). A concise summary of the International System of Units, the SI

  5. Thomson, A., Taylor, B. N. (2008). Guide for the use of the international System of units (NIST Special Publication 811․ 2008 Edition). National Institute of Standards and Technology, US Government Printing Office.

  6. Strang, G. (2023). Introduction to Linear Algebra, 6th ed., ISBN 978-17331466-7-8

  7. Incropera, F. P., DeWitt, D. P., Bergman, T. L., Lavine, A. S. (2007). Fundamentals of Heat and Mass Transfer, 6th Edition. John Wiley.

  8. RE2020 (2021). Annexe IV : Règles « Th-Bat 2020 » - données d’entrée au calcul de la performance énergétique

  9. Docs.Python (2024) The Python Tutorial