Abstract
This paper presents the numerical solution of the heat conduction model with a fractional derivative of the Riemann–Liouville type with respect to the spatial variable. The considered mathematical model assumes the dependence on temperature of the material parameters (such as specific heat, density, and thermal conductivity) of the model. In the paper, the boundary conditions of the first and second types are considered. If the heat flux equal to zero is assumed on the left boundary, then the thermal symmetry is obtained, which results in a simplification of the problem and the possibility of considering only half the area. The numerical examples presented in the paper illustrate the effectiveness and convergence of the discussed computational method.
    1. Introduction
Models with fractional derivatives have gained a lot of popularity in recent times. Derivatives of this type are widely used in modeling many phenomena and turn out to be an effective tool for mathematical simulations [,,,,,]. In paper [], the authors focus on the fractional Maxwell model of viscoelastic materials, which is a generalization of the classic Maxwell model to fractional-order derivatives. The generalized Caputo fractional derivative is used in the mathematical model under discussion. The paper [] concerns the fractional-order cancer model for stem cells and chemotherapy. The authors use the Atangana–Baleanu in the Liouville–Caputo sense operator in the considered mathematical model. The paper also presents the numerical solution with examples. In paper [], the authors compare various mathematical models applied for modeling the heat conduction in a porous material. Experimental data show that models with a fractional derivative, in particular the model with Riemann–Liouville derivative, are more precise than the traditional model with integer-order derivatives.
In the scientific literature, one can find many references concerning the methods for solving differential equations with fractional derivatives. Depending on the needs and the model under consideration, very different methods can be used. For example, the paper [] presents the numerical methods for solving the selected nonlocal models with a fractional derivative. In particular, the authors focus on the finite element, finite difference, and spectral methods. Next, in the paper [], the adaptive predictor corrector method for the numerical solution of generalized Caputo-type initial-value problems is investigated. The considered numerical method is, in some way, an extension of the Adams–Bashforth–Moulton method to the fractional case. More examples of various types of numerical methods dedicated to the models with fractional derivatives can be found, among others, in the papers [,,].
The paper [] presents an overview of the variable-order fractional differential equations and their applications. The authors also provide a literature review in terms of numerical methods for solving the posed problems. In the paper [], the nonlinear coupled time fractional derivatives are discretized through the finite difference method along with the  algorithm applied to the problem of the Darcy medium natural convection flow of an MHD nanofluid. In [], the author deals with the fractional heat conduction models and their applications. Additionally, a review of numerical methods for solving the heat conduction models using the integer- and fractional-order derivatives for homogeneous or inhomogeneous materials is included in this paper. Some of the presented methods were implemented in a specially created tool in the MatLab platform. The paper also contains some computational examples. The paper [] focuses on the time fractional dual-phase-lagging (DPL) heat conduction model in a double-layered nanoscale thin film. In order to solve the considered equation, the authors use a finite difference scheme with second-order spatial convergence accuracy in a maximum norm. Two- and three-dimensional fractional heat conduction equations are considered in paper []. The problem is discussed in a rectangular domain and is solved with the use of the Bernstein operational matrices of derivatives. The paper also presents some numerical examples. Next, the paper [] focuses on the mathematical model of fractional-order dual-phase-lag heat conduction in a composite spherical medium. In the model under consideration, the Caputo derivative with respect to time is used. The solution to the problem is presented in the form of a double series of spherical Bessel functions and Legendre functions. As shown in this article, the order of the fractional derivative has a significant impact on the temperature distribution in the considered area.
The motivation for this work was delivered by the desire to investigate the possibility of using the fractional derivative with respect to space in solving the problem of reconstructing the aerothermal heating for thermal protection systems of space vehicles [,,]. The authors plan to compare the results obtained for the model with classical derivative and the model with a fractional derivative. In the classical model under consideration, the material parameters depend on temperature, and the heat conduction coefficient occurs as a derivative with respect to space. Therefore, there is a need to solve the direct problem described by the equation considered in this work.
The authors are not aware of any available papers in which exactly the same or a more general form of the heat conduction equation is considered including the fractional derivative with respect to space.
2. Mathematical Model
The heat conduction equation with a fractional derivative is considered [,,]:
      
        
      
      
      
      
    , , , where c, , and T are the specific heat, density, and temperature, respectively;  is the scaled thermal conductivity [], that is, the thermal conductivity multiplied by the scaling constant  with a numerical value of one and unit [] selected so that the right and left units of the equation are the same [,,];  is the thermal conductivity []; and f denotes a function describing the efficiency of internal heat sources.
As a fractional derivative, the Riemann–Liouville fractional derivative is applied [,]:
      
        
      
      
      
      
    
      where  is the gamma function.
On the left boundary of the considered region, the second kind of boundary conditions is given:
      
        
      
      
      
      
    
      or the first kind of boundary conditions of the form
      
      
        
      
      
      
      
    
If in condition (3) it is assumed that , then there is a thermal symmetry in the area. As a consequence of this, only a half of the area is considered. Whereas, on the right boundary, the first type of boundary conditions is given:
      
        
      
      
      
      
    
The temperature distribution at the initial moment is also known:
      
        
      
      
      
      
    
Obviously, the compatibility of relevant boundary conditions is assumed at the common points.
3. Numerical Procedure
For solving the discussed problem, the implicit scheme of the finite difference method [,,] is used with an appropriate approximation of the Riemann–Liouville derivative. In order to apply the finite difference method, the considered area is discretized by introducing the following mesh:
      
        
      
      
      
      
    
      where , .
The Riemann–Liouville derivative at point  at time  is approximated as follows [,,] for :
      
        
      
      
      
      
    
      where
      
      
        
      
      
      
      
    
Whereas, at point  at time , the approximation of the form is obtained as follows:
      
        
      
      
      
      
    
Next, the backward difference quotient is used for the first component of the right side of Equation (1):
      
        
      
      
      
      
    
      where . For the derivative with respect to time, the backward difference quotient is also used
      
      
        
      
      
      
      
    
The boundary condition of the second kind is approximated by an equation of the form
      
      
        
      
      
      
      
    
The rate of convergence of approximation (10) is equal to  []. The rate of convergence of the difference scheme (11) is also equal to . However, the rate of convergence of the approximation of the second kind of boundary conditions (10) is equal to . In turn, the rate of convergence of the difference scheme with respect to time is equal to  (see [,]). Therefore, the rate of convergence of the whole system is .
Putting all the above equations together and taking into account the boundary condition of the first kind defined on the right boundary of the considered region, the system of linear equations of the form given below is obtained.
      
      
        
      
      
      
      
    
The non-zero elements of matrix  are as follows:
      
        
      
      
      
      
    
      where
      
      
        
      
      
      
      
    
Whereas, the elements of vector  are of the form
      
      
        
      
      
      
      
    
Matrix  contains the temperature-dependent material parameters; therefore, it changes at each step of the calculations. We obtain the system of equations of dimension . In the case of boundary conditions of the first kind (4), the first row of matrix  changes, in which the only non-zero element is . The first coordinate of vector  also changes and is equal to .
The algorithm was implemented in the Wolfram language of the Mathematica 14.0 package, and the calculations were performed on a computer with an Intel Core i7-8565U, 1.80 GHz, 2.00 GHz processor equipped with 16 GB of RAM memory.
4. Numerical Calculations
4.1. Example 1
The following data appearing in Equation (1) are assumed in the considered example: , , , , , , and
        
      
        
      
      
      
      
    
The initial condition and boundary conditions are described by means of the functions
        
      
        
      
      
      
      
    
Thus, the example concerns the region with thermal symmetry. The above data are selected so that the exact solution of the problem is known. This solution is given by function .
The calculations were performed for various meshes (). The constant mesh over time  and the variable mesh over space  were taken as the first one. Then, the mesh over space was fixed at , whereas the mesh over time was changed .
Figure 1 shows the exact solution and the approximate solution obtained for the densest mesh . The approximation errors are so small that the differences are not noticeable in the presented figures. However, in Figure 2a, the exact solution for  and the approximate solutions obtained for different densities of mesh over space are compared. The errors of the presented approximate solutions are plotted in Figure 2b. In the case of the sparsest mesh (), the maximum error is equal to ; for , it decreases to the value of ; for , it takes the value of ; for , it is equal to ; and finally, it is  for .
      
    
    Figure 1.
      Exact solution (a) and approximate solution for the  mesh (b).
  
      
    
    Figure 2.
      Exact solution for  and approximate solutions obtained for various mesh densities over space (a) together with errors of these approximations (b).
  
In turn, Figure 3 presents the errors of approximate solutions for cross-sections  and  obtained for different mesh densities over space. For the sparsest mesh (), the maximum error is at the level of  for  and  for . As the mesh becomes more dense over space, these errors decrease. For the densest mesh (), they are equal to  and , respectively.
      
    
    Figure 3.
      Errors of approximate solutions for  (a) and for  (b) obtained for various mesh densities over space.
  
Figure 4 illustrates the approximation errors for the cross-sections  and  obtained for different meshes over time. For , the maximum error decreases from the value of  for the mesh  to the value of  for . In the case of , the maximum obtained errors are smaller, and they decrease from the value of  to the value of , respectively.
      
    
    Figure 4.
      Errors of approximate solutions for  (a) and for  (b) obtained for various mesh densities over time.
  
Table 1 and Table 2 show the maximum and mean absolute errors calculated for the entire region. Table 1 contains the results for various meshes over space, while Table 2 presents the results for various meshes over time. In the case of various meshes over space, the maximum error determined for the entire region decreases from the value of  to the value . Whereas, the mean errors decrease from the value of  to the value of . Next, in the case of various meshes over time, the maximum error decreases from the value of  to the same value as above. Similarly, the mean error decreases from the value of  to the same value as for the various meshes over space. This is the obvious consequence of the fact that the last mesh () is the same in both cases.
       
    
    Table 1.
    Absolute errors of the solution determined for various meshes over space (mesh over time: ).
  
       
    
    Table 2.
    Absolute errors of the solution determined for various meshes over time (mesh over space: ).
  
Figure 5 shows the experimental estimation of the convergence rate. In the case of space variable, the approximate value of  is obtained, while in the case of time variable, the obtained convergence rate is around . Theoretical values are correct for sufficiently small steps  and . Therefore, the differences between theoretical values and their estimations are most likely a consequence of excessively large steps and the approximation errors.
      
    
    Figure 5.
      Experimental estimation of the convergence rate with respect to the space variable (a) and time variable (b).
  
4.2. Example 2
In the second example, the following data appearing in the Equation (1) are assumed: , , , , , , and
        
      
        
      
      
      
      
    
The initial condition and boundary conditions are described by the functions
        
      
        
      
      
      
      
    
The exact solution is defined, then, by the function .
As in the previous example, the calculations were performed for various meshes (). First, a constant mesh is assumed over time, that is, , and the mesh density changes over space, that is, . Then, the mesh is fixed over space, that is, ; the mesh density changes over time, that is, . Figure 6 illustrates the distribution of absolute error obtained for the densest mesh . The maximum error in the entire region is equal to , while the mean error is .
      
    
    Figure 6.
      Error of approximate solution for the  mesh.
  
In Table 3 and Table 4, the maximum and mean absolute errors calculated for the entire considered region are collected. Table 3 contains the results for various meshes over space, while Table 4 includes the results for various grids over time. In the case of various meshes over space, the maximum error determined for the whole investigated region decreases from the value  to the value . Whereas, the mean error decreases from the level  to the level . Considering the case of different meshes over time, the maximum error reduces from the value of  to the same value as above. Similarly, the mean error reduces from the level of  to the same level as for the various mesh densities over space.
       
    
    Table 3.
    Absolute errors of the solution determined for various meshes over space (mesh over time: ).
  
       
    
    Table 4.
    Absolute errors of the solution determined for various meshes over time (mesh over space: ).
  
Figure 7a shows the exact solution for  and the approximate solutions obtained for various mesh densities over space. The errors of the presented approximate solutions are displayed in Figure 7b. In the case of the sparsest mesh (), the maximum error is equal to ; for , it decreases to the value ; for , the maximum error takes the value ; for , it is equal to ; and finally, the maximum error is at the level of  for the mesh .
      
    
    Figure 7.
      Exact solution for  and approximate solutions obtained for various mesh densities over space (a) together with errors of these approximations (b).
  
However, the errors of approximate solutions for the cross-sections  and  obtained for various mesh densities over space are plotted in Figure 8. For the sparsest mesh (), the maximum error is at the level of  for  and  for . As the mesh becomes more dense over space, these errors decrease. That is, for , the maximum errors are equal to  and , respectively; for , they take the values  and ; and for , they are equal to  and . Finally, in the case of the densest mesh (), the maximal errors of the approximate solutions are  and , respectively.
      
    
    Figure 8.
      Errors of approximate solutions for  (a) and for  (b) obtained for various mesh densities over space.
  
Next, Figure 9 presents the approximation errors for the cross-sections  and  obtained for various meshes over time. For , the maximum error decreases from the value of  for the mesh , through the value of  for the mesh , ultimately reaching the value of  for . In the case of , the obtained maximum errors are slightly larger, and they decrease, respectively, from the value of , through the value of , finally reaching the value of .
      
    
    Figure 9.
      Errors of approximate solutions for  (a) and for  (b) obtained for various mesh densities over time.
  
5. Conclusions
This paper discusses the mathematical model of heat conduction applying the Riemann–Liouville fractional derivative with respect to the spatial variable. In the considered model, the material coefficients, such as specific heat, density, and thermal conductivity, depend on temperature. Mixed boundary conditions, i.e., of the first and second kind, are assumed in the examined model. If the given heat flux , then the thermal symmetry is obtained in the investigated process. Section 3 describes the numerical solution of the considered problem in the form of an implicit finite difference scheme. The computational examples, presented in Section 4, illustrate the effectiveness of the examined method. The examples are structured so that they illustrate the impact made by the density of the used mesh on the accuracy of the approximate results. The presented research shows that the elaborated approach is effective for solving this type of problem. In the case of the  mesh (), the computation time was approximately  s and the maximum absolute error in both considered examples was less than . Taking the denser mesh, that is , increased the computation time to approximately  s and reduced the maximum errors to .
In earlier papers, the authors dealt with the reconstruction of aerothermal heating for thermal protection systems of space vehicles [,,]. In the model considered there, it was assumed that the material parameters depended on temperature and the heat conduction coefficient occurred as a derivative with respect to space. In the future, the authors plan to investigate the possibility of using the model in which the internal derivative with respect to space variable will be a derivative of a fractional order. For this aim, it will be necessary to solve the direct problem described by Equation (1). The algorithm presented in the current paper will be used for this purpose.  
Author Contributions
Conceptualization, D.S.; methodology, R.B. and D.S.; software, R.B. and D.S.; validation, R.B., E.H. and D.S.; investigation, R.B., E.H. and D.S.; writing—original draft preparation, R.B. and D.S.; writing—review and editing, R.B., E.H. and D.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Dataset available on request from the authors.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Bhangale, N.; Kachhia, K.B.; Gómez-Aguilar, J.F. Fractional viscoelastic models with Caputo generalized fractional derivative. Math. Methods Appl. Sci. 2023, 46, 7835–7846. [Google Scholar] [CrossRef]
 - Azeem, M.; Farman, M.; Akgül, A.; De la Sen, M. Fractional Order Operator for Symmetric Analysis of Cancer Model on Stem Cells with Chemotherapy. Symmetry 2023, 15, 533. [Google Scholar] [CrossRef]
 - Nisar, K.S.; Farman, M.; Abdel-Aty, M.; Cao, J. A review on epidemic models in sight of fractional calculus. Alex. Eng. J. 2023, 75, 81–113. [Google Scholar] [CrossRef]
 - Owolabi, K.M.; Agarwal, R.P.; Pindza, E.; Bernstein, S.; Osman, M.S. Complex Turing patterns in chaotic dynamics of autocatalytic reactions with the Caputo fractional derivative. Neural Comput. Appl. 2023, 35, 11309–11335. [Google Scholar] [CrossRef]
 - Kamdem, T.C.; Richard, K.G.; Béda, T. New description of the mechanical creep response of rocks by fractional derivative theory. Appl. Math. Model. 2023, 116, 624–635. [Google Scholar] [CrossRef]
 - Brociek, R.; Słota, D.; Król, M.; Matula, G.; Kwaśny, W. Comparison of mathematical models with fractional derivative for the heat conduction inverse problem based on the measurements of temperature in porous aluminum. Int. J. Heat Mass Transf. 2019, 143, 118440. [Google Scholar] [CrossRef]
 - D’Elia, M.; Du, Q.; Glusa, C.; Gunzburger, M.; Tian, X.; Zhou, Z. Numerical methods for nonlocal and fractional models. Acta Numer. 2020, 29, 1–124. [Google Scholar] [CrossRef]
 - Odibat, Z.; Baleanu, D. Numerical simulation of initial value problems with generalized Caputo-type fractional derivatives. Appl. Numer. Math. 2020, 156, 94–105. [Google Scholar] [CrossRef]
 - Hajiseyedazizi, S.N.; Samei, M.E.; Alzabut, J.; Chu, Y. On multi-step methods for singular fractional q-integro-differential equations. Open Math. 2021, 19, 1378–1405. [Google Scholar] [CrossRef]
 - Błasik, M. The Implicit Numerical Method for the Radial Anomalous Subdiffusion Equation. Symmetry 2023, 15, 1642. [Google Scholar] [CrossRef]
 - Hou, J.; Meng, X.; Wang, J.; Han, Y.; Yu, Y. Local Error Estimate of an L1-Finite Difference Scheme for the Multiterm Two-Dimensional Time-Fractional Reaction–Diffusion Equation with Robin Boundary Conditions. Fractal Fract. 2023, 7, 453. [Google Scholar] [CrossRef]
 - Sun, H.; Chang, A.; Zhang, Y.; Chen, W. A Review on Variable-Order Fractional Differential Equations: Mathematical Foundations, Physical Models, Numerical Methods and Applications. Fract. Calc. Appl. Anal. 2019, 22, 27–59. [Google Scholar] [CrossRef]
 - Khan, M.; Rasheed, A.; Anwar, M.S.; Hussain Shah, S.T. Application of fractional derivatives in a Darcy medium natural convection flow of MHD nanofluid. Ain Shams Eng. J. 2023, 14, 102093. [Google Scholar] [CrossRef]
 - Terpak, J. Fractional heat conduction models and their applications. In Volume 7 Applications in Engineering, Life and Social Sciences, Part A; Baleanu, D., Lopes, A.M., Eds.; De Gruyter: Berlin, Germany; Boston, MA, USA, 2019; pp. 225–246. [Google Scholar] [CrossRef]
 - Ji, C.-c.; Dai, W.; Sun, Z.-z. Numerical Schemes for Solving the Time-Fractional Dual-Phase-Lagging Heat Conduction Model in a Double-Layered Nanoscale Thin Film. J. Sci. Comput. 2019, 81, 1767–1800. [Google Scholar] [CrossRef]
 - Gholizadeh, M.; Alipour, M.; Behroozifar, M. Numerical Solution of Two and Three-Dimensional Fractional Heat Conduction Equations via Bernstein Polynomials. Comput. Math. Math. Phys. 2022, 62, 1865–1884. [Google Scholar] [CrossRef]
 - Kukla, S.; Siedlecka, U.; Ciesielski, M. Fractional Order Dual-Phase-Lag Model of Heat Conduction in a Composite Spherical Medium. Materials 2022, 15, 7251. [Google Scholar] [CrossRef]
 - Brociek, R.; Hetmaniok, E.; Słota, D. Reconstruction of aerothermal heating for the thermal protection system of a reusable launch vehicle. Appl. Therm. Eng. 2023, 219, 119405. [Google Scholar] [CrossRef]
 - Brociek, R.; Hetmaniok, E.; Napoli, C.; Capizzi, G.; Słota, D. Estimation of aerothermal heating for a thermal protection system with temperature dependent material properties. Int. J. Therm. Sci. 2023, 188, 108229. [Google Scholar] [CrossRef]
 - Brociek, R.; Hetmaniok, E.; Napoli, C.; Capizzi, G.; Słota, D. Identification of aerothermal heating for thermal protection systems taking into account the thermal resistance between layers. Int. J. Heat Mass Transf. 2024, 218, 124772. [Google Scholar] [CrossRef]
 - Zingales, M.; Alaimo, G. A physical description of fractional-order Fourier diffusion. In Proceedings of the ICFDA’14 International Conference on Fractional Differentiation and Its Applications 2014, Catania, Italy, 23–25 June 2014; pp. 1–6. [Google Scholar] [CrossRef]
 - Povstenko, Y. Non-axisymmetric solutions to time-fractional diffusion-wave equation in an infinite cylinder. Fract. Calc. Appl. Anal. 2011, 14, 418–435. [Google Scholar] [CrossRef]
 - Povstenko, Y. Fractional Thermoelasticity; Springer: Cham, Switzerland, 2015. [Google Scholar] [CrossRef]
 - Hristov, J. Approximate solutions to fractional subdiffusion equations. Eur. Phys. J. Spec. Top. 2011, 193, 229–243. [Google Scholar] [CrossRef]
 - Ceretani, A.; Tarzia, D. Determination of two unknown thermal coefficients through an inverse one-phase fractional Stefan problem. Fract. Calc. Appl. Anal. 2017, 20, 399–421. [Google Scholar] [CrossRef]
 - Podlubny, I. Fractional Differential Equations; Academic Press: San Diego, CA, USA, 1999. [Google Scholar]
 - Özişik, M. Heat Conduction; Wiley & Sons: New York, NY, USA, 1980. [Google Scholar]
 - Jaluria, Y.; Torrance, K. Computational Heat Transfer; Taylor & Francis: New York, NY, USA, 2003. [Google Scholar] [CrossRef]
 - Mochnacki, B.; Suchy, J. Numerical Methods in Computations of Foundry Processes; PFTA: Cracow, Poland, 1995. [Google Scholar]
 - Meerschaert, M.; Tadjeran, C. Finite difference approximations for fractional advection-dispersion flow equations. J. Comput. Appl. Math. 2006, 172, 65–77. [Google Scholar] [CrossRef]
 - Owolabi, K.M. Efficient numerical simulation of non-integer-order space-fractional reaction-diffusion equation via the Riemann-Liouville operator. Eur. Phys. J. Plus 2018, 133, 98. [Google Scholar] [CrossRef]
 - Cai, M.; Li, C. Numerical Approaches to Fractional Integrals and Derivatives: A Review. Mathematics 2020, 8, 43. [Google Scholar] [CrossRef]
 
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.  | 
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).