Next Article in Journal
Study on Summer Overheating of Residential Buildings in the Severe Cold Region of China in View of Climate Change
Next Article in Special Issue
Experimental Performance and Cost-Effectiveness of a Combined Heating System under Saharan Climate
Previous Article in Journal
Investigation on the Influence of Active Underpinning Process on Bridge Substructures during Shield Tunnelling: Numerical Simulation and Field Monitoring
Previous Article in Special Issue
The Potential of Using Passive Cooling Roof Techniques to Improve Thermal Performance and Energy Efficiency of Residential Buildings in Hot Arid Regions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

New Method for Solving the Inverse Thermal Conduction Problem (θ-Scheme Combined with CG Method under Strong Wolfe Line Search)

by
Rachid Djeffal
1,
Djemoui Lalmi
2,*,
Sidi Mohammed El Amine Bekkouche
1,
Tahar Bechouat
3 and
Zohir Younsi
4,5
1
Unité de Recherche Appliquée en Energies Renouvelables, URAER, Centre de Développement des Energies Renouvelables, CDER, Ghardaïa 47133, Algeria
2
Research Laboratory Materials, Energy Systems Technology and Environment (MESTEL), Université de Ghardaia, Rue de l’aeroport Noumerate, Ghardaia 47000, Algeria
3
Department of Mathematics and Informatics, Faculty of Science and Technology, Mohammed Cherif Messaadia University, Souk Ahras 41000, Algeria
4
FUPL, Hautes Etudes d’Ingénieur (HEI), LGCgE (EA 4515), Rue de Toul, F-59000 Lille, France
5
Laboratoire Génie Civil & Geo-Environnement LGCgE-EA 4515, University of Artois, Technoparc Futura, F-62400 Béthune, France
*
Author to whom correspondence should be addressed.
Buildings 2023, 13(1), 243; https://doi.org/10.3390/buildings13010243
Submission received: 30 November 2022 / Revised: 2 January 2023 / Accepted: 13 January 2023 / Published: 15 January 2023
(This article belongs to the Special Issue Computational Fluid Dynamics Modeling for Smart Buildings Design)

Abstract

:
Most thermal researchers have solved thermal conduction problems (inverse or direct) using several different methods. These include the usual discretization methods, conventional and special estimation methods, in addition to simple synchronous gradient methods such as finite elements, including finite and special quantitative methods. Quantities found through the finite difference methods, i.e., explicit, implicit or Crank–Nicolson scheme method, have also been adopted. These methods offer many disadvantages, depending on the different cases; when the solutions converge, limited range stability conditions. Accordingly, in this paper, a new general outline of the thermal conduction phenomenon, called (θ-scheme), as well as a gradient conjugate method that includes strong Wolfe conditions has been used. This approach is the most useful, both because of its accuracy (16 decimal points of importance) and the speed of its solutions and convergence; by addressing unfavorable adverse problems and stability conditions, it can also have wide applications. In this paper, we applied two approaches for the control of the boundary conditions: constant and variable. The θ-scheme method has rarely been used in the thermal field, though it is unconditionally more stable for θ∈ [0.5, 1]. The simulation was carried out using Matlab software.

1. Introduction

In order to model a mathematical system that can solve a direct problem, it is necessary to look for factors that control the response of the system to several basic and necessary conditions. The latter are generally represented through: (1) The considered field engineering; (2) The equations that govern this area; (3) All temporal and spatial conditions that govern the area; (4) Properties of materials; and finally, (5) The sources that control and function in the field of study. At some times, one or more of the previous data that are necessary to solve the above direct problem are completely or partially absent. Thus, one can look for the missing data, and then should move to solving the reverse problem according to the theoretical data or find an analogous way to uncover the information related to the system’s responses [1]. Generally, inverse problems are known problems that are more difficult to solve compared to direct problems; they may also suffer from the lack of an optimal selection, making them a complex problem. A lack of uniqueness and/or a lack of solutions, or an instability of the solution to small problems that are due to changes in the provided data (disturbance) can lead to major problems with solutions [2].
To solve the problem of heat transfer through walls, Layal-Chahwane and al [3] presented an inverse method that estimated their thermal properties by adopting the limited difference method through the simspark environment program [4]. A good agreement was found between the direct and the reverse methods [5]. Jingbo Wang and al [6] studied the problems in evaluating parameters, rebuilding thermal history (including thermal flow at the borders), and rebuilding the heat source. This work was conducted using the joint probability distribution approach to determine the status of the conditional state (on the data) of unknown quantities by multiplying the previous probability and distribution functions. Bayesian hierarchical models were introduced to simplify earlier assumptions about the unknown quantities. The presented methods are general and applied for a number of inverse engineering problems.
A.S.A. Alghamdi [7] investigated the heat flow at the boundary; the inverse method of the heat conduction model was used by developing a direct and inverse mathematical model of a flat-panel probe that was subjected to time-dependent heat flow at one end while keeping the other side isolated. In this paper, the inverse algorithm that used the Levenberg–Marquardt method was applied. Thus, a satisfactory solution was found between the measured and estimated features of heat flow. The experiments were undertaken at the University of Ohio [8].
Solving “direct problems” allows the stimulation of physical phenomena in modeling, and if the phenomenon is governed by partial differential equations, different digital techniques can be used [9]. The most famous elements are finite, and finite differences are one of the most recent methods of boundary elements [10]. This considers that, depending on the endowment encountered in each process, many industrial studies require a solution to “inverse problems” and not a solution to “direct problems” [11]. This applies, for instance, to determining temperatures or contour flows according to internal measurements of the body, such as ovens and space missions [12].The main advantage of using inverse methods depends on various applications for problems that cannot be solved using other traditional methods. These include, for example, space shuttles, phase change materials, and thermal ovens.
Since it is widely known that many inverse problems in the physical sciences are ill-posed in the sense that the solution loses stability with respect to data perturbations and even minor perturbations of data can change the solution drastically. Generally, these types of perturbations come from measuring, rounding errors, and observation. Thus, the numerical solutions of these inverse problems are extremely susceptible to perturbations due to the poor posing of these problems [13]. For this reason, we’re interested in considering the problem of heat transfer with noisy data. Therefore, the direct numerical approaches are not applicable to computing an appropriate solution for this type of problem. Regularization procedures should be used to solve an ill-posed problem with noisy data.
To extract valuable and relevant information from the model presented by heat transfer, the numerical solution to these problems necessitates the application of discretization strategies. This can be achieved in one of two ways: regularization-discretization (RD) or discretization-regularization (DR). In this paper, we will adopt the second strategy. In general, discretization methods treat linear or nonlinear ill-posed problems by transforming these problems into finite-dimensional systems. This discretization gives rise to ill-conditioned linear or nonlinear systems of algebraic equations. In most situations, the obtained systems must be regularized to compute the best approximation solution available [14].
The conjugate gradient method is known as one of the most powerful methods for the optimization of both linear and non-linear algebraic systems. For this reason, the conjugate gradient method is considered a regularized strategy for solving difficult linear or non-linear algebraic systems.
The explicit and implicit methods, as we all know, are strong tools for solving numerical approximations to the solutions of time-dependent ordinary and partial differential equations. These numerical methods are considered one of the most famous approximate methods for solving well-posed problems because of their ease of application.
In this work, the discretization method is a θ-scheme method, which is a combination of the previous methods. We then apply the conjugate gradient method as a strategy of regularization.
Our contribution adopted solutions for the problem of inverse thermal conductivity in a new, interesting, and accurate way (16 significant decimal digits) called (θ-scheme), paired with a gradient correlated with strong Wolfe conditions, using (θ∈[0.5, 1]). On the other hand, most thermal researchers used simple graphs to estimate the value (explicit θ = 0, implicit θ = 1 and Crank–Nicolson θ = 0.5), with a simple conjugate gradient, and these return several defects (stability and convergence state, limited application, etc.). Adding to the current contribution, both approaches were used to control boundary conditions: the inverse method, and fixed conditions where one capture was used. In the second approach, multiple pickups were used. Two pickups were selected: one on the hot side and the other on the cold side. Suggestions related to these terms are based on real data collected by our research team members, affiliated to AERMASA_URAER. Ghardaia carried out on an experimental platform that was implemented in the District buildings.

2. The Mathematical Procedure

In this paper, the work proposed addresses the heat transfer in a wall built from stone, which is purely conductive and unidirectional as well as adiabatic at the top and the bottom side (isolate), as shown in Figure 1a. With the objective of controlling the boundary conditions of the wall, the study adopted two approaches: the first approach uses the constant conditions and the second one uses the real conditions [15]. These conditions are not chosen arbitrarily but are based on the real data drawn from several experiments on a dwelling house of a functional nature within the Applied Research Unit for Renewable Energies (URAER), Ghardaïa, Figure 1b [16]. Figure 2a,b show the inside and outside temperature evolution in the study house for 29 June 2007 and 15 July 2007.It can be seen the temperature can be exceed 40 °C and also the the comparison between the outside temperature the calculation is satisfactory.

2.1. Validation of the Procedure

In this validation, the evolution of temperatures was compared in a wall made of hard stone, determined by both direct and inverse methods, after the third iteration. The obtained results are almost identical, Figure 3.

2.2. Direct Procedure

To solve a direct problem in a mathematical system, it is necessary to look for the factors that control the system’s response to several basic and necessary conditions. The latter are generally represented by: (1) the geometry of the land considered. (2) The equations that govern this domain. (3) All the governing spatial-temporal conditions. (4) Properties of materials and finally the sources that control and work in the field of study.
The problem treated in this study deals essentially with an unsteady thermal conduction, which is governed by the following unidirectional partial differential equation:
k 2 T x 2 + f 0 = ρ C p T t    
where 0 x e and f 0 a heat sources.
In association with the previous equation, the examined wall is subject to the following boundary and initial conditions:
{ T ( x , t ) = T 0     o r k T x = q ( x , t )   a t   x = 0   T ( x , t ) = T e       a t   x = e T ( x , t ) = F ( x )       f o r   t = 0
Figure 4 shows the physical representation of the problem under consideration. The stone wall was 0.4 m thick. Initially, the ambient temperature was 20 °C. The supposed boundaries conditions are located at x = 0 m, where the hot temperature Tc = T0 = 40 °C, and at x = 0.4 m, the wall was maintained at room temperature Tf = Te = 25 °C.
The thermos-physical properties of the stone used are [18]: ρ = 2000   k g m 3 , C p = 1000   j k g 1 k 1 and k = 2.3   w m 1 k 1 .
To determine the temperature evolution in the wall with the direct method, three different schemes were adopted: explicit, implicit and the theta scheme.

2.3. Explicit Form

One can discretize Equation (1) to determine the evolution of temperature T (t, x) in the explicit form of the finite differences according to Figure 5, using the following approximation: T t T i n + 1 T i n Δ t and 2 T   x 2 T i + 1 n 2 T i n + T i 1 n Δ x 2 .
The discretization equation can be written in the following form:
T i n + 1 = D T i + 1 n + ( 1 2 D ) T i n + D T i 1 n
where n = 0 , 1 , 2 ,   ,   M   a n d   i = 1 , 2 ,   ,   N , D = α Δ t Δ x 2 and α = k ρ C p .
Equation (2) is the explicit form obtained using the finite differences method discretization. This form is stable when ( 1 2 D ) 0 . After the introduction of the boundary conditions, this equation can be written in matrix form as follows:
T n + 1 = A T n + B    
where A = [ γ D 0 0 D γ D 0 D γ D 0 D γ D 0 0 D γ ] , B = [ D T 0 0 0 D T e ] and γ = 1 2 D .
The calculation starts with n = 0 . So, we calculate T i 1   f o r   i = 1 ,   ,   N through Equation (2). In this step, the instantaneous temperature is calculated based on the initial temperature and the boundary conditions.
For the second step, we use n = 1   and calculate T i 2   f o r   i = 1 ,   ,   N using the temperatures calculated in the previous step.
This operation is repeated for each time step, until reaching a thermally steady state defined by an invariant temperature profile (Figure 6). Figure 7 shows the obtained absolute error using the finite difference method.

2.4. Implicit Form

To resolve the direct problem, the implicit centered finite difference method was used to discretize the latter Equation (1), (Figure 8).
Using backward difference in time and second-order central difference of the space derivative, we obtain the implicit scheme as shown below:
T i n + 1 T i n Δ t = α T i + 1 n + 1 2 T i n + 1 + T i 1 n + 1 Δ x 2
After reorganization, we find
D T i + 1 n + 1 + ( 1 + 2 D ) T i n + 1 D T i 1 n + 1 = 0
where: n = 0 , 1 , 2 ,   ,   M   a n d   i = 1 , 2 ,   ,   N ;   D = α Δ t Δ x 2 and α = k ρ C p
The implicit scheme is unconditionally stable, so we can choose d t and d x independently. After introduction of the boundary conditions, Equation (4) can be written in the following matrix form:
A T n + 1 = B
with
A = [ γ D 0 0 D γ D 0 D γ D 0 D γ D 0 0 D γ ] ,   B = [ T 1 n + D T 0 T 2 n T N 1 n T N n + D T e ]
and
γ = 1 + 2 D
To determine the temperature evolution in the wall using the implicit method, it is necessary to solve the algebraic system obtained by Equation (5). In this study, we have adopted the Thomas algorithm (tri-diagonal matrix algorithm) [18,19,20]. The obtained results are plotted in Figure 9 at different times. The absolute error was plotted in Figure 10. It can be seen that the implicit form of the finite difference method exhibited faster convergence than the explicit form.

2.5. Crank–Nicolson Form

The Crank–Nicolson method is a special case of the so-called θ-scheme ( θ = 0.5 ) , which can be briefly defined as an implicit and unconditionally stable approximation (Figure 11). It considers the second order in time and space [21,22].
1 α T i n + 1 T i n Δ t = 1 Δ x 2 [ θ ( T i 1 n 2 T i n + T i + 1 n ) + ( 1 θ ) ( T i 1 n + 1 2 T i n + 1 + T i + 1 n + 1 ) ]
After rearrangement and setting θ = 0.5 , we find:
D T i + 1 n + 1 + ( 1 + 2 D ) T i n + 1 D T i 1 n + 1 = D T i + 1 n + ( 1 2 D ) T i n + D T i 1 n
where n , i , α and D are n = 0 , 1 , 2 ,   ,   M ,   i = 1 , 2 ,   ,   N , D = 2 α Δ t Δ x 2 , α = k ρ C p .
After boundary conditions are introduced, Equation (6) can be written in the following algebraic equations system, and Equation (7) in matrix form:
A T n + 1 = B T n + C
where A = [ γ A D 0 0 D γ A D 0 D γ A D 0 D γ A D 0 0 D γ A ] ,   B = [ γ B D 0 0 D γ B D 0 D γ B D 0 D γ B D 0 0 D γ B ] , C = [ 2 D T 0 0 0 2 D T e ] , γ A = 1 + 2 D and γ B = 1 2 D .
Figure 12 and Figure 13 show the temperature evolution and absolute error using the Crank–Nicolson form of the finite difference method. It can be seen that the three methods seem stable, but the stability of the explicit method is present at a well-defined interval [0, 0.5]. On the other hand, the two other methods (implicit and Crank–Nicolson) are unconditionally stable. On the convergence side, the Crank–Nicolson method is the fastest convergence method (after 145 iterations) and the implicit method (after 150 iterations), but the explicit method converges only after 300 iterations (Table 1).

2.6. Inverse Procedure of θ-Scheme

Inverse problems in general are known problems that have been poorly posed and are more difficult to solve compared to direct problems. In case one or more of the previous data required to solve the direct problem mentioned above are totally or partially missing, and we are looking for the missing data return, then we need to tackle the reverse problem to solve it according to the method used to find the information (theoretical or analogous) linked to the responses of this system. The lack of an optimal selection for a bad problem, either as a lack of uniqueness and/or solutions, or when the instability of the solution to small problems of change in the presented data (disturbance) lead to major issues with the solutions.
  • Approach 1.
The unknown boundary conditions are constant, Figure 14;
k 2 T x 2 = ρ C p T t ,   f o r   0 < x < e ,   t > 0
with
{ T ( 0 , t ) = T 0 = ? ,   x = 0 ,   t > 0 ,   u n k n o w n   b o u n d a r y T ( e , t ) = T e = ? ,   x = e ,   t > 0 ,   u n k n o w n   b o u n d a r y T ( x , 0 ) = F ( x ) ,   0 < x < e ,   t = 0 ,   i n t i a l   c o n d i t i o n
The use of the θ-scheme leads to the following relations:
{ ( 1 + 2 D θ ) T 1 n + 1 D θ T 2 n + 1 = ( 1 2 D ( 1 θ ) ) T 1 n + D ( 1 θ ) T 2 n + D T 0 D θ T i 1 n + 1 ( 1 + 2 D θ ) T 1 n + 1 D θ T i + 1 n + 1 = D ( 1 θ ) T i 1 n ( 1 2 D ( 1 θ ) ) T 1 n + D ( 1 θ ) T i + 1 n f o r   i = 2 , , N 1 D θ T N 1 n + 1 + ( 1 + 2 D θ ) T N n + 1 = D ( 1 θ ) T N 1 n ( 1 2 D ( 1 θ ) ) T N n + D T e
where D = k Δ t ρ C Δ x 2 .
We note that:
  • For θ = 0, the θ-scheme (8) gives the explicit scheme.
  • For θ = 1, the θ-scheme (8) leads to the implicit scheme.
  • If θ = 0.5, the θ-scheme (14) gives the Crank–Nicolson scheme.
The θ-scheme (8) is unconditionally stable for θ ∈ [0.5, 1], and it can be written in matrix form as follows:
A θ T n + 1 = B θ T n + Y
The relation thus gives the solution sought:
T n + 1 = C θ T n + A θ 1 Y
where C θ = A θ 1 B θ .
The solution of the conduction problem (10) with unknown boundary conditions T 0 and T e is an inverse heat conduction problem. The objective of this method is to find the boundary conditions T 0 and T e which allow the reproduction of the temperature evolution   T j m e s = ( T j 1 , m , T j 2 , m , , T j M , m ) T to be determined experimentally at the location of coordinates x j .
The solution of this inverse heat conduction problem for estimating the vector Q = ( T 0 , T e ) T is based on the minimization of the least-squares norm:
J ( Q ) = T j m e s T j 2 = i = 1 M ( T j i , m T j i ) 2
where T j = ( k = 1 N C j , k T k n 1 + A j , 1 1 D T 0 + A j , N 1 D T e ) T   n = 1 , , M ;   T j m e s = ( T j 1 , m , T j 2 , m , , T j M , m ) T .
So, to recover the vector Q , we solve the following optimization problem:
min Q 2 J ( Q )       w h e r e     J ( Q ) :   2
Many mathematical methods are adopted to solve minimization problems (12). The conjugate gradient (CG) method is one of the optimization methods often used in applied works such as the optimization problem (12). It is noted that J is a smooth nonlinear function, and its gradient is denoted by g ( Q ) = J ( Q ) .
To solve (12), the conjugate gradient method uses the following iterative formula:
Q k + 1 = Q k + α k × d k               k = 1 ,   2 ,  
where Q k is the current iteration point and α k > 0 is the step size obtained by some line search method, and d k is the search direction defined by:
d k = { g k                                                                         k = 1 g k + β k × d k 1                       k 2  
where β k is a scalar and g k = g ( Q k ) .
One of the most common and popular approaches of the inaccurate online research technique is the so-called Wolfe line search.
The strong Wolfe line search introduced two conditions as follows:
{ J ( Q k + 1 ) J ( Q k ) + c 1 α k g k T d k | g k + 1 T d k | c 2 g k T d k                         0 < c 1 ,   c 2 < 1
Different formulas for the coefficient β k determine different conjugate gradient (CG) methods. In [3,4], the coefficient β k = β k P R P is given by:
β k P R P = g k T ( g k g k 1 ) g k 1 2
Generally, the problem of finding the best approximate solution to the inverse problem (7) is ill-posed because even minor perturbations of data can change the solution drastically and therefore the problem of finding the best solution is an unstable solution. The question is how to find a stable solution? The answer is simple: it depends on its regularization. To regularize an ill-posed problem, one needs to replace it with another approximate problem that is well posed so that the error made is offset by the gain in stability.
For the inverse ill-posed problems and to compensate for the information on the boundary conditions T 0   a n d   T e , we assume that the temperatures T j m e s , δ = ( T j 1 , m + δ 1 , T j 2 , m + δ 2 , , T j M , m + δ m ) T are given at an interior point x j with the addition of measurement noise δ = ( δ 1 , δ 2 , , δ m ) T . In this case, the following optimization problem is solved as follows:
min Q 2 J ^ ( Q )       w h e r e     J ^ ( Q ) :   2
with
{ J ^ ( Q ) = T j m e s , δ T j 2 2 = i = 1 M ( ( T j i , m + δ i ) T j i ) 2 T j m e s , δ = T j m e s + δ × r a n d n ( s i z e ( T j m e s ) )
Observation: in our case the matrix is reversible and well placed.
The results grouped in Table 2 present and prove the reliability of this regular inverse method for the given problems, especially alongside unknown thermal problems (undetermined conditions).
Table 3 presents the results of a test for comparison with the reverse method (method applied to a wall with two sides, one hot and the other cold). These obtained results indicate the speed of the method used in the resolution; wich parformed with great precision.
In Figure 15a–e, it can be observed that the estimated graphs of the θ-scheme method converge and tend to move to the exact solution quickly, which clearly proves the power of this new θ-scheme method at different values of θ and different time steps. Note that the graphs of the exact solutions are identical to the inverse solutions. Therefore, the usefulness of this method easily converges to precise and stable solutions following the second or the third iteration in the interval [0.5, 1]. Meanwhile, in Figure 15f, we note that the scheme is unstable since we enter the interval of the explicit scheme (] 0, 0.5 [); the latter is conditionally stable.
  • Approach 2.
Figure 16 shows the unknown boundary conditions are variables:
k 2 T x 2 = ρ C p T t ,   f o r   0 < x < e ,   t > 0
with
{ T ( 0 , t ) = q c ( t ) ,   x = 0 ,   t > 0 ,   u n k n o w n   b o u n d a r y T ( e , t ) = q f ( t ) ,   x = e ,   t > 0 ,   u n k n o w n   b o u n d a r y T ( x , 0 ) = F ( x ) ,   0 < x < e ,   t = 0 ,   i n t i a l   c o n d i t i o n
Using the implicit scheme, Equation (18) leads to the following algebraic system:
{ ( 1 + 2 D ) T 1 n + 1 D T 2 n + 1 = T 1 n + D q c n + 1 D T i 1 n + 1 + ( 1 + 2 D ) T i n + 1 D T i + 1 n + 1 = T i n D T N 1 n + 1 + ( 1 + 2 D ) T N n + 1 = T N n + D q f n + 1   f o r     i = 2 , , N 1
where D = k Δ t ρ C p Δ x 2 n = 1 , , M 1 .
The matrix form of the system (19) is given by the relation:
A T n + 1 = T n + D Y n + 1                                                              
The matrix form (20) can be written as:
T n + 1 = B T n + D B Y n + 1
with
B = A 1
The solution of the heat conduction problem (18) with the unknown boundary conditions q c and q f is an inverse heat conduction problem. To compensate for the information on the boundary conditions q c and q f , we assume that the temperatures T j m e s = ( T j 1 , m , T j 2 , m , , T j M , m ) T are given at l interior points x j ,   j = 1 , , l .
The solution of this inverse heat conduction problem for the estimation of the vectors Q c = ( q c 1 , q c 2 , , q c M ) T and Q f = ( q f 1 , q f 2 , , q f M ) T is based on the minimization of the least-squares norm:
J ( Q c , Q f ) = j = 1 l T j m e s T j 2 = j = 1 l i = 1 M ( T j i , m T j i ) 2
where T j n + 1 = k = 1 N B j , k T k n + ( D × B ) j , 1 q c n + 1 + ( D × B ) j , N q c f n + 1 T j m e s = ( T j 1 , T j 2 , , T j M ) T   j = 1 , , l .
So, to recover the vector Q = ( Q c , Q f ) T = ( q c 1 , q c 2 , , q c M , q f 1 , q f 2 , , q f M ) T , we solve the following optimization problem:
min Q 2 M J ( Q )       w h e r e   J ( Q ) :   2 M
To solve the optimization problem (22), we use the conjugate gradient method defined by (13), (14), (15), and (16) in Approach 1.
To calculate the gradient of J ( Q ) given in (21), we use k = 1 , 2 , , 2 M to find the relation:
q k J ( Q ) = q k j = 1 l i = 1 M ( T j i , m T j i ( Q ) ) 2 = j = 1 l i = 1 M 2 q k T j i ( Q ) ( T j i , m T j i ( Q ) )
where Q = ( q c 1 , q c 2 , , q c M , q f 1 , q f 2 , , q f M ) T = ( q 1 , q 2 , , q M , q M + 1 , q M + 2 , q 2 M ) T . By simple calculation, we have the first derivative q k T j i ( Q ) of T j i ( q 1 , q 2 , , q 2 M ) for all k = 1,…, 2M,
q k J ( Q ) = { j = 1 l i = 1 M 2 C j ( k , i ) ( T j i , m T j i ( Q ) ) if k = 1 , 2 , , M j = 1 l i = 1 M 2 E j ( k , i ) ( T j i , m T j i ( Q ) ) if k = M + 1 , , 2 M
where C j = D × ( B j 1 0 0 ( B 2 ) j 1 B j 1 0 ( B M ) j 1 ( B 2 ) j 1 B j 1 ) and E j = D × ( B j N 0 0 ( B 2 ) j N B j N 0 ( B M ) j N ( B 2 ) j N B j N )
Therefore, the gradient of the function J ( Q ) is given by
J ( Q ) = ( q 1 J ( Q ) , q 2 J ( Q ) , , q M J ( Q ) , , q 2 M J ( Q ) ) T

Numerical Results

All computations were carried out in Matlab with about 16 significant decimal digits.
In these examples, we chose:
ε = 10 2 ; Q 1 = m × ( 1 , 1 , , 1 ) T m = 1 , 2 , ; c 1 = 10 3 , c 2 = 10 4   a n d   l = 2 .
  • Example:
In this example, let
ρ = 2000 ; c = 1000 ; λ = 2.3 ; L = 0.4 a n d t f i n a l = 12,000 T ( x , 0 ) = F ( x ) = 20 ; r 1 = 5 , r 2 = 45 , N = 50 ; M = 40 .
And let
q c ( t ) = { 25 / 12,000 × t + 35 i f 0 < t 4800 12.5 / 12,000 × t + 50 i f 4800 < t 9600 40 i f 9600 < t 12,000 q f ( t ) = { 15 / 12,000 × t + 35 i f 0 < t 2400 25 i f 2400 < t 9600 15 / 12,000 × t + 35 i f 9600 < t 12,000
Figure 17 and Figure 18 show that the perturbations exist only in the beginning and at the end of the graphs. Despite the boundary conditions, they are variable. All this demonstrates the reliability and the power of convergence of this method. We can also see that the graphs are similar for exact solutions and estimation.
The new method is illustrated by the following algorithm, Figure 19:

3. Conclusions

The use of the new method (θ-scheme combined with CG method under strong Wolfe line search) in thermal phenomena offers several advantages and a wide scope of applications. It solves many complex problems that cannot be addressed by conventional methods. The method offers extraordinary details (up to 16 digits after the decimal point), and convergence of faster solutions.
In the case of perturbed data, the direct resolution of the θ-scheme will be unstable, therefore this scheme must be regularized.
The conjugate gradient method is a well-known method to alleviate instability by replacing the θ-scheme with an approximate well-posed problem. That is to say, the approximate solution of the θ-scheme is defined as the unique minimizer of the least-squares problem.
The method adopted in this study is therefore a combination of two methods, one for approximation and the other for regularizing the solution.
This procedure can be used to solve direct or inverse problems with total stability of the solutions, especially in the interval θ∈]0.5, 1[. The combination of the scheme and the gradient combined with the strong Wolfe conditions give better solutions within a short time period.
The results of the solution of inverse thermal conduction problems by the scheme technique combined with the conjugate gradient and strong Wolfe conditions compared to the solution of the direct problem of the same stick provide good accuracy and convergence with fast stability and consistent graphics.
The results show that this procedure gives good solutions, namely the constant and/or variable boundary conditions.
The previous results clearly demonstrate the efficacy and reliability of this technique in solving these types of problems. Using this technique, time and space are independent of each other. And above all, this method makes it possible to identify and estimate parameters with high precision in very difficult places, such as the initial properties of materials in the middle of high-temperature ovens or in the middle of freezers. It can also be helpful for surfaces that are difficult to measure, such as in health problems (diseases), free surfaces, parameters in movable surfaces and volumes, and two- and three-phase phenomena (such as smart materials and phase change materials). It also allows for tracking fine trajectories, such as viruses, celestial galaxies, satellite accidents, and climate changes, in addition to predictions and micron distance parameters such as nano, etc.

Author Contributions

Methodology, S.M.E.A.B.; Software, T.B.; Validation, Z.Y.; Data curation, R.D.; Writing—original draft, D.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

θ:real number
T:temperature (°C)
t:temps (s)
x:distance (m)
t:time step
x:location step
e or L:wall thickness (m)
n:time index
k:thermal conductivity (w/(m*k))
ρ:volumic mass (kg/m3)
Cp:specific heat (J/(kg*K))
α:thermal diffusivity (m2/s)
T c , q c :hot side temperature (°C)
T f , q f :cold side temperature (°C)
CG:gradient conjugate

References

  1. Belgherras, S.; Bekkouche, S.M.A.; Benamrane, N. Prospective analysis of the energy efficiency in a farm studio under Saharan weather conditions. Energy Build. 2017, 145, 342–353. [Google Scholar] [CrossRef]
  2. Lalmi, D.; Benseddik, A.; Bensaha, H.; Bouzaher, M.T.; Arrif, T.; Guermoui, M.; Rabehi, A. Evaluation and estimation of the inside greenhouse temperature, numerical study with thermal and optical aspect. Int. J. Ambient. Energy 2019, 42, 1269–1280. [Google Scholar] [CrossRef]
  3. Bekkouche, S.; Benouaz, T.; Hamdani, M.; Cherier, M.; Yaiche, M.; Benamrane, N. Judicious choice of the building compactness to improve thermo-aeraulic comfort in hot climate. J. Build. Eng. 2015, 1, 42–52. [Google Scholar] [CrossRef]
  4. Bekkouche, S.; Benouaz, T.; Cheknane, A. A modelling approach of thermal insulation applied to a Saharan building. Therm. Sci. 2009, 13, 233–244. [Google Scholar] [CrossRef]
  5. Carbonari, A.; Naticchia, B.; D’Orazio, M. Innovative Evaporative cooling walls, Eco-Efficient Materials for Mitigating Building Cooling Needs. In Design, Properties and Applications; Woodhead: Cambridge, UK, 2015; pp. 215–240. Available online: http://www.sciencedirect.com/science/book/9781782423805 (accessed on 13 December 2022).
  6. Stojanovi, B.V.; Janevski, J.N.; Mitkovi, P.B.; Stojanovi, M.B.; Ignjatovi, M.G. Thermally activated building systems in context of increasing building energy efficiency. Therm. Sci. 2014, 18, 1011–1018. [Google Scholar] [CrossRef]
  7. Mohamed, Z.; Djafer, D.; Chouireb, F. New Approach to Establish a Clear Sky Global Solar Irradiance Model. Int. J. Renew. Energy Res. 2017, 7, 1454–1462. [Google Scholar]
  8. Rabehi, A.; Guermoui, M.; Lalmi, D. Hybrid models for global solar radiation prediction: A case study. Int. J. Ambient. Energy 2018, 41, 31–40. [Google Scholar] [CrossRef]
  9. Khelifi, R.; Guermoui, M.; Rabehi, A.; Lalmi, D. Multi-step-ahead forecasting of daily solar radiation components in the Saharan climate. Int. J. Ambient. Energy 2018, 41, 707–715. [Google Scholar] [CrossRef]
  10. Fang, Z.; Li, N.; Li, B.; Luo, G.; Huang, Y. The effect of building envelope insulation on cooling energy consumption in summer. Energy Build. 2014, 77, 197–205. [Google Scholar] [CrossRef]
  11. Choi, I.Y.; Cho, S.H.; Kim, J.T. Energy consumption characteristics of high-rise apartment buildings according to building shape and mixed-use development. Energy Build. 2012, 46, 123–131. [Google Scholar] [CrossRef]
  12. Castellani, B.; Morini, E.; Filipponi, M.; Nicolini, A.; Palombo, M.; Cotana, F.; Rossi, F. Clathrate Hydrates for Thermal Energy Storage in Buildings: Overview of Proper Hydrate-Forming Compounds. Sustainability 2014, 6, 6815–6829. [Google Scholar] [CrossRef] [Green Version]
  13. Venko, S.; de Ventós, D.V.; Arkar, C.; Medved, S. An experimental study of natural and mixed convection over cooled vertical room wall. Energy Build. 2014, 68, 387–395. [Google Scholar] [CrossRef]
  14. Tsikaloudaki, K.; Theodosiou, T.; Laskos, K.; Bikas, D. Assessing cooling energy performanceof windows for residential buildings in the Mediterranean zone. Energy Convers. Manag. 2012, 64, 335–343. [Google Scholar] [CrossRef]
  15. Tsikaloudaki, K.; Laskos, K.; Theodosiou, T.; Bikas, D. The energy performance of windows in Mediterranean regions. Energy Build. 2015, 92, 180–187. [Google Scholar] [CrossRef]
  16. Guermoui, M.; Abdelaziz, R.; Gairaa, K.; Djemoui, L.; Benkaciali, S. New temperature-based predicting model for global solar radiation using support vector regression. Int. J. Ambient. Energy 2019, 43, 1397–1407. [Google Scholar] [CrossRef]
  17. Djemoui, L.; Bensaha, H.; Benseddik, A.; Zarrit, R.; Guermoui, M.; Rabehi, A.; Bouzaher, M.T. Comparative study of geometrical configuration at the thermal performances of an agricultural greenhouse. E3S Web Conf. 2018, 61, 00003. [Google Scholar] [CrossRef]
  18. Tsanasa, A.; Xifarab, A. Accurate quantitative estimation of energy performance of residential buildings using statistical machine learning tools. Energy Build. 2012, 49, 560–567. [Google Scholar] [CrossRef]
  19. Lalmi, D.; Bezari, S.; Bensaha, H.; Guermouai, M.; Rabehi, A.; Abdelouahab, B.; Hadef, R. Analysis of thermal performance of an agricultural greenhouse heated by a storage system. Model. Meas. Control B 2018, 87, 15–20. [Google Scholar] [CrossRef]
  20. Lü, X.; Lu, T.; Kibert, C.J. Martti Viljanen a Modeling and forecasting energy consumption for heterogeneous buildings using a physical–statistical approach. Appl. Energy 2015, 144, 261–275. [Google Scholar] [CrossRef]
  21. Djeffal, R.; Lalmi, D.; Hebbir, N.; Bekkouche, S.M.A.; Younsi, Z. Estimation of Real Seasons in a Semi-Arid Region, Ghardaia, Case Study. Int. J. Sustain. Dev. Plan. 2021, 16, 1005–1017. [Google Scholar] [CrossRef]
  22. Djeffal, R.; Bekkouche, S.M.A.; Samai, M.; Younsi, Z.; Mihoub, R.; Benkhelifa, A. Effect of Phase Change Material eutectic plates on the electric consumption of a designed refrigeration system. Instrum. Mes. Métrologie 2020, 19, 1–8. [Google Scholar] [CrossRef] [Green Version]
Figure 1. (a) Thermocouple position in room [15,16], (b) radiometric station in Uraer [17].
Figure 1. (a) Thermocouple position in room [15,16], (b) radiometric station in Uraer [17].
Buildings 13 00243 g001
Figure 2. Real temperature evolution (experimental) (a) 29 June 2007; (b) 15 July 2007.
Figure 2. Real temperature evolution (experimental) (a) 29 June 2007; (b) 15 July 2007.
Buildings 13 00243 g002
Figure 3. Validation of the inverse and analytical method.
Figure 3. Validation of the inverse and analytical method.
Buildings 13 00243 g003
Figure 4. Boundary conditions and direct problem position.
Figure 4. Boundary conditions and direct problem position.
Buildings 13 00243 g004
Figure 5. Explicit scheme of finite differences Discretization.
Figure 5. Explicit scheme of finite differences Discretization.
Buildings 13 00243 g005
Figure 6. Temperature evolution using the explicit form of finite difference method.
Figure 6. Temperature evolution using the explicit form of finite difference method.
Buildings 13 00243 g006
Figure 7. Absolute Error using the explicit form of finite differences method.
Figure 7. Absolute Error using the explicit form of finite differences method.
Buildings 13 00243 g007
Figure 8. Implicit scheme of finite difference discretization.
Figure 8. Implicit scheme of finite difference discretization.
Buildings 13 00243 g008
Figure 9. Temperature evolution using the implicit finite difference method.
Figure 9. Temperature evolution using the implicit finite difference method.
Buildings 13 00243 g009
Figure 10. Absolute Error using the implicit form of finite differences method.
Figure 10. Absolute Error using the implicit form of finite differences method.
Buildings 13 00243 g010
Figure 11. Distribution of Nodes using the Crank–Nicolson scheme.
Figure 11. Distribution of Nodes using the Crank–Nicolson scheme.
Buildings 13 00243 g011
Figure 12. Temperatures evolution using Crank–Nicolson form of the finite difference method.
Figure 12. Temperatures evolution using Crank–Nicolson form of the finite difference method.
Buildings 13 00243 g012
Figure 13. Absolute Error using Crank–Nicolson form of the finite differences.
Figure 13. Absolute Error using Crank–Nicolson form of the finite differences.
Buildings 13 00243 g013
Figure 14. Physical representation of the inverse problem studied (Approach 1).
Figure 14. Physical representation of the inverse problem studied (Approach 1).
Buildings 13 00243 g014
Figure 15. Temperatures evolution in different cases of θ-scheme; (a) θ = 0.50; (b) θ = 0.65; (c) θ = 0.75; (d) θ = 0.85; (e) θ = 1; (f) θ = 0.40.
Figure 15. Temperatures evolution in different cases of θ-scheme; (a) θ = 0.50; (b) θ = 0.65; (c) θ = 0.75; (d) θ = 0.85; (e) θ = 1; (f) θ = 0.40.
Buildings 13 00243 g015aBuildings 13 00243 g015b
Figure 16. Boundary conditions of the inverse problems (Approach 2).
Figure 16. Boundary conditions of the inverse problems (Approach 2).
Buildings 13 00243 g016
Figure 17. Evolution of temperatures at different time steps by the implicit scheme with variable boundary conditions.
Figure 17. Evolution of temperatures at different time steps by the implicit scheme with variable boundary conditions.
Buildings 13 00243 g017
Figure 18. Temperature variations in hot and cold border temperatures.
Figure 18. Temperature variations in hot and cold border temperatures.
Buildings 13 00243 g018
Figure 19. General simplified algorithm of the main program of the inverse method.
Figure 19. General simplified algorithm of the main program of the inverse method.
Buildings 13 00243 g019
Table 1. Summary of some results for the three methods.
Table 1. Summary of some results for the three methods.
MethodsExplicit FormImplicit FormCrank–Nicolson Form
Elapsed time (s)0.6717370.5010630.567344
iteration of convergence300150145
Table 2. Summary of some results of regular inverse problems.
Table 2. Summary of some results of regular inverse problems.
EpsilonInitial
Temperature
InverseRegulated InverseInverse
Error
Regulated Inverse Error
Ε = 0.0000001T0 input4 °C40.000040.00000.00000006380.0000000166
Te input25.000025.0000−0.0000003608−0.0000001838
Ε = 0.0001T0 input10 °C40.000040.0000−0.0000000216−0.0000157
Te input25.000025.00020.00000014950.0002190
Ε = 0.001T0 input5 °C40.000039.9999−0.0000000216−0.0000924
Te input25.000024.99930.0000001495−0.0007431
Table 3. Comparison between the results of inverse problems on the hot and cold sides at different iterations.
Table 3. Comparison between the results of inverse problems on the hot and cold sides at different iterations.
Number of IterationsTemperature
Hot Inverses
Temperature
Cold Inverses
Absolute
Error
239.999956324.99989741 × 10−5 (0.0423,0.7978)
5039.999998724.99999981 × 10−5 (0.0956,−0.6285)
10040.000000125.00000031 × 10−5 (−0.0381,0.2515)
15040.000000025.00000001 × 10−6 (0.1404,−0.9407)
20040.000000025.00000001 × 10−6 (0.1423,−0.9518)
25040.000000025.00000001 × 10−5 (0.0533,−0.3558)
30040.000000025.00000001 × 10−7 (−0.1730,0.1357)
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

Djeffal, R.; Lalmi, D.; El Amine Bekkouche, S.M.; Bechouat, T.; Younsi, Z. New Method for Solving the Inverse Thermal Conduction Problem (θ-Scheme Combined with CG Method under Strong Wolfe Line Search). Buildings 2023, 13, 243. https://doi.org/10.3390/buildings13010243

AMA Style

Djeffal R, Lalmi D, El Amine Bekkouche SM, Bechouat T, Younsi Z. New Method for Solving the Inverse Thermal Conduction Problem (θ-Scheme Combined with CG Method under Strong Wolfe Line Search). Buildings. 2023; 13(1):243. https://doi.org/10.3390/buildings13010243

Chicago/Turabian Style

Djeffal, Rachid, Djemoui Lalmi, Sidi Mohammed El Amine Bekkouche, Tahar Bechouat, and Zohir Younsi. 2023. "New Method for Solving the Inverse Thermal Conduction Problem (θ-Scheme Combined with CG Method under Strong Wolfe Line Search)" Buildings 13, no. 1: 243. https://doi.org/10.3390/buildings13010243

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