검색
Article Search

JMB Journal of Microbiolog and Biotechnology

OPEN ACCESS eISSN 0454-8124
pISSN 1225-6951
QR Code

Article

Kyungpook Mathematical Journal 2021; 61(2): 309-322

Published online June 30, 2021

Copyright © Kyungpook Mathematical Journal.

Conservative Upwind Correction Method for Scalar Linear Hyperbolic Equations

Sang Dong Kim, Yong Hun Lee*, Byeong Chun Shin

Gyeongbuk Provincial College, Yecheon 36830, Korea, and Department of Mathematics, University of Wisconsin-Whitewater, Whitewater WI, USA
e-mail : skim@knu.ac.kr

Department of Mathematics and Institute of Pure and Applied Mathematics, Jeonbuk National University, Jeonju 54896, Korea
e-mail : lyh229@jbnu.ac.kr

Department of Mathematics, Chonnam National University, Gwangju 61186, Korea
e-mail : bcshin@jnu.ac.kr

Received: April 19, 2018; Revised: June 1, 2021; Accepted: June 1, 2021

A conservative scheme for solving scalar hyperbolic equations is presented using a quadrature rule and an ODE solver. This numerical scheme consists of an upwind part, plus a correction part which is derived by introducing a new variable for the given hyperbolic equation. Furthermore, the stability and accuracy of the derived algorithm is shown with numerous computations.

Keywords: conservative method, hyperbolic scalar equation, ODE solver, quadrature rule, upwind method

It is well known that lower order numerical methods, such as various monotone methods, behave well near discontinuities, while high order numerical methods, such as the Lax-Wendroff method, work well in smooth regions (see [14, 15] for example). Monotone methods are first-order accurate due to Godunov's theorem. They do not produce non-physical phenomena such as smearing of the solution or spurious oscillations. On the other hand, high-order methods yield non-physical phenomena when shocks are presented.

The total variation diminishing (TVD) technique has long been used as one of the various techniques for avoiding the spurious or non-physical oscillations exhibited by high-order schemes. It requires one to modify a high-order method such as the Lax-Wendroff method (see [2, 13, 15, 19] and etc., for example) using flux- or slope- limiter techniques.

The main goal of this paper is to introduce a correction technique to the upwind method, another known method for eliminating undesired non-physical phenomena, to solve a simple scalar linear hyperbolic equation without the help of any limiter techniques. The first step towards realising this goal is to split the hyperbolic equation ut + a ux=0 by introducing a new flux variable v= a ux (see [10]). As a result, we have a system of ordinary differential equations consisting of v= a ux and ut + v =0. Our conservative method then consists of two-steps: the first-step is to set up a correction scheme for v=aux and the second-step is a scheme for ut+v=0. Once we deal with the two equations separately and then combine them, we have a new conservative scheme which is composed of the upwind scheme plus a correction term.

The correction term behaves like a high-resolution correction (see p.163 in [15]) while the upwind method of the form Ujmν2(UjmUj1m) obtains a low-resolution behavior. As a result, we obtain a stable scheme which is second-order accurate for u. It has been also been frequently observed [4, 11, 12, 13, 14, 15, 17, 18, 19] that a high resolution method using a flux-limiter has a restricted TVD region, and so the limiter functions must be chosen within this TVD region. Our proposed method does not use any limiter functions, so this is not a concern. Moreover it is not only second-order accurate, but also has the almost l1 contracting property.

Our other goal is to computationally compare the proposed algorithm with the well-known upwind, Lax-Wendroff and flux-limiter methods, and to show the second-order local truncation error of the proposed algorithm. The order of convergence of the upwind correction scheme in comparible to that of min-mode type schemes reported in [8] and [16] and that of the fully-discrete high-resolution schemes with van Leer's flux limiter reported in [7], for example.

This paper is layed out as follows. In Section 2, we will present how the algorithm can be derived. In Section 3, the almost l1 contracting property and truncation error estimates are shown. In Section 4, numerous examples are presented by comparing the present method with other well-known methods using flux-limiters. In the concluding section, we mention and discuss a possibility for expanding the present method to a nonlinear scalar hyperbolic equations.

We consider the following simple linear hyperbolic equation

ut+aux=0

with initial data

u(x,0)=u0(x).

By introducing a new variable v= a ux, (2.1) can be written as

ut+v=0,v=aux,u(x,0)=u0(x),v(x,0)=a u0(x).

Lemma 2.1. Assume that the solution of (2.1) is sufficiently smooth. Then the system of ordinary differential equations (2.3) is equivalent to

ut+v=0,vt+avx=0,u(x,0)=u0(x),v(x,0)=a u0(x).

Proof. From (2.3), it follows that

vt+avx=a(ut+aux)x=0,

which implies (2.4). On the other hand, assuming (2.4) we have

0=vt+avx=(vaux)t=0.

Hence, we have v - a ux = c. Then, the initial condition shows v = a ux. This implies (2.3).

Now, let us discuss the discretization for which we assume that the domain (,)×[0,T] has the discrete mesh points (xj, tm) given by

xj=jh,j=,1,0,1,2,,andtm=mτ,m=0,1,2,

where h and τ denote a mesh width and a time step, respectively.

We will present a conservative method for ut = - v by applying 3rd order Runge-Kutta method which leads us

u(x,tm+1)=u(x,tm)τ6(v(x,tm)+4v(x,tm+1/2)+v(x,tm+1))+O(τ3)

where, for an approximation of v(x,tm+1/2), we consider v(x,tm+1/2) as a convex combination of v(x, tm) and v(x,tm+1) such that

v(x,tm+1/2):=γv(x,tm)+(1γ)v(x,tm+1),γ>0.

Later, a parameter γ in (2.6) will be taken to adjust the convergence of the proposed algorithm. With this, (2.5) can be written as

u(x,tm+1)~u(x,tm)τ6((1+4γ)v(x,tm)+(54γ)v(x,tm+1)).

For the approximation of the values of the solution u(x,t) at (xj, tm), we use the notation Umj, but for the conservation laws we approximate the cell average of u(x,tm), rather than u(xj, tm), i.e.,

Ujm1hxj1/2xj+1/2u(x,tm)dx.

Also we use the notation Vmj to approximate the cell average of v(x, tm), i.e.,

Vjm1hxj1/2xj+1/2v(x,tm)dx.

Taking the cell-average of the both sides of (2.7), we have

Ujm+1=Ujmτ6[(1+4γ)Vjm+(54γ)Vjm+1].

For a conservative scheme for v = a ux, we employ the Simpson's numerical quadrature

tmtm+1f(t)dt=τ6[f(tm)+4f(tm+τ2)+f(tm+1)]+O(τ5),

to approximate the integral of v = ux on time interval [tm,tm+1]

tmtm+1 v(x,t)dt=atmtm+1 ux(x,t)dt.

As a result, it follows that

v(x,tm+1)+4v(x,tm+τ2)+v(x,tm)=6aτtm tm+1 ux(x,t)dt+O(τ4),

in which we approximate v(x,tm+τ2) with the linear combination of v(x, tm) and v(x,tm+1) given by

v(x,tm+τ2):=δv(x,tm)+(1δ)v(x,tm+1).

Here, the positive constants δ, which differ from γ in (2.6), will be chosen later. Using (2.13), we can rewrite (2.12) as

v(x,tm+1)~1+4δ54δv(x,tm)+154δ6aτtm tm+1 ux(x,t)dt+

Taking the cell-average for (2.14) on Ij:=[xj1/2,xj+1/2] (see [14, 15], for example)

1hIjv(x,tm+1)dx~1+4δ54δ1hIjv(x,tm)dx      +154δ6ah1τtmtm+1[u(xj+1/2,t)u(xj1/2,t)]dt+.

leads to the conservative numerical method for v = ux. Let us set

F(Ujm,Uj+1m)~1τtmtm+1u(xj+1/2,t)dt.

Then, (2.15) becomes

Vjm+1=1+4δ54δVjm+6ah154δ[F(Ujm,Uj+1m)F(Uj1m,Ujm)].

Hence, using (2.10) for ut = - v and (2.17), the new conservative method with

F(Ujm,Uj+1m)=Ujm

can be written as

Vjm+1=1+4δ54δVjm+6ah154δ[UjmUj1m] Ujm+1=Ujmτ6[(1+4γ)Vjm+(54γ)Vjm+1]

where the parameters δ and γ will be chosen with proper accuracy in Section 3. Actually, the two constants

δ=14(53haτ),andγ=12,

will be chosen so that (2.20) and the correction term Vmj from (2.19) lead to the following algorithm.

Ujm+1=Ujmν2(UjmUj1m)ν(haτ)Vjm,  ν=aτh  = upwind method+correction Vjm+1=(12ν)Vjm+2ν2τ[UjmUj1m].

It will be shown in Section 3 that the local truncation error of (2.22) is of second-order and that of (2.23) is of first-order. Due to Lemma 2.1, it may be suggested to allow the correction term Vmj in (2.22) updated by (2.23) as the exact solution to vt + a vx = 0. Since the exact solution for the equation vt+avx=0 is v(x,t)=v0(xat), we get the revised algorithm as following:

Algorithm 2.1. For the linear problem ut+aux=0, with Uj0=1hxj1/2xj+1/2 u 0(x)dx and Vj0=ah[u0(xj+1/2)u0(xj1/2)] as initial data, iterates for m=0,1,, and j=0,1,

Ujm+1=Ujmν2(UjmUj1m)ν(haτ)Vk0  = upwind  method+correction,

where the integer index k is chosen to be

xk+12=xj+12atm.

Let us denote (2.19) by Vm+1=N(Um,Vm) and (2.20) by Um+1=N(Um,Vm,Vm+1) for the accuracy of convergence where Vm and Um are replaced with the exact solution u(x,t) and v(x,t) at (xj, tm) respectively in the method (2.19) and (2.20). The local truncation errors E(vm):=1τ[N(um,vm)vm+1] and E(um):=1τ[N(um,vm,vm+1)um+1] for (2.19) and (2.20), respectively, can be shown using the Taylor expansion of u and v at the point (xj, tm).

Assuming that its exact solution is smooth enough, the following relations are hold:

utt=vt,  uttt=vtt,  vt=auxt=avx=a2uxx,  a2uxx=utt,  a2uxxx=vxt=avxx=uttx, vtt=uttt=a2uxxt=auxtt=a3uxxx.

In fact, since v = aux and vt=a2uxx.vtt=a3uxxx, we have

τE(vm)=(a2τ+3ah54δ)(uxx)jm+(a3τ22ah254δ)(uxxx)jm+ 

and, using ut+v=0,a2uxx=utt=vt and vtt=a3uxxx=uttt,

we have

τE(um)=τ2(1254γ6)(utt)jm+τ3(1654γ12)(uttt)jm+.   

Hence, if one takes the constants δ and γ in (3.1) and (3.2) as

δ=14(53haτ),andγ=12,

then it follows that for a fixed aτh=:ν

E(vm)=O(τ),andE(um)=O(τ2)

With parameters from (3.3), the algorithm (2.19) and (2.20) becomes

Vjm+1=(12ν)Vjm+2ν2τ[UjmUj1m] Ujm+1=Ujmτ2[Vjm+1+Vjm],

whose combination leads to (2.22) and (2.23).

Summarizing the above arguments, we have

Theorem 3.1. Suppose that the solution is smooth enough. Then the local truncation errors for {Um} and {Vm} generated by the algorithm (3.5) and (3.6) for the problem ut + aux =0 are

E(vm)=O(τ),andE(um)=O(τ2).

Hence, (3.5) and (3.6) are first and second-order accuracy respectively.

Let us denote (2.24) as Um+1=N(Um,V0). The local truncation error E(um):=1τ[N(um,v0)um+1] will be analyzed in the following theorem. For the initial V0k, note that the exact solution to vt+avx=0 is v(x,t)=v0(xat)=au0(xat) and that, due to the relation of the index k and j in algorithm (2.24), we have

Vjm=1hIjv(x,tm)dx=ah(u0(xj+12 atm)u0(xj12 atm))=ah(u0(xk+12 )u0(xk12 ))=1hIk a u0(x)dx=1hIkv(x,0)dx=Vk0.

Theorem 3.2. Suppose that the solution is smooth enough. Then the local truncation error for {Um} generated by Algorithm (2.24) for the problem ut+aux=0 is

E(um)=a2τ6(aτh)uxxx=O(τ2).

Proof. First note that the correction term Vk0 is Vmj in algorithm (2.24) due to (3.7). Therefore, using ut+v=0, auxv=0, utt=a2uxx and uttta3uxxx=0, it follows that

τE(um)=(u)jm+1(u)jm+ν2((u)jm(u)j1m)+ν(haτ)(v)jm    =τ(ut+v)jm+aτ2h(auxv)jm+τ22(utta2uxx)jm    +a2τ26(haτ)(uxxx)jm+    =a2τ26(haτ)(uxxx)jm+.

This completes the proof.

We note that using (3.8) one may have a modified equation for ut+aux=0 (see [1, 15, 20] for example). Since v= aux and utt=a2uxx, the modified equation turns out to be

ut+aux=a2τ6(haτ) uxxx

which is compared to the modified equation ut+aux=16ah2(1ν2)uxxx for Lax-Wendroff scheme (see [2, 3, 15] for example).

Theorem 3.3. Let 0ν1. The sequence {Um} generated by Algorithm for the problem ut+aux=0 satisfies

Um+11Um1+ν|haτ|V01

where   1 denotes the l1 norm of a vector W:=(w1,w2,,wk).

Proof. From the algorithm

Ujm+1=(1ν2)Ujm+ν2Uj1mν(haτ)Vk0,

it follows that

|Ujm+1|(1ν2)|Ujm|+ν2|Uj1m|+ν|haτ||Vk0|.

Hence, one has the conclusion by taking summation..

Note that, according to the above theorems, the new method has almost l1 contracting property on Um1 with second-order accuracy.

We will take a typical linear hyperbolic equation ut+aux=0 (a=1) with several initial data. The numerical solution from the proposed Algorithm will be compared by upwind method, Lax-Wendroff method and several flux methods.

Example 4.1. The first initial condition is given by

u0(x)=e1000(x0.2)2,for0.1<x<0.31,for0.4<x<0.61100(x0.8)2,for0.7<x<0.9.

By comparing the numerical solutions of the proposed upwind correction scheme (UC) with the classical upwind method and the Lax-Wendroff method, we see the effects of the correction term Vk0 with the weight ν(hτ). While the numerical behavior of the UC scheme without the correction term are same as those of upwind method with ν2, the numerical behavior do reveal little spurious oscillations or smearing of the solution (see Figure 4.1). Next, we compare the numerical solutions of the UC scheme with the Godunov's method for several flux limiters such as minmod, superbee, van Leer and mc. As shown in Figure 4.2, one may notice that the proposed scheme yields much better approximations to exact solution than the Godunov's method yields.

Figure 1. The numerical solutions for the linear equation for the initial data (4.1) at t=1, 2, 3, and 5 with the step size h=1/100.
Figure 2. The numerical solutions for the linear equation for the initial data (4.1) at t = 1, 2, 3, and 5 with the step size h = 1=100.

Example 4.2. The second initial condition will be chosen as the smooth

u0(x)=x2sin(3πx).

Comparing the numerical solutions of the UC scheme with the classical upwind method and the Lax-Wendroff method, one may see that the smooth exact solution can be almost exactly approximated comparing to second-order Lax-Wendroff method even if both two methods keep the same second-order accuracy.

Example 4.3. The third initial condition is given by

u0(x)=1, for 0<x<0.5.0, elsewhere

In this example, the initial data has only one singularity. The numerical solutions of the UC scheme are compared with the Godunov's method for several flux limiters.

The UC scheme shows a better approximation comparing to those of the Godunov's method( see [2, 15] , etc.). Throughout numerous demonstrated examples, one can verify that such better approximations can be obtained. The reason is that the developed method (UC) is of second-order accurate with almost l1 contracting property.

The newly developed method which works for linear scalar hyperbolic equations uses the upwind algorithm plus a correction term whose weight is chosen as ν(haτ). This particular weight is derived by combining the first-order correction algorithm for v = ux and the second-order algorithm for ut = -v. It is shown that the proposed upwind correction method has second-order accurate local truncation error with almost l1 contracting property while a high-order method using flux-limiter function preserves the TVD property.

As done for a linear hyperbolic equation, one may apply the developed algorithm to a nonlinear scalar hyperbolic equation ut+fx(u)=0 with given initial data u(x,0)=u0(x) following known techniques (see [14, 15] for example ). However, in an attempt to expand the developed techniques in this paper to a nonlinear scalar equation directly, one will likely have to find a nice weight to make the computations feasible. Such issues will be discussed in a upcoming paper.

Figure 3. The numerical solutions for the linear equation for the initial data (4.2) at t = 1, 3, 6, and 10 with the step size h = 1=20.
Figure 4. The numerical solutions for the linear equation for the initial data (4.3) at tt = 1, 3, 5, and 9 with the step size h = 1=50.
  1. D. Estep, A modified equation for dispersive difference schemes, Appl. Number. Math., 17(1995), 299-309.
    CrossRef
  2. S. K. Godunov, A difference method for numerical calculation of discontinuous solutions of the equations of hydrodynamics, Mat. Sb., 47(1959), 271-306.
  3. D. F. Griffiths and J. M. Sanz-Serna, On the scope of the method of modified equations, SIAM J. Sci. Statist. Comput., 7(1986), 994-1008.
    CrossRef
  4. A. Harten, High resolution schemes for hyperbolic conservation laws, J. Comput. Phys., 49(1983), 357-393.
    CrossRef
  5. G. Hedstrom, Models of difference schemes for ut + ux = 0 by partial differential equations, Math. Comp., 29(1975), 969-977.
    CrossRef
  6. C. Hirsch, Numerical computation of internal and external flows, 2, Wiley, 1990.
  7. N. Jiang, On the convergence of fully-discrete high-resolution schemes with van Leer’s flux limiter for conservation laws, Methods Appl. Anal., 16(3)(2009), 403-422.
    CrossRef
  8. S. Konyagin, B. Popov and O. Trifonov, On convergence of minmod-type schemes, SAIM J. Numer. Anal., 42(5)(2005), 1978-1997.
    CrossRef
  9. C. B. Laney, Computational gasdynamics, Cambridge University Press, Cambridge, 1998.
    CrossRef
  10. Y. H. Lee and S. D. Kim, Note on a classical conservative method for scalar hyperbolic equations, Kyungpook Math. J., 56(2016), 1179-1189.
    CrossRef
  11. B. van Leer, Towards the ultimate conservative difference scheme V. A second order sequel to Godunov’s method, J. Comput. Phys., 32(1979), 101-136.
    CrossRef
  12. B. van Leer, On the relation between the upwind-differencing schemes of Godunov, Engquist-Oscher and Roe, SIAM J. Sci. Statist. Comput., 5(1984), 1-20.
    CrossRef
  13. B. van Leer, Towards the ultimate conservative difference scheme II. Monotonicity and conservation combined in a second order scheme, J. Comput. Phys., 23(1997), 361-370.
    CrossRef
  14. R. J. LeVeque, Numerical methods for conservation laws, Lectures in Mathematics ETH Zurich, Birkhauser Verlag, 1992.
    KoreaMed CrossRef
  15. R. J. LeVeque, Finite volume methods for hyperbolic problems, Cambridge Texts in Applied Mathematics, Cambridge University Press, Cambridge, 2002.
    CrossRef
  16. B. Popov, and O. Trifonov, Order of convergence of second order schemes based on the minmod limiter, Math. Comp., 75(2006), 1735-1753.
    CrossRef
  17. P. L. Roe, Some contributions to the modelling of discontinuous flows, Large-scale computations in fluid mechanics, Part 2 (La Jolla, Calif., 1983), 163-193, Lectures in Appl. Math. 22-2, Amer. Math. Soc., Providence, RI, 1985.
  18. C.-W. Shu, TVB uniformly high-order schemes for conservation laws, Math. Comp., 49(1987), 105-121.
    CrossRef
  19. P. K. Sweby, High resolution schemes using flux limiters for hyperbolic conservation laws, SAIM J. Numer. Anal., 21(1984), 995-1011.
    CrossRef
  20. R. F. Warming and B. J. Hyett, The modified equation approach to the stability and accuracy analysis of finite-difference methods, J. Comput. Phys., 14(1974), 159-179.
    CrossRef