Professional Documents
Culture Documents
net/publication/265946772
CITATIONS READS
9 2,914
4 authors, including:
SEE PROFILE
All content following this page was uploaded by Estaner Claro Romão on 16 April 2015.
Abstract: This paper aims to extend the Taylor series obtaining expres-
sions for the discretization of the derivatives of first and second order accu-
rate O(Δx6 ) using central differences. The convection-diffusion-reaction (CDR)
equation with variable coefficients and Robin boundary conditions was chosen,
aiming several numerical comparisons and analysis of some special points in the
computational domain, the derivative of the first order (convective term) was
extended through the backward and forward differences, both O(Δx3 ). Two
numerical applications with analytical solution using the L∞ norm validate the
computational code and facilitate the analysis of results.
1. Introduction
In the last decades, heat transfer and fluid mechanics problems have been an-
alyzed in terms of different numerical schemes. Of these, the Finite Element
Method retains flexibility and ease in dealing with complex domains, which, to
be divided often generates a non-ordered matrix causing a high computational
time (see [2]; [4]), and the high computational cost caused by the calculation of
integrals that generate the coefficients of the main matrix (see [5]; [6]). Now,
the Finite Difference Method replace the partial derivatives that appear in the
governing equations by the algebraic difference quotients yielding an ordered
matrix which can be resolved by any linear system solution method, using only
non-zero coefficients of the matrix, usually highly sparse (see [7]).
In this work, a special contribution is the Taylor series expansion of the
derivatives of the first and second order, the convective and diffusive terms,
respectively, with the accuracy of O(Δx6 ), for solving convection-diffusion-
reaction problems with variable coefficients and with Robin condition, notably
in convective situations that have dominant oscillations in the numerical ma-
jority of numerical methods in the literature, when unrefined meshes are used.
3. Model Equation
4. Formulation
For numerical solution of the problem described in equation (19a-c), four for-
mulations have been proposed and are described below.
Case 1: Dividing the domain into NNodes nodes and considering
Δx = 1/(N N odes − 1), we have:
Node 1: Forward difference O(Δx2 ) (boundary condition in x = 0):
3B 2B B
A− Ti + Ti+1 + − Ti+2 = C.
2Δx Δx 2Δx
Node 2: Forward difference O(Δx2 ) in the first derivative and Central dif-
ference O(Δx2 ) in the second derivative:
k 2k 3u2
Ti + − − + D Ti+1
Δx2 Δx2 2Δx
u
k 2u2 2
+ + Ti+2 + − T4 = fi+1 .
Δx2 Δx 2Δx
CENTRAL DIFFERENCE METHOD OF O(Δx6 ) IN... 145
Node 3: Forward difference O(Δx3 ) in the first derivative and Central dif-
ference O(Δx4 ) in the second derivative:
k 4k 5k 11u3
− T1 + T2 + − − + D T3
12Δx2 3Δx2 2Δx2 6Δx
u
4k 3u3 k 3u3 3
+ 2
+ T 4 + − 2
− T5 + T6 = f3 .
3Δx Δx 12Δx 2Δx 3Δx
Node 4 to N N odes − 3: Forward difference O(Δx3 ) in the first derivative
and Central difference O(Δx6 ) in the second derivative:
k 3k 3k
Ti−3 + − Ti−2 + Ti−1
90Δx2 20Δx2 2Δx2
49k 11ui 3k 3ui
+ − − + D Ti + + Ti+1
18Δx2 6Δx 2Δx2 Δx
3k 3ui k ui
+ − − Ti+2 + + Ti+3 = fi .
20Δx2 2Δx 90Δx2 3Δx
Node N N odes − 2: Forward difference O(Δx3 ) in the first derivative and
Central difference O(Δx4 ) in the second derivative:
u
N N odes−2 k 3uN N odes−2
− TN N odes−5 + − + TN N odes−4
3Δx 12Δx2 2Δx
4k 3uN N odes−2
+ − TN N odes−3
3Δx2 Δx
5k 11uN N odes−2
+ − 2
+ + D TN N odes−2
2Δx 6Δx
4k k
+ TN N odes−1 + − TN N odes = fN N odes−2 .
3Δx2 12Δx2
Node N N odes − 1: Forward difference O(Δx3 ) in the first derivative and
Central difference O(Δx2 ) in the second derivative:
u
N N odes−1 3uN N odes−1
− TN N odes−4 + − TN N odes−3
3Δx 2Δx
k 3uN N odes−1
+ 2
− TN N odes−2
Δx 2Δx
2k 11uN N odes−1
+ − + + D TN N odes−1
Δx2 6Δx
k
+ TN N odes = fN N odes−1 .
Δx2
CENTRAL DIFFERENCE METHOD OF O(Δx6 ) IN... 147
Case 4: This case is different from the previous central nodes, Node 4 to
N N odes − 3, where the first derivative is discretized using central difference of
O(Δx6 ) in this manner:
k ui −3k 3ui 3k 3ui
− Ti−3 + + Ti−2 + − Ti−1
90Δx2 60Δx 20Δx2 20Δx 2Δx2 4Δx
49k 3k 3ui −3k 3ui
+ − 2
+ D Ti + 2
+ Ti+1 + 2
− Ti+2
18Δx 2Δx 4Δx 20Δx 20Δx
k ui
+ + Ti+3 = fi .
90Δx2 60Δx
5. Numerical Application
log(E1 /E2 )
CR = , (20)
log(Δx1 /Δx2 )
where E1 and E2 are average absolute errors (AAE) correspond to grids with
mesh sizes Δx1 and Δx2 , respectively.
Here, two applications will be proposed. In the first it is a convective-
diffusive case which will be varied in the convection coefficient in order to an-
alyze the efficiency of the method in highly convective situations. Finally, a
second application in the case of convection-diffusion with variable coefficients
and Robin condition will be tested and analyzed.
148 E.C. Romão, J.C.Z. Aguilar, M.D. de Campos, L.F.M. de Moura
In this case, the following equation and boundary conditions are employed:
dT d2 T dT (1)
γ − 2 = 0 in Ω = [0, 1], T (0) = 5 and = 10
dx dx dx
which analytical solution is given by T (x) = (c/γ)exp(γx) + d, where c =
10/exp(γ) and d = 5 − (c/γ).
In this application, for convection coefficient values at γ = 1, 10 and 100,
was fixed the thermal conductivity value in k = 1. For γ = 1 we have a
diffusion dominant case. For this situation, considering rough meshes with
Δx = 1/10, Δx = 1/20 or Δx = 1/40, all cases showed reasonable results
according to Table 1, destacking the cases 3 and 4, the which to Δx = 1/20,
already have results of about 10−4 . However, such as the problem it becomes
dominant, Tables 2 and 3, the results for rough meshes are unsatisfactory.
For this case we adopt the following equation and boundary conditions:
d2 T 1 dT
k 2 + = x + 1 in Ω = [0, 1],
dx 1 + x dx
dt(0) dT (1)
T (0) − k = 1 and T (1) = =1
dx dx
which analytical solution is given by
1 1 1
(x + 1)3 (x + 1)1− k 21− k 2− k 20
T (x) = +D − − + 1− ,
3(2k + 1) k−1 k−1 k 3(2k + 1)
Here, the convective and source terms are variable and the Robin boundary
conditions, where the condition at x = 0 depends on the conductivity coefficient
k, which, in this application, varies for values 2, 2×10−1 and 2×10−2 . For k = 2,
Table 5, we have a situation like the one presented in Table 1, i.e, the diffusive
dominant case. Note that for a mesh with Δx = 1/10 is possible to achieve
a standard order error of 10−4 . When k = 2 × 10−1 does not happen, since
the problem becomes convection dominant, increase the number of oscillations
so that a mesh with Δx = 1/10 the accuracy is only 10−4 (k = 2) to 10−1 for
k = 2 × 10−1 , in cases 1 and 2, Table 6. In Table 7, where k = 2 × 10−2 to
Δx = 1/10, Δx = 1/20, Δx = 1/40 and Δx = 1/80 the numerical oscillations
are very significant in four cases. From Table 7, an accuracy of order 10−4 was
only achieved by cases 3 and 4 in a mesh with Δx = 1/500, the same is not
true in cases 1 and 2 in the meshes proposed in this paper. Table 8 shows the
convergence rate of the results presented in Table 6. Note that it is significantly
higher in cases 3 and 4, the same had already occurred in an application 1.
152 E.C. Romão, J.C.Z. Aguilar, M.D. de Campos, L.F.M. de Moura
6. Conclusions
In this work, four formulations using the Finite Difference Method have been
proposed. In general, in all cases, the diffusion dominant problems, good results
were achieved. However, the dominant convective problems, cases 3 and 4 had
the best results. It is noteworthy that cases 1 and 3 showed divergence in
their results in an application, in which case, in which meshes used unrefined
form. The literature shows that convection dominant problems cause numerical
oscillations especially for unrefined meshes. However, in this work, the use of
central differences in the first and second derivative, cases 2 and 4, showed
reasonable results even for coarse meshes, to the point that, in case 4, have
accuracy of order 10−2 (for Δx = 1/40). In future work, this technique will be
implemented for two and three-dimensional and nonlinear problems.
Acknowledgments
The present work was supported by the National Council of Scientific Deve-
lopment and Technology, CNPq, Brazil (Proc. 500382/2011-5) and Mato Grosso
Research Foundation, Fapemat, Brazil (Proc. 292470/2010).
References
[5] E.C. Romão, L.F.M. Moura, J.B.C. Silva, Analysis of error in the solution
of the 2-D diffusion equation by finite element methods, TEMA Tend. Mat.
Apl. Comput., 9, No. 2 (2008), 287-298.
[6] E.C. Romão, M.D. Campos, L.F.M. Moura, Application of Galerkin and
least-squares finite element method in the solution of 3D Poisson and
Helmholtz equations, Computers and Mathematics with Applications, 62
(2011), 4288-4299.
[7] W.F. Spotz, G.F. Carey, A high-order compact formulation for the 3D
Poisson equation, Numerical Methods Partial Differential Equations, 12
(1996), 235-243.
154