Higher Order Finite Difference Schemes for the Heat Eq (Part 2)
Higher Order Finite Difference Schemes for the Heat Eq (Part 1)
Finite Difference Approximations for Three Points
Second Order Schemes for the Heat Eq (Part 3)
In this post, we compute the three points finite difference approximation formulas as Taylor Series. In three points formulae, the first two consecutive points must be known to find the third one. Finite difference relations are first developed using dependent variable depending only on single independent variable . The formulas obtained are further used for the approximation of derivatives either with respect to time or space. By working initially with , the notation is being simplified without affecting the generality of the result. We now compute the second-order finite difference approximation using three points.
Second Order Forward Difference
Considering the series of Taylor expansion and
(1)
(2)
Multiplying equation (1) by 4 and then subtracting equation (2), we get(3)
Solve for
(4)
The derivatives of higher order can be replaced by using mean value theorem
.
Higher Order Finite Difference Schemes for the Heat Eq (Part 2)
Thus
(5)
(6)
The expression at the right side of equation (6) is said to be truncation error of finite difference approximation. Whereas, the “big ” notation expresses the dependence of truncation error on mesh spacing.
By using the big notation, equation (6) is written as,
(7)
The approximation of forward difference has a truncation error of order two i.e. .
Second Order Backward Difference
(8)
(9)
Higher Order Finite Difference Schemes for the Heat Eq (Part 1)
Multiplying equation (8) by 4 and then subtracting from equation (9), we get
(10)
Solve for
(11)
By using the notation of big , equation (11) is written as,(12)
The approximation of backward difference has the same truncation error as that of forward
difference approximation.
Second Order Central Difference
The Taylor expansion of and is
(13)
(14)
By adding equation (13) with equation (14), we get
(15)
(16)
By using notation,(17)
It is known as approximation of second order central difference. From the above given formulae we have seen that by increasing the number of points, we get higher order scheme. These finite difference approximations are used in Euler explicit and implicit methods, and Adams Bashforth for numerical solution of heat equation. In the following section we first derive these methods.
Euler Method
Euler method is the first order numerical method to solve a differential equation of the form
(18)
Expanding the Taylor series of about , we have
(19)
(20)
By truncating the terms on the right hand side of equation (20) we have
(21)
By using
(22)
\label{46.2}(23)
which is first order Euler method.
Adams-Bashforth
There are many techniques for the approximation of the differential equation that are being used for the current state with the previous data , , in an explicit state of formulation. We referred these techniques as
multistep techniques and the Adams-Bashforth techniques are the multistep techniques.
Expanding the Taylor series of about , we have
(24)
(25)
where . For the first order Adams-Bashforth method we
truncate the series at the second term. For the second order Adams-Bashforth method we truncate the
series at the third term. By using
(26)
and we can write,
(27)
or
(28)
which is a second order Adams Bashforth method.
Numerical Implementation
In this post we discuss the implementation of various schemes for numerical solution of heat conduction equation (??). These schemes are based on the finite difference approximation for two and three points in time and space. The results obtained from Matlab codes are analysed and compared for all the schemes. Furthermore, the stability of scheme shown provides which ones is the better scheme for solving heat equation.
The approximation of finite difference developed in previous chapter, are used to approximate the time and space derivatives in heat equation (??). The space and time derivatives are interchanged with finite difference approximations.
In order to do so, we require both spatial locations and time specifications for the values of “” in finite difference relations. We therefore, need superscript notation “” to denote time step of discrete solution and subscript notation to denote spatial location. We start the analysis with the two points finite difference schemes for time followed by three points in space.
Schemes using Two Points in Time and Three Points in Space
These schemes have been discussed thoroughly by Gerald W. Recktenwald, for numerical solution of heat equation (??),
(29)
(30)
and
(31)
These schemes (29), (30) and (31) are two points in time and three points in space.