Applied Mathematics

p-ISSN: 2163-1409    e-ISSN: 2163-1425

2012;  2(4): 131-135

doi: 10.5923/j.am.20120204.06

The Numerical Solution of Heat Problem Using Cubic B-Splines

Duygu Dönmez Demir , Necdet Bildik

Department of Mathematics, Faculty of Art and Science, Celal Bayar University, Manisa 45047, Turkey

Correspondence to: Duygu Dönmez Demir , Department of Mathematics, Faculty of Art and Science, Celal Bayar University, Manisa 45047, Turkey.

Email:

Copyright © 2012 Scientific & Academic Publishing. All Rights Reserved.

Abstract

This paper discusses solving one of the important equations in Physics; which is the one-dimensional heat equation. For that purpose, we use cubic B-spline finite elements within a Collocation method. The scheme of the method is presented and the stability analysis is investigated by considering Fourier stability method. On the other hand, a comparative study between the numerical and the analytic solution is illustrated by the figure and the tables. The results demonstrate the reliability and the efficiency of the method.

Keywords: Cubic B-splines Finite Element Method, Collocation Method, Cubic B-splines, Finite Element Method

1. Introduction

Consider the one dimensional initial-boundary value problem
(1)
with initial condition
(2)
and boundary conditions
(3)
This problem is one of the well-known second order linear partial differential equation[1-3]. It shows that heat equation describes irreversible process and makes a distance between the previous and next steps. Such equations arise very often in various applications of science and engineering describing the variation of temperature (or heat distribution) in a given region over some time[4]. It can be expressed as the heat flow in the rod with diffusion along the rod where the coefficient is the thermal diffusivity of the rod and L is the length of the rod[5]. In this model, the flow of the heat in one-dimension that is insulated everywhere except at the two end points. Solutions of this equation are functions of the state along the rod and the time t. In the past, this problem has been widely worked over a number of years by numerous authors. But it is still an interesting problem since many physical phenomena can be formulated into PDEs with boundary conditions. The heat equation is of fundamental importance in diverse scientific fields. It is the prototypical parabolic partial differential equation in mathematics. In probability theory, the heat equation is connected with the study of Brownian motion via the Fokker–Planck equation[6]. Numerical solutions of those equations are very useful to study physical phenomena. One of the linear evolution equation which we deal with the numerical solution is the heat equation[7].
In 1946, Schoenberg first proposed the theory of B-splines[4]. Recurrence relations for the purpose of computing coefficients are given by Cox and de Boor[8,9]. The cubic B-splines collocation method was developed for Burgers’ equation and used for the numerical solution of the differential equations in[10,11]. Recently, spline function theory has been extended and developed to solve the differential equations numerically by various papers[12-14]. Furthermore some extraordinary problems has been numerically investigated by finite element methods such as Galerkin method, least square method and collocation method with quadratic, cubic, quintic and septic B-splines [15-17].
Various techniques of both the cubic spline and cubic B-spline collocation methods and their application have been developed to obtain the numerical solution of the differential equations. They possess some of advantages and are worth on using in the numerical techniques. So cubic spline collocation procedures exhibits the following the desirable features: (1) obtained governing system is always diagonal which permits easy algorithms; (2) it provides low computer cost and easy problem formulation. The requirement of the continuity up to the second degree are guaranteed at the mesh points over the domain and the first and second degree of the derivatives are directly evaluated[7,12,18].
In this study the cubic B-splines collocation method is used for solving the heat equation (1) subject to (2) and (3) and the solutions are compared with the exact solution[19]. For constructing the cubic B-splines finite element method, we use collocation techniques as it was extensively used in[7,20,21]. In the section two, proposed method is presented and it is also given how to apply the collocation method with cubic B-splines finite element technique. In the section three, the stability analysis is investigated considering Fourier stability method. Finally, the numerical results and the related tables are given in the next section.

2. Collocation Method

Let us consider the domain that is equally-divided with nodal points such that , i.e., finite elements of length for , and also suppose that to be cubic B-splines at the nodal points for . Using cubic B-splines , the exact solution is approached by an approximation such that
(4)
where is parameter in terms of the time t for to be identified by the boundary conditions and the collocation conditions.
The cubic B-splines are defined in[19].
(5)
Considering the approximation function (4) and the cubic B-splines defined in (5), the required values of and its first and the second derivatives with respect to x at the nodal points are identified in terms of as
(6)
For instance, let us take, and in (1) and (2), respectively. Therefore the problem (1) subject to (2) and (3) is become
(7)
with initial condition
(8)
and boundary conditions
(9)
One can obtain the approximate solution for the heat equation namely
(10)
by considering the solution of
(11)
where
(12)
Here is a parameter that when it takes the value 0, the scheme is so called forward Euler and also if , then the scheme is called Crank-Nicholson, and if , the scheme is so called backward Euler. Then we discretize the time derivative by means of finite difference so we have
(13)
Substituting (6) into (13), we obtain the following difference equation system for the variables , which has difference equations with unknown values as
(14)
where
Then this set of equations is a recurrence relationship of element parameters vector . Using the boundary conditions (9) and eliminating the parameters in (14), then the system may be rewritten as
(15)
By these substitutions, the equation (14) is turned out to be unknown at each level of the time n in order to solve it using by Thomas algorithm.

3. The Stability Analysis

Now, the stability analysis is investigated by using very useful technique which is called Fourier stability method. Additionally the stability analysis is also used for various finite difference methods[22]. Considering the equation (13) and (14) together, then
(16)
is obtained. Now substituting (6) into (16) yields
(17)
Using the Fourier stability method, then may be written where , h is the step size defined in Section 2 and . By this equality, (17) can be reduced as
(18)
where. Then the solution is stable for using the Equation (14), since the inequality holds by the Fourier stability method.

4. Numerical Results and Discussion

In this section, we applied the method in Section 2 to problem (7) with (8) and (9) in order to solve it numerically. Since than numerical results are obtained. In order to control the validity and efficiency of the numerical solutions of the equation (7) in the domain [0,1] under the initial condition (2) and the boundary conditions (3), we calculated the analytical solution of the equation (7) with the initial and boundary conditions. Here, the time step is taken as in calculations. Mainly, Table 1 shows the both numerical solutions for some and the analytical solutions to comparing with the data for some values of t . It is seen from table that the method with decreasing step size gives better approximate solutions than the others.
Table 1. Comparison of the solutions for some
     when
      and
     
     
When fixed is taken in calculations with , the results are shown and compared for different values of h in Table 2. It is also seen from the table that the results calculated for , and coincide with the exact solution, while those for , are approached rapidly to the exact solutions.
Table 2. Comparison of the results for
     
     
It is observed by two tables that the approximate solutions obtained for different step sizes are closed to the exact solutions. To further corroborate the applicability of the presented method, numerical solution profile has been plotted in Figs. 1 for.

5. Conclusions

In this paper, we apply the collocation method with cubic B-splines finite elements to the heat equation successfully. In section 3, the stability of this method is analyzed considering Fourier stability method and it is found that the method is stable for . The results of the numerical solutions in Section 2 confirm that the accuracy, reliability and efficiency of the presented method which is applied in order to solve this type of the problem.

References

[1]  H.S. Carslaw , J.C. Jaeger , Conduction of Heat in Solids, Oxford University Pres. , 1959.
[2]  D.V. Widder , The Heat Equation, Academic Press, 1976.
[3]  J.R. Cannon , The One-Dimensional Heat Equation, Cambridge University Pres. , 1984.
[4]  S. Dhawan, S. Kumar, A Numerical Solution of One Dimensional Heat Equation Using Cubic B-Spline Basis Functions, International Journal of Research and Reviews in Applied Sciences, 1 (1) (2009) 71-77.
[5]  A.M. Wazwaz , Partial Differential Equations Methods and Applications, Saint Xavier University, 2002.
[6]  en.wikipedia.org/wiki/Heat_equation.
[7]  I. Dag , B. Saka , D. Irk , Application Cubic B-splines for Numerical Solution of the RLW Equation, Appl. Maths. and Comp. , 159 (2004) 373–389.
[8]  C. de Boor, “A Practicle guide to splines”, Applied Mathematical Sciences, Springer-Verlag, 2001.
[9]  C. de Boor, “On Calculating with B-splines”, Journal of Approximation Theory, 6 (1972) 50- 62.
[10]  S. Kutluay , A.R. Bahadır , A. Özdeş , Numerical Solution of One-dimensional Burger Equation: Explicit and Exact-explicit Finite Difference Methods, J. Comp. App. Math., 103 (1999) 251-261.
[11]  I. Dag , D. Irk , B. Saka , A Numerical Solution of the Burgers’ Equation Using Cubic B-splines, Appl. Maths. and Comp. , 163 (2005) 199–211.
[12]  S.G. Rubin , P.K. Khosla , Higher-Order Numerical Solutions Using Cubic Splines, AIAA J. , 14 (1976) 851-858.
[13]  H. Caglar , M. Özer, N. Caglar , The Numerical Solution of the One-dimensional Heat Equation by Using Third Degree B-spline Functions, Chaos, Solitons & Fractals, 38 (2008) 1197-1201.
[14]  A.R. Bahadır , Application of Cubic B-spline Finite Element Technique to the Thermistor Problem, Applied Mathematics and Computation, 149 (2004) 379–387.
[15]  B. Saka , I. Dag , Quartic B-spline Collocation Method to the Numerical Solutions of the Burgers' Equation, Chaos, Solitons & Fractals, 32 (2007) 1125-1137.
[16]  B. Saka , I. Dag , A. Boz , B-spline Galerkin Methods for Numerical Solutions of the Burgers’ Equation, Appl. Maths. and Comp., 166 (2005) 506-522.
[17]  M.A. Ramadan , T.S. El-Danaf , F.E.I. Abd Alaal, A Numerical Solution of the Burgers’ Equation Using Septic B-splines, Chaos, Solitons & Fractals, 26 (2005) 795-804.
[18]  S.G. Rubin, R.A. Graves, Cubic Spline Approximation for Problems in Fluid Mechanics, Nasa TR R-436, Washington, DC, 1975.
[19]  P.M. Prenter, Splines and Variational Methods, John Wiley, New York, 1975.
[20]  A.K. Khalifa , K.R. Raslana , H.M. Alzubaidi , A Collocation Method with Cubic B-splines for Solving the MRLW Equation, Journal of Computational and Applied Mathematics 212 (2008) 406 – 418.
[21]  A.H.A. Ali , L.R.T. Gardner , G.A.Gardner , A Collocation Method for Burgers’ Equation Using Cubic Splines, Comp. Math. Appl. Mech. Eng., 100 (1992) 325-337.
[22]  G. Sewell , The Numerical Solution of Ordinary and Partial Differential Equations, John Wiley and Sons, 2005.