Next Article in Journal
A Wavelet PM2.5 Prediction System Using Optimized Kernel Extreme Learning with Boruta-XGBoost Feature Selection
Next Article in Special Issue
Research of the Solutions Proximity of Linearized and Nonlinear Problems of the Biogeochemical Process Dynamics in Coastal Systems
Previous Article in Journal
Novel Bäcklund Transformations for Integrable Equations
Previous Article in Special Issue
Solving Hydrodynamic Problems Based on a Modified Upwind Leapfrog Scheme in Areas with Complex Geometry
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development and Research of a Modified Upwind Leapfrog Scheme for Solving Transport Problems

Department of Mathematics and Computer Science, Don State Technical University, 344000 Rostov-on-Don, Russia
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(19), 3564; https://doi.org/10.3390/math10193564
Submission received: 5 August 2022 / Revised: 21 September 2022 / Accepted: 22 September 2022 / Published: 29 September 2022

Abstract

:
Modeling complex hydrodynamic processes in coastal systems is an important problem of mathematical modeling that cannot be solved analytically. The approximation of convective terms is difficult from the point of view of error reduction. This paper proposes a difference scheme based on a linear combination of the Upwind Leapfrog scheme with 2/3 weight coefficient, and the Standard Leapfrog scheme with 1/3 weight coefficient. The weight coefficients are obtained as a result of solving the problem of minimizing the approximation error. Numerical experiments show the advantage of the developed scheme in comparison with other modifications of the Upwind Leapfrog scheme in the case when the convective transport prevails over the diffusion one. The proposed difference scheme solves transport problems more effectively than classical difference schemes in the case when the Péclet number falls in the range from 2 to 20. It follows that the considered difference scheme allows hydrodynamic problems to be solved in regions of complex shape effectively.

1. Introduction

Solving problems of hydrodynamics is an important field of science that allows for the modeling and forecasting of adverse and dangerous natural and anthropogenic phenomena in coastal systems. Examples include run-up phenomena under wind influences, the spread of pollutants, including oil and petroleum products, blooming waters, and the mass death of commercial fish species due to a lack or absence of dissolved oxygen. The problem of modeling unsteady transport processes in a three-dimensional domain of complex shape cannot be solved analytically, and requires the use of numerical methods [1,2,3]. At work [4], the finite volume method on structured non-uniform grids for 1D and 2D shallow water equations is considered.The paper [5] presents a solution to a two-dimensional non-stationary convection–diffusion problem using the boundary element method of radial integration. This algorithm requires only boundary discretization and some internal points, instead of internal cells. The proposed method accuracy and efficiency are researched in this work. Adaptive iterative splitting methods to solve convection–diffusion–reaction problems is proposed in paper [6]. Adaptive techniques are embedded into the splitting approach, when developing this method. The paper [7] presents an upwind difference scheme for interface flux approximations for the finite volume method. The upwind approach is proposed for spatial interface approximation, and the second-order formulation is used for the temporal approximation in this work. The finite volume method on unstructured grids is proposed for transport problems in which convection dominates diffusion [8]. The research [9] considers a high-order finite volume complete flux scheme for a one-dimensional advection–diffusion–reaction equation. In this work, the accuracy increases to the fourth order due to applying Gauss–Legendre quadrature rules to the integral representation. The presented scheme works for both diffusion dominated and advection dominated flow.
A number of papers present reviews and developments of various numerical approaches to linear [10,11,12,13,14,15] and nonlinear [11,13,15] transport, and convection–diffusion problems, as applied to finite element methods and finite difference methods. In the numerical solution of the transport problem, a problem related to the insufficient accuracy of the approximation of convective terms arises. The specialized difference schemes for solving convection–diffusion problems were developed and described in [16]. Upwind Leapfrog schemes were used to solve aeroacoustics problems [17,18]. The monotonicity of difference schemes is researched in [19,20,21], including the Upwind Leapfrog schemes for the transport problem. A number of papers were devoted to the consideration of various modifications of the Upwind Leapfrog scheme, including [22], in which it was proposed to use weight multipliers to eliminate oscillations when solving a nonlinear transport problem. To solve this class of problems, a difference scheme was proposed, which is a linear combination of Standard Leapfrog and Upwind Leapfrog schemes [23]. The considered schemes are included in a linear combination with weight coefficients of 1/3 and 2/3, respectively, which are obtained from the solution of minimizing the order of the approximation error problem [24].
A linear combination of two schemes with similar properties often has better properties than the original schemes, since there is a mutual compensation of approximation errors. The purpose of this work is to determine the range of the grid Péclet number values, in which the proposed scheme, which is a linear combination of the Upwind Leapfrog scheme with 2/3 weight coefficient, and Standard Leapfrog scheme with 1/3 weight coefficient, obtained as a result of solving the problem of minimizing the approximation error, has better accuracy compared to classical schemes, including modifications of the Upwind Leapfrog scheme with limiters. Solutions of test problems of transport in areas of complex shape using the developed scheme are considered in the work [25]. These are problems such as the test problem of the fluid flow between two coaxial circular cylinders at different grid Péclet numbers, and the problem of suspended particles transport during soil dumping in areas with complex geometry. An application of this scheme to solve the problem with nonlinear dispersion wave equations is described by the model Korteweg–de Vries equation considered in [26]. The advantage of the presented difference scheme in comparison with the standard ones in problems with the predominance of convective transport over diffusion is shown.
The article is devoted to the construction and study of a difference scheme, which is a linear combination of the Upwind and Standard Leapfrog schemes. Section 2 discusses the classical schemes of Upwind and Standard Leapfrog through the example of solving the transport problem. Section 3 describes the proposed scheme based on a linear combination of Upwind and Standard Leapfrog schemes. In Section 4, the results of solving a test problem based on the considered scheme are compared with other modifications of the Upwind and Standard Leapfrog schemes. In Section 5 and Section 6, the accuracy of solving the model diffusion–convection problem based on the proposed scheme is investigated for different values of the Péclet grid number. In Conclusions, an analysis of the results obtained in the work is given.

2. Upwind and Standard Leapfrog Difference Schemes for the Transport Equation

Consider the transport equation:
q t + u q x = 0 ,
where t 0 , T , x 0 , L , q 0 , x = q 0 x , q t , 0 = 0 if u 0 , and q t , L = 0 if u < 0 , u = c o n s t .
A uniform computational grid is introduced:
ω = ω ¯ h × ω τ ,
where ω ¯ h = x i x i = i h , i = 0 , N x ¯ , N x h = L , and where h = x i + 1 x i = c o n s t is the space step; N x is the number of nodes in space; L is the characteristic dimension of the computational domain, ω τ = t n t n = n τ , n = 0 , N t ¯ , N t τ = T , where τ = t n + 1 t n = c o n s t is the time step; N t is the number of time layers; T is the upper bound in time.
The following finite-difference schemes can be used for the numerical solution of the problem (1):
  • The Upwind Leapfrog scheme:
    q i n + 1 q i n 2 τ + q i 1 n q i 1 n 1 2 τ + u q i n q i 1 n h = 0 , u 0 ; q i n + 1 q i n 2 τ + q i + 1 n q i + 1 n 1 2 τ + u q i + 1 n q i n h = 0 , u < 0 ,
    where q i n = q t n , x i , q i n + 1 = q t n + 1 , x i , q i ± 1 n = q t n , x i ± 1 , q i ± 1 n 1 = q t n 1 , x i ± 1 .
  • The Standard Leapfrog scheme:
    q i n + 1 q i n 1 2 τ + u q i + 1 n q i 1 n 2 h = 0 .
Test problem I. Find the solution to the equation:
q t + u q x = 0 , u = 0.5 m / s , 0 t T , 0 x L , q t , 0 = 0 ,
with initial distribution q 0 x = θ ( 20 x ) θ ( 10 x ) , where θ ( x ) is the Heaviside function.
For the numerical solution of the problem, we introduce a uniform computational grid:
Parameters of the calculation grid: time step τ = 0.02 s, space step h = 1 m, the length of the time interval T = 100 s, the length of the space interval L = 100 m.
Figure 1 shows the exact solution of the test problem I, and numerical solutions based on the difference schemes (3) and (4), the Upwind Leapfrog difference scheme with TVD-limiters, and the Standard Leapfrog difference scheme with TVD-limiters [27].
Comment 1.Figure 1a,b show that the solutions of test problem I based on difference schemes (3) and (4) have dispersion-induced oscillations in front of the leading and trailing fronts of the wave, respectively. We also note that for the solution based on the difference scheme (3), high harmonics have a “phase velocity” that is higher than the real one, and for the solution based on the scheme (4), it is lower.
Comment 2. Difference schemes (3) and (4), due to their non-dissipativity and non-monotonicity, are not recommended for solving transport problems in the case of discontinuous initial data. Their application to such problems is possible by implementing procedures that monotonize the solution; for example, by adding artificial viscosity. For scheme (3), it is recommended to use a non-linear flow correction (TVD-limiters) [27] based on the maximum principle. Figure 1c,d present the solutions of the test problem I based on the Upwind and Standard Leapfrog schemes with TVD-limiters [27]. Note that the difference scheme obtained as a result of a linear combination of the Upwind Leapfrog [27] and Standard Leapfrog schemes is no longer dissipative, but the dispersion properties of the scheme can be improved and the solution obtained based on a combination of difference schemes on discontinuous functions may have smaller oscillations.

3. Linear Combination of Upwind and Standard Leapfrog Schemes

Consider the Upwind Leapfrog difference scheme (3) (the case u 0 ). Let’s use the decomposition of the functions q i n ± 1 in the Taylor series in the node i , n neighborhood:
q i n ± 1 = q i n ± τ q t i n + τ 2 2 2 q t 2 i n ± τ 3 3 ! 3 q t 3 i n + τ 4 4 ! 4 q t 4 i n + O τ 5 .
Let’s use the decomposition of the functions q i 1 n and q i n in the Taylor series in the node i 1 / 2 , n neighborhood:
q i 1 n = q i 1 / 2 n h 2 q x i 1 / 2 n + h 2 8 2 q x 2 i 1 / 2 n h 3 48 3 q x 3 i 1 / 2 n + + h 4 384 4 q x 4 i 1 / 2 n + O h 5 ;
q i n = q i 1 / 2 n + h 2 q x i 1 / 2 n + h 2 8 2 q x 2 i 1 / 2 n + h 3 48 3 q x 3 i 1 / 2 n + + h 4 384 4 q x 4 i 1 / 2 n + O h 5 .
Taking into account the scheme (1), we have:
q t = u q x , 2 q t 2 = u 2 2 q x 2 , 3 q t 3 = u 3 3 q x 3 , 4 q t 4 = u 4 4 q x 4 .
Substitute (5)–(8) into (3) (the case where u 0 ):
q i n + 1 q i n 2 τ + q i 1 n q i 1 n 1 2 τ + u q i n q i 1 n h = q t i 1 / 2 n + u q x i 1 / 2 n u h 2 12 3 q x 3 i 1 / 2 n + u 2 τ h 4 3 q x 3 i 1 / 2 n u 3 τ 2 6 3 q x 3 i 1 / 2 n + O τ 4 + h 4
or
q i n + 1 q i n 2 τ + q i 1 n q i 1 n 1 2 τ + u q i n q i 1 n h = q t + u q x i 1 / 2 n c 1 2 c 1 12 u h 2 3 q x 3 i 1 / 2 n + O τ 4 + h 4 ,
where c = u τ / h is the Courant number.
Consider the Standard Leapfrog difference scheme (4). Let’s use the decomposition of the functions q i ± 1 n into a Taylor series in the node i , n neighborhood:
q i ± 1 n = q i n ± h q x i n + h 2 2 2 q x 2 i n ± h 3 3 ! 3 q x 3 i n + h 4 4 ! 4 q x 4 i n + O h 5 .
Substitute (5) and (11) into (4):
q i n + 1 q i n 1 2 τ + u q i + 1 n q i 1 n 2 h = q t i n + + τ 2 6 3 q t 3 i n + u q x i n + u h 2 6 3 q x 3 i n + O τ 4 + h 4 .
With (8), the equality (12) will take the form:
q i n + 1 q i n 1 2 τ + u q i + 1 n q i 1 n 2 h = q t + u q x i n + 1 c 2 6 u h 2 3 q x 3 i n + O τ 4 + h 4 .
Let’s consider a linear combination of the Upwind Leapfrog (3) and Standard Leapfrog (4) difference schemes with weight coefficients 2/3 and 1/3, respectively:
q i n + 1 q i n τ + 2 q i 1 n q i 1 n 1 3 τ + q i n q i n 1 3 τ + u q i + 1 n + 4 q i n 5 q i 1 n 3 h = 0 , u 0 ; q i n + 1 q i n τ + 2 q i + 1 n q i + 1 n 1 3 τ + q i n q i n 1 3 τ + u 5 q i + 1 n 4 q i n q i 1 n 3 h = 0 , u < 0 .
Taking into account (8), (10), and (13), the difference scheme (14) has a local approximation error equal to c ( 1 c ) u h 2 3 q / x 3 i 1 / 3 n / 6 + O τ 2 + h 3 relative to the dummy node i 1 / 3 , n .
Comment 3. The approximation error of difference schemes (3) and (4) is O τ 2 + h 2 , and based on the presented estimate, the approximation error of scheme (14) is O τ 2 + c h 2 , where c = u τ / h is the Courant number. Thus, it is preferable to use scheme (14) for solving problems in the case of small values of the Courant number. Based on Fourier analysis, the increase in the accuracy of the solution when using scheme (14) occurs due to the mutual compensation of errors in the “phase velocity” of the harmonics of the solutions obtained on the basis of schemes (3) and (4). The stability and dispersion properties of a linear combination of the Upwind and Standard Leapfrog difference schemes are discussed in detail in [23,24].
Figure 2 shows the exact solution of test problem I, and a numerical solution based on the scheme (14). The calculated time intervals T were 100 s and 500 s.

4. Stability and Dispersion Properties of the Difference Scheme Obtained as a Linear Combination of the Upwind and Standard Leapfrog Schemes

Let’s use the harmonic method to study the stability of the scheme (14) obtained as a linear combination of the Upwind and Standard Leapfrog schemes. Substitute q i n = φ n e j k i into scheme (14) (case u 0 ):
φ 1 τ + 4 3 e j k e j k / φ 2 τ + u 1 e j k h + 1 1 / φ 3 τ + u e j k e j k 3 h = 0
or
φ 2 + 4 c 2 3 1 cos k + 6 c 2 3 j sin k φ 2 cos k + 1 2 j sin k 3 = 0 .
The solution of this quadratic equation with respect to φ is written in the form:
φ 1 , 2 = 1 2 c 3 1 cos k + 1 3 c 3 j sin k ± ± 1 2 c 3 1 cos k + 1 3 c 3 j sin k 2 + 2 cos k + 1 2 j sin k 3 .
Assume that the calculation takes the value of the root of a complex number with a non-negative real part (the argument of a complex number belongs to a semi-interval [ π / 2 , π / 2 ) ). Let’s consider the case c = 0 :
φ 1 , 2 = 1 e j k 3 ± 1 e j k 3 2 + 2 e j k + 1 3 = 1 e j k 3 ± 2 + e j k 3 .
From here, we obtain: φ 1 = 1 , φ 2 = 1 2 e j k / 3 ; therefore, φ 2 is not a solution. We studied the values of the function φ 1 ( c , k ) [ 0 , 1 ] for k [ 0 , π ] and c [ 0 , 1 ] .
Figure 3 shows the values of the module and the argument of the function φ 1 ( c , k ) , depending on the values of the parameters k and c.
Let’s study the dispersion properties of scheme (14) in the region of small Courant numbers. Consider the difference between the functions φ 1 ( c , k ) and ϕ ( c , k ) = e j c k :
φ 1 ( c , k ) ϕ ( c , k ) = 1 e j k 3 2 c 3 1 cos k j c sin k + + 1 e j k 3 2 c 3 1 cos k j c sin k 2 + 2 e j k + 1 3 e j c k 1 e j k 3 2 c 3 1 cos k j c sin k + + 2 + e j k 3 1 6 1 e j k 2 + e j k 2 2 c 3 1 cos k j c sin k e j c k 1 2 c 3 1 cos k j c sin k 1 e j k 2 + e j k 2 2 c 3 1 cos k j c sin k cos c k + j sin c k c 2 1 cos k + 1 e j k j sin k 2 + e j k = = 6 + j sin k 2 + e j k + 2 + j sin k c .
Comment 4. From Expression (17), and taking into account the fact that grid refinement leads to a linear increase in the number of layers with respect to time, it follows that for small Courant numbers, the error in solving the transport equation based on scheme (14) is proportional to the function: f ( k ) = 6 + j sin k 2 + e j k + 2 + j sin k .

5. Results of Test Calculations

Let’s compare the calculations based on the scheme (14) with the results obtained using other difference schemes.
First, consider a linear combination of the central difference scheme and the Upwind Leapfrog scheme [27]:
q i n + 1 q i n τ + q i 1 n q i 1 n 1 2 τ + u q i + 1 n + 4 q i n 5 q i 1 n 4 h = 0 , u 0 ; q i n + 1 q i n τ + q i + 1 n q i + 1 n 1 2 τ + u 5 q i + 1 n 4 q i n q i 1 n 4 h = 0 , u < 0 .
Second, consider a two-parameter difference scheme [28,29]:
q i n + 1 q i n τ + u q ˜ i + 1 / 2 n q ˜ i 1 / 2 n h = 0 ,
where q ˜ i + 1 / 2 n = α q i 1 n q i + 2 n + 1 α β q i n q i + 1 n + β q i + 1 n q i n , u 0 , u < 0 .
According to α = c 2 1 / 6 and β = c 1 c 2 / 6 , the accuracy of the scheme (19) is O τ 3 + h 3 .
Figure 4 shows the exact solution of the test problem I and numerical solution based on schemes (14), (18), and (19), the Upwind Leapfrog scheme with TVD-limiters, and the Standard Leapfrog scheme with TVD-limiters [27]. The time step is τ = 0.02 s (Figure 4a,c and τ = 0.4 s, Figure 4b,d). The Courant numbers are 0.01 for Figure 4a,c and 0.2 for Figure 4b,d.
The solution error is calculated using the formula:
Ψ = i q ˜ i q i 2 i q i 2 ,
where q i is the exact solution value of the problem in the node i ω ¯ h , and q ˜ i is the numerical solution that depends on the time step value with a fixed step size in space [30].
Figure 5 shows the values of the errors of the numerical solution (20) of the test problem I depending on the values of the Courant numbers. The length of the time interval is T = 100 s. Time step τ takes values from 0.02 s to 2 s. The Courant numbers range from 0.01 to 1.
Figure 6 shows the error function Ψ of the numerical solution of the test problem I in the norm L 1 depending on the length of the calculated time interval.

6. Accuracy of Solving the Heat Conduction Problem

Consider the heat equation with constant coefficients:
q t = μ 2 q x 2 + f , t > 0 , 0 < x < L ,
q x , 0 = q 0 x , 0 x L ,
q 0 , t = q 0 t , q L , t = q L t , t 0 .
We assume the necessary smoothness of the functions included in (21)–(23), and the consistency of the initial and boundary conditions.
Find an analytical solution to the heat conduction problem (21) under certain assumptions. We will assume that the functions in (21) can be represented as finite sums, which are expansions in a finite trigonometric basis:
q m = 1 N 1 C m ( q ) t sin ( ω m x ) , f m = 1 N 1 C m ( f ) sin ( ω m x ) ,
where ω = π / L , C m ( f ) = 2 L 0 L f ( x ) sin ( ω m x ) d x , C m ( q ) = 2 L 0 L q ( x ) sin ( ω m x ) d x .
It should be noted that in the case of the tabular method of setting u 0 , for example, on a spatial grid, the series will be limited to N by the harmonic, and an interpolation trigonometric polynomial is used to restore the continuous function, where N is the number of discrete values of the function.
Next, we consider functions having a derivative of the order α satisfying the inequality f ( α ) ( x ) K , with a period of 2 π . There is an estimation of the residual term of the series (24) for any natural α [31,32]:
sup r = 4 K π 2 ln n n α + O ( 1 / n α ) , r = u ( x / ω , t ) m = 1 N 1 C t sin ( m x ) .
Substitute the functions u and f into the heat Equation (21):
m = 1 N 1 C m ( q ) sin ( ω m x ) t = μ 2 m = 1 N 1 C m ( q ) sin ( ω m x ) x 2 + n = 1 N 1 C m ( f ) sin ( ω m x ) .
Changing the order of operations of differentiation and summation in (25), and calculating the derivative of a spatial variable:
m = 1 N 1 C m ( q ) ( t ) t sin ( ω m x ) = m = 1 N 1 μ C m ( q ) ω 2 m 2 sin ( ω m x ) + n = 1 N 1 C n ( f ) sin ( ω m x ) .
Taking into account the linear independence of the functions sin ( ω m x ) for different m, (26) can be written in the form:
C m ( q ) ( t ) t = μ ω 2 m 2 C m ( q ) + C m ( f ) .
The solution of the scheme (27) will take the form:
C m ( q ) ( t ) = C m ( q ) ( 0 ) C m ( f ) μ ω 2 m 2 e μ ω 2 m 2 t + C m ( f ) μ ω 2 m 2 .
After the transformations, taking into account the given initial and boundary conditions (22) and (23), we obtain the following representation for the solution function [33]:
q = m = 1 N 1 C m ( q ) ( 0 ) C m ( f ) μ ω 2 m 2 e μ ω 2 m 2 t + C m ( f ) μ ω 2 m 2 sin ( ω m x ) .
Difference scheme for the heat equation. For the numerical solution of the problem (21), we use the uniform computational grid (2). Then, the discrete analog of (21) can be written in the form:
q i n + 1 q i n τ = μ q i + 1 n + σ 2 q i n + σ + q i 1 n + σ h 2 + f i n + σ ,
where q i n + σ = σ q i n + 1 + 1 σ q i n , σ 0 , 1 —weight of the scheme [34].
The necessary stability condition (case σ = 0 ) obtained on the basis of the harmonic method leads to the following inequality [2,3]:
γ = τ μ h 2 1 2 .
Despite the fact that estimate (31) is a strict limitation for explicit difference schemes, in practice, the time step should be taken even less.
Test problem II. Find the solution of the equation:
q t = μ 2 q x 2 , μ = 1 m 2 / s , 0 t T , 0 x L , q t , 0 = 0
with initial conditions: q 0 x = θ ( 20 x ) θ ( 10 x ) .
Parameters of the calculation grid: the time step τ is in the range from 0.001 s to 10 s, the space step h = 1 m, and the length of the time interval T = 60 s.
Figure 7 shows the error of solving test problem II based on the scheme (30). The calculation error is calculated using the Formula (20). The value of the time step τ 0 related to the value τ max = h 2 / 2 μ (obtained from Equation (31)) is postponed along the horizontal axis τ 0 = τ / τ max .
In order for the percentage error of the explicit scheme (30) to be equal to 0.01 %, it is necessary to take the value τ 0 = 0.0717 ; in the case of using the proposed scheme with weights, the parameter is τ 0 = 5.1858 .
Test problem III. Consider the problem that arises when modeling the transport of suspended matter in shallow reservoirs. Find a solution to the two-dimensional diffusion equation for a region elongated in one direction:
q t = μ x 2 q x 2 + μ y 2 q y 2 , t > 0 , 0 < x < L x 0 < y < L y ,
with initial conditions q x , y , t t = 0 = θ ( 1100 x ) θ ( 900 x ) θ ( 3 y ) θ ( 2 y ) , where 0 x L x , 0 y L y and boundary conditions are in Dirichlet form.
For the numerical solution of the test problem III, we introduce a uniform computational grid ω = ω ¯ h × ω τ , where ω ¯ h = x i = i h x , y j = j h y , i = 0 , N x ¯ , j = 0 , N y ¯ ,
N x h x = L x , N y h y = L y , where h x = x i + 1 x i = c o n s t and h y = y j + 1 y j = c o n s t are the space steps; N x and N y are the number of nodes in space; L x and L y are the characteristic dimension of the computational domain, ω τ = t n t n = n τ , n = 0 , N t ¯ , N t τ = T , where τ = t n + 1 t n = c o n s t is the time step; N t is the number of time layers; and T is the upper bound in time.
The discrete analog of test problem III can be written in the form:
q i , j n + 1 q i , j n τ = μ x q i + 1 , j n + σ 2 q i , j n + σ + q i 1 , j n + σ h x 2 + μ y q i , j + 1 n + σ 2 q i , j n + σ + q i , j 1 n + σ h y 2 ,
where q i , j n + σ = σ q i , j n + 1 + 1 σ q i , j n , σ 0 , 1 —weight of the scheme [34].
Parameters of test problem III: μ x = 100 m2/s, μ y = 0.5 m 2 / s , L x = 2000 m, L y = 5 m.
Parameters of the calculation grid: steps in the space are h x = 100 m and h y = 0.5 m; the time step τ is in the range from 0.001 s to 10 s, and the length of the time interval is T = 600 s. Figure 8 shows solutions to test problem III based on scheme (30).
From Figure 7 and Figure 8, we see that in order to achieve the same approximation error, the time step limit for an explicit scheme is significantly stricter than for a scheme with weights. In order for the percentage error of the explicit scheme to be equal to 1 %, it is necessary to take the value τ 0 = 0.01376 ; in the case of using the scheme (30) with weights, the parameter is τ 0 = 0.34844 .
Comment 5. The solution obtained on the basis of scheme (30) in the case of σ = 0 , i.e., based on the explicit scheme, is stable under the constraint τ O ( h 2 ) [35]. Scheme (30) at σ 0.5 has no time step restrictions. In practice, when solving problems based on the difference scheme (30) in the case of σ [ 0 , 1 ] , it is recommended to use the constraint τ Δ × i = 1 r 2 μ i / h i 1 , where r is the dimension of space and the parameter Δ τ / τ m a x , where τ is the size of the time step that must be taken so that the calculation error is in an acceptable range, and τ m a x is the size of the time step obtained from stability conditions for the explicit scheme, while the constraint τ 0 Δ is satisfied. In the general case, for solving problems of diffusion–convection, the value of the parameter Δ is determined on the basis of computational expediency: if the step τ is taken too large, then the calculation error will be large, and if the step τ is small, then the computational costs will be high. For scheme (30), at σ = 0 , it is recommended to use the value Δ = 0.01 , and at σ = 0.5 , it is recommended to use the value Δ = 0.3 .
Comment 6.Figure 5b shows that in the case of values of the Courant number up to 0.1, the proposed scheme (14) for solving test problem I (convection problem) is more accurate than the Upwind Leapfrog difference scheme with TVD-limiters. From the solutions of the test problem II and the test problem III (diffusion problem) based on scheme (30) at σ = 0 and with respect to Comment 5, a constraint on the time step τ Δ × τ m a x was obtained, where Δ = 0.01 , τ m a x = h 2 2 μ . Based on the obtained constraints on the value of the Courant number c = u τ / h 0.1 with the limitation on the time step, we obtain Δ u h / 2 μ 0.1 or P e 2 × 0.1 / Δ = 20 , where P e = u h / μ is the grid Péclet number [36]. Note that we consider the case of the absence of monotonicity of schemes constructed on the basis of central-difference approximations (the case P e > 2 ). Therefore, the proposed approximation of the convective transport operator is effective for 2 P e 20 .

7. Accuracy of Modified Difference Scheme

Consider the nonstationary convection–diffusion equation [37]:
q t + u q x = μ 2 q x 2 , 0 < t < T , 0 < x < L , u = c o n s t
with initial and boundary conditions: q 0 , x = q 0 x , q t , 0 = q t , L = 0 .
For exact solution of Equation (33), write the finite sum of the trigonometric Fourier series for the function q ( x , t ) in complex form:
q ( x , t ) = m = N N C m ( t ) exp j ω m x ,
where j = 1 , ω = π / L , m is number of modes, and C m ( t ) = 2 L 0 L q ( x , t ) exp j ω m x d x is complex amplitude of the m-th mode.
Substitute (34) in (33):
t m = N N C m ( t ) exp j ω m x + u x m = N N C m ( t ) exp j ω m x = = μ 2 x 2 m = N N C m ( t ) exp j ω m x
or
m = N N C m ( t ) t exp j ω m x + u m = N N j ω m C m ( t ) exp j ω m x = = μ m = N N ω 2 m 2 C m ( t ) exp j ω m x .
The functions exp j m ω x are linearly independent; therefore, the last equation can be written in the form:
C m ( t ) t = j u ω m + μ ω 2 m 2 C m ( t ) .
The solution of Equation (35) has the form:
C m ( t ) = C m ( 0 ) exp j u ω m + μ ω 2 m 2 t .
Based on the initial and boundary conditions for (33), (34), and (36), the exact solution of Equation (33) can be written in the form:
q ( x , t ) = m = N N C m ( 0 ) exp j u ω m + μ ω 2 m 2 t exp j ω m x ,
Consider the case u 0 . For a numerical solution of the problem (33), we use the uniform grid (2). The approximation of Equation (33) has the form:
q i n + 1 q i n τ + 4 3 q i 1 n q i 1 n 1 2 τ + u q i n q i 1 n h + q i n q i n 1 3 τ + + u q i + 1 n q i 1 n 3 h = 2 μ q i + 1 n 2 q i n + q i 1 n h 2 ,
or
q i n + 1 q i n τ + 2 q i 1 n q i 1 n 1 3 τ + q i n q i n 1 3 τ + u q i + 1 n + 4 q i n 5 q i 1 n 3 h = = 2 μ q i + 1 n 2 q i n + q i 1 n h 2 ,
where
q i = m = N N C m exp j ω m x i .
Substitute (39) in (38):
m = N N C m n + 1 C m n τ exp j ω m h i + + 2 m = N N C m n C m n 1 3 τ exp j ω m h ( i 1 ) + m = N N C m n C m n 1 3 τ exp j ω m h i + + u m = N N C m n exp j ω m h + 4 C m n 5 C m n exp j ω m h 3 h exp j ω m h i 2 μ m = N N C m n exp j ω m h 2 C m n + C m n exp j ω m h h 2 exp j ω m h i = 0 ,
The functions exp j m ω h i are linearly independent; therefore, (40) can be written in the form:
C m n + 1 C m n τ + 2 C m n C m n 1 3 τ exp j ω m h + C m n C m n 1 3 τ + + u C m n exp j ω m h + 4 5 exp j ω m h 3 h 2 μ C m n exp j ω m h 2 + exp j ω m h h 2 = 0 .
When τ 0 , (41) takes the form:
C m ( t ) t 4 3 + 2 3 exp j ω m h + u C m n exp j ω m h + 4 5 exp j ω m h 3 h 2 μ C m n exp j ω m h 2 + exp j ω m h h 2 = 0
or
C m ( t ) t = u exp j ω m h + 4 5 exp j ω m h 2 h 2 + exp j ω m h + + 3 μ exp j ω m h 2 + exp j ω m h h 2 2 + exp j ω m h C m n .
Lemma 1.
When approximating problem (33) using the difference scheme (38) for each mode of solution function q, the convective exchange rate u and the diffusion exchange rate μ are less than the real values, and differ by
α 1 = 1 exp j ω m h + 4 5 exp j ω m h 2 j ω m h 2 + exp j ω m h
and
α 2 = 1 3 exp j ω m h + 2 exp j ω m h ω 2 m 2 h 2 2 + exp j ω m h ,
respectively.
Proof. 
Scheme (42) can be written in the form:
C m ( t ) t = u j ω m exp j ω m h + 4 5 exp j ω m h 2 j ω m h 2 + exp j ω m h + + 3 μ ω 2 m 2 exp j ω m h 2 + exp j ω m h ω 2 m 2 h 2 2 + exp j ω m h C m n .
Taking into account (36), the last expression, which is a solution based on the difference scheme (38), corresponds to the solution of the equation
q t + u * q x = μ * 2 q x 2 ,
where u * = u 1 α 1 , μ * = μ 1 α 2 , where
α 1 = 1 exp j ω m h + 4 5 exp j ω m h 2 j ω m h 2 + exp j ω m h ,
α 2 = 1 3 exp j ω m h + 2 exp j ω m h ω 2 m 2 h 2 2 + exp j ω m h .
Analyze the approximation error of the convective term in space. Let’s introduce replacement j ω m h = s , when
α 1 = 1 e s + 4 5 e s 2 s 2 + e s .
Let’s use the decomposition of the functions e ± s in the Maclaurin series:
e ± s = 1 ± s + s 2 2 ± s 3 6 + s 4 24 ± s 5 120 + O s 6 .
Substitute (44) in (43):
α 1 = 1 1 + s + s 2 / 2 + s 3 / 6 + s 4 / 24 + s 5 / 120 + 4 + O s 6 2 s 2 + 1 s + s 2 / 2 s 3 / 6 + s 4 / 24 s 5 / 120 + O s 6 5 5 s + 5 s 2 / 2 5 s 3 / 6 + 5 s 4 / 24 s 5 / 24 + O s 6 2 s 2 + 1 s + s 2 / 2 s 3 / 6 + s 4 / 24 s 5 / 120 + O s 6 = = 1 6 s 2 s 2 + s 3 s 4 / 6 + s 5 / 20 + O s 6 6 s 2 s 2 + s 3 s 4 / 3 + s 5 / 12 + O s 6 = s 4 / 6 + s 5 / 30 + O s 6 6 s 2 s 2 + s 3 s 4 / 3 + s 5 / 12 + O s 6 = s 3 36 + O s 4 ,
or
α 1 = j ω m h 3 36 + O ω m h 4 .
From the Expression (45), we can obtain that scheme (34) approximates the convective term of Equation (33) with the third order of accuracy in space.
Analyze the approximation error of the diffusion term in space:
α 2 = 1 + 3 e s + 2 e s s 2 2 + e s = 1 + 3 3 s 3 s 2 / 2 s 3 / 2 s 4 / 8 + O s 5 s 2 2 + 1 s + s 2 / 2 s 3 / 6 + s 4 / 24 + O s 5 + + 6 3 + 3 s 3 s 2 / 2 + s 3 / 2 s 4 / 8 + O s 5 s 2 2 + 1 s + s 2 / 2 s 3 / 6 + s 4 / 24 + O s 5 = 1 + 3 s 2 s 4 / 4 + O s 5 3 s 2 s 3 + s 4 / 2 + O s 5 = = s 3 s 4 / 4 + O s 5 3 s 2 s 3 + s 4 / 2 + O s 5 = s 3 + O s 2 ,
or
α 2 = j ω m h 3 + O ω m h 2 .
From the Expression (46), we can obtain that the scheme (38) approximates the diffusion term of Equation (33) with the first order of accuracy in space.
Note that the variable r = π / ω m h describes the number of nodes per half wave period, and π > ω m h . Therefore, the accuracy of the solution depends on the number of nodes per half wave period.
Figure 9 and Figure 10 show functions
α 1 ( r ) = 1 exp j π / r + 4 5 exp j π / r 2 j π / r 2 + exp j π / r
and
α 2 ( r ) = 1 3 exp j π / r + 2 exp j π / r π 2 / r 2 2 + exp j π / r ,
that describe the dependence of the approximation error of the convective and diffusion terms, respectively, by the difference scheme (38) on the number of nodes in comparison with the central difference scheme [1].
Based on Figure 9 and Figure 10, we can conclude that difference scheme (38) is applicable for problems in which convective transport prevails over diffusion.

8. Approximation of the Convection–Diffusion Problem

To approximate the convection operator in problem (33), we will use the difference operator of the scheme obtained as a result of a linear combination of the Upwind and Standard Leapfrog schemes:
q i n + 1 q i n τ + 2 q i 1 n q i 1 n 1 3 τ + q i n q i n 1 3 τ + u q i + 1 n + 4 q i n 5 q i 1 n 3 h = = 2 μ q i + 1 n 2 q i n + q i 1 n h 2 , u 0 ; q i n + 1 q i n τ + 2 q i + 1 n q i + 1 n 1 3 τ + q i n q i n 1 3 τ + u 5 q i + 1 n 4 q i n q i 1 n 3 h = = 2 μ q i + 1 n 2 q i n + q i 1 n h 2 , u < 0 .
Test problem IV. Find a solution to the equation:
q t + u q x = μ 2 q x 2 , u = 0.5 m / s , μ = c o n s t , 0 < t < T , 0 < x < L
with initial condition q 0 , x = q 0 x = θ ( 20 x ) θ ( 10 x ) and boundary conditions q t , 0 = q t , L = 0 .
The exact solution of the test problem IV can be represented as [33]:
q t , x = m = 1 N 1 c m 0 e μ ω 2 m 2 t sin ( ω m x ) , c m 0 = 2 L 0 L q 0 ( x + u t ) sin ( ω m x ) d x , ω = π L .
In Figure 11, the exact solution of the test problem IV and the numerical solutions based on the scheme (47), and the Upwind Leapfrog difference scheme with TVD-limiters are presented. The test problem IV is considered for different values of the diffusion operator μ = 0.025 m2/s (in this case, P e = 20 ) and μ = 0.0025 m2/s ( P e = 200 ).
Parameters of the calculation grid: the step in space h = 1 m, the time step τ = 0.02 s , the length of the spatial interval L = 200 m, and the length of the time interval T = 100 s.
Figure 12 shows the error function Ψ (in the norm L 1 ) of the numerical solution of the test problem IV based on the difference scheme (47) and the Upwind Leapfrog difference scheme with TVD-limiters, depending on the values of the grid Péclet number.
Figure 12 illustrates that the difference scheme (47) for solving the problem (33) has an insignificant error in a wide range of values of grid Péclet numbers.
The approximation of the problem (33) based on explicit central difference schemes can be written in form:
q i n + 1 q i n τ + u q i + 1 n q i 1 n 2 h = μ q i + 1 n 2 q i n + q i 1 n h 2 .
Figure 13 shows the error function Ψ (in the norm L 1 ) of the numerical solution of the test problem IV (47) and the central difference scheme (48), depending on values of the grid Péclet number.
Figure 13 shows the error function Ψ (in the norm L 1 ) that occurs when approximating the solution of test problem IV. The difference scheme (47) and the central difference scheme (48) were used in this case. The value of the approximation error is plotted along the Oy axis, and the value of the grid Péclet number is plotted along the Ox axis. The space step h = 1 m, the time step τ = 0.02 , the value of the spatial interval L = 200 m, the value of the time interval T is 100 s, and the range for the diffusion coefficient—from 5 × 10 3 to 5 m2/s, for these graphs.
Comment 7.Figure 13, which demonstrates the calculation error of the test problem IV, shows that the central difference scheme (48) has a higher accuracy compared to the difference scheme (47) for 0 P e 2 . Thus, the proposed modification of the Upwind Leapfrog schemes (47) in this paper has a smaller error compared to other considered difference schemes for solving the problems of continuous medium transport described by the diffusion–convection equation in the range of grid Péclet numbers from 2 to 20.

9. Discussion

The proposed difference scheme is a linear combination of the Upwind Leapfrog scheme with a 2/3 weight coefficient, and the Standard Leapfrog scheme with a 1/3 weight coefficient. The weight coefficients were determined as a result of solving the problem of minimizing the approximation error. This scheme practically does not have grid viscosity when solving convection–diffusion problems; therefore, it allows for more accurate solutions to be obtained in the case of a significant predominance of convective processes over diffusion ones. When modeling hydrodynamic processes in real areas with complex geometry (currents in river channels, estuary zones, along areas of land strongly protruding into the sea—sand bars), large values of grid Péclet numbers arise. The application of the developed vortex-resolving scheme to the problems of hydrodynamics allows small-sized vortexes that occur in coastal systems to be more accurately reproduced.
The proposed difference scheme has an advantage over the classical Upwind and Standard Leapfrog schemes in the case of small Courant numbers. In [24], the approximation error of the developed scheme, which is equal to O c h 2 , is researched, while for classical schemes, the approximation errors are equal to O h 2 . However, for cases of interest from the point of view of applications, the constant c is much less than unity, which implies the advantage of the proposed difference scheme.
In the process of the numerical experiments, we compared the approximation error in the norm of the grid space L 1 for the proposed difference scheme, the scheme that is a linear combination of the Upwind Leapfrog scheme, and the scheme with central differences, as well as the two-parameter difference scheme, which has the third order of accuracy for solving the convection–diffusion problem. The constructed graphs showed the dependence of the errors in solving test problems on the values of the Courant numbers. The study showed that the proposed difference scheme and the scheme based on a linear combination of the Upwind Leapfrog scheme and the central difference scheme have a smaller error compared to other considered schemes. In addition, the developed difference scheme, based on a linear combination of the Upwind and Standard Leapfrog schemes, has an advantage in approximation accuracy compared to other considered schemes for the case of Péclet number values from 2 to 20.

Author Contributions

Conceptualization, A.S.; methodology, A.C.; software, A.C.; validation, Y.B.; formal analysis, A.C.; investigation, I.K.; resources, E.R.; data curation, Y.B.; writing—original draft preparation, I.K., Y.B. and E.R.; writing—review and editing, A.S. and A.C.; visualization, I.K.; supervision, A.S.; project administration, A.C.; funding acquisition, A.S. All authors have read and agreed to the published version of the manuscript.

Funding

The study was supported by a grant from the Russian Science Foundation (project No. 21-71-20050).

Institutional Review Board Statement

The study does not include human or animal research.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to acknowledge the administration of Don State Technical University for resource and financial support.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Goloviznin, V.M.; Samarskii, A.A. Finite difference approximation of convective transport equation with space splitting time derivative. Math. Model. 1998, 10, 86–100. [Google Scholar]
  2. Samarskiy, A.A.; Vabishchevich, P.N. Numerical methods for solving convection-diffusion problems. Math. Model. Editor. URSS 1999. [Google Scholar]
  3. Vabishchevich, P.N.; Samarskii, A.A. Finite difference schemes for convection-diffusion problems on irregular meshes. Comput. Math. Math. Phys. 2000, 40, 692–704. [Google Scholar]
  4. Causona, D.; Mingham, C.; Qia, L. Introductory Finite Volume Methods for PDEs; Manchester Metropolitan University: Manchester, UK, 2011. [Google Scholar]
  5. Peng, H.F.; Yang, K.; Cui, M.; Gao, X.W. Radial integration boundary element method for solving two-dimensional unsteady convection–diffusion problem. Eng. Anal. Bound. Elem. 2019, 102, 39–50. [Google Scholar] [CrossRef]
  6. Geiser, J.; Hueso, J.L.; Martinez, E. Adaptive Iterative Splitting Methods for Convection-Diffusion-Reaction Equations. Mathematics 2020, 8, 302. [Google Scholar] [CrossRef]
  7. Hussain, A.; Zheng, Z.; Anley, E.F. Numerical Analysis of Convection–Diffusion Using a Modified Upwind Approach in the Finite Volume Method. Mathematics 2020, 8, 1869. [Google Scholar] [CrossRef]
  8. Manzini, G.; Russo, A. A finite volume method for advection–diffusion problems in convection-dominated regimes. Comput. Methods Appl. Mech. Eng. 2008, 197, 1242–1261. [Google Scholar] [CrossRef]
  9. Anthonissen, M.; Boonkkamp, J.H.M. A compact high order finite volume scheme for advection-diffusion-reaction equations. AIP Conf. Proc. 2009, 410, 1168. [Google Scholar]
  10. Salnikov, N.N.; Siryk, S.V. Construction of Weight Functions of the Petrov–Galerkin Method for Convection-Diffusion-Reaction Equations in the Three-Dimensional Case. Cybern. Syst. Anal. 2014, 50, 805–814. [Google Scholar] [CrossRef]
  11. Roos, H.-G.; Stynes, M.; Tobiska, L. Robust Numerical Methods for Singularly Perturbed Differential Equations; Springer: Berlin/Heidelberg, Germany, 2008; p. 604. [Google Scholar]
  12. Salnikov, N.N.; Siryk, S.V.; Tereshchenko, I.A. On construction of finite-dimensional mathematical model of convection-diffusion process with usage of the Petrov-Galerkin method. J. Autom. Inf. Sci. 2010, 42, 67–83. [Google Scholar] [CrossRef]
  13. Stynes, M.; Stynes, D. Convection Diffusion Problems: An Introduction to Their Analysis and Numerical Solution. Am. Math. Soc. 2018, 196, 156. [Google Scholar]
  14. Siryk, S.V.; Salnikov, N.N. Analysis of lumped approximations in the finite-element method for convection-diffusion problems. Cybern. Syst. Anal. 2013, 49, 774–784. [Google Scholar] [CrossRef]
  15. John, V.; Knobloch, P.; Novo, J. Finite elements for scalar convection-dominated equations and incompressible flow problems: A never ending story? Comput. Vis. Sci. 2018, 19, 47–63. [Google Scholar] [CrossRef]
  16. Iserles, A. Generalized Leapfrog Methods. IMA J. Numer. Anal. 1986, 6, 381–392. [Google Scholar] [CrossRef]
  17. Thomas, J.P.; Roe, P.L. Development of Non-Dissipative Numerical Schemes for Computational Aeroacoustics. In Proceedings of the 11th AIAA Computational Fluid Dynamics Conference, Orlando, FL, USA, 6–9 July 1993. [Google Scholar]
  18. Chang, S.C.; Wang, X.Y.; Chow, C.Y. New Developments in the Method of Space-Time Conservation Element and Solution Element—Applications to Two-Dimensional Time-Marching Problems; Technical Report; NASA: Washington, DC, USA, 1994.
  19. Ostapenko, V.V. On the monotonicity of difference schemes. Sib. Math. J. 1998, 39, 959–972. [Google Scholar] [CrossRef]
  20. Ostapenko, V.V. On the strong monotonicity of the CABARET scheme. Comput. Math. Math. Phys. 2012, 52, 387–399. [Google Scholar] [CrossRef]
  21. Zyuzina, N.A.; Ostapenko, V.V. Decay of unstable strong discontinuities in the case of a convex-flux scalar conservation law approximated by the CABARET scheme. Comput. Math. Math. Phys. 2018, 58, 950–966. [Google Scholar] [CrossRef]
  22. Laevsky, Y.M.; Kandryukova, T.A. On Approximation of Discontinuous Solutions to the Buckley–Leverett Equation. Numer. Anal. Appl. 2012, 5, 222–230. [Google Scholar] [CrossRef]
  23. Glotov, V.Y.; Goloviznin, V.M. CABARET scheme in velocity-pressure formulation for two-dimensional incompressible fluids. Comput. Math. Math. Phys. 2013, 53, 721–735. [Google Scholar] [CrossRef]
  24. Sukhinov, A.I.; Chistyakov, A.E.; Protsenko, E.A. Upwind and Standard Leapfrog Difference Schemes. Vychisl. Metod. Program. 2019, 20, 170–218. [Google Scholar]
  25. Sukhinov, A.; Chistyakov, A.; Kuznetsova, I.; Belova, Y.; Rahimbaeva, E. Solving Hydrodynamic Problems Based on a Modified Upwind Leapfrog Scheme in Areas with Complex Geometry. Mathematics 2022, 10, 3248. [Google Scholar] [CrossRef]
  26. Sukhinov, A.; Chistyakov, A.; Timofeeva, E.; Nikitina, A.; Belova, Y. The Construction and Research of the Modified “Upwind Leapfrog” Difference Scheme with Improved Dispersion Properties for the Korteweg–de Vries Equation. Mathematics 2022, 10, 2922. [Google Scholar] [CrossRef]
  27. Glotov, V.Y.; Goloviznin, V.M. New two-level leapfrog scheme for modeling the stochastic Landau–Lifshitz equations. Comput. Math. Math. Phys. 2014, 54, 315–334. [Google Scholar] [CrossRef]
  28. Gushchin, V.A. Family of quasi-monotonic finite-difference schemes of the second-order of approximation. Math. Model. Comput. Simulations 2016, 8, 487–496. [Google Scholar] [CrossRef]
  29. Fedorenko, R.P. The application of difference schemes of high accuracy to the numerical solution of hyperbolic equations. USSR Comput. Math. Math. Phys. 1963, 2, 1355–1365. [Google Scholar] [CrossRef]
  30. Ladonkina, M.E.; Neklyudova, O.A.; Tishkin, V.F. Application of the RKDG method for gas dynamics problems. Math. Model. Comput. Simulations 2014, 6, 397–407. [Google Scholar] [CrossRef]
  31. Kolmogoroff, A. Zur Grössenordnung des restgliedes Fourierschen Reihen differenzierbarer Funktionen. Ann. Math. 1935, 36, 521–526. [Google Scholar] [CrossRef]
  32. Pinkevich, V.T. On the order of the residual term of the Fourier series of functions differentiable in the sense of Weyl. Izv. Acad. Sci. USSR Ser. Math. 1940, 4, 521–528. [Google Scholar]
  33. Sukhinov, A.I.; Chistakov, A.E.; Iakobovskii, M.V. Accuracy of the numerical solution of the equations of diffusion-convection using the difference schemes of second and fourth order approximation error. Vestn. YuUrGU. Ser. Vych. Matem. Inform. 2016, 5, 47–62. [Google Scholar]
  34. Samarskii, A.A. On the regularization of difference schemes. USSR Comput. Math. Math. Phys. 1967, 7, 62–93. [Google Scholar] [CrossRef]
  35. Chetverushkin, B.N. Resolution limits of continuous media models and their mathematical formulations. Math. Model. Comput. Simulations 2013, 5, 266–279. [Google Scholar] [CrossRef]
  36. Sukhinov, A.I.; Belova, Y.V.; Chistyakov, A.E. Solution of the matter transport problem at high Peclet numbers. Vychisl. Metod. Program. 2017, 18, 371–380. [Google Scholar]
  37. Belotserkovskii, O.M.; Gushchin, V.A.; Kon’shin, V.N. The splitting method for investigating flows of a stratified liquid with a free surface. USSR Comput. Math. Math. Phys. 1987, 27, 181–191. [Google Scholar] [CrossRef]
Figure 1. Solutions of the test problem I for time interval T = 100 s, based on the Upwind Leapfrog scheme (a), Standard Leapfrog scheme (b), Upwind Leapfrog scheme with TVD-limiters (c), and Standard Leapfrog scheme with TVD-limiters (d): 1—exact solution; 2—numerical solution.
Figure 1. Solutions of the test problem I for time interval T = 100 s, based on the Upwind Leapfrog scheme (a), Standard Leapfrog scheme (b), Upwind Leapfrog scheme with TVD-limiters (c), and Standard Leapfrog scheme with TVD-limiters (d): 1—exact solution; 2—numerical solution.
Mathematics 10 03564 g001
Figure 2. Solutions of the test problem I for various intervals in time: (a)—100 s, (b)—500 s; 1—exact solution, 2— numerical solution based on linear combination of the Upwind and Standard Leapfrog difference schemes (14).
Figure 2. Solutions of the test problem I for various intervals in time: (a)—100 s, (b)—500 s; 1—exact solution, 2— numerical solution based on linear combination of the Upwind and Standard Leapfrog difference schemes (14).
Mathematics 10 03564 g002
Figure 3. The values of the module (a) and the argument (b) of the root of the characteristic equation for the scheme (14).
Figure 3. The values of the module (a) and the argument (b) of the root of the characteristic equation for the scheme (14).
Mathematics 10 03564 g003
Figure 4. Solutions of the test problem I for time interval T = 100 s and different time steps: (a,c) τ = 0.02 s; (b,d) τ = 0.4 s; (a,b): 1—exact solution, 2— numerical solution based on the scheme (14), 3— numerical solution based on the scheme (18), 4— numerical solution based on the scheme (19); (c,d): 1—exact solution, 2—numerical solution based on the scheme (14), 3—numerical solution based on the Upwind Leapfrog scheme with TVD-limiters [27], 4—numerical solution based on the Standard Leapfrog scheme with TVD-limiters.
Figure 4. Solutions of the test problem I for time interval T = 100 s and different time steps: (a,c) τ = 0.02 s; (b,d) τ = 0.4 s; (a,b): 1—exact solution, 2— numerical solution based on the scheme (14), 3— numerical solution based on the scheme (18), 4— numerical solution based on the scheme (19); (c,d): 1—exact solution, 2—numerical solution based on the scheme (14), 3—numerical solution based on the Upwind Leapfrog scheme with TVD-limiters [27], 4—numerical solution based on the Standard Leapfrog scheme with TVD-limiters.
Mathematics 10 03564 g004
Figure 5. The error functions Ψ of the numerical solution of the test problem I depending on the values of the Courant numbers: (a): 1—scheme (14), 2—scheme (18), 3—scheme (19); (b): 1—scheme (14), 2—Upwind Leapfrog scheme with TVD-limiters, 3—Standard Leapfrog scheme with TVD-limiters.
Figure 5. The error functions Ψ of the numerical solution of the test problem I depending on the values of the Courant numbers: (a): 1—scheme (14), 2—scheme (18), 3—scheme (19); (b): 1—scheme (14), 2—Upwind Leapfrog scheme with TVD-limiters, 3—Standard Leapfrog scheme with TVD-limiters.
Mathematics 10 03564 g005
Figure 6. Error functions Ψ of the numerical solution of the test problem I in the norm L 1 depending on the length of the calculated time interval: 1—scheme (14), 2—scheme (18), 3—scheme (19).
Figure 6. Error functions Ψ of the numerical solution of the test problem I in the norm L 1 depending on the length of the calculated time interval: 1—scheme (14), 2—scheme (18), 3—scheme (19).
Mathematics 10 03564 g006
Figure 7. The function of the approximation error of numerical solutions of the test problem II based on the scheme (30) depending on the time step: 1—explicit scheme ( σ = 0 ), 2—scheme with weight σ = 0.5 .
Figure 7. The function of the approximation error of numerical solutions of the test problem II based on the scheme (30) depending on the time step: 1—explicit scheme ( σ = 0 ), 2—scheme with weight σ = 0.5 .
Mathematics 10 03564 g007
Figure 8. The function of the approximation error of numerical solutions of the test problem III based on the scheme (30) depending on the time step: 1—explicit scheme ( σ = 0 ), 2—scheme with weight σ = 0.5 .
Figure 8. The function of the approximation error of numerical solutions of the test problem III based on the scheme (30) depending on the time step: 1—explicit scheme ( σ = 0 ), 2—scheme with weight σ = 0.5 .
Mathematics 10 03564 g008
Figure 9. The dependence of the approximation error of the convective term on the number of nodes: 1—difference scheme (38); 2—central difference scheme.
Figure 9. The dependence of the approximation error of the convective term on the number of nodes: 1—difference scheme (38); 2—central difference scheme.
Mathematics 10 03564 g009
Figure 10. The dependence of the approximation error of the diffusion term on the number of nodes: 1—difference scheme (38); 2—central difference scheme.
Figure 10. The dependence of the approximation error of the diffusion term on the number of nodes: 1—difference scheme (38); 2—central difference scheme.
Mathematics 10 03564 g010
Figure 11. Solutions of the test problem IV for different values of grid Péclet number: (a)— P e = 20 , (b)— P e = 200 ; 1—exact solution, 2—the difference scheme (47), 3—the Upwind Leapfrog difference scheme with TVD-limiters.
Figure 11. Solutions of the test problem IV for different values of grid Péclet number: (a)— P e = 20 , (b)— P e = 200 ; 1—exact solution, 2—the difference scheme (47), 3—the Upwind Leapfrog difference scheme with TVD-limiters.
Mathematics 10 03564 g011
Figure 12. Error functions Ψ of the numerical solution of the test problem IV in the norm L 1 , depending on values of grid Péclet number: 1—the difference scheme (47), 2—the Upwind Leapfrog difference scheme with TVD-limiters.
Figure 12. Error functions Ψ of the numerical solution of the test problem IV in the norm L 1 , depending on values of grid Péclet number: 1—the difference scheme (47), 2—the Upwind Leapfrog difference scheme with TVD-limiters.
Mathematics 10 03564 g012
Figure 13. Error functions Ψ of the numerical solution of the test problem IV in the norm L 1 depending on values of grid Péclet number: 1—the scheme (47), 2—the scheme (48).
Figure 13. Error functions Ψ of the numerical solution of the test problem IV in the norm L 1 depending on values of grid Péclet number: 1—the scheme (47), 2—the scheme (48).
Mathematics 10 03564 g013
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Sukhinov, A.; Chistyakov, A.; Kuznetsova, I.; Belova, Y.; Rahimbaeva, E. Development and Research of a Modified Upwind Leapfrog Scheme for Solving Transport Problems. Mathematics 2022, 10, 3564. https://doi.org/10.3390/math10193564

AMA Style

Sukhinov A, Chistyakov A, Kuznetsova I, Belova Y, Rahimbaeva E. Development and Research of a Modified Upwind Leapfrog Scheme for Solving Transport Problems. Mathematics. 2022; 10(19):3564. https://doi.org/10.3390/math10193564

Chicago/Turabian Style

Sukhinov, Alexander, Alexander Chistyakov, Inna Kuznetsova, Yulia Belova, and Elena Rahimbaeva. 2022. "Development and Research of a Modified Upwind Leapfrog Scheme for Solving Transport Problems" Mathematics 10, no. 19: 3564. https://doi.org/10.3390/math10193564

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop