Numerical Solution
Numerical Solution
ISSN: 2249-9776
Volume 10, Issue 1, 2022, Pages 1-23
This paper is available online at http://www.frdint.com/
Published online January 1, 2022
Department of Mathematics
College of Natural and Computational Sciences
Ambo University
Ambo
Ethiopia
e-mail: [email protected]
Abstract
Keywords and phras es : Elliptic equation, Poisson equation, compact difference scheme,
convergence of methods.
1. Introduction
Now we define a mesh size h and k and the constant grid point by
drawing a horizontal and vertical line of distance ' h' and ' k' respectively
in the ‘x’ and ‘y’ directions. These lines are called gridlines and the points
at which they interact are known as the mesh points. The mesh point that
lies at end of the domain is called the boundary point. The solution to the
problem that lies at boundary points is called boundary condition. These
boundary conditions are used to find the solution of the given model
problem at interior points. The points that lie inside the region (inside the
solution domain) are called interiors points. The goal is to approximate
the solution ' U jn ' at the interior mesh points. Hence we discretized the
solution domain and generate a grid by using both uniform and non-
uniform discretize of grid point given as follows.
b−a
a = x 0 < x1 < x 2 < ... < x M = b, x j +1 = x j + jh, h = ;
M
d−c
c = y0 < y1 < y2 < ... < yN = d, yn +1 = yn + nk, k = . (3)
N
x j = h × rand(1) , h = x j +1 − x j ,
yn = k × rand(1) , k = yn +1 − yn , (4)
∂ pU ∂ pU
U (x j , yn ) = U jn , = ∂ xpU jn and = ∂ ypU jn for p ≥ 1 is pth
∂x p ∂y p
order derivatives. To construct the scheme, assume that for the
approximate value of the following from the model problem in Eq. (1) as
follow:
(U xx + U yy ) (x 0 , y0 ) ≈ a0U 0 + a1 (U1 + U 3 ) + a2 (U 2 + U 4 )
+ a3 (U 5 + U 6 + U 7 + U 8 ) , (5)
f (x 0 , y0 ) ≈ b0 f0 + b1 ( f1 + f2 + f3 + f4 ) . (6)
h2 2 h3 3
U1 = U 0 + h∂ xU 0 + ∂ xU 0 + ∂ U
2! 3! x 0
h4 4 h5 5
+ ∂ xU 0 + ∂ U + O ( h6 ) , (7)
4! 5! x 0
h2 2 h3 3
U 3 = U 0 − h∂ xU 0 + ∂ xU 0 − ∂ U
2! 3! x 0
h4 4 h5 5
+ ∂ U − ∂ U + O( h6 ) , (8)
4! x 0 5! x 0
h2 2 h3 3
U 2 = U 0 + h∂ yU 0 + ∂ yU 0 + ∂ U
2! 3! y 0
h4 4 h5 5
+ ∂ U + ∂ U + O ( h6 ) , (9)
4! y 0 5! y 0
h2 2 h3 3
U 4 = U 0 − h∂ yU 0 + ∂ yU 0 − ∂ U
2! 3! y 0
8 KEDIR ALIYI KOROCHE
h4 4 h5 5
+ ∂ U − ∂ U + O( h6 ). (10)
4! y 0 5! y 0
Adding Eq. (7) to Eq. (8) and Eq. (9) to Eq. (10), we obtain
h4 4
a(U1 + U 3 ) = a1 2U 0 + h∂ xU 0 + ∂ xU 0 + O ( h 6 ) ,
4!
h4 4
a(U 2 + U 4 ) = a1 2U 0 + h∂ yU 0 + ∂ yU 0 + O ( h 6 ) , (11)
4!
h6 6 h6 6
where T1 = ∂ xU 0 and T2 = ∂ U are their local truncation
360 360 x 0
errors. Again using the Taylor series expansion we have:
h2 2
U 6 = U 0 + h(∂ xU 0 + ∂ yU 0 ) + ( ∂ + 2∂ 2xyU 0 + U 0 ∂ 2yU 0 )
2! x
h3 3
+ ( ∂ xU 0 + 3∂ 3xxyU 0 + 3∂ 3yyxU 0 + ∂ 3yU 0 )
3!
h4 4
+ ( ∂ U + 4∂ 4xxxyU 0 + 6∂ 4xxyyU 0 + 4∂ 4xyyyU 0 + ∂ 4yU 0 )
4! x 0
h5 5
+ ( ∂ xU 0 + 5∂ 5 4 U 0 + 10∂ 5 3 2U 0 + 10∂ 5 2 3U 0
5! x y x y x y
+ 5∂ 5 4 U 0 + ∂ 5yU 0 ) + O ( h 6 ) , (12)
xy
h2 2
U 5 = U 0 − h(h∂ xU 0 + ∂ yU 0 ) + ( ∂ x − 2∂ 2xyU 0 + U 0 ∂ 2yU 0 )
2!
h3 3
− ( ∂ xU 0 + 3∂ 3xxyU 0 + 3∂ 3yyxU 0 + ∂ 3yU 0 )
3!
h4 4
+ ( ∂ U − 4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ation error? From the model
360 x
10 KEDIR ALIYI KOROCHE
problem we have:
f0 = −[ ∂ 2xU 0 + ∂ 2yU 0 ] ,
∂ 2x f0 = −[ ∂ 4 4 U 0 + ∂ 4 2 2U 0 ] ,
x x y
∂ 2y f0 = −[ ∂ 4 2 2U 0 + ∂ 4 4 U 0 ]. (17)
y x y
2h 2 2
b1 ( f1 + f2 + f3 + f4 ) = b1 4 f0 + ( ∂ x f0 + ∂ 2y f0 ) + O ( h 4 )
2
2h 2 4
= −b1 4( ∂ 2xU 0 + ∂ 2yU 0 ) + ( ∂ 4 U 0 + ∂ 4 2 2U 0 + ∂ 4 2 2 U 0 + ∂ 4 4 U 0
2 x x y y x y
+ O ( h 4 ). (19)
Now substituting Eqs. (5) and (6) into the model problem in Eq. (1), we
obtain:
a0U 0 + a1 (U1 + U 3 ) + a2 (U 2 + U 4 ) + a3 (U 5 + U 6 + U 7 + U 8 )
= b0 f0 + b1 ( f1 + f2 + f3 + f4 ) . (20)
Again substituting Eqs. (11), (16), (18) and (19) into Eq. (20), we obtain:
h4 4 h4 4
a0U 0 + a1 2U 0 + h∂ xU 0 + ∂ xU 0 + a1 2U 0 + h∂ yU 0 + ∂ yU 0
4! 4!
4h 4 4
+ a3 4U 0 + 2h3 ( ∂ 2xU 0 + ∂ 2yU 0 ) + ( ∂ xU 0 + 6∂ 4xxyyU 0 + ∂ 4yU 0 )
4!
2h 2 4
− b1 4( ∂ 2xU 0 + ∂ 2yU 0 ) + ( ∂ 4 U 0 + ∂ 4 2 2U 0 + ∂ 4 2 2U 0 + ∂ 4 4 U 0 .
2 x x y y x y
h 2 a3 = −2b1 ,
Now by solving the system of linear equation in Eq. (21), we obtain the
8b1 2b1
value of arbitrary constant given by: a1 = a2 = − , a3 = − ,
2
h h2
b
a0 = 40 1 , b0 = 8b1 .
h2
4[U1 + U 2 + U 3 + U 4 ] + [U 5 + U 6 + U 7 + U 8 ] − 20U 0
h2
= − (8 f0 + f1 + f2 + f3 + f4 ).
2
Implies that:
h2
= −
2
(8 fi, j + fi, j +1 + fi, j +1 + fi −1, j + fi, j −1 ). (22)
u j n = λ j e pi K a , (24)
h2
= − ( 8λ j e pihK a + λ j +1e pihK a + λ j −1e phK a (i +1)
2
SOLUTION OF TWO DIMENSIONAL POISSON EQUATIONS 13
h2
= − ( 8 + λ a + e phK a + e − phK a + λ−a1 ) ,
2
= 8h 2 + h 2 λ a + 2h 2 cos(hka ) + h 2 λ−a1 .
+ 4 − h 2 cos(hka ) − 2( 5 + h 2 ) = 0.
1
2
2[ ( 8 − h 2 ) cos(hka ) − 4( 5 + h 2 ) ] ( 8 − 4 cos(hka ) + h 2 )
λ2a − λ a − = 0,
( 8 − 4 cos(hka ) + h 2 ) ( 8 − 4 cos(hka ) + h 2 )
2[ ( 8 − h 2 ) cos(hka ) − 4( 5 + h 2 ) ]
λ2a − λ a − 1 = 0.
( 8 + 4 cos(hka ) + h 2 )
2λ a X
λ2a − = 1.
Y
2 2
λ − X = 1 + .
X
a
Y Y
2
X X 1
(X + (Y 2 + X 2 ).
λa = ± 1+ = (25)
Y Y Y
2
± 1 +
X X 1
λa = = ( X + (Y 2 + X 2 )
Y Y Y
1
≤ X ± Y2 + X2
Y
1
< X + Y2 + X2 Triangular inequality
Y
1
≤ X + Y 2 + X 2 < 1.
Y
Since from the principal part of the local truncation error, the derived
local truncation error for the proposed scheme is
h2
Ti , j = ( 2∂ 6x + 9∂ 6xxxy + 14∂ 6xxyyU 0 + 9∂ 6xyyy + 2∂ 6y )U i, j .
360
SOLUTION OF TWO DIMENSIONAL POISSON EQUATIONS 15
1
lim h → 0 Ti, j = lim h → 0 h 6 ( 2∂ 6x + 9∂ 6xxxy
360
This section presented the criteria that the accuracy of the present
method is investigated. The accuracy of the solution will depend on how
small we make the step size, ∆x = ∆y = h. To test the performance of the
proposed method to give an accurate solution for the given model
problem, maximum absolute error, L2 and L∞ norms are calculated by
using the following formula:
L∞ = max u(x i , y j ) − ui , j ,
1≤ n ≤ N
∑ j =0
1 N 2
L2 = u(x i , y j ) − ui, j i = 1(1)M ,
N
considered in [1]
1
∆x = ∆y = h = and the exact solution is given by:
40
x y L∞ L∞ L2
x y L∞ L∞ L2
5. Discussions
(over a uniform grid and non-uniform grid points). When we apply the
compact finite difference method to the continuous two-dimensional
Poisson equation the equation is replaced by a “discrete” approximation.
The number of those discrete points can be selected uniformly or non-
uniformly depending on the mesh size (h ) . The mesh is the set of
locations where the discrete solution is computed. Two key parameters of
the mesh are the local distance between adjacent points in space. Fourth-
order Compact finite difference discretization is simple to implement by
using both equal mesh size and non-uniform mesh size as shown above in
the table and graph. The full discretization of the Poisson equation by the
present method leads to the system of linear equations which is solved by
using the Thomas method. The convergence has been shown in the sense
of maximum point-wise absolute error norm (L∞ ) and root mean error
(L2 ) , their values are given in tables and they are compared with pre-
existing results. The stability and convergence of the present method are
also investigated by using the Von-Neumann stability analysis technique.
The results presented in Tables 1 and 2 demonstrate fourth-order finite
difference method gives a more accurate numerical solution than the pre-
existing method in the literature. As we see from Figure 7 the present
method is more accurate when we investigate the solution of the model
problem on non-uniform grid point discretization of the solution domain.
Moreover, Figures 3 and 6 specifies that the present method gives an
accurate solution for the 2D Poisson equation on both uniform and non-
uniform grid point discretization of solution domain and the approximate
exact solution very well.
6. Conclusion
Acknowledgements
References
[1] Genet Mekonnen Assefa and Lemi Guta, Solution of two dimensional Poisson
equation using finite difference method with uniform and non-uniform mesh size,
Adv. Phys. Theo. Appl. 79 (2019), 1-10.
[2] N. Sukumar and J. E. Bolander, Numerical computation of discrete differential
operators on non-uniform grids, CMES - Computer Modeling in Engineering and
Sciences 4(6) (2003), 691-705.
[3] K. A. Koroche, Numerical solution for one dimensional linear types of parabolic
partial differential equation and application to heat equation, Mathematics and
Computer Science 5(4) (2020), 76-85.
[4] M. Dugassa, G. File and T. Aga, Numerical solution of second-order one
dimensional linear hyperbolic telegraph equation, Ethiopian Journal of Education
and Sciences 14(1) (2018), 39-52.
[5] Madhumangal Pal, Numerical Analysis for Scientists and Engineers: Theory and C
Programs.
[6] Gayaz Khakimzyanov and Denys Dutykh, On supraconvergence phenomenon for
second order centered finite differences on non-uniform grids, Institute of
Computational Technologies, Novosibirsk, Russia, Last modified: February 6, 2017.
[7] W. S. Yousif and M. M. Martins, Explicit de-couple group AOR method for solving
SOLUTION OF TWO DIMENSIONAL POISSON EQUATIONS 23