Abstract
Buildings can have varying heating and cooling set points to take advantage of favorable environmental conditions and low time-of-use rates. To optimize temperature scheduling and energy planning, building energy managements need reliable building thermal models and efficient estimation methods to accurately estimate space heating and cooling supply (or power demand) over a certain period (e.g., 24 h). This accurate estimation capability is vital for performing temperature control strategies. Therefore, the present study used resistor-capacitor (RC) models and unscented Kalman filter (UKF) integrated with nonlinear least square (NLS) to develop a method for precisely estimating heating and cooling supply to control zone temperature. To evaluate the capability of the method, two case studies are conducted. The first case study involves a made-up simple RC model, while the second case study uses monitored data from a single detached house in different scenarios. The capability of the method is evaluated by applying the estimated heating and cooling supply to the RC thermal model and simulated zone temperatures. Then, assess whether the controlled zone’s temperature meets the expected temperature or not. The performance evaluation shows that the developed method can accurately estimate the heating and cooling supply, validating its applicability to temperature control objectives.
Practical Application
This research provides a valuable contribution to modern building industry professionals by offering a precise method for estimating heating and cooling supply for temperature control in buildings. By equipping practitioners with an effective tool to optimize energy management, this study addresses a critical aspect of building performance. The practical case studies demonstrate the versatility and applicability of this approach in real-world scenarios. In a world increasingly prioritizing energy efficiency and sustainability, this research empowers professionals to make informed decisions, enhance building performance, and contribute to a greener and more sustainable future, all within a concise and actionable framework.
Keywords: Building energy model, temperature control, RC model, unscented kalman filter, nonlinear least square, heating and cooling supply estimation
Introduction
Buildings are responsible for consuming approximately 40% of the world’s energy. 1 Hence, it is essential to decrease the energy usage of buildings in order to align with worldwide sustainability objectives. 2 Efforts to decrease buildings’ energy consumption involve development and deployment of building energy management systems equipped with control systems that can effectively optimize the energy usage in buildings. 3 Studies suggest that the utilization of these control systems can lead to a notable reduction of up to 30% in building energy consumption.4,5 Control systems necessitate thermal dynamic models and estimation methods to estimate heating and cooling supply required for temperature control purposes.
Control systems are widely considered a promising algorithm for achieving energy efficiency in smart buildings. 6 These control systems rely on dynamic and simplified building energy models that describe the thermal behavior of buildings. 7 Various modeling strategies, such as “white box,” “black box,” and “gray box” modeling, have been developed in the literature.8,9
White-box modeling, also known as physics-based modeling (e.g., EnergyPlus and TRNSYS), involves describing building dynamics based on construction information and utilizes parameters derived from comprehensive technical documentation, such as architectural design, material properties, and equipment specifications.10,11 While such data can provide detailed insights into building performance, they pose significant challenges, particularly when dealing with existing structures. Obtaining this level of physical information can be a formidable task, often requiring extensive data collection efforts and, in some cases, may not be feasible for older buildings or structures where documentation is lacking. Moreover, a fundamental limitation of white-box models is their inherent static nature. Once constructed, they tend to operate within the confines of the data and model structures provided during their initial setup. This rigidity can be a critical drawback, especially in scenarios where external conditions are subject to continuous change, such as fluctuations in outdoor temperatures or evolving occupant behavior. White-box models are less adept at adapting to real-time data updates, thus limiting their utility in dynamically changing environments. As a result, applying white-box models in control systems can be challenging.12,13 Conversely, black-box modeling employs pure mathematical machine-learning techniques, such as Artificial Neural Networks, to establish relationships between input and output data without relying on explicit physics-based knowledge.14,15 This modeling approach can offer higher precision than white-box modeling but demands a substantial amount of data to build an accurate model.12,16 However, employing black-box modeling in control systems can be difficult due to its data-intensive nature, potential lack of interpretability. 17
Gray box modeling, such as thermal resistor-capacitor network (RC), is rooted in a physics-based structure and utilizes mathematical optimization techniques to estimate the model’s equivalent physical parameters. 18 This approach combines the advantages of both white-box modeling to eliminate outliers and black-box modeling to reduce the need for detailed information. 18 By striking a well-balanced compromise between interpretability and accuracy, gray box models prove highly suitable for integration into control systems. 19 RC models are based on a set of equivalent model parameters, resistors (R’s) representing thermal resistors. These are similar to the resistance to heat flow that various building components, such as walls, roofs, or windows, offer. Higher resistance values signify slower heat transfer, which might be the case in well-insulated walls, for example. On the other hand, lower resistance values indicate faster heat transfer, as in the case of a window that is not well-insulated, and capacitors (C's), representing thermal capacitors, which stand for the thermal energy storage capacity of a node or component. The ‘C’ value is associated with how much thermal energy a component can store and release. Components with higher ‘C’ values can absorb and store more heat, resulting in slower temperature changes, while lower ‘C’ values respond quickly to heat fluctuations, resulting in rapid temperature changes. This illustrates how much thermal energy can be stored and released in these nodes. These model parameters relate system inputs (e.g., heating and cooling supply) and temperature states. The gray-box modeling approach has been widely used for thermal dynamic modeling.18–20 To develop a reliable control system besides having a reliable thermal dynamic model, a dependable estimation technique is required that can be integrated with RC models to accurately estimate behavior of building systems, particularly for estimating heating and cooling supply (i.e., RC model input).
The successful implementation of building’s control systems relies on the precise controlling of future building’s temperature states with estimation of building systems behavior (i.e., heating and cooling supply). This is because these estimations directly impact the building’s performance and energy efficiency. 19 For instance, in heating, ventilation, and air conditioning systems, inaccurate estimation of supply can cause excessive heating or cooling supply, resulting in increased energy consumption, and operating costs. Such inaccuracies in estimation of building systems behavior (i.e., heating and cooling supply) can significantly affect overall building performance. 21 Therefore, reliable estimation methods should be integrated as part of control systems in addition to thermal models. One such method is Unscented Kalman filter (UKF) which is widely used in estimation problems.22,23 As a result, this paper aims to develop an approach for buildings control applications that utilizes the UKF-based estimation technique in combination with RC models to estimate the heating and cooling supply (or power demand) over a certain period (e.g., 24 h)., for controlling the temperature of thermal zones.
In terms of paper organization, following introduction, this paper presents a method for combining thermal dynamic models with an estimation method for control systems. This involves a description of the RC models used for thermal dynamic modeling, as well as the UKF integrated by the Nonlinear Least-Square (NLS) as an estimation method. Additionally, in the section on application examples, two examples will be provided to demonstrate the use of the developed method: The first example will use a made-up simple RC model (made-up parameters and inputs, and states simulated using the model), while the second example will use a complex RC model with real-life data. These examples will test the capability of the developed method in estimating heating and cooling supply for temperature control purposes.
Problem statement and methodology
Controlling temperature in thermal zones can present significant challenges, particularly when estimating and planning the heating and cooling supply. This challenge becomes even more pronounced when dealing with multiple interconnected zones, each with varying temperatures, as it requires estimating the temperature of uncontrolled zones within the network. To ensure a precise estimation of the required supply for a specific zone, it is crucial to consider the temperatures of other interconnected zones. To achieve this, a method as shown in Figure 1 is developed to estimate the necessary mechanical supply (i.e., RC model input), based on the expected temperature set points. The developed method utilizes a RC thermal dynamic model to represent a thermal system such as one or multiple thermal zones. Notably, the optimal efficiency of this method becomes evident in existing buildings, where it harnesses historical data to construct the RC thermal dynamic model, subsequently replacing the newly developed approach with an established controlling method. Furthermore, it can be used for new buildings with similar design and energy systems.
Figure 1.
General procedure of mechanical supply estimation to control temperature.
To estimate the required mechanical supply of a thermal system represented by an RC thermal model, several additional variables need to be considered. These include the uncontrolled zone temperature which is measured for the current step and estimated for the rest, as well as the temperature set point, which needs to be defined based on the desired temperature level. Additionally, other boundary conditions, such as outdoor temperature and solar irradiation, must be considered. These boundary conditions are measured for the current time and predicted for the rest of the controlling dataset. Accordingly, the method involves the use of RC models and UKF and NLS estimation methods to estimate the necessary mechanical supply for controlling the temperature of different zones.
In this section, thermal dynamic modeling employing RC models will be discussed, followed by the estimation method based on the integration of the UKF and NLS. The UKF is used to estimate the temperatures of the uncontrolled zones, while the NLS is employed to estimate the required heating and cooling supply. It is worth noting that this method operates recursively, allowing it to update itself with new measurements and estimate the heating and cooling supply based on recent data. This adaptive capability enables the tool to adjust to new information, such as outdoor temperature or solar irradiance, occupant behavior, and window openings, this adaptability is a key strength of the model, as it enables to calculate the necessary adjustments to maintain the desired temperature in the designated zones. As such, this tool can continuously monitor and update its estimates to ensure optimal performance and energy efficiency.
Thermal dynamic modeling using RC models
In modeling the thermal dynamics of a building, the RC model is utilized to represent temperature nodes within the building’s thermal zones. Each temperature node is connected to model parameters (represented by R’s and C’s) and inputs (such as solar heat gain or mechanical heating/cooling supply). These interconnected model nodes form an RC thermal model, where the connections between nodes are represented by R’s. The parameters, inputs, and model nodes together create a thermal RC model. Running the RC model with inputs (i.e., simulation) will provide temperatures at the model nodes (i.e., states). The thermal dynamics at each node can be presented by ordinary differential equations (ODEs). The typical equation for a node, say , is shown in equation (1):
| (1) |
where denotes the heat input into the node (e.g., heating and cooling supply); shows the temperature of the node; represents the temperature of the node adjacent to the node; is the thermal capacity attached to the node; and the thermal resistance between the and node is denoted by . The continuous time linear state equation shown in equation (2) can be used to calculate the thermal dynamics of a building in matrix form based on these ODEs:
| (2) |
where and are the state and input matrices respectively and are defined by the model parameters vector (θ), denotes the nodal temperatures or states, is the time derivative of the state vector , and model inputs are represented by including both known and the ones that need to be estimated, and c stands for a model with a continuous time model.
Model input estimation method
This section describes the method for estimating unknown model inputs, and uncontrolled temperature states, using the UKF integrated with NLS. Equation (2) can be written as a continues nonlinear state equation in the presence of additive process noise shown in equation (3):
| (3) |
where represents the continuous time nonlinear state function, and are model states, parameters, and known and unknown (i.e., need to be estimated) model inputs vectors respectively. Moreover, expresses process noise and assumed Gaussian white noise with zero mean and covariance matrix G . Then, equation (3) can be transformed to discrete time (e.g., using the matrix exponential method) 24 as below:
| (4) |
where (i.e., nodal temperatures) are the states at the time step ( ; and are derived from and to produce the discrete-time state and input matrices, respectively. Which and , e stands for the matrix exponential and is the time step.
In the estimation method, measurements of thermal dynamic model responses (i.e., defined set points or controlled zone’s temperature) can be linked to the model prediction through the measurement equation, shown in equation (5):
| (5) |
in which is continues time nonlinear response function, is the measured or controlled temperature and is the measurement noise, modeled by Gaussian white noise with zero mean and covariance matrix Z , corresponds to those temperature nodes that are controlled in the state vector where subscript m represents the index of controlled temperature in the state vector, and subscript denotes the step in the discrete time ( where is the total number of data samples). It is worth noting that those temperature states that do not need to be controlled are not included in the vector. To estimate the heating and cooling supply in order to control the system states (i.e., zone’s temperatures), an estimation method requires that be compatible with a discrete nonlinear model. In this study, the UKF integrated with NLS methods is utilized to address this problem. This approach has been chosen because it has been demonstrated to be robust in a variety of nonlinear estimation problems.25–28
UKF is a Kalman-based technique that combines a measurement-based correction strategy with a prediction strategy based on unscented transformation (UT). The UT, often used in the context of nonlinear estimation and Bayesian filtering, is a method for propagating the mean and covariance of a probability distribution through a nonlinear function. 29 In the prediction step, UKF utilizes UT to estimate the mean and covariance matrix of a nonlinear function by evaluating a set of deterministically selected points, known as sigma points (SPs). SPs are a set of representative data points strategically selected from a probability distribution, to capture essential distribution characteristics like mean and covariance when estimating nonlinear transformations. 29 The UT requires the selection of SPs (where is the dimension of the state vector). Accordingly, SPs are calculated utilizing equation (6):
| (6) |
where the state vector’s mean and covariance are denoted by and , respectively. represents the row of the matrix inside the parentheses, k represents the time step which the value in front of the vertical bar “ ” indicates the time step of the prior estimate (prediction step) while the value after the “ ” indicates the time step of the posterior estimate (correction step). Furthermore, , , is a constant relating to the spread of the sigma points around the mean, and is a secondary scaling parameter. In this paper, α and κ are assigned with 0.01 and 0, respectively. 29
By using the initially determined SPs (i.e., ) in the kth step to evaluate in the prediction step, a new set of SPs ( ) can be developed with a nonlinear state function:
| (7) |
With these propagated sigma points, prior estimates of the mean vector and the covariance matrix of the nonlinear state function at time step (k + 1) can be obtained. However, as the state function includes model inputs that need to be estimated, estimation of these inputs becomes a prerequisite for calculating a new set of SPs (i.e., ). Consequently, it is necessary to initially estimate the model inputs. In this study, UKF is integrated with NLS to estimate the model inputs based on defined temperature set points. The integration of UKF and NLS is utilized to improve the accuracy and efficiency of estimating unknown inputs of the model. This combination is particularly useful in situations where the model input is unavailable or uncertain. Additionally, while UKF is a powerful tool for state and model input estimation, it can be computationally demanding when used alone, leading to long computation times. 25 The incorporation of NLS optimization techniques can reduce computational costs and improve the efficiency of the estimation process by reducing the number of SPs needed if UKF is used alone. The reduced computational burden allows for faster processing times, making it a valuable tool in real-time applications.27,28 Overall, the integration of UKF and NLS provides an effective approach for improving the accuracy and computational efficiency of input and state estimation in various scenarios. NLS algorithm numerically solves the resulting least-squares problem by using gradient-based methods, such as the Levenberg-Marquardt method. The Levenberg-Marquardt method is a well-known optimization algorithm, also known as the damped least-squares method, 30 which interpolates between the Gauss-Newton algorithm and the gradient descent method. This improves the robustness of the approach and increases the chances of locating the global minimum in optimization problems. 31
In order to estimate heating and cooling supplies (i.e., model inputs), NLS works as an optimization tool to minimize the estimation error. In particular, the estimation error (i.e., ) is defined as the difference between the output of a measurement function (i.e. SPs ) and defined temperature setpoints ( , as shown in equation (8):
| (8) |
Therefore, adjusting the unknown inputs for minimizing estimation error (i.e., ), which is the difference between the output of a measurement function and measurements, the estimated model input (i.e., ) is calculated. Accordingly, the final value of the estimated input equals:
| (9) |
SPs are intended to represent a nonlinear function, which necessitates weighting coefficients to calculate the mean and covariance of the nonlinear function as shown in equations (9) and (10). They categorized as and , where m and c correspond, respectively, to the mean and covariance. These coefficients can be determined with equation (10):
| (10) |
where is a factor used to emphasize the relative weight of each SPs. In this paper, β equals to 2. 29
Once the model inputs are estimated and SPs weighting coefficients are determined, the prior estimates for the mean vector and covariance matrix at the time ( ), can be calculated as follows:
| (11) |
| (12) |
Then predicted mean and covariance matrices of the measurement vector at time step k +1 can be calculated as shown in equations (13) and (14), in which covariance matrix of the measurement noise vector is .
| (13) |
| (14) |
As shown in equations (15) to (18) the correction step is carried out at time step by integrating defined set points (i.e., ) with the posterior mean vector and covariance matrix of :
| (15) |
| (16) |
where:
| (17) |
| (18) |
is the Kalman gain, and is the cross-covariance matrix between the measurement vector and the state vector.
In summary, Figure 2 shows a flowchart for the developed method that can be used for model input (i.e., heating and cooling supply) and uncontrolled zone’s temperatures estimation that can be employed for controlling zone’s temperature. It is worth noting that implementing these equations manually can pose a challenge for architects or designers; however, they serve as the fundamental basis for the creation of a specialized software tool.
Figure 2.
Model input estimation method based on UKF integrated with NLS.
Application examples
Two case studies are presented in this section to illustrate and evaluate the developed method. The first case study uses a simple made-up RC model with two thermal resistances and two thermal capacitances (known as a 2R2C model). The second case study involves a real-world single-family house, which is notably more complex (10R6C). The capability of the developed method in estimating heating and cooling supply (i.e., model inputs) is evaluated by applying the estimated supply and simulating defined RC models to generate the zone temperature and determining whether it is controlled at the desired level or not.
A case study with a made-up RC model
Figure 3 shows the made-up RC model, labelled as 2R2C. This model comprises four parameters, including two thermal resistances (i.e., , in ) which play a crucial role in representing resistance to heat transfer among these nodes, higher resistance values signify slower heat transfer, which might be the case in well-insulated walls, for example. On the other hand, lower resistance values indicate faster heat transfer, as in the case of a window that is not well-insulated. Additionally, in this RC thermal model there are two thermal capacitances (i.e., and in ) showing how much thermal energy can be store and release in these nodes. Higher-values ‘C’ can absorb and store more heat, resulting in slower temperature changes, while the ‘C’’s with lower values respond quickly to heat fluctuations, leading to rapid temperature changes. Additionally, the 2R2C model has four model inputs: outdoor temperature in °C, thermal load in and heating and cooling supply to nodes 2 and 3 are and in kW respectively. In this study, outdoor temperature in °C and thermal load are considered made-up, but in real cases, the outdoor temperature can be determined based on forecasted weather data, while thermal load can be estimated using solar irradiance forecast data and an assumed operating schedule, including occupancy, lighting, and equipment schedules.32,33
Figure 3.
2R2C model structure.
The ordinary differential equations for the made-up RC model, as well as the two 10-min made-up model inputs (Q1 and T1), are provided in Appendix A. The case study with made-up data considers three scenarios. In the first scenario, Q2 is assumed to be zero, and the aim is to estimate the heating and cooling supply (Q3), which is required to maintain the temperature of the zone at 26°C for 6 h, starting from hour 2 to hour 8. This six-hour is the “controlling dataset” and the 2 hours before it (hours 0 to 2) represents prior control conditions, which are taken every 10 min (i.e., time step). In the second scenario (2R2C-Ct2), the objective and assumptions are the same as the first scenario, but with a restriction on the amount of heating and cooling supply (Q3), This means that the equipment providing heating cannot exceed a specific amount. In the last scenario (2R2C-Ct3), both nodes T3 and T2 are controlled at 26°C and 3°C, respectively. In this scenario, in contrast with the first two scenarios, heating and cooling supply, Q2 relating to node T2 is not zero and is estimated alongside Q3. These scenarios are summarized in Table 1.
Table 1.
2R2C scenarios.
| Scenario | Controlled state | Estimated model input |
|---|---|---|
| 2R2C-Ct1 | T3 at 26°C | Q 3 |
| 2R2C-Ct2 | T3 at 26°C | Q3 with limitation |
| 2R2C-Ct3 | 3 at 26°C and at 3°C | Q2 and Q3 without limitation |
Assumed model parameters and initial states of the RC model are presented in equation (19). These values are obtained from previous studies.
| (19) |
The initial covariance matrix is assumed to be diagonal, which it’s diagonal terms of the are determined by the expression . Additionally, it is assumed that the measurement noise covariance matrix is diagonal, time-invariant, and equal to , and the process noise covariance matrix is also diagonal, time-invariant, and equal to . The values of the initial covariance matrix and the process noise covariance matrix are derived from.24,25
In Scenario 2R2C-Ct1, in addition to the Q3, the model state is also estimated to show behavior of T2 when T3 is controlled. Figure 4 depicts estimated heating and cooling supply (Q3) and uncontrolled state (T2) for the controlling dataset. Accordingly, Figure 4(a) displays the estimated heating and cooling supply Q3 with an initial value of – 5.2 kW (negative means cooling supply) and then varies between 0 and 1 kW to maintain T3 at 26°C. In addition, Figure 4(b) illustrates the estimated state T2 which varies between 0°C and 8°C when T3 is controlled.
Figure 4.
(a) Estimated heating and cooling supply, (b) estimated state T2 when T3 controlled at 26°C.
To validate the estimated heating and cooling supply, the estimated Q3 must be taken into account and the previously described 2R2C model simulated in order to generate the system response for T3 and determine whether it is controlled at 26°C or not. Accordingly, Figure 5 depicts the simulation result for T3 in the controlling dataset. The graphs show that T3 falls sharply from 31°C to 26°C in the first 10 min and remains at 26°C for the rest of the controlling period, which starts from hours 2 to 8, it is worth noting that hours 0 to 2 indicate zone temperature T3 behavior prior controlling. This demonstrates that the presented method can accurately estimate the required heating and cooling supply to control T3.
Figure 5.
T3 in the controlling dataset.
For Scenario 2R2C-Ct2 there is a limitation on the maximum value of the model input, or in other words, equipment with a limited heating and cooling supply capacity. Specifically, the maximum capacity is set at 1 kW. Figure 6 presents the results of this scenario, showing the estimated Q3 in this scenario. To maintain T3 at 26°C and manage the demand for heating and cooling supply, it is essential to sustain the estimated supply at its maximum capacity for an extended period. This is necessary because the required amount of heating and cooling exceeds the capacity of the equipment providing these services.
Figure 6.
Limited heating cooling supply to 1 kW.
Figure 7 compares the simulated T3 response in two instances, one where Q3 is not limited and the other where Q3 is constrained to a maximum of 1 kW. The first red line corresponds to the scenario in which Q3 is not limited, while the blue line represents the scenario where Q3 is limited to 1 kW. It can be observed that when the estimated Q3 is limited, T3 takes longer to reach 26°C due to the insufficient heating and cooling supply. This highlights the significance of accounting for equipment capacity limitations while estimating the heating and cooling supply and managing building energy. Although the developed method can still estimate the optimal heating and cooling supply required to maintain a constant temperature within the zone, even with limited equipment capacity, it may take more time to achieve the desired temperature.
Figure 7.
Comparison of T3 for two scenarios 2R2C-Ct1 and 2R2C-Ct2.
In some situations, it may be necessary to control the temperature of multiple zones simultaneously. In such cases, it is important to estimate the required heating and cooling supply for each zone. For this purpose, Scenario 2R2C-Ct3 is defined, which the objective of this scenario is to control T3 and T2 at 26°C and 3°C respectively, while determining the corresponding heating and cooling supplies needed to sustain these zones at their expected temperatures.
The estimated heating and cooling supply (Q2) required to control node T2 at 3°C is illustrated in Figure 8(a). The estimated Q2 initially amounts to 7.8 kW and varies between 0 and −2 kW (negative, meaning cooling) to maintain T3 at 26°C. Figure 8(b) depicts sharp increase in T2 from about 0°C to 3°C within the first 10 min, after which it remains constant for the control period. Additionally, Figure 9(a) depicts the estimated heating and cooling supply required to control T3 at 26°C. The initial Q3 is −5.5 kW and varies between 0 and 1 kW to maintain T3 at 26°C. Figure 9(b) displays the simulation results for T3 in the control dataset. It is observed that T3 drops quickly from 31°C to 26°C within the first 10 min and stays at 26°C for the remainder of the control period. It is worth noting that the precision of the simulated results, lacking notable oscillations in the model’s temperature response, can be attributed to a combination of factors such as model simplification, high data resolution, and the comprehensive level of detail encompassed by the RC model. Despite serving as a valuable tool for comprehending building thermal behavior, it is crucial to acknowledge that the intricacies of real-world systems may introduce more intricate and dynamic temperature fluctuations that simplified models may not entirely encompass.
Figure 8.
(a) Estimated heating and cooling supply Q2, (b) T2 in controlling dataset.
Figure 9.
(a) Estimated heating and cooling supply Q 3 , (b) T 3 in controlling dataset.
A case study with real-world house
In this section, the developed method is tested on a real-world low-energy wooden-frame house in Eastman, Quebec, Canada, shown in Figure 10. The RC thermal model structure for this house, shown Figure 11, and was developed by Wang et al. 34 This RC model is used for heating and cooling supply estimation for controlling the temperature of different zones of this house for a period of 6 h at 10-min intervals (control dataset). Two scenarios are defined based on controlling different zones temperatures. Accordingly, the capability of the developed method is evaluated by applying the estimated supplies and simulating the RC model to generate the zone temperature and determining whether they are controlled at the desired level or not. Furthermore, it is essential to highlight that the devised method signifies a novel and innovative approach to temperature control in buildings. The present example serves as a tangible demonstration of how this method can be applied effectively to real-world structures, offering an initial practical showcase of its efficacy. Such case studies are often crucial first steps in validating and showcasing the potential of new approaches, paving the way for future research and real-world implementations.
Figure 10.
A single detached house as a case study. 34
Figure 11.
Single-detached house RC model.
This RC model is called a 10R6C, as it consists of 10 thermal resistances and six thermal capacitances corresponding to six temperature nodes, indicated by T u , T m , and T b in °C for the temperature responses of the second floor, main floor, and basement, respectively. Note that T um , T mm , and T bm are the auxiliary internal temperature responses. The ODEs of this RC model are shown in Appendix B.
The 10-min model inputs for this RC thermal model in the controlling dataset (6 h including hours 2 to 8) are shown in Appendix B. These inputs include (1) global irradiation Q s in kW per unit area on the south façade, which is used to obtain approximate effective solar heat gains and is weighted by solar gain factors (α s ). (2) T g ground temperature, which is approximately at 13 C° constants as shown by measurements. (3) T 0 outdoor temperature in C°. (4) Q elec gross electricity demand in kW and used to calculate internal heat gains and are weighted according to internal gain factors (α e ). (5) Q hp in kW is the heating supply from the geothermal heat pump, which needs to be estimated in order to control the main floor temperature. (6) Q hp is distributed using the alpha distribution factor ( ) across three levels. It’s worth noting that for this case study, the known inputs are based on recorded data. However, it’s possible to predict these inputs as well. For example, the outdoor temperature can be predicted based on forecast weather data, and the gross electricity can be predicted based on the operating schedule of lighting and electrical equipment.32,33
The control system in the house is a normal thermostat. The heat pump runs on an on-off manner. 35 In such a system, the heat pump regulates heating and cooling based on temperature set points and the building’s heating and cooling demand. To implement the newly developed control method, several key steps must be taken. First, the RC thermal model ness to be created and it’s model parameters must be calibrated based on the specific building’s characteristics, ensuring an accurate representation of its thermal behavior. Next, sensors monitoring indoor and outdoor conditions are integrated to provide real-time data to the model. The control system utilizes the RC thermal model, combined with the UKF and NLS methods, to predict the building’s thermal response to heating and cooling. This predictive capability enables continuous adjustments to the supply, optimizing both comfort and energy efficiency.
The state vector of this RC model can be defined by , additionally, the model parameters of this single detached house can be described as thermal resistances, in ; thermal capacitances, in ; solar gain factor, , in ; internal gain factor , unitless and heating power distribution factor for the second, main floor, and basement respectively as . To evaluate the performance of the developed method, this study considered two scenarios. The first scenario involves controlling the temperature of the main floor (T m ) at 22°C and estimating the required heating and cooling supply (Q hp ) to maintain the desired temperature. In the second scenario, the objective is to control the temperature of both the main and second floors. In this scenario, Q hp is eliminated, and two separate heating sources (Q m and Q u ) are added to the main and second floors, respectively, as shown in Figure 12. No heating to T b , these two heating sources are estimated to control the temperatures of both floors. It’s important to highlight that the estimated heating and cooling supply pertains to a heat pump utilized in controlled zones. Table 2 shows these scenarios.
Figure 12.
Thermal model for controlling two zones’ temperature.
Table 2.
10R6C scenarios.
| Scenario | Controlled state | Estimated model input |
|---|---|---|
| 10R6C-Ct1 | at 22°C | |
| 10R6C-Ct2 | at 23°C and at 21°C | and |
The assumed model parameters and initial states of the RC model is presented in equation (20) and are gotten from the previous studies.
| (20) |
As explained in the case study of a simple RC model, the initial covariance matrix is diagonal, with diagonal terms selected as . The measurement noise covariance matrix is assumed to be diagonal and time-invariant, equal to . The process noise covariance matrix is also assumed to be time-invariant and diagonal entries having values equal to as described in.24,25
In Scenario 10R6C-Ct1, the developed method employed to estimate the heating cooling supply Q hp to maintain the main floor temperature Tm at 22°C. Furthermore, Tu and Tb representing second floor and basement temperature will also be estimated during the expected controlling dataset. It is important to note that the maximum capacity of the heat pump installed in this house is 10.55 kW, so the estimated Q hp cannot exceed this value.
Figure 13(a) shows the estimated Q hp and uncontrolled state (Tu and Tb) for the controlling dataset. The estimated Q hp starts with an initial value of 5 kW and then mostly varies between 0 and 4 kW to maintain Tm at 22°C. Figure 13(b) displays the estimated temperature for the second floor and basemen which are around 21°C and 20.5°C, respectively, when temperature of the main floor is controlled.
Figure 13.
(a) Estimated heating and cooling supply. (b) Second floor and basement estimated temperature when Tm controlled.
To validate the estimated heating and cooling supply, the estimated Qhp is taken into account and the previously described 10R6C model is simulated to check if the temperature Tm is controlled at 22°C or not. Figure 14 shows the simulation result for Tm in the controlling dataset. It can be observed that Tm increases rapidly from around 21°C to 22°C in the first 10 min and remains at 22°C for the remainder of the controlling period which starts from hours 2 to 8, it is worth noting that hours 0 to 2 indicates zone temperature Tm behavior prior controlling. This indicates that the presented method can accurately estimate the required heating and cooling supply to control the temperature of the main floor Tm.
Figure 14.
Results for Tm the controlled data set.
Scenario 10R6C-Ct2 focuses on controlling the temperature of multiple zones, specifically the main floor (Tm) and second floor (Tu), with estimation of corresponding heating and cooling supplies. To accomplish this, Qm and Qu have been added to the corresponding floor’s node (i.e., main and second floors). ODEs relating to this scenario are shown in Appendix B. The goal of this scenario is to maintain the temperature of the main floor at 23°C and the second floor at 22°C.
Figure 15(a) illustrates the estimated heating and cooling supply Qu which is used to control the temperature of second floor Tu at 22°C. Initially, the estimated Qu is 3.1 kW, but it varies between 0 and 0.5 kW to maintain Tu at the desired temperature. Figure 15(b) shows generated responses for Tu when estimated Qu is applied. It can be observed that Tu quickly increases from about 20.5 to the expected temperature (22°C) within the first 10 min and remains constant throughout the control dataset.
Figure 15.
(a) Estimated heating and cooling supply Qu, (b) Tu results in controlling dataset.
Figure 16(a) shows the estimated heating and cooling supply represented as Qm, used to control the temperature of the main floor (Tm) at a constant value of 23°C. The initial value of estimated Qm is 4 kW and it mostly varies between 0 and 3 kW to maintain Tm at the desired temperature. Figure 16(b) illustrates the generate temperature response of the main floor in the control dataset when estimated Qm is applied to the RC model. It is observed that Tm increases rapidly from about 21°C to 23°C in the first 10 min and stays at 23°C for the entire control period.
Figure 16.
(a) Estimated heating and cooling supply Qm, (b) results for Tm in a controlling dataset.
Conclusion
This study develops a method for estimating heating and cooling supplies (i.e., RC thermal model inputs) for temperature control purposes. In this regard, the method employs thermal resistor-capacitor network (RC) for thermal dynamic modeling and the Unscented Kalman filter (UKF), integrated with the Nonlinear Least Square (NLS) method, to estimate the heating and cooling supply. To evaluate the capability of the developed method, two application examples are presented: one using made-up data and the other using real-world data. Different scenarios, including limiting the maximum amount of the heating and cooling supply and controlling temperatures in multiple zones, are created to evaluate the capability and performance of the developed method in different circumstances. Implementing these equations manually may pose a challenge for architects or designers. Nevertheless, it is crucial to acknowledge that these equations form the basis for developing a specialized software tool in future works.
In the case study with made-up data, the estimated heating and cooling supply sharply drops the zone’s temperature from about 30°C to 26°C in the first 10 min and maintains that temperature for the remainder of the controlling dataset. Similarly, in the case of real-world data, the developed method accurately estimates the heating and cooling supply to control one and two zones. The considered zone temperatures reach the expected temperature set points of 22°C and 23°C in the first 10 min and remain constant throughout the controlling dataset. These accurate estimation of heating and cooling supply and controlling zone’s temperature on their expected level prove that the developed method is an effective technique for estimating heating and cooling supply of RC thermal models and can be used in control strategies.
Appendix.
A - A simple RC model case study
For the case study with made-up data, that is, 2R2C model, the ordinary differential equation can be shown as below:
| (A1) |
| (A2) |
Accordingly, the state-space equation of the 2R2C model
| (A3) |
Figure A1.
2R2C model inputs.
B - A real-world case study
The ODEs shown below are derived for the 10R6C model:
| (B1) |
Therefore, the state space form of the 10R6C model can be written as follows:
| (B2) |
where
Figure B1.
10R6C model inputs.
The ordinary differential equations for the RC thermal model for controlling two zones’ temperatures is depicted below:
| (B3) |
The state space model of the new thermal network can be written as follow
| (B4) |
which
Footnotes
Credit authorship contribution statement: Vahid Zamani: conceptualization, developing methodology, analysis implementation, and writing the original draft. Shaghayegh Abtahi: Manuscript revisions. Yong Li: supervision, conceptualization, and manuscript revisions. Yuxiang Chen: supervision, conceptualization, and manuscript revisions.
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding: The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The financial support for this research work is provided by Natural Sciences and Engineering Research Council of Canada (NSERC) Collaborative Research and Development Grants, CRDPJ 530932-18 entitled “Intelligent net-zero energy (ready) modular homes for cold regions.”
ORCID iD
Vahid Zamani https://orcid.org/0009-0002-0293-8396
References
- 1.Bosseboeuf D, Gynther L, Lapillonne B, et al. Energy efficiency trends and policies in the household and tertiary sectors. An analysis based on the ODYSSEE and MURE databases. Retrieved from: http://www.odyssee-mure.eu/publications/br/energy-efficiency-trends-policies-buildings.pdf: Intelligent Energy Europe Programme of the European Union, 2015. [Google Scholar]
- 2.Prada M, Prada IF, Cristea M, et al. New solutions to reduce greenhouse gas emissions through energy efficiency of buildings of special importance–Hospitals. Sci Total Environ 2020; 718: 137446. [DOI] [PubMed] [Google Scholar]
- 3.Shaikh PH, Nor NBM, Nallagownden P, et al. A review on optimized control systems for building energy and comfort management of smart sustainable buildings. Renew Sustain Energy Rev 2014; 34: 409–429. [Google Scholar]
- 4.Roth KW, Westphalen D, Kieckmann J, et al. Energy consumption characteristics of commercial building HVAC systems. Cambridge, MA: Little, Inc., 2002. [Google Scholar]
- 5.Brown R. US building-sector energy efficiency potential. Berkeley, CA: University of California, 2008. [Google Scholar]
- 6.Martinčević A, Starčić A, Vašak M. Parameter estimation for low-order models of complex buildings. In: IEEE pes innovative smart grid technologies, Europe, Europe, 12–15 October 2014, pp. 1–6. [Google Scholar]
- 7.Yang S, Wan MP, Ng BF, et al. A state-space thermal model incorporating humidity and thermal comfort for model predictive control in buildings. Energy Build 2018; 170: 25–39. [Google Scholar]
- 8.Li X, Wen J. Review of building energy modeling for control and operation. Renew Sustain Energy Rev 2014; 37: 517–537. [Google Scholar]
- 9.Ali U, Shamsi MH, Hoare C, et al. Review of urban building energy modeling (UBEM) approaches, methods and tools using qualitative and quantitative analysis. Energy Build 2021; 246: 111073. [Google Scholar]
- 10.Harish V, Kumar A. A review on modeling and simulation of building energy systems. Renew Sustain Energy Rev 2016; 56: 1272–1292. [Google Scholar]
- 11.Jorissen F, Reynders G, Baetens R, et al. Implementation and verification of the ideas building energy simulation library. J Build Perf Sim 2018; 11: 669–688. [Google Scholar]
- 12.Arendt K, Jradi M, Shaker HR, et al. Comparative analysis of white-, gray-and black-box models for thermal simulation of indoor environment: teaching building case study. In: Proceedings of the 2018 building performance modeling conference and simbuild co-organized by ASHRAE and IBPSA-USA, Chicago, IL, 26–28 September 2018, pp. 26–28. [Google Scholar]
- 13.Gao H, Koch C, Wu Y. Building information modelling based building energy modelling: a review. Appl Energy 2019; 238: 320–343. [Google Scholar]
- 14.Cole WJ, Powell KM, Hale ET, et al. Reduced-order residential home modeling for model predictive control. Energy Build 2014; 74: 69–77. [Google Scholar]
- 15.Coakley D, Raftery P, Keane M. A review of methods to match building energy simulation models to measured data. Renew Sustain Energy Rev 2014; 37: 123–141. [Google Scholar]
- 16.Loyola-Gonzalez O. Black-box vs. white-box: understanding their advantages and weaknesses from a practical point of view. IEEE Access 2019; 7: 154096–154113. [Google Scholar]
- 17.Cígler J, Gyalistras D, Široky J, et al. Beyond theory: the challenge of implementing model predictive control in buildings. In: Proceedings of 11th Rehva world congress, clima, Prague, Czech Republic, 16–19 June 2013. [Google Scholar]
- 18.Li Y, O’Neill Z, Zhang L, et al. Grey-box modeling and application for building energy simulations-a critical review. Renew Sustain Energy Rev 2021; 146: 111174. [Google Scholar]
- 19.Drgoňa J, Arroyo J, Cupeiro Figueroa I, et al. All you need to know about model predictive control for buildings. Annu Rev Control 2020; 50: 190–232. [Google Scholar]
- 20.Wang S, Xu X. Simplified building model for transient thermal performance estimation using GA-based parameter identification. Int J Therm Sci 2006; 45: 419–432. [Google Scholar]
- 21.Afram A, Janabi-Sharifi F. Theory and applications of HVAC control systems–a review of model predictive control (MPC). Build Environ 2014; 72: 343–355. [Google Scholar]
- 22.Chen Y, Castiglione J, Astroza R, et al. Parameter estimation of resistor-capacitor models for building thermal dynamics using the unscented kalman filter. J Build Eng 2021; 34: 101639. [Google Scholar]
- 23.Li Y, Castiglione J, Astroza R, et al. Real-time thermal dynamic analysis of a house using RC models and joint state-parameter estimation. Build Environ 2021; 188: 107184. [Google Scholar]
- 24.Simon D. Optimal state estimation: kalman, H infinity, and nonlinear approaches. Hoboken, NJ: John Wiley & Sons, 2006. [Google Scholar]
- 25.Astroza R, Ebrahimian H, Conte JP. Performance comparison of kalman−based filters for nonlinear structural finite element model updating. J Sound Vib 2019; 438: 520–542. [Google Scholar]
- 26.Lei Y, Xia D, Erazo K, et al. A novel unscented kalman filter for recursive state-input-system identification of nonlinear systems. Mech Syst Signal Process 2019; 127: 120–135. [Google Scholar]
- 27.Al-Hussein A, Haldar A. Novel unscented kalman filter for health assessment of structural systems with unknown input. J Eng Mech 2015; 141: 04015012. [Google Scholar]
- 28.Al‐Hussein A, Haldar A. Unscented kalman filter with unknown input and weighted global iteration for health assessment of large structural systems. Struct Control Health Monit 2016; 23: 156–175. [Google Scholar]
- 29.Wan EA, Van Der Merwe R. The unscented kalman filter for nonlinear estimation. In: Proceedings of the IEEE 2000 adaptive systems for signal processing, communications, and control symposium (Cat no 00EX373), Lake Louise, AB, 4 October 2000, pp. 153–158. [Google Scholar]
- 30.Lourakis MI. A brief description of the levenberg-marquardt algorithm implemented by levmar. Foundat Res and Techn 2005; 4: 1–6. [Google Scholar]
- 31.Nocedal J, Wright SJ. Numerical optimization. Berlin, Germany: Springer, 1999. [Google Scholar]
- 32.Jin X, Qi F, Wu Q, et al. Integrated optimal scheduling and predictive control for energy management of an urban complex considering building thermal dynamics. Int J Electr Power Energy Syst 2020; 123: 106273. [Google Scholar]
- 33.Zhou Q, Wang S, Xu X, et al. A grey‐box model of next‐day building thermal load prediction for energy‐efficient control. Int J Energy Res 2008; 32: 1418–1431. [Google Scholar]
- 34.Wang Z, Chen Y, Li Y. Development of RC model for thermal dynamic analysis of buildings through model structure simplification. Energy Build 2019; 195: 51–67. [Google Scholar]
- 35.Chen Y, Athienitis A, Galal K. Modeling, design and thermal performance of a BIPV/T system thermally coupled with a ventilated concrete slab in a low energy solar house: part 1, BIPV/T system and house energy concept. Sol Energy 2010; 84: 1892–1907. [Google Scholar]


















