Acessibilidade / Reportar erro

Multi-dimensional discretization error estimation for convergent apparent order

Abstract

This work presents procedures for estimating the error of numerical solutions of multi-dimensional problems. It is considered that: the numerical error is caused only by truncation errors; error estimations are based on the Richardson extrapolation; and numerical approximations are one-dimensional over uniform grids in each dimension. Two cases are analyzed: when grids are simultaneously refined in all four dimensions (x,y,z,t); and when grid refinement in each dimension is separate from the remaining ones. Examples of uses are presented for problems involving heat transfer and fluid mechanics, which are solved by the finite difference and finite volume methods. It was found that, for the situation in which the apparent order of the estimated error is a monotone convergent one, two values of estimated error can be calculated, which bound the true error.

Discretization error; truncation error; CFD; numerical error; fluid flows


TECHNICAL PAPERS

Multi-dimensional discretization error estimation for convergent apparent order

C. H. MarchiI; A. F. C. SilvaII

IDepartment of Mechanical Engineering; Federal University of Paraná; P. O. Box 19040; 81531-980 Curitiba, PR. Brazil; marchi@demec.ufpr.br

IIDepartment of Mechanical Engineering; Federal University of Santa Catarina; 88040-900 Florianópolis, SC. Brazil; fabio@emc.ufsc.br

ABSTRACT

This work presents procedures for estimating the error of numerical solutions of multi-dimensional problems. It is considered that: the numerical error is caused only by truncation errors; error estimations are based on the Richardson extrapolation; and numerical approximations are one-dimensional over uniform grids in each dimension. Two cases are analyzed: when grids are simultaneously refined in all four dimensions (x,y,z,t); and when grid refinement in each dimension is separate from the remaining ones. Examples of uses are presented for problems involving heat transfer and fluid mechanics, which are solved by the finite difference and finite volume methods. It was found that, for the situation in which the apparent order of the estimated error is a monotone convergent one, two values of estimated error can be calculated, which bound the true error.

Keywords: Discretization error, truncation error, CFD, numerical error, fluid flows

Introduction

It is still common to find in the relevant literature (Jameson and Martinelli, 1998) works in which the magnitude of the discretization error (Roache, 1998) is assessed only by presenting the numerical results obtained with two or three different grids. Nevertheless, it is already quite common to use Richardson extrapolation (Richardson, 1910) to estimate discretization errors, as, for example, in Roy and Blottner (2001). A variant of the Richardson extrapolation has also been used, the GCI estimator (Roache, 1994), for example, in Cadafalch et al. (2002).

For each variable of interest, the error estimation made through Richardson extrapolation uses numerical solutions obtained from two or more different grids, i.e., grids with a different number of volumes, points or elements. Therefore, in a two-dimensional problem, for example, the grids can be refined either simultaneously or separately in both directions (x and y).

The purpose of this work is to present procedures for estimating the error of numerical solutions of multi-dimensional problems when the apparent order (De Vahl Davis, 1983) of the estimated error is a monotone convergent one (Marchi and Silva, 2002). By doing so, one can define the lower and upper limits for the true error. Examples of uses are presented for problems involving heat transfer and fluid mechanics, which are solved by the finite difference and finite volume methods. Furthermore, we have developed our work taking into account the following factors:

1) The theory and the definitions adopted by Marchi and Silva (2002), which deals only with one-dimensional problems.

2) That the numerical error is caused only by truncation errors, i.e., it is either assumed that there are no errors related to iterations, round-off and due to programming (Marchi and Silva, 2002), or, rather, that these errors are very small when compared with truncation errors. In this case, the numerical error is called a discretization error.

3) Estimates of discretization errors are of an a posteriori type and are based on Richardson extrapolation (Richardson, 1910; Roache, 1994; Blottner, 1990; Oberkampf and Trucano, 2002), which uses multiple grids.

4) That up to three spatial dimensions (x,y,z) and one temporal (t) dimension are used.

5) That the numerical approximations used for discretizing the mathematical models are one-dimensional (Ferziger and Peric, 1999; Tannehill et al., 1997).

6) That the grids are uniform in each dimension.

7) Estimations of the discretization error can be applied to the dependent variables of the mathematical model or to any variable obtained from them through differentiation, integration or any other mathematical operation.

8) The exact analytical solutions are known for the variables of interest for the problems used as examples in this work. One can therefore compare the estimated error to the true error.

9) The numerical method works in all the grids.

In the next sections a definition of multi-dimensional discretization error and a summary of the significant results from Marchi and Silva (2002) are presented. The procedures used for estimating the true discretization error are shown for grids that are simultaneously refined in all dimensions and for when the refinement is separate in each dimension. Next, examples are presented that include two-dimensional steady-state heat conduction, one-dimensional transient heat conduction and two-dimensional incompressible Navier-Stokes flow. The numerical solutions to such problems are obtained by finite difference and finite volume methods. Finally, a conclusion to this work is presented.

Nomenclature

c = coefficients in the truncation error equation

C = coefficients in the discretization error equation

E = true discretization error of the numerical solution

h = grid spacing or distance between two successive grid points

K = coefficients in the numerical solution uncertainty equation

pL = asymptotic order of the discretization error

pU = apparent order of the uncertainty

r = grid refinement ratio

t = time

U = uncertainty or estimated error of the numerical solution

UC = uncertainty of the numerical solution by the convergent estimator

URi = uncertainty of the numerical solution by the Richardson estimator

x, y, z = spatial coordinates

Greek Symbols

e = truncation error

f = numerical solution of the variable of interest

F = exact analytical solution of the variable of interest

fC = convergent numerical solution

f¥ = estimated analytical solution

L = dependent variable

Subscripts

1 fine grid

2 coarse grid

3 supercoarse grid

b base grid

d dimension (1=x, 2=y, 3=z, 4=t)

Multi-Dimensional Discretization Error

Let us consider the two-dimensional equation of Laplace (Incropera and DeWitt, 1996):

where x and y are the independent variables and L is the dependent variable. This equation can be discretized with a central difference scheme (Ferziger and Peric, 1999) for each one of its terms, i.e.,

where

In Eqs. from (2) to (5), the subscripts refer to Fig. 1, in which P represents a generic node in the grid on which numerical approximations are made, and W, E, S and N represent its neighboring nodes. Other numerical approximations can be found in Ferziger and Peric (1999) and Tannehill, Anderson and Pletcher (1997).


Using a Taylor series (Kreyszig, 1999), one can verify that the truncation errors (e) (Tannehill, Anderson and Pletcher, 1997) of the numerical approximations given in Eqs. (2) and (3) are, respectively,

Introducing Eqs. (2) and (3) into Eq. (1), one can obtain

In this case, the truncation error of Eq. (8) results in the sum of the values of Eqs. (6) and (7). Thus, generalizing, for a four-dimensional differential equation (x,y,z,t) that has many terms in each dimension, with derivatives of several different orders, the truncation error of the discretized differential equation (DDE), in each P node of the grid, results in

where d = 1, 2, 3 and 4 represents, respectively, the dimensions x, y, z and t; hd represents the distance between two consecutive nodes of the grid in each d dimension; i represents each one of the terms of the infinite series, as in Eqs. (6) and (7); ci,d represents coefficients that depend on the derivatives of L in each node of the grid, but do not depend on hd; finally, pi,d are the true orders (Marchi and Silva, 2002) of the truncation error, which are integer and positive numbers. Comments on the different nature of spatial and temporal terms of Eq. (9) and about the own Eq. (9) can be seen in Roache (1998), mainly on pages 125 and 126 and Roache (1994).

In analogy (Roache, 1998; Ferziger and Peric, 1999) to the truncation error equation (e) of Eq. (9), it is possible to assume that the true discretization error (E) of any variable of interest (f) is given by

in which f can be the numerical solution of the dependent variable (L) in the differential equation, at a specific coordinate, its average of the whole field, or any other variable obtained from L; and the coefficients Ci,d and the exponents pi,d may or may not be equal to the coefficients ci,d and pi,d of Eq. (9), depending on f. The true discretization error of the numerical solution (f) can also be defined by

Determining the true discretization error through Eq. (10) or (11) requires knowing the exact analytical solution (F). Unfortunately, in practical problems, F is unknown. In such cases, the concept of estimated error (U) is adopted, which is defined by

where f¥ represents an estimation of F. To do so, one can use a simplification of Eq. (10), retaining only the first term of each dimension, i.e., the term that prevails over the remaining ones as hd ® 0. Thus, one obtains

in which the coefficients Kd are assumed as constant, i.e., they do not depend on hd; and px, py, pz and pt are the asymptotic orders (Marchi and Silva, 2002) of the true discretization error of each dimension. Generally speaking, the value of the estimated error (U) is different from the true error (E) due to the simplification made while moving from Eq. (10) to Eq. (13).

Obtaining f¥ and U in multi-dimensional problems is dealt in this work but first, in the next section, the significant results of Marchi and Silva (2002) are presented because they are the base for the present multi-dimensional problems.

One-Dimensional Discretization Error Estimation for Convergent Apparent Order

The Richardson Error Estimator for One-Dimension

For one-dimension, Eq. (13) reduces to

where KL is a constant, hL is the grid spacing and pL is the asymptotic order of the true discretization error. In Eq. (14), instead of using pL, one can also use the concept of apparent order (pU) (De Vahl Davis, 1983), i.e.,

where KU is a constant and

for a constant grid refinement ratio (r), defined by

where f1, f2 and f3 are the numerical solutions obtained, respectively, with the fine grid (hL,1), coarse grid (hL,2) and supercoarse grid (hL,3).

It was analyzed the estimate of discretization errors for the situation where the apparent order (pU) converges monotonically toward the asymptotic order (pL) as hL ® 0. This happens in two ways that are defined as subconvergent and superconvergent intervals of the apparent order (pU) or simply denoted as "convergent apparent order". Within the subconvergent interval, pU converges monotonically to pL with smaller values than pL as hL ® 0. Within the superconvergent interval, pU converges monotonically to pL with larger values than pL as hL ® 0.

If the apparent order (pU) is monotone convergent, then the exact analytical solution (F) will be bound between f¥(pL) and f¥(pU), with

Equations (18) and (19) are the generalized Richardson extrapolations (Roache, 1994). Replacing them in Eq. (12), one obtains

which represent the estimated errors of the numerical solution f1 according to the Richardson error estimator (URi). It was demonstrated that

in which pa and pb represent the asymptotic order (pL) or the apparent order (pU), depending on whether pU is subconvergent or superconvergent. Within the convergent interval of pU, this relation worked for all cases and variables of interest: eight linear and non-linear differential equations in fluid dynamics discretized by the finite difference method with uniform one-dimensional grids and with six types of numerical approximations. Outside convergent interval of pU, this relation can or not works. One has not found a procedure to estimate a priori the beginning of the convergent interval of pU.

An estimated error (U) may be defined as reliable when the ratio between estimated error (U) and true error (E) is larger or equal to unity. According to Eq. (22), the true discretization error of the numerical solution f1, E(f1), is bound by the estimated errors URi(f1,pL) and URi(f1,pU). Therefore, if the objective is to obtain a reliable estimated error, the numerical solution of the variable of interest (f) should be presented or reported by

where

with sg(f1-f2 ) representing the sign of the difference between f1 and f2, and Max{}, the maximum between the modules of URi(f1,pL) and URi(f1,pU).

The Convergent Error Estimator for One-Dimension

With the same numerical solutions (f1, f2 and f3) used to obtain the estimated errors provided in Eqs. (20) and (21), it is possible to reduce the true discretization error of the numerical solution, E(f1), through "The Convergent Numerical Solution" (fC), defined by

where f¥(pL) and f¥(pU) are obtained by the Richardson extrapolation, Eqs. (18) and (19). For fC, the numerical solution of the variable of interest (f) should be presented or reported by

in which the estimated error of fC, UC(fC), is equal to the modulus of half of the interval between f¥(pL) and f¥(pU), that is,

Hereafter, UC is called "The Convergent Error Estimator".

Within the convergent interval of pU, it is advisable to use the convergent numerical solution (fC) instead of the calculated numerical solution (f1) because the true discretization error of fC, E(fC), is smaller than the true discretization error of f1, E(f1).

Simultaneous Refinement of a Grid in All Dimensions

Refinement is characterized as simultaneous refinement when the number of nodes, elements or control volumes of all four dimensions (x, y, z, t) vary among the grids used to estimate the discretization error. In a three-dimensional problem, for example, this is done by refining of a grid from 10*10*10 to 15*20*30 control volumes. In the next section, describes the case in which grid refinement in each dimension is separate from that of the remaining ones. Next, two situations will be examined: when the grid refinement ratio is variable in each dimension; and when it is the same.

Variable Grid Refinement Ratio

With Eqs. (12) and (13) designed for five different grids, i.e. with a different number of nodes, elements or control volumes among them in each dimension, indicated by hd,1, hd,2, hd,3, hd,4 and hd,5, and whose numerical solutions are, respectively, f1, f2, f3, f4 and f5, one can obtain

In this system of equations, all values of hd, pd, f1, f2, f3, f4 and f5 are known. The unknown values are the four constants Kd and f¥. After the solution of this system for f¥ is obtained, one can determine with Eq. (12) the estimated error of each one of the five numerical solutions used in Eq. (28). Only four or three numerical solutions are necessary, respectively, to obtain f¥ and to calculate the estimated errors in steady-state three-dimensional and two-dimensional problems. In the one-dimensional case, with only two numerical solutions one can obtain f¥ and U, as has been demonstrated by Roache (1998, 1994), Marchi and Silva (2002) and Blottner (1990).

In the system of Eqs. (28), it is assumed that the asymptotic orders px, py, pz and pt are known based on the numerical approximations used in the discretization of the differential equation. However, they can be left free, i.e., they can be obtained through the concept of apparent order (De Vahl Davis, 1983). Hence, in the four-dimensional case, there will be four other unknown ones and nine numerical solutions will be needed to obtain f¥. The one-dimensional case has been shown in Marchi and Silva (2002).

Same Grid Refinement Ratio in All Dimensions

Let us consider two different grids, the first, a fine one, characterized by hx,1, hy,1, hz,1 and ht,1, and the second, a coarse one, characterized by hx,2, hy,2, hz,2 and ht,2. In a particular case of the grid refinement ratio (r) being the same for all dimensions, i.e.

where r can take on real values greater than the unit value, it is possible to demonstrate that Eq. (13) results in

where

and that ax, ay, az and at are constants; pL represents the minimum value among the asymptotic orders of the four dimensions, according to Eq. (31); and hL is the dimension of the grid related to pL. For hL ® 0, Eq. (30) is reduced to Eq. (14), which together with Eq. (15) represent precisely the one-dimensional case of the previous section. Hence, Eqs. (14) to (27) can be used to obtain the estimated error of numerical solutions in multi-dimensional problems, as long as the grid refinement ratio (r) remains the same in all the dimensions.

Separate Refinement of a Grid in Each Dimension

Refinement is characterized as separate refinement when each (spatial and temporal) dimension is separately refined from the others, with asymptotic orders (pL) and grid refinement ratios (r) being equal or different from each other in each dimension. The main reason that justifies using separate refinement is the possibility of obtaining error estimations with smaller grids than those required to carry out simultaneous refinement.

Separate refinement is also important because it provides information on the contribution of each dimension to the discretization error. This information can help to determine if the appropriate number of grid points have been used in each dimension. One wants the contribution to the discretization error from each dimension to be nearly the same.

In multi-dimensional problems, there are several possible ways of carrying out separate refinement to estimate the discretization error of a numerical solution, as can be seen in Fig. 2 for a two-dimensional problem. In this figure, x3, x2 and x1 represent, respectively, the number of nodes, elements or control volumes in the direction x, of the supercoarse, coarse and fine grids. The same applies to y3, y2 and y1 in the direction y. The arrows indicate the extrapolation process that allows one to obtain numerical solutions in the x¥ and y¥ grids.


The example shown in Fig. 2 relates, as will seen later on, to the case in which the apparent order (pU) of each dimension is calculated, in which case three grids are necessary in each dimension, according to Eqs. (16), (19) and (21). But in the case of using the concept of asymptotic order (pL), only two grids are necessary in each dimension, according to Eqs. (18) and (20).

In Fig. 2, the simultaneous refinement, described in the previous section, is characterized by the diagonal line that links the grids (x3,y3), (x2,y2) and (x1,y1), which represent, respectively, the numerical solutions f3, f2 and f1. Using these numerical solutions and the Richardson extrapolation, Eq. (19), f¥ can be determined, which is represented by the grid (x¥,y¥ ).

The Richardson Error Estimator for Multi-Dimensions

Holding Eq. (13) to be valid and taking the theory of Marchi and Silva (2002) for one-dimensional problems into consideration, the discretization error estimation of the numerical solution can be found for a multi-dimensional problem by using (Roache, 1994)

where fb represents the numerical solution obtained using the grid defined as "the base grid". This grid should be the same one involved in the refinements carried out in all the dimensions. To the example of Fig. 2, if the refinement in the x direction involves the grids (x3,y2), (x2,y2) and (x1,y2), and the refinement in the y direction involves the grids (x2,y3), (x2,y2) and (x2,y1), the base grid is (x2,y2).

In Eq. (32), Ub(fb) represents the estimated error of the numerical solution fb. The parameters that appear in Eq. (32) have been calculated through

with d = 1, 2, 3 and 4 representing, respectively, the dimensions x, y, z and t; f3,d, f2,d and f1,d are the numerical solutions obtained, respectively, using a supercoarse grid (h3,d), a coarse grid (h2,d) and a fine grid (h1,d) in each dimension, which are related through the grid refinement ratio rd, in Eq. (37); pL,d and pU,d represent the asymptotic and apparent orders of each d dimension.

Let us suppose the apparent order of each dimension (pU,d) is convergent, according to the definition of Marchi and Silva (2002), then the true discretization error for the numerical solution fb, which is E(fb), will be bound by Ub(fb), that is,

where Ul(fb) can be obtained through Eq. (32) by substituting Max for Min in Eq. (33), that is, by reaching the sum of the minimum value of the estimated error in each dimension. In this case, the numerical solution of the variable of interest (f) must be presented or reported by

The Convergent Error Estimator for Multi-Dimensions

For simultaneous refinement, carried out through Eqs. from (25) to (27), it has been shown that it is possible to reduce the true discretization error (E) using the same set of numerical solutions used to calculate the estimated error (U). This can also be done for separate refinement when Eq. (38) holds true. In this case, adopting the same numerical solutions which are used to calculate Ub(fb), that is, f3,d, f2,d and f1,d, it is possible to reduce the value of the true discretization error of the numerical solution, E(fb), through

where (fM) and (UM) are called, respectively, "The Convergent Numerical Solution" and "The Convergent Error Estimator" for multi-dimensional problems, and

in which f¥,d(pL,d) and f¥,d(pU,d) are provided by Eqs. (34) and (35).

Equations (40) and (41) are equivalent, respectively, to Eqs. (25) and (27) used in simultaneous refinement. For fM, the numerical solution of the variable of interest (f) should be presented or reported by

The techniques adopted for simultaneous refinement and separate refinement can be used together in the so-called mixed refinement. In a transient two-dimensional problem (x,y,t), for example, simultaneous refinement may be adopted in the x and y directions, while separate refinement is taken up between (x,y) and the time (t).

Results

In this section, numerical results to three problems are shown and described to illustrate how the theory explained in previous sections is applied.

Definition of the Problems

Problem 1 consists of a two-dimensional steady-state heat conduction (Incropera and DeWitt, 1996), described by the Laplace equation (Kreyszig, 1999), Eq. (1). The boundary conditions are of the Dirichlet type at the four sides of a square domain having one unit side, with L(x,1) = sin(px) and L = 0 in the other three contours. The analytical solution is

Problem 2 consists of a transient one-dimensional heat conduction (Incropera and DeWitt, 1996), as defined by the equation

The Dirichlet boundary conditions are L(0,t) = L(1,t) = 0, and the initial condition is given by L(x,0) = sin(px). The analytical solution is

The solution to the problem is obtained for the instant in time t = 0.1 s.

Problem 3 consists of a two-dimensional incompressible Navier-Stokes flow within a square cavity, having a unit side, and with a lid that moves, making the fluid flow along the inside of the cavity. This problem is modeled by the Navier-Stokes equations and described in section 2 of Shih, Tan and Hwang (1989). The mathematical model involves the mass conservation equation and the x- and y-momentum equations, maintaining constant values for viscosity and mass density. A source term is added to obtain an analytical solution to the problem for its three unknown values: two being components of velocity (u, v) and the other pressure. The analytical solution to this problem is provided by Shih, Tan and Hwang (1989).

For Problems 1 and 2, the two variables of interest, that is, the variables for which the true errors and their estimations are being analyzed are the temperature at the center of the solution domain and the average temperature of the field. In the case of Problem 3, the variables of interest are u and v, at the center of the domain, and the mass flow rate (M) that is circulating within the cavity from y = 0 up to y = ½ at x = ½.

The finite difference method was used for Problems 1 and 2, and the finite volume method (Marchi and Maliska, 1994) for Problem 3. In the three problems, the spatial derivatives were given approximated values through the central difference scheme (Ferziger and Peric, 1999). Equation (46) was discretized through the implicit Euler method (Ferziger and Peric, 1999). In Problems 1 and 3, iterations were carried out until the iteration errors reached round-off level to minimize their effects on the discretization errors. The solution to Problem 2 was obtained with one iteration of the TDMA method (Ferziger and Peric, 1999) at each time step.

Same Grid Refinement Ratio in All Dimensions

Adopting simultaneous refinement in the three multi-dimensional problems described above, the same conclusions were reached as those reached in Marchi and Silva (2002) with respect to one-dimensional problems. Some of the results are commented as follows.

Table 1 presents the numerical solutions of L(½,½) that were obtained in three different grids for Problem 1. F represents the analytical solution of the variable of interest, that is, the temperature at the center of the solution domain. f3, f2 and f1 represent the numerical solutions. The use of the Richardson error estimator (URi), which involves Eqs. from (16) to (24), is shown in the left-hand column of Table 2, where the equation used to calculate each parameter is indicated. The true discretization error (E) is calculated by using Eq. (11). The use of the convergent error estimator (UC), which involves Eqs. from (25) to (27), is shown in the right-hand column of Table 2.

Results for many different grids are presented in Fig. 3. In this figure, for Problem 1, the estimated errors URi(f1) and UC(fC) and the true discretization errors E(f1) and E(fC) of the temperature at the center of the domain are shown. The results refer to grids of 3x3 to 1025x1025 points, where r = 2. In this figure, one can see the significant advantage of using fC, instead of f1, for reducing the true discretization error. It can also be verified that the estimated error by both the Richardson estimator (URi) as well as the convergent estimator (UC) are reliable for any hL.


Table 3 shows the numerical solutions of u(½,½) obtained from three different grids for Problem 3. F represents the exact analytical solution of the variable of interest, that is, the component of velocity in the x direction in the center of the solution domain. f3, f2 e f1 represent the numerical solutions. The use of the Richardson error estimator (URi), which involves Eqs. from (16) to (24), is shown in the left-hand column of Table 4, where the equation used to calculate each parameter is indicated. The true discretization error (E) is calculated by using Eq. (11). The use of the convergent error estimator (UC), which involves Eqs. from (25) to (27), is shown in the right-hand column of Table 4.

In Tables 2 and 4 one can see the key information: (i) the estimated error by the Richardson estimator (URi) is reliable, seeing as URi(f1)/E (f1) > 1, and it is accurate because URi(f1)/E (f1) » 1; (ii) the relationship of Eq. (22) is met once f¥(pL) and f¥(pU) bound F; and (iii) both the estimated error as well as the true error of the convergent numerical solution (fC) are much smaller than the calculated numerical solution (f1) since UC(fC)/URi( f1) and E(fC)/E(f1) << 1.

Table 5 displays the values obtained for apparent order (pU) of the variables of interest in Problems 1, 2 and 3, using simultaneous refinement and the grid refinement ratio r = 2. The expected asymptotic order (pL) is also shown, which is obtained from the truncation error inferred with the Taylor expansion series on the discretized mathematical model, as shown in Eqs. (6) and (7). The size of the grids displayed in Table 5 refer to finest grids. Hence, to calculate the apparent order (pU), through Eq. (16), two coarser grids were used in each case. For example, for Problem 3 the grids 256*256, 128*128 and 64*64 were used.

Separate Refinement of a Grid in Each Dimension

The numerical solutions of Problem 2, Eq. (46), are shown in Table 6, for the temperature in the center of the domain. In this case, seeing as it is a two-dimensional problem, the calculation of the estimated error (Ub) involves numerical solutions obtained in five different grids. In this example, the grid 65*750 was chosen as the grid common to both dimensions, that is, it is the base grid, hence, fb = f2,x = f2,t.

Through analyzing the truncation errors of the numerical approximations used to discretize Eq. (46), it was determined that their asymptotic orders are pL,x = 2 and pL,t = 1. In this example, the refinement ratio of the grid in the x dimension (rx = 2) is different from the t dimension (rt = 1.5). Through Eqs. from (33) to (36), pL,x, pL,t and with the numerical solutions given in Table 6, one can reach the results presented in Table 7. With these results, in turn, one can use the Richardson error estimator (Ub), through Eqs. from (32) to (37) and (39), to find the results shown on the left-hand column of Table 8. It should be noted that Ub(fb)/E (fb) > 1, in other words, the estimated error Ub(fb) is reliable for it overestimates the true error E(fb), and it is quite accurate, seeing as Ub(fb)/E (fb) » 1.

The use of the convergent error estimator (UM) is shown in the right-hand column of Table 8. To do so, Eqs. from (40) to (44) were used based on the same numerical solutions of Problem 2 given in Table 6 and adopting the parameters provided in Table 7. One can see in Table 8 that UM(fM)/E (fM) = 1.00228, that is, the estimated error UM(fM) is reliable for it overestimates the value of the true error E(fM). Moreover, there have been significant reductions in both the estimated error as well as the true error of the convergent numerical solution (fM) with respect to the calculated numerical solution (fb) seeing as UM(fM)/Ub( fb) and E(fM)/E(fb ) << 1.

Conclusion

Two procedures were presented to estimate the error of numerical solutions in multi-dimensional problems. Both of the procedures are based on Richardson extrapolation which makes use of multiple grids. In the first procedure, the number of nodes, elements or control volumes of all four dimensions (x, y, z, t) vary among the grids used to estimate the discretization error. In the second procedure, each (spatial and temporal) dimension is separately refined from the others, with asymptotic orders (pL) and grid refinement ratios (r) being equal or different from each other in each dimension.

These two procedures have been named, respectively, simultaneous refinement and separate refinement. They have been proven to work successfully in the tests carried out, which involved three different problems: two-dimensional steady-state heat conduction, one-dimensional transient heat conduction and two-dimensional incompressible Navier-Stokes flow. The problems were solved by finite difference and finite volume methods for three types of variables of interest: the dependent variables (L,u,v), the averages of the dependent variables in the whole field (average L) and the integration of a dependent variable (M).

It was shown that the use of simultaneous refinement in multi-dimensional problems is the same as for one-dimensional problems. This occurs if the same grid refinement ratio is used in all dimensions and if the apparent order (pU) of the estimated error is of the monotone convergent type. In this case, all of the conclusions of Marchi and Silva (2002) prove valid, among which the following are worthy of note: the true discretization error (E) is bound by the estimated values of error found by the Richardson error estimator (URi), which are calculated based on the asymptotic (pL) and apparent (pU) orders; the true error and the estimated error of the numerical solution can be reduced in a reliable manner by adopting the convergent numerical solution (fC) and its respective convergent error estimator (UC); and, outside of the convergent interval of the apparent order (pU) there is no guarantee as to validity of the two previous conclusions.

The conclusions reached for simultaneous refinement also hold true for separate refinement provided: the apparent order (pU) of each dimension is of the monotone convergent type and that there is one grid (a base grid) common to all of the refinements carried out in all of the dimensions.

Acknowledgements

The first author would like to thank the sponsors who supported this work: Federal University of Paraná (UFPR), Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (CAPES), Programa de Pós-Graduação em Engenharia Mecânica/Federal University of Santa Catarina (POSMEC/UFSC), and Computational Fluid Dynamics Laboratory/Federal University of Santa Catarina (SINMEC/UFSC).

The authors would like to thank the three reviewers of this work.

Paper accepted July, 2005.

Technical Editor: Aristeu da silveira Neto.

  • Blottner, F. G., 1990, "Accurate Navier-Stokes Results for the Hypersonic Flow Over a Spherical Nosetip", J. of Spacecraft and Rockets, Vol.27, pp. 113-122.
  • Cadafalch, J., Pérez-Segarra, C. D., Cònsul, R., and Oliva, A., 2002, "Verification of Finite Volume Computations on Steady-State Fluid Flow and Heat Transfer", J. of Fluids Engineering, Vol.124, pp. 11-21.
  • De Vahl Davis, G., 1983, "Natural Convection of Air in a Square Cavity: a Bench Mark Numerical Solution", Int. J. for Numerical Methods in Fluids, Vol.3, pp. 249-264.
  • Ferziger, J. H., and Peric, M., 1999, "Computational Methods for Fluid Dynamics", 2nd ed., Springer-Verlag, Berlin, 389 p.
  • Incropera, F. P., and DeWitt, D. P., 1996, "Fundamentals of Heat and Mass Transfer", 4th ed., Wiley, New York, 885 p.
  • Jameson, A., and Martinelli, L., 1998, "Mesh Refinement and Modeling Errors in Flow Simulation", AIAA J., Vol.36, pp. 676-686.
  • Kreyszig, E., 1999, "Advanced Engineering Mathematics", 8th ed., Wiley, New York, 1156 p.
  • Marchi, C. H., and Maliska, C. R., 1994, "A Nonorthogonal Finite Volume Method for the Solution of All Speed Flows Using Co-Located Variables", Numerical Heat Transfer, Part B, Vol.26, pp. 293-311.
  • Marchi, C. H., and Silva, A. F. C., 2002, "Unidimensional Numerical Solution Error Estimation for Convergent Apparent Order", Numerical Heat Transfer, Part B, Vol.42, pp. 167-188.
  • Oberkampf, W. L., and Trucano, T. G., 2002, "Verification and Validation in Computational Fluid Dynamics", Progress in Aerospace Sciences, Vol.38, pp. 209-272.
  • Richardson, L. F., 1910, "The Approximate Arithmetical Solution by Finite Differences of Physical Problems Involving Differential Equations, with an Application to the Stresses in a Masonry Dam", Phylosophical Proceedings of the Royal Societyof London Serial A, Vol.210, pp. 307-357.
  • Roache, P. J., 1994, "Perspective: a Method for Uniform Reporting of Grid Refinement Studies", J. of Fluids Engineering, Vol.116, pp. 405-413.
  • Roache, P. J., 1998, "Verification and Validation in Computational Science and Engineering", Hermosa, Albuquerque, 446 p.
  • Roy, C. J., and Blottner, J. R., 2001, "Assessment of One- and Two-Equation Turbulence Models for Hypersonic Transitional Flows", J. of Spacecraft and Rockets, Vol.38, pp. 699-710.
  • Shih, T. M., Tan, C. H., and Hwang, B. C., 1989, "Effects of Grid Staggering on Numerical Schemes", Int. J. for Numerical Methods in Fluids, Vol.9, pp. 193-212.
  • Tannehill, J. C., Anderson, D. A., and Pletcher, R. H., 1997, "Computational Fluid Mechanics and Heat Transfer", 2nd. ed., Taylor & Francis, Washington, 792 p.

Publication Dates

  • Publication in this collection
    02 Jan 2006
  • Date of issue
    Dec 2005

History

  • Received
    July 2005
  • Accepted
    July 2005
Associação Brasileira de Engenharia e Ciências Mecânicas - ABCM Av. Rio Branco, 124 - 14. Andar, 20040-001 Rio de Janeiro RJ - Brazil, Tel.: +55 21 2221-0438, Fax: +55 21 2509-7129 - Rio de Janeiro - RJ - Brazil
E-mail: abcm@abcm.org.br