Abstract
A large number of problems in physics and technology lead to boundary value or initial boundary value problems for linear and nonlinear partial differential equations. Moreover, the number of problems that have an analytical solution is limited. These are problems in canonical domains such as, for example, a rectangle, circle, or ball, and usually for equations with constant coefficients. In practice, it is often necessary to solve problems in very complex areas and for equations with variable coefficients, often nonlinear. This leads to the need to look for approximate solutions using various numerical methods. A fairly effective method for the numerical solution of problems in mathematical physics is the finite difference method or the grid method, which makes it possible to reduce the approximate solution of partial differential equations to the solution of systems of algebraic equations. The article studied the most popular numerical methods of the first, second, third and fourth order of accuracy. All of these circuits have been compared with exact solutions.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
- Mathematical model
- Wave Equation
- finite-difference schemes
- computational algorithms
- nonstationary
- high order
- Gas movement
- mathematical physics
1 Introduction
Mathematical modeling, as one of the ways to obtain new knowledge, today is one of the main research methods in various fields of natural science. Gas movement in a wind tunnel, tsunami wave propagation, plasma scattering in a trap, weather changes and other numerous phenomena in science and technology are described by various mathematical models represented in the form of integral and partial differential equations. Modern computational algorithms make it possible with sufficient accuracy to solve these systems of equations in two-dimensional and three-dimensional approximations when solving various classes of problems, taking into account real geometries and nonstationarity of the process. Further progress in the development of numerical methods is associated with the development of new numerical algorithms and an increase in the speed and power of modern computing technology [1].
Modern problems of mathematical physics impose different requirements on the applied numerical algorithms, the main ones of which are:
-
high order of approximation (provides a more accurate solution on sufficiently coarse grids);
-
stability of algorithms (allowing calculations with large time steps);
-
conservativeness (correct resolution of discontinuous solutions);
-
monotonicity (no oscillations in areas of high gradients);
-
efficiency (as minimizing the number of arithmetic operations per grid point);
-
the universality of algorithms (the possibility of their extension to multidimensional 2D, 3D problems);
-
adaptation of algorithms to irregular or unstructured meshes;
-
the ability to parallelize computations (when using multiple computing processors - cores).
In this article, various finite-difference schemes are described and studied in detail, with the help of which one can solve the simplest model equations. We will restrict ourselves to consideration - the first order wave equation. These equations are called model equations because they are used to study the properties of solutions to more complex partial differential equations. Thus, the heat conduction equation can be considered as a model for other parabolic partial differential equations, for example, boundary layer equations. All considered model equations have analytical solutions for some boundary and initial conditions. Knowing these solutions, it is easy to evaluate and compare the various finite difference methods used to solve more complex partial differential equations. Of the many existing finite-difference methods for solving partial differential equations, this article mainly describes methods that have properties characteristic of a whole class of similar methods. Some finite-difference methods useful for solving equations are not presented, since they are similar to those described [2, 3].
For comparison, the most popular finite difference schemes were used, such as: explicit Euler scheme, upstream scheme, Lax scheme, implicit Euler scheme, leapfrog method, Lax - Wendroff method, McCormack method, Warming - Cutler - Lomax method, Abarbanel–Gottlieb–Turkel method.
In this article, as a model equation, we will choose Eq. (1), which we will call the one-dimensional wave equation of the first order, or simply the wave equation. The one-dimensional wave equation is a linear hyperbolic equation describing the propagation of a wave with a velocity u along the x-axis. It simulates in an elementary form nonlinear equations describing gas-dynamic flows:
In the general case, both the unknown \(u\) and \(F\left( u \right)\) the function are vectors.
For the stability of the numerical schemes, the CFL criterion was used.
The Courant-Friedrichs-Levy criterion (CFL criterion) is a necessary condition for the stability of an explicit numerical solution of partial differential equations. As a consequence, in many computer simulations the time step must be less than a certain value or the results will be incorrect. The physical criterion of CFL means that a liquid particle in one time step should not move more than one spatial step. Or, in other words, the computational scheme cannot correctly calculate the propagation of a physical disturbance, which in reality moves faster than the computational scheme allows “tracking”, that is, one step in space for one step in time.
Here the constant C = 1 depends on the equation, but does not depend on ∆t and ∆x.
2 Description of Schemes
2.1 Explicit Euler Method
This method leads to two simple explicit one-step difference schemes but only one scheme was presented in the article:
with an approximation error \(O\left( {\Delta t,\left( {\Delta x} \right)^{2} } \right)\), respectively. Both of these schemes have the first order of approximation, since the leading term in the expression for the error is of the first order (\(\Delta t\)). Difference schemes (2) are explicit, since each difference equation contains only one unknown \(u_{i}^{n + 1}\). Unfortunately, the analysis of the stability of difference schemes (2) by the Neumann method leads to the fact that both of them are absolutely unstable and, therefore, are unsuitable for the numerical solution of the wave equation.
2.2 Differences Upstream
A simple explicit scheme (2) (Euler’s method) can be made stable if, when approximating the spatial derivative, one uses not forward differences, but backward differences in cases where the wave velocity c is positive. If the wave velocity is negative, then the stability of the scheme is ensured by using forward differences. This issue will be considered in more detail in the book [3] when describing the method of splitting the matrix coefficients. When using backward differences, difference equations take the form [4]:
This difference scheme has the first order of accuracy with an approximation error \(O\left( {\Delta t,\Delta x} \right)\). It follows from the Neumann stability condition that the scheme is stable for \(\frac{\Delta t}{{\Delta x}} \le 1\).
2.3 Lax’s Scheme
Difference scheme (2) (Euler’s method) can be made stable by replacing it with the spatial average \(\frac{{u_{i + 1}^{n} - u_{i - 1}^{n} }}{2}\). As a result, we obtain the well-known Lax scheme [5]:
This is an explicit one-step scheme of the first order of accuracy with an \(O\left( {\Delta t,\left( {\Delta x} \right)^{2} /\Delta t} \right)\) approximation error. She’s stable with \(\frac{\Delta t}{{\Delta x}} \le 1\).
2.4 Implicit Euler Method
All three methods of Euler, versus Stream and Lax are explicit methods. Consider an implicit difference scheme [6,7,8,9].
This is a first-order scheme with an approximation error \(O\left( {\Delta t,\left( {\Delta x} \right)^{2} } \right)\). Analysis of the Neumann stability (Fourier analysis) shows that it is stable at any time step, that is, it is absolutely stable. However, when using this scheme, at each time step, you have to solve the sweep.
2.5 Leapfrog Method (Leapfrog Method)
Until now, only schemes of the first order of accuracy for solving a linear wave equation have been considered. The simplest second-order accurate method is the step-over method. Applying it to the first-order wave equation, we obtain an explicit one-step three-layer time difference scheme:
The step-by-step method is called three-layer in time, since in order to determine the value of and at the \(n + 1\)-th time step, it is necessary to know the values at the \(n - 1\)-th and n-th time steps.
The method has an approximation error of \(O\left( {\left( {\Delta t} \right)^{2} ,\left( {\Delta x} \right)^{2} } \right)\) and is stable for \(\frac{\Delta t}{{\Delta x}} \le 1\).
2.6 Lax-Wendroff Method
The Lax - Wendroff scheme [10] can be constructed based on the Taylor series expansion:
This is an explicit one-step scheme of the second order of accuracy with an approximation error of \(O\left( {\left( {\Delta t} \right)^{2} ,\left( {\Delta x} \right)^{2} } \right)\), stable at \(\frac{\Delta t}{{\Delta x}} \le 0.01\).
2.7 McCormack Method
McCormack’s method [11] is widely used to solve the equations of gas dynamics. McCormack is especially handy for solving nonlinear partial differential equations. Applying the explicit predictor-corrector method to the linear wave equation, we obtain the following difference scheme:
Predictor
Corrector
Initially (the predictor) the estimate of the \(\overline{{u_{i}^{n + 1} }}\) value and at the \(n + 1\)-th time step is found, and then (the corrector) the final value of \(u_{i}^{n}\) is determined at the \(n + 1\)-th time step. Note that in the predictor pro and input \(\frac{\partial u}{{\partial x}}\) is approximated by forward differences, and in the corrector - by backward differences. You can do the opposite, which is useful in solving some problems. Such problems include, in particular, problems with moving discontinuities.
2.8 Warming - Cutler - Lomax Method
Warming et al. [12] proposed a method of the third order of accuracy, which at the first two time steps coincides with the McCormack method and at the third with Rusanov’s method:
Step 1
Step 2
Step 3
This is an explicit three-step scheme of the third order of accuracy with an approximation error \(O\left( {\left( {\Delta t} \right)^{3} ,\left( {\Delta x} \right)^{3} } \right)\), stable at \(\frac{\Delta t}{{\Delta x}} \le 0.01\).
2.9 The Abarbanel–Gottlieb–Turkel Method
The article [13] presents a scheme of four step schemes of the fourth order of accuracy. This scheme has the following form:
Step 1
Step 2
Step 3
Step 4
This is an explicit four-step scheme of the fourth order of accuracy with an approximation error \(O\left( {\left( {\Delta t} \right)^{4} ,\left( {\Delta x} \right)^{4} } \right)\) stable at \(\Delta t/\Delta x \le 1\).
When use methods of the third and fourth order of accuracy, the increase in the accuracy of the algorithm has to be paid for by an increase in the computation time and the complexity of the difference scheme. This must be carefully considered when choose a method for solving a partial differential equation. Usually, for most applications, methods of the second order of accuracy can be obtained with sufficient accuracy.
3 The Discussion of the Results
In Fig. 1 shows graphs comparing the results of various schemes with experimental data.
Figure 1 shows the explicit Euler scheme, the implicit Euler scheme, the leapfrog method, the Lax - Wendroff method, the McCormack method gives the same results. The upstream schemes, the Warming - Cutler – Lomax and Abarbanel–Gottlieb–Turkel methods give results close to experimental data.
Now let’s consider how changing the grids affects the results of the first-order versus-flow, second-order McCormack, third-order Warming-Cutler-Lomax and fourth-order Abarbanel–Gottlieb–Turkel methods.
In Fig. 2 shows the effect of meshes in the resultant upstream circuit.
Figure 2 shows the upstream diagram when the computational grids change, approximates the experimental data, but the upstream diagram is not stable when time changes because this diagram is explicit and gives the first order of accuracy.
In Fig. 3 shows the effect of grids in the resulting McCormack scheme.
Figure 3 you can see McCormack’s method describes the process more accurately, but due to the second order of accuracy, the result oscillates.
Now let’s look at third-order schemes. In Fig. 4 shows how changing the grids affects the results of the Warming-Cutler-Lomax method. Because this method gives a closer result.
Figure 4 can be seen when increasing the grids, the results are very close to the experiment, but the result is highly oscillatory.
In Fig. 5 shows how mesh changes affect the results of the Abarbanel–Gottlieb–Turkel method.
When using Abarbanel–Gottlieb–Turkel methods, the position of the fracture is determined more accurately. The calculation results differ from those obtained by the first to third order method.
4 Conclusion
In this article, the basic finite-difference solution methods for simple model equations have been studied. At the same time, the task was not set to describe all the known methods for solving these equations. However, the presented methods are a reasonable prerequisite for the analysis of methods for solving more complex problems [7, 8, 14,15,16,17,18,19,20]. From the information presented in the article, it can be seen that many different numerical methods can be used to solve the same problem. The difference in the quality of solutions obtained by these methods is often small, so it is quite difficult to choose the optimal method. However, it is possible to choose the best method using the experience gained during programming by various numerical methods and the subsequent solution of model equations on a computer.
In conclusion, it should be noted that the use of the scheme should be treated with caution. Because different schemes give different results for the same task. For separated flows, the McCormack, Warming-Cutler-Lomax and Abarbanel-Gottlieb-Turkel schemes give approximately the same results. The Warming-Cutler-Lomax and Abarbanel-Gotlieb-Turkel scheme gives more accurate results, but the Warming-Cutler-Lomax and Abarbanel-Gotlieb-Turkel scheme requires more time. Usually, for most problems, methods of the second order of accuracy can be obtained with sufficient accuracy.
References
Кoвeня, B.M.: Paзнocтныe мeтoды peшeния мнoгoмepныx зaдaч (2004)
Кoвeня, B.M., Чиpкoв, Д.B.: Meтoды кoнeчныx paзнocтeй и кoнeчныx oбъeмoв для peшeния зaдaч мaтeмaтичecкoй физики. Hoвocибиpcк: Hoвocибиpcкий гocyдapcтвeнный yнивepcитeт, pp. 7–8 (2013)
Aндepcoн, Д., Taннexилл, Д., Плeтчep, P.: Bычиcлитeльнaя гидpoмexaникa и тeплooбмeн: B 2-x т.: Пep. c aнгл. Mиp (1990)
Warming, R.F., Hyett, B.J.: The modified equation approach to the stability and accuracy analysis of finite-difference methods. J. Comput. Phys. 14(2), 159–179 (1974)
Lax, P.D.: Weak solutions of nonlinear hyperbolic equations and their numerical computation. Commun. Pure Appl. Math. 7(1), 159–193 (1954)
Thomas, L.H.: Elliptic problems in linear difference equations over a network. Watson Sci. Comput. Lab. Rept. Columbia Univ. New York 1, 71 (1949)
Madaliev, E., Madaliev, M., Adilov, K., Pulatov, T.: Comparison of turbulence models for two-phase flow in a centrifugal separator. In: E3S Web of Conferences 2021, vol. 264, p. 1009 (2021)
Mirzoev, A.A., Madaliev, M., Sultanbayevich, D.Y.: Numerical modeling of non-stationary turbulent flow with double barrier based on two liquid turbulence model. In: 2020 International Conference on Information Science and Communications Technologies (ICISCT), pp. 1–7 (2020)
Abdulkhaev, Z.E., Abdurazaqov, A.M., Sattorov, A.M.: Calculation of the transition processes in the pressurized water pipes at the start of the pump unit. JournalNX 7(05), 285–291 (2021). https://doi.org/10.17605/OSF.IO/9USPT
Lax, P.: Systems of conservation laws. Los Alamos National Lab NM (1959)
MacCormack, R.W.: The effect of viscosity in hypervelocity impact cratering. J. Spacecr. Rockets 40(5), 757–763 (2003)
Warming, R.F., Kutler, P., Lomax, H.: Second-and third-order noncentered difference schemes for nonlinear hyperbolic equations. AIAA J. 11(2), 189–196 (1973)
Abarbanel, S., Gottlieb, D., Turkelm, E.: Difference schemes with fourth order accuracy for hyperbolic equations. SIAM J. Appl. Math. 29, 329–351 (1975)
Malikov, Z.M., Madaliev, M.E.: Numerical simulation of two-phase flow in a centrifugal separator. Fluid. Dyn. 55, 1012–1028 (2020). https://doi.org/10.1134/S0015462820080066
Nazarov, F.K., Malikov, Z.M., Rakhmanov, N.M.: Simulation and numerical study of two-phase flow in a centrifugal dust catcher. J. Phys. Conf. Ser. 1441(1), 12155 (2020)
Malikov, Z.M., Madaliev, M.E.: New two-fluid turbulence model-based numerical simulation of flow in a flat suddenly expanding channel. Her. Bauman Mosc. State Tech. Univ. Ser. Nat. Sci. 4(97), 24–39 (2021). (In Russian). https://doi.org/10.18698/1812-3368-2021-4-24-39
Abdukarimov, B., O’tbosarov, S., Abdurazakov, A.: Investigation of the use of new solar air heaters for drying agricultural products. In: E3S Web of Conferences, vol. 264, p. 1031 (2021)
Erkinjonson, M.M.: Numerical calculation of an air centrifugal separator based on the SARC turbulence model. J. Appl. Comput. Mech. 7(2) (2021). https://doi.org/10.22055/JACM.2020.31423.1871
Hamdamov, M.M., Mirzoyev, A.A., Buriev, E.S., Tashpulatov, N.: Simulation of non-isothermal free turbulent gas jets in the process of energy exchange. In: E3S Web of Conferences, vol. 264, p. 01017 (2021)
Fayziev, R.A., Hamdamov, M.M.: Model and program of the effect of incomplete combustion gas on the economy. In: ACM International Conference Proceeding Series, pp. 401–406 (2021)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Madaliev, M.E.U., Fayziev, R.A., Buriev, E.S., Mirzoev, A.A. (2023). Comparison of Finite Difference Schemes of Different Orders of Accuracy for the Burgers Wave Equation Problem. In: Koucheryavy, Y., Aziz, A. (eds) Internet of Things, Smart Spaces, and Next Generation Networks and Systems. NEW2AN 2022. Lecture Notes in Computer Science, vol 13772. Springer, Cham. https://doi.org/10.1007/978-3-031-30258-9_2
Download citation
DOI: https://doi.org/10.1007/978-3-031-30258-9_2
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-30257-2
Online ISBN: 978-3-031-30258-9
eBook Packages: Computer ScienceComputer Science (R0)