Next Article in Journal
Multi-Stage Bargaining of Smart Grid Energy Trading Based on Cooperative Game Theory
Next Article in Special Issue
ANN-Based Method for Urban Canopy Temperature Prediction and Building Energy Simulation with Urban Heat Island Effect in Consideration
Previous Article in Journal
CFD Prediction of a Double Impulse Burner for Glass Furnaces
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Laplace and State-Space Methods for Calculating the Heat Losses in Case of Heavyweight Building Elements and Short Sampling Times

1
Department of Materials, Faculty of Civil Engineering, University of Zagreb, Fra Andrije Kačića Miošića 26, 10000 Zagreb, Croatia
2
Department of Thermodynamics and Thermal and Process Engineering, Faculty of Mechanical Engineering and Naval Architecture, University of Zagreb, Ivana Lučića 5, 10000 Zagreb, Croatia
*
Authors to whom correspondence should be addressed.
Energies 2023, 16(11), 4277; https://doi.org/10.3390/en16114277
Submission received: 22 February 2023 / Revised: 19 May 2023 / Accepted: 20 May 2023 / Published: 23 May 2023

Abstract

:
Reducing heat losses through the building envelope is one of the most important aspects to be met if the targets set by the European Union are to be achieved. In order to obtain a more realistic energy demand, dynamic heat transfer simulations are used to calculate the energy consumption of buildings, since steady-state calculations do not take into account the thermal mass in buildings. These dynamic simulations employ methods based on analytical models since numerical models are unsuitable for longer time periods. The analytical models used herein fall into the category of conduction transfer functions (CTFs). Two methods for computing CTFs that are addressed in this research are the Laplace method and the State-Space method. The objective of this paper is to verify the efficiency of the Laplace and State-Space methods for calculating the energy demand of a building in the case of heavyweight building elements and shorter sampling times, and to provide a means for improving the algorithms used by these methods. The Laplace and State-Space method algorithms were implemented in Mathematica, and the results were compared to EnergyPlus and TRNSYS, which use similar algorithms to calculate energy demand. It was shown in this paper that for the heavyweight wall element and a time step of 0.25 h, the difference between the total energy transferred through the inner surface was about 31% for EnergyPlus and 78% for TRNSYS compared to the reference solution. For the lightweight wall element, the results were stable for the time step of 0.25 h, but for the time step of 0.1 h, the differences were 45.64% and 303% between EnergyPlus, TRNSYS and the reference solution, respectively, compared to the State-Space and Laplace methods for which the maximum difference was 12.03% with a time step of 0.1 h. While dynamic heat transfer simulations are better than calculations based on steady-state boundary conditions, they also have their limitations and could lead to unsatisfactory results for short sampling times and if not applied properly.

1. Introduction

With the aim of ensuring that EU policies are in line with the climate goals agreed by the Council and the European Parliament, the Fit for 55 [1] package was proposed, which among other things, includes an increase in the CO2eq emissions from the buildings reduction target by 2030 compared to 2005. The measures include, among others, enhancing buildings’ energy performance when constructing new buildings and the energy renovation of existing buildings. All of this also complies with the European Commission’s long-term strategy for a low-carbon Europe by 2050 [2,3]. The European parliament adopted draft measures to increase the building renovation rate as well as to minimize buildings’ energy consumption and CO2eq emissions. European Climate Law [4] enshrined both the 2030 and the 2050 targets into binding European law. According to the adopted measures, all new buildings should be zero-emission buildings (ZEBs) from 2028, while new buildings occupied, operated or owned by public authorities should be from 2026 [5], thus advancing even further the development set up by nearly zero energy buildings (NZEBs).
To achieve these goals, it is important to predict the energy consumption of both new buildings and renovated buildings. Most software used in the EU for energy performance simulation use simplified methods to calculate heat transfer through building elements based on steady-state boundary conditions averaged over a period of time [6,7]. This calculation can lead to unsatisfactory results when boundary conditions change rapidly and when the thermal mass of the element is significant [6,8]. As a result, the predicted energy demand may be lower or higher than the actual energy consumption, leading to undersized or oversized heating and cooling systems. Furthermore, if the boundary conditions are considered to be steady-state, the peak energy demand shifts because the thermal mass is not taken into account, leading to a thermal comfort problem for the building occupants. Nowadays, dynamic methods for simulating building energy demand are more and more widely used because they are powerful and important tools for optimizing building energy demand [8,9,10,11,12].
The dynamic methods are based on the non-stationary solution of the heat equation. This solution can be found numerically (finite volume method, finite element method or finite difference method) or analytically. Due to the long analysis period and small time steps used for the analysis, numerical methods have proven to be inadequate for building energy simulations because they rely on solving large systems of equations at each time step [13]. Analytical methods such as conduction transfer functions (CTFs) have been shown to be much better for building energy simulation problems [14] and are implemented in modern dynamic energy simulation software such as TRNSYS [15] and EnergyPlus [16]. Although the CTF methods are superior to the abovementioned simplified calculations, the aim of this research is to show that they have their limitations and lead to unsatisfactory results if not properly applied. It will be shown that in the case of heavyweight façade systems and small computational time steps, CTFs can provide low-quality results (become more and more unstable with longer time steps, particularly with massive building elements) [17]. The reason for using small time steps, which in some cases can be less than one hour, could be to analyze more accurately the impact of complex control systems on the overall energy performance of the building primarily associated with the exploitation of renewable energy sources as well as predictive model control of buildings [18,19]. Another reason is that NZEBs and ZEBs require more accurate dynamic simulations of heavy and highly insulated building elements with shorter time steps (less than 15 min) [20,21,22]. The problem also lies in the algorithms developed for yearly energy simulations with a time step of one hour. Comparisons of different methods and their main problems found in the literature are summarized in Table 1.
Among the most commonly used CTF methods are the Laplace method and the State-Space method. This paper compares these two methods for calculating heat losses through a heavyweight multilayer wall with a contact thermal insulation façade system by implementing the algorithms from the research work of Stephenson and Mitalas [23] for the Laplace method and Seem [24] for the State-Space method in Mathematica [25]. The software Mathematica was chosen due to its advanced mathematical and numerical tools and matrix manipulation. The results from Mathematica are then compared with the results of two commonly used software for the dynamic calculation of energy performance—TRNSYS and EnergyPlus. The first software uses the Laplace method [21,26] to calculate the CTF coefficients, while the second uses the State-Space method [27,28,29]. The finite difference method (FDM) [30] is used as a reference point for the boundary heat flux density. The aim is to show how well the Laplace method and the State-Space method perform for small time steps and heavyweight building elements and what possibilities there are for improving these methods.

2. Methodology

If we consider a multilayer wall, as shown in Figure 1, in the general case, the wall is composed of n layers and two boundary conditions. The boundary condition for x = 0 is Tint and for x = L Text. For the building energy performance simulation, the surface heat fluxes on the interior (qint) and the exterior (qext) surface must be calculated since these two fluxes represent the energy demand for the element under consideration. Only heat flux due to conduction is considered and boundary conditions are surface temperatures on the internal and external surfaces. Convection and radiation on both surfaces are not considered, i.e., Rsi and Rse are taken as 0 (m2 K)/W. Solar radiation as well as all other radiation from the environment is not taken into account for the calculation. This assumption simplifies the calculation of the surface heat fluxes and the implementation of the Steady-State and Laplace method algorithms in Mathematica. The same assumption is implemented in both Mathematica’s algorithms, EnergyPlus and TRNSYS.
In most cases, heat transfer through building elements such as walls or ceilings can be considered one-dimensional. The heat equation for one-dimensional heat conduction is given by Equation (1).
T ( x , t ) t = λ ρ c p 2 T ( x , t ) x 2 ,
With the boundary and initial conditions:
T ( 0 , t ) = T int q ( 0 , t ) = q int T ( L , t ) = T e x t , q ( L , t ) = q e x t T ( x , 0 ) = 0
where T(x,t) is the temperature at point x at time t in °C, λ is the thermal conductivity in W/(m K), ρ is the density in kg/m3, cp is the specific heat in J/(kg K), Tint is the internal surface temperature in °C, Text is the external surface temperature in °C, qint is the internal surface heat flux in W/m2 and qext is the external surface heat flux in W/m2.
In this research, Equation (1) is solved using:
  • The State-Space method [24];
  • The Laplace method [23];
  • The finite difference method;
  • The State-Space method, as implemented in EnergyPlus;
  • The Laplace method, as implemented in TRNSYS.
For the solution of each method, the internal surface heat flux is calculated. The solution for all five methods is then compared to analyse the impact of each method on the solution, and also to analyse the efficiency of each algorithm used by the abovementioned methods. This analysis is performed for time steps ranging from one hour to six minutes and for lightweight and heavyweight building elements (walls). As a reference solution for the comparison (i.e., as the exact solution), the solution of the FDM is taken. Furthermore, the steady-state solution is calculated to show the difference between the transient (dynamic) and steady-state building energy demand simulation.

2.1. The Finite Difference Method

The finite difference method (FDM) is a method used for obtaining a numerical solution to Equation (1). As with most numerical solutions, the FDM uses a discrete approximation of the continuous partial differential equation. This means that the solution is known only at a finite number of points within the element. The number of these points is user-defined and generally increases the accuracy of the numerical solution. The discrete approximation of Equation (1) is as follows [31]:
T i j + 1 T i j Δ t = 1 Δ x 2 λ 1 T i 1 j ( λ i i + λ i ) T i j + λ 2 T i + 1 j ( ρ i 1 c i 1 + ρ i c i ) / 2 ,
Equation (3) represents the implicit FDM formulation for solving the heat equation. In the matrix formulation, Equation (3) can be written as follows:
( 1 0 0 0 r 1 1 + r 1 + r 2 r 2 0 0 r i 1 1 + r i 1 + r i r i 0 0 0 1 ) ( T 1 T 2 T i 1 T i ) j + 1 = ( T int 0 0 T e x t ) j ,
The subscript i denotes a node and j point in time. The coefficients r1 and r2 are calculated for each node according to Equation (5).
r i 1 = Δ t Δ x 2 λ i 1 ( ρ i 1 c i 1 + ρ i c i ) / 2 r i = Δ t Δ x 2 λ i ( ρ i 1 c i 1 + ρ i c i ) / 2 ,
By solving Equation (4) for each time step j, the internal heat flux qint can be calculated using Fourier’s law of thermal conduction as follows:
q int = λ 1 T 2 j T int j Δ x ,
The solution calculated using Equation (6) is used as a reference (i.e., as an exact solution) for the comparison.

2.2. The State-Space Method

The State-Space method is usually used to describe a linear system with r inputs, m outputs and n state variables that are written in the general form as described in [32]:
x ˙ ( t ) = A ( t ) x ( t ) + B ( t ) u ( t ) ,
y ( t ) = C ( t ) x ( t ) + D ( t ) u ( t ) ,
Here x is the state vector, u is the input vector, y is the output vector, t is time, and A, B, C and D are matrices of dimension n × n, n × r, m × n and m × r, respectively. Since, in the case of heat conduction, the system is time-variant (i.e., the temperature inside the element changes with time), Equations (7) and (8) can be written by discrete time-variant State-Space method as in [32]:
x ˙ ( k + 1 ) = A ( k ) x ( k ) + B ( k ) u ( k ) ,
y ( k ) = C ( k ) x ( k ) + D ( k ) u ( k ) ,
Here the matrices A, B, C and D have the same dimensions as in the continuous time case—Equations (7) and (8). In the case of heat conduction, the state vector x represents the temperatures of each node of the element, the input vector u represents the boundary conditions (i.e., the boundary temperatures shown in Figure 1) and the output vector y represents the surface heat fluxes qi and qe shown in Figure 1.
Equations (9) and (10) can be used to solve Equation (1) by enforcing the finite difference grid over the analysed building element:
( T 2 / t T 3 / t T n 2 / t T n 1 / t ) = ( r 2 r 3 r 3 0 0 r 3 r 3 r 4 r 4 0 0 r n 3 r n 3 r n 2 r n 2 0 0 r n 2 r n 2 r n 1 ) ( T 2 T 3 T n 2 T n 1 ) + ( r 1 0 0 r n ) ( T int T e x t )
The coefficients r1 and r2, which represent the left node “i − 1” and the node “i” for each row of the matrix, are calculated for each node using Equation (12).
r i 1 = 1 Δ x 2 λ i 1 ( ρ i 1 c i 1 + ρ i c i ) / 2 r i = 1 Δ x 2 λ i ( ρ i 1 c i 1 + ρ i c i ) / 2 ,
where index “i” denotes the node in the FDM grid (i = 2 to n) and “i − 1” first previous node in the FDM grid.
The interior heat flux can be written in the matrix form as follows:
( q int ) = ( λ 1 / Δ x 0 ) ( T 2 T i 1 ) + [ λ 1 / Δ x 0 ] ( T int T e x t ) ,
If Equations (11) and (13) are compared to Equations (9) and (10), then matrices A, B, C and D are equal to:
A = ( r 2 r 3 r 3 0 0 r 3 r 3 r 4 r 4 0 0 r i 3 r i 3 r i 2 r i 2 0 0 r i 2 r i 2 r i 1 ) B = ( r 1 0 0 r i ) C = ( λ 1 / Δ x 0 ) D = [ λ 1 / Δ x 0 ] ,
The matrices (14) are the input values for the algorithm [24] to calculate the CTF coefficients Zj, Yj and φj. The algorithm [24] is implemented in Mathematica [25], and all operations with matrices were performed using this powerful software. From the CTF coefficients, the interior heat flux is calculated as follows:
q int ( k Δ t ) = j = 0 N Z Z j T int , k Δ t j Δ t + j = 0 N Y Y j T e x t , k Δ t j Δ t j = 1 N Φ Φ j q int , k Δ t j Δ t ,
where Zj is the interior CTF coefficient, Yj is the cross CTF coefficient and φj is the flux CTF coefficient. NZ, NY and Nφ represent the number of Zj, Yj and φj coefficients, respectively.
It is common practice to use Equation (16) to verify that the CTF coefficients obtained by the State-Space method give the correct steady-state heat transfer, with Xk being the exterior CTF coefficient.
k = 1 N a X k 1 k = 1 N k Φ k = k = 1 N b Y k 1 k = 1 N k Φ k = k = 1 N b Z k 1 k = 1 N k Φ k U ,

2.3. The Laplace Method

The Laplace method uses Laplace transforms to solve Equation (1) [33]. In matrix form, this solution can be written as follows:
( T ¯ int q ¯ int ) = k = 1 N L ( cosh ( s / α k L k ) sinh ( s / α k L k ) λ k s / α k λ k s / α k sinh ( s / α k L k ) cosh ( s / α k L k ) ) ( T ¯ e x t q ¯ e x t ) , = ( A A ( s ) B B ( s ) C C ( s ) D D ( s ) ) ( T ¯ e x t q ¯ e x t )
Here AA(s), BB(s), CC(s) and DD(s) are the elements of the wall transmission matrix H that relates to the surface temperatures and surface heat flux, with NL being the number of layers, s being the frequency in the Laplace domain, and Lk and α being the thickness and the thermal diffusivity of each layer, respectively.
For the purpose of building performance simulation, and because DD(s) = AA(s), Equation (17) is transformed into Equation (18) [34].
( q ¯ int q ¯ e x t ) = 1 B B ( s ) ( A A ( s ) 1 1 A A ( s ) ) ( T ¯ int T ¯ e x t ) ,
In their work, [23] introduced a procedure that uses Z-Transforms [35] to convert the solution from the frequency domain (s) back to the time domain (t). This procedure is based on the partial fraction expansion [36,37] and finding roots of the denominator BB(s) on some predefined interval. The root-finding algorithm is one of the main drawbacks of the Laplace method, as it can lead to an excessive computation time and potential calculation errors [38]. Although the Laplace method is an analytical method, except for the root-finding procedure, which is mostly conducted numerically, the State-Space method has been shown to be superior for shorter time steps and heavyweight building elements [39,40]. Some researchers have tried to overcome the problem of root-finding such as [41], which proved to be efficient. They discovered that the roots of the heat transfer function BB(s) are separated by the roots of the transfer function AA(s). This new discovery ensured that no roots of the heat transfer function BB(s) are overlooked when performing the root-finding procedure. Nevertheless, they did not overcome the problem of using numerical methods for finding the actual roots, which was performed by the classical bisection method. In this paper, the root-finding procedure is performed using Mathematica’s FindRoot function and Brent’s method [42], in contrast to TRNSYS, which uses the bisection method.
From the CTF coefficients (bj, cj, dj), the interior heat flux is calculated as follows:
q int ( k Δ t ) = j = 0 N b b j T e x t , k Δ t j Δ t j = 0 N c c j T int , k Δ t j Δ t j = 1 N d d j q int , k Δ t j Δ t ,
where bj is the interior CTF coefficient, cj is the cross CTF coefficient and dj is the flux CTF coefficient. Nb, Nc and Nd represent the number of bj, cj and dj coefficients, respectively.
It is common practice to use Equation (20) to verify that the CTF coefficients obtained by the Laplace method give the correct steady-state heat transfer.
k = 1 N a a k k = 1 N k d k = k = 1 N b b k k = 1 N k d k = k = 1 N b c k k = 1 N k d k U ,

2.4. EnergyPlus

Version of the software used in this research is version 9.6. The building elements were modelled in a single zone environment and only heat conduction through the wall was considered, i.e., convection and radiation on both internal and external surface were set to zero in EnergyPlus settings. That means that the temperature on of the internal and external surface was the same as the air temperature. EnergyPlus uses Steady-State method for the approximation of the solution for the heat equation as shown below. The same weather file used in Mathematica was also used in EnergyPlus.
The following equation shows the basic form of a CTF solution for the internal surface heat flux [43]:
q int ( k Δ t ) = j = 0 N Z Z j T int , k Δ t j Δ t + j = 0 N Y Y j T e x t , k Δ t j Δ t + j = 1 N Φ Φ j q int , k Δ t j Δ t ,
where Zj is the interior CTF coefficient, Yj is the cross CTF coefficient and φj is the flux CTF coefficient. NZ, NY and Nφ represent the number of Zj, Yj and φj coefficients, respectively.

2.5. Trnsys

Version of the software used in this research is 17. For consistency with both EnergyPlus and algorithms implemented in Mathematica for Steady-State and Laplace method algorithms, only conduction through the wall was modelled. Convection and radiation on the internal and external surface were not considered. The temperature of the internal surface was the same as the air temperature. The building element was also modelled in a single zone environment. The same weather file that was used in Mathematica was used in TRNSYS.
The instantaneous heat flux entering or leaving the zone for an exterior wall can be modelled according to Equation (19) as described in [44].

3. Results

In this section, the results of all the abovementioned methods are compared to check the efficiency of each method for different time steps and two types of building elements (i.e., heavyweight and lightweight) shown in Table 2 and Table 3. The time steps used for the analysis were 1 h, 0.5 h, 0.25 h and 0.1 h. The thermal transmittance (U-value) of each building element was also calculated to determine the steady-state surface heat flux as:
q int = U ( T int T e x t ) ,
The U-value in this research refers to surface-to-surface heat conduction that does not take into account the values of the surface heat transfer resistances due to the convection and radiation, i.e., Rsi = 0 (m2 K)/W and Rse = 0 (m2 K)/W. U-values calculated this way cannot be used as the design values. If the design values are to be calculated from the material properties and thicknesses shown in Table 2 and Table 3, then the procedure and values of the surface heat transfer coefficients (hsi and hse) given by ISO 6946 standard are to be used accordingly.
The boundary conditions used for the analysis were 20 °C for the interior surface temperature (Tint), and the values for the exterior surface temperatures (Text) were taken from [45] for the City of Zagreb (Figure 2). The data taken from [45] provide climate data with a 30 min time step, and to be able to use it for shorter time steps, the data are transformed into a continuous function using Mathematica’s algorithms. The calculation period was one month, with a warm-up period of six days to neutralize the effects of the initial conditions. Since only heat conduction through the elements was considered, the internal and external surface heat transfer coefficients were both taken as 0 W/(m2 K).
To check the stability of the results, Equations (16) and (20) are used (Table 4 and Table 5).
As a result of the analysis, the interior heat flux is calculated using Equations (6), (15), (19), (21) and (22) for time steps 1, 0.5, 0.25 and 0.1 h (Figure 3, Figure 4, Figure 5 and Figure 6). In addition, the total energy transferred through the interior surface of the element is calculated by integrating the heat flux function from tmin = 144 h to tmax = 864 h (Figure 6b) the results for EnergyPlus and TRNSYS are not shown because they are numerically unstable, as can be seen in Figure 7d.
Table 6 and Figure 8 show the computational time required to calculate the interior heat flux function in the period from tmin to tmax for the FDM, the State-Space method and the Laplace method as implemented in Mathematica.

4. Comparison and Discussion

Two different types of wall elements were modelled—heavyweight and lightweight. For each wall element, the internal heat flux was calculated using six different procedures to show the effect of the wall’s thermal mass on the solution for different time steps used for the dynamic thermal simulation for all six procedures.
The solution of the FDM was taken as the reference point for the comparison. The number of subdivisions for the FDM solution was 100 with the step size of 0.390 cm for the heavyweight and 0.363 cm for the lightweight wall element. The solution of the FDM is calculated as described in Section 2.1. The same subdivision used for the FDM was used for the State-Space method.
In Table 4 and Table 5, the stability of all procedures can be seen. For the heavyweight wall element, all methods show stable solutions for time steps of 1 h and 0.5 h (Figure 3a and Figure 4a). For time steps of 0.25 h and 0.1 h, the State-Space method and the Laplace method show stable solutions, while EnergyPlus and TRNSYS show a high deviation from the solution obtained with the FDM (Figure 5a and Figure 6a). For a time step of 0.25 h, this difference is as high as 31% for EnergyPlus and 78% for TRNSYS. In the case of a time step of 0.1 h, both EnergyPlus and TRNSYS give unreliable results. Although the algorithms of the State-Space method and the Laplace method implemented in the Mathematica for the purpose of this research are also implemented in EnergyPlus and TRNSYS, the heat flux calculated using EnergyPlus and TRNSYS is unstable for smaller time steps (Figure 5a and Figure 6a). This is due to the simplified procedures used for the calculation of matrix exponential in the case of the State-Space method implemented in EnergyPlus, and the root-finding algorithm for the Laplace method implemented in TRNSYS. In contrast, Mathematica uses a robust built-in algorithm for finding the matrix exponential and finding the roots of the denominator BB(s). In the case of the State-Space method, the number of subdivisions also affects the solution; however, not in terms of the stability of the CTF coefficients, but rather in terms of the overall accuracy of the calculated heat flux. As the number of subdivisions increases, the CTF coefficients for the State-Space method converge to a finite value.
For the lightweight wall element, all procedures show stable solutions for time steps of 1 h, 0.5 h and 0.25 h (Figure 3b, Figure 4b and Figure 5b). For time steps of 0.1 h, the State-Space method and the Laplace method show stable solutions, while EnergyPlus and TRNSYS show a high deviation from the solution obtained with the FDM (Figure 5b and Figure 6b). For a time step of 0.1 h, the difference is 46% for EnergyPlus and 303% for TRNSYS.
The difference in total energy transferred through the interior surface can be seen in Figure 7. For the lightweight wall element, the State-Space method and the Laplace method behave similarly for all time steps. There is no difference between the total energy transferred through the inner surface between the FDM and the State-Space method. For the Laplace method, this difference is negligible (0.39%). For the heavyweight wall element, the State-Space method is also stable for all time steps, and the difference between the total energy transmitted through the inner surface calculated using the FDM and the State-Space method is 0–0.04%. The Laplace method gives stable results for the time steps of 1 h, 0.5 h and 0.25 h, and the difference between the solution of the FDM and the Laplace method is 0.02%. For a time step of 0.1 h, the difference is 12.03%.
For the lightweight and heavyweight wall elements, EnergyPlus calculation produces more stable results than TRNSYS (Figure 7). For the lightweight wall element, the difference between the total energy transferred through the inner surface between the FDM and EnergyPlus is 0.65–3.11% for time steps of 1 h, 0.5 h and 0.25 h, and for the time step of 1 h, that difference is 45.64%. On the other hand, the difference between FDM and TRNSYS is 0.04–0.31% for the 1 h and 0.5 h time steps, and 31.01% for the 0.25 h time step. For the 0.1 h time step, the results are unreliable as can be seen in Figure 7d.
If the steady-state solution is considered, it can be seen that although the amplitude of the steady-state heat flux function is greater than that of the FDM, the difference between the total energy transferred through the inner surface between the FDM and the steady-state method is only 2.23% for the lightweight wall element and 2.19% for the heavyweight wall element (Figure 3, Figure 4, Figure 5, Figure 6 and Figure 7). However, when the steady-state method is used to calculate the heat flux, the thermal mass of the element is not taken into account, which could lead to potential problems when designing mechanical systems and thermal comfort for the building’s occupants. This is especially important since one of the future directions of building energy management lies in the implementation of model predictive control (MPC).
The computation times for the State-Space method, Laplace method and FDM are shown in Figure 8 and Table 6. For larger time steps, the State-Space method and the FDM perform similarly, while the Laplace method is much slower due to the interval for finding the roots of the denominator BB(s), which is 10−8 for both the lightweight and heavyweight wall elements. For smaller time steps, the computation time for the State-Space method and the Laplace method is similar. In contrast, the computation time of the FDM becomes higher due to the number of linear systems that must be solved for each time step.
The State-Space method and the Laplace method implemented in the conventional software for dynamic energy simulations software could be improved by implementing more advanced algorithms for the calculation of the matrix exponential for the State-Space method and the root-finding procedure for the Laplace method, as these are the main drawbacks of the CTF methods. As is shown in the results, by using more advanced algorithms, both the State-Space method and the Laplace method were stable for smaller time steps in comparison to the results obtained from EnergyPlus and TRNSYS. This improvement for the calculation of the matrix exponential and the root-finding procedure comes at the cost of the computational time. However, if the goals set by the EU for the NZEBs and ZEBs are to be achieved, it is essential to improve the accuracy of the dynamic calculation for smaller time steps.

5. Conclusions

Dynamic methods are based on the non-stationary solution of the heat equation. This solution can be found numerically or analytically. Because of the long analysis period and the small time steps used for the analysis, numerical methods have proven to be insufficient for building energy simulations. Analytical methods such as conduction transfer functions (CTFs) have proven to be much better for building energy simulation problems and are implemented in modern dynamic energy simulation software such as TRNSYS and EnergyPlus. Among the most commonly used CTF methods are the Laplace method and the State-Space method. This research compares these two methods for the calculation of heat losses in heavyweight wall elements by implementing the algorithms from the research paper of Stephenson and Mitalas for the Laplace method and Seem for the State-Space method. These results are then compared with the results from TRNSYS and EnergyPlus.
TRNSYS uses the Laplace method to calculate the CTF coefficients and the bisection method to calculate the roots of the function BB(s), while EnergyPlus uses the State-Space method to calculate the CTF coefficients and the simplified methods such as the algorithm by Moler and Van Loan to calculate the matrix exponential. The goal of this paper is to show how well the Laplace method and the State-Space method perform for small time steps and heavyweight building elements and to show what opportunities exist to improve these methods by implementing more efficient algorithms for root-finding and the matrix exponential procedure. The finite difference method (FDM) is used as a reference point for the boundary heat flux density.
For the time steps of 1 h and 0.5 h, all methods (State-Space, Laplace, EnergyPlus and TRNSYS) were found to be adequate for both the heavyweight and lightweight wall elements. For the heavyweight wall element and a time step of 0.25 h, the difference between the total energy transferred through the inner surface was about 31% for EnergyPlus and 78% for TRNSYS compared to the solution obtained with the FDM. For the lightweight wall element, the results were stable for the time step of 0.25 h, but for the time step of 0.1 h, the difference between EnergyPlus and FDM was 45.64% while the difference between TRNSYS and FDM was 303%.
The State-Space method and the Laplace method implemented in Mathematica were stable for all time steps for both the heavyweight and lightweight wall elements due to the Mathematica’s powerful numerical and matrix manipulation algorithms. The maximum difference between the FDM and Mathematica was for the Laplace method and a time step of 0.1 h, where the difference was 12.03%. Therefore, one should choose the time step size accordingly, and avoid the smaller time steps if possible.
For the calculation of the total energy consumption, the steady-state method proved to be satisfactory. The difference between the FDM and the steady-state method was around 2.23% for the lightweight wall element and 2.19% for the heavyweight wall element.
The conclusions of this paper could be of interest for the implementation in NZEBs and ZEBs where thermal mass influences are relatively higher as well as for better power demand management strategies, which require accurate transient simulation of heavyweight and highly insulated building elements with short time steps (lower than or equal to 0.1 h, i.e., 6 min). On the other hand, the limitation of the research is that it involves a complex technique and requires high computational costs. This paper shows that the State-Space method and the Laplace method implemented in EnergyPlus and TRNSYS could be improved by implementing more advanced algorithms for the calculation of the matrix exponential for the State-Space method and the root-finding procedure for the Laplace method since these are the main drawbacks of the CTF methods. Further research will address the integration of more efficient algorithms with equal or smaller deviations from theoretical values.

Author Contributions

Conceptualization, M.G. (Mergim Gaši) and M.G. (Marino Grozdek); methodology, M.G. (Marino Grozdek); software, M.G. (Mergim Gaši); validation, M.G. (Marino Grozdek), B.M. and M.B.; formal analysis, M.G. (Mergim Gaši); resources, M.G. (Marino Grozdek) and B.M.; writing—original draft preparation, M.G. (Mergim Gaši); writing—review and editing, B.M. and M.B.; visualization, M.G. (Mergim Gaši); supervision, B.M.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Publicly available datasets were analyzed in this study. These data can be found here: https://www.wunderground.com/history/monthly/hr/zagreb/LDZA (accessed on 12 February 2021).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Erbach, G.; Jensen, L. Fit for 55 Package; European Parliament: Brussels, Belgium, 2022; p. 4. Available online: https://www.europarl.europa.eu/RegData/etudes/BRIE/2022/733513/EPRS_BRI(2022)733513_EN.pdf (accessed on 18 May 2023).
  2. Available online: https://www.eumonitor.eu/9353000/1/j9vvik7m1c3gyxp/vl4cnhyp1ort (accessed on 18 May 2023).
  3. Available online: https://www.eumonitor.eu/9353000/1/j9vvik7m1c3gyxp/vl4d8dfd2dye (accessed on 18 May 2023).
  4. European Parliament and the Council of the European Union. Regulation (EU) 2021/1119 of the European Parliament and of the Council of 30 June 2021 Establishing the Framework for Achieving Climate Neutrality and Amending Regulations (EC) No 401/2009 and (EU) 2018/1999 (‘European Climate Law’); European Parliament: Brussels, Belgium, 2021; pp. 1–17. [Google Scholar]
  5. Chatain, B. Energy Performance of Buildings: Climate Neutrality by 2050. Available online: https://www.europarl.europa.eu/news/en/press-room/20230206IPR72112/energy-performance-of-buildings-climate-neutrality-by-2050 (accessed on 18 May 2023).
  6. Fokaides, P.; Kylili, A.; Kyriakides, I. Boundary Conditions Accuracy Effect on the Numerical Simulations of the Thermal Performance of Building Elements. Energies 2018, 11, 1520. [Google Scholar] [CrossRef]
  7. Vujnović, N.; Vidak, D.; Jakšić, F.; Kedmenec, Ž.; Dović, D.; Horvat, I. Differences in calculations of annual heating and cooling energy need carried out by modified simple hourly method and dynamic simulations. Trans. Famena 2021, XLV, 35–48. [Google Scholar] [CrossRef]
  8. De Luca, G.; Bianco Mauthe Degerfeld, F.; Ballarini, I.; Corrado, V. Accuracy of Simplified Modelling Assumptions on External and Internal Driving Forces in the Building Energy Performance Simulation. Energies 2021, 14, 6841. [Google Scholar] [CrossRef]
  9. Schoplocher, D.P.; Ettengruber, S.; Steffens, O. Improvements for building-performance simulations by a comparative finite-element method analysis. Energy Build. 2023, 278, 112563. [Google Scholar] [CrossRef]
  10. Prades-Gil, C.; Viana-Fons, J.D.; Masip, X.; Cazorla-Marín, A.; Gómez-Navarro, T. An agile heating and cooling energy demand model for residential buildings. Case study in a mediterranean city residential sector. Renew. Sustain. Energy Rev. 2023, 175, 113166. [Google Scholar] [CrossRef]
  11. Harish, V.S.K.V.; Kumar, A. A review on modeling and simulation of building energy systems. Renew. Sustain. Energy Rev. 2016, 56, 1272–1292. [Google Scholar] [CrossRef]
  12. Huerto-Cardenas, H.E.; Leonforte, F.; Aste, N.; Del Pero, C.; Evola, G.; Costanzo, V.; Lucchi, E. Validation of dynamic hygrothermal simulation models for historical buildings: State of the art, research challenges and recommendations. Build. Environ. 2020, 180, 107081. [Google Scholar] [CrossRef]
  13. Crowley, M.E.; Hashmi, M.S.J. Evaluation of implicit numerical methods for building energy simulation. Proc. Inst. Mech. Eng. Part A J. Power Energy 1998, 212, 331–342. [Google Scholar] [CrossRef]
  14. Pilet, T.; Rakha, T. Modeling of transient conduction in building envelope assemblies: A review. Sci. Technol. Built Environ. 2022, 28, 706–716. [Google Scholar] [CrossRef]
  15. Solar Energy Laboratory Trnsys 18. Available online: https://sel.me.wisc.edu/trnsys/features/features.html (accessed on 18 May 2023).
  16. U.S. Department of Energy EnergyPlus Energy Simulation Software. Available online: https://www.energy.gov/eere/buildings/listings/software-tools (accessed on 18 May 2023).
  17. Nageler, P.; Schweiger, G.; Pichler, M.; Brandl, D.; Mach, T.; Heimrath, R.; Schranzhofer, H.; Hochenauer, C. Validation of dynamic building energy simulation tools based on a real test-box with thermally activated building systems (TABS). Energy Build. 2018, 168, 42–55. [Google Scholar] [CrossRef]
  18. Mazzarella, L.; Pasini, M. Integration time step issue in Mediterranean Historic Building energy simulation. Energy Procedia 2017, 133, 53–67. [Google Scholar] [CrossRef]
  19. Liu, J.; Zhang, Q.; Dong, Z.; Li, X.; Li, G.; Xie, Y.; Li, K. Quantitative evaluation of the building energy performance based on short-term energy predictions. Energy 2021, 223, 120065. [Google Scholar] [CrossRef]
  20. Delcroix, B.; Michael, K.; Daoud, A.; Hiller, M. Improved Conduction Transfer Function Coefficients Generation in TRNSYS Multizone Building Model. In Proceedings of the BS2013: 13th Conference of International Building Performance Simulation Association, Chambéry, France, 25–28 August 2013; Wurtz, E., Ed.; Savoie Technolac by INES (CEA, university of Savoie, CNRS and CSTB) and INSA Lyon. pp. 2667–2674. [Google Scholar]
  21. Anderson, J. Modelling and Performance Evaluation of Net Zero Energy Buildings; University of Wollongong: Wollongong, NSW, Australia, 2016. [Google Scholar]
  22. Tabares-Velasco, P.C. Time Step Considerations When Simulating Dynamic Behavior of High-Performance Homes. In Proceedings of the Thermal Performance of the Exterior Envelopes of Whole Buildings XII International Conference, Clearwater, FL, USA, 1–5 December 2013; pp. 1–10. [Google Scholar]
  23. Stephenson, D.G.; Mitalas, G.P. Calculation of transient heat flow through walls and roofs. ASHRAE Trans. 1971, 77, 117–126. [Google Scholar]
  24. Seem, J.E. Modeling of Heat Transfer in Buildings; University of Wisconsin: Madison, WI, USA, 1987. [Google Scholar]
  25. Wolfram Research Inc. Wolfram Mathematica v 12.0; Wolfram Research, Inc.: Champaign, IL, USA, 2019. [Google Scholar]
  26. Delcroix, B.; Kummert, M.; Daoud, A.; Hiller, M.D.E. Conduction Transfer Functions in TRNSYS Multizone Building Model: Current Implementation, Limitations and Possible Improvements. In Proceedings of the Proceedings of SimBuild 2012: 5th Conference of IBPSA-USA, Madison, WI, USA, 1–3 August 2013; McDowell, T., Ed.; International building performance simulation association: Madison, WI, USA, 2012; pp. 219–226. [Google Scholar]
  27. Mun, J.; Krarti, M. Implementation of a new CTF method stability algorithm into EnergyPlus. Build. Simul. 2015, 8, 613–620. [Google Scholar] [CrossRef]
  28. Tabares-Velasco, P.C.; Christensen, C.; Bianchi, M. Verification and validation of EnergyPlus phase change material model for opaque wall assemblies. Build. Environ. 2012, 54, 186–196. [Google Scholar] [CrossRef]
  29. Pedersen, C.O. Advanced zone simulation in energyplus: Incorporation of variable properties and phase change material (PCM) capability. IBPSA 2007 Int. Build. Perform. Simul. Assoc. 2007, 2007, 1341–1345. [Google Scholar]
  30. Recktenwald, G.W. Finite-Difference Approximations to the Heat Equation. Mech. Eng. 2004, 10, 1–27. [Google Scholar]
  31. Ukrainczyk, N. Computational Methods for Building Physics and Construction. Materials 2018, 7, 1–6. [Google Scholar]
  32. Brogan, W.L. Modern Control Theory, 3rd ed.; Pearson: Las Vegas, NY, USA, 1990; ISBN 0135897637. [Google Scholar]
  33. Nessi, A.; Nisolle, L. Résolution Practique Des Problèmes de Discontinuité de Fonctionement Dans Les Installations de Chauffage Central; DUNOD: New York, NY, USA, 1933; p. 137. [Google Scholar]
  34. Soto Francés, V.M.; Pinazo Ojer, J.M.; Sarabia Escrivá, E.J. Multi-layered slab 1D conduction heat transfer for buildings discrete event simulations. J. Build. Eng. 2023, 69, 106318. [Google Scholar] [CrossRef]
  35. Jury, E.I. Theory and Application of the Z-Transform Method; Robert E. Krieger Publishing Co.: Huntington, NY, USA, 1964. [Google Scholar]
  36. Dawkins, P. Paul’s Online Notes. Available online: http://tutorial.math.lamar.edu/Classes/Alg/PartialFractions.aspx (accessed on 22 November 2022).
  37. Ogata, K. Modern Control Engineering, 5th ed.; Pearson: New Jersey, NJ, USA, 2010; ISBN 0-13-615673-8. [Google Scholar]
  38. Maestre, I.R.; Cubillas, P.R.; Pérez-Lombard, L. Transient heat conduction in multi-layer walls: An efficient strategy for Laplace’s method. Energy Build. 2010, 42, 541–546. [Google Scholar] [CrossRef]
  39. Ouyang, K.; Haghighat, F. A procedure for calculating thermal response factors of multi-layer walls-State space method. Build. Environ. 1991, 26, 173–177. [Google Scholar] [CrossRef]
  40. Zhang, C.; Ding, G. A stable series expansion method for calculating thermal response factors of multi-layer walls. Build. Environ. 2003, 38, 699–705. [Google Scholar] [CrossRef]
  41. Hittle, D.C.; Bishop, R. An improved root-finding procedure for use in calculating transient heat flow through multilayered slabs. Int. J. Heat Mass Transf. 1983, 26, 1685–1693. [Google Scholar] [CrossRef]
  42. Brent, R.P. An algorithm with guaranteed convergence for finding a zero of a function. Comput. J. 1971, 14, 422–425. [Google Scholar] [CrossRef]
  43. US Department of Energy. EnergyPlus Engineering Reference: The Reference to EnergyPlus Calculations. U.S. Dep. Energy. 2019; pp. 1–847. Available online: https://catalog.loc.gov/vwebv/search?searchCode=LCCN&searchArg=33029634&searchType=1&permalink=y (accessed on 18 May 2023).
  44. Klein, S.A.; Beckman, W.A.; Mitchell, J.W.; Duffie, J.A. TRNSYS 18 Mathematical Reference; Trnsys 18.; Solar Energy Laboratory, University of Wisconsin-Madisonand Thermal Energy System Specialists, LLC: Madison, WI, USA, 2019; pp. 1–705. [Google Scholar]
  45. The Weather Company Weather Underground. Available online: https://www.wunderground.com/ (accessed on 18 September 2022).
Figure 1. Multilayer wall.
Figure 1. Multilayer wall.
Energies 16 04277 g001
Figure 2. Boundary conditions.
Figure 2. Boundary conditions.
Energies 16 04277 g002
Figure 3. Comparison of surface heat flux for (a) heavyweight wall element and (b) lightweight wall element for Δt = 1 h.
Figure 3. Comparison of surface heat flux for (a) heavyweight wall element and (b) lightweight wall element for Δt = 1 h.
Energies 16 04277 g003
Figure 4. Comparison of surface heat flux for (a) heavyweight wall element and (b) lightweight wall element for Δt = 0.5 h.
Figure 4. Comparison of surface heat flux for (a) heavyweight wall element and (b) lightweight wall element for Δt = 0.5 h.
Energies 16 04277 g004aEnergies 16 04277 g004b
Figure 5. Comparison of surface heat flux for (a) heavyweight wall element and (b) lightweight wall element for Δt = 0.25 h.
Figure 5. Comparison of surface heat flux for (a) heavyweight wall element and (b) lightweight wall element for Δt = 0.25 h.
Energies 16 04277 g005
Figure 6. Comparison of surface heat flux for (a) heavyweight wall element and (b) lightweight wall element for Δt = 0.1 h.
Figure 6. Comparison of surface heat flux for (a) heavyweight wall element and (b) lightweight wall element for Δt = 0.1 h.
Energies 16 04277 g006
Figure 7. Total energy consumption for the period of one month for lightweight and heavyweight wall element for (a) 1 h time step, (b) 0.5 h time step, (c) 0.25 h time step and (d) 0.1 h time step.
Figure 7. Total energy consumption for the period of one month for lightweight and heavyweight wall element for (a) 1 h time step, (b) 0.5 h time step, (c) 0.25 h time step and (d) 0.1 h time step.
Energies 16 04277 g007aEnergies 16 04277 g007b
Figure 8. Algorithm mean computation time.
Figure 8. Algorithm mean computation time.
Energies 16 04277 g008
Table 1. Comparison of different methods from the literature.
Table 1. Comparison of different methods from the literature.
ReferenceMethodTime Step SizeMain Problem
[8]EN ISO 52016-1 hourly method1 hHourly assumption leads to non-negligible inaccuracy in the calculated energy consumption
[6]Finite element method (FEM)Not specifiedHigher computational time
[9]GIS technologyNot specifiedToo many specific data are needed and too much equipment per building
[10]Comparison of different simulation softwareNot specifiedLarge computer memory and processing or computation time for more accurate results of building energy demand in real time
[11]CTF0.5–1 hTermination due to CTF calculation instability
[15]CTF0.25 and 1 hInstability for smaller step sizes
[16]Recurrent neural network via the Multi-Input Multi-Output strategy24 and 168 hGaps between predicted and actual energy use at the peak and base load times are significant
[17]CTF0.02–1 hProblems for short-term analysis for heavyweight building elements
[18]DesignBuilder/EnergyPlus0.25–1 hHuge computation time, complexity of the model implementation
[19]CTF0.1–1 hUsing a 60 min time step could underestimate the peak load up to 70%
Table 2. Characteristics of the heavyweight building wall element.
Table 2. Characteristics of the heavyweight building wall element.
Descriptiondλcpρ
(cm)(W/(m K))(J/(kg K))(kg/m3)
Interior stucco21.010001800
Heavyweight concrete202.610002500
Mineral wool160.0351030100
Exterior stucco10.910001800
U-value: 0.21370 W/(m2 K)
Table 3. Characteristics of the lightweight building wall element.
Table 3. Characteristics of the lightweight building wall element.
Descriptiondλcpρ
(cm)(W/(m K))(J/(kg K))(kg/m3)
Gypsum sheathing board2.50.25900900
Mineral wool50.032103010
Oriented strand board (OSB)1.50.131700650
Mineral wool160.032103010
Gypsum sheathing board1.30.25900900
Polystyrene100.042126030
U-value: 0.10857 W/(m2 K)
Table 4. Steady-state heat transfer for heavyweight wall element.
Table 4. Steady-state heat transfer for heavyweight wall element.
Time StepState-SpaceEnergyPlusLaplaceTRNSYS
X / Φ a / d
1 h0.213790.213710.213700.21371
0.5 h0.213780.213570.213700.21356
0.25 h0.213790.162640.213700.18437
0.1 h0.213725.195080.19196843.73377
Y / Φ b / d
1 h0.213790.213700.213700.21370
0.5 h0.213790.213700.213700.21370
0.25 h0.213790.213760.213700.21385
0.1 h0.213790.203230.212500.15343
Z / Φ c / d
1 h0.213790.213710.213700.21367
0.5 h0.213780.216380.213700.21326
0.25 h0.213790.259760.213700.32998
0.1 h0.2137314.491520.19549364.89093
Table 5. Steady-state heat transfer for lightweight wall element.
Table 5. Steady-state heat transfer for lightweight wall element.
Time StepState-SpaceEnergyPlusLaplaceTRNSYS
X / Φ a / d
1 h0.108030.107350.108570.10857
0.5 h0.108030.107340.108570.10856
0.25 h0.108030.107300.108570.10851
0.1 h0.108030.101560.108570.11196
Y / Φ b / d
1 h0.108030.107350.108570.10857
0.5 h0.108030.107360.108570.10857
0.25 h0.108030.107360.108570.10857
0.1 h0.108030.107230.108570.10796
Z / Φ c / d
1 h0.108030.107360.108570.10857
0.5 h0.108030.107360.108570.10834
0.25 h0.108030.110200.108570.10744
0.1 h0.108030.143060.108570.33648
Table 6. Algorithm computation time for each method.
Table 6. Algorithm computation time for each method.
MethodComputation Time (s)
Time Step1 h0.5 h0.25 h0.1 h0.05 h
FDM1.2912.3604.28910.18320.058
State-Space1.2962.0103.4547.90515.393
Laplace3.0653.5814.6188.28214.852
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Gaši, M.; Milovanović, B.; Grozdek, M.; Bagarić, M. Laplace and State-Space Methods for Calculating the Heat Losses in Case of Heavyweight Building Elements and Short Sampling Times. Energies 2023, 16, 4277. https://doi.org/10.3390/en16114277

AMA Style

Gaši M, Milovanović B, Grozdek M, Bagarić M. Laplace and State-Space Methods for Calculating the Heat Losses in Case of Heavyweight Building Elements and Short Sampling Times. Energies. 2023; 16(11):4277. https://doi.org/10.3390/en16114277

Chicago/Turabian Style

Gaši, Mergim, Bojan Milovanović, Marino Grozdek, and Marina Bagarić. 2023. "Laplace and State-Space Methods for Calculating the Heat Losses in Case of Heavyweight Building Elements and Short Sampling Times" Energies 16, no. 11: 4277. https://doi.org/10.3390/en16114277

APA Style

Gaši, M., Milovanović, B., Grozdek, M., & Bagarić, M. (2023). Laplace and State-Space Methods for Calculating the Heat Losses in Case of Heavyweight Building Elements and Short Sampling Times. Energies, 16(11), 4277. https://doi.org/10.3390/en16114277

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop