A genuinely high order total variation diminishing scheme for one-dimensional. scalar conservation laws 1. Abstract

Similar documents
Positivity-preserving high order schemes for convection dominated equations

Bound-preserving high order schemes in computational fluid dynamics Chi-Wang Shu

Hierarchical Reconstruction with up to Second Degree Remainder for Solving Nonlinear Conservation Laws

A New Fourth-Order Non-Oscillatory Central Scheme For Hyperbolic Conservation Laws

Hierarchical Reconstruction with up to Second Degree Remainder for Solving Nonlinear Conservation Laws

A class of the fourth order finite volume Hermite weighted essentially non-oscillatory schemes

A Bound-Preserving Fourth Order Compact Finite Difference Scheme for Scalar Convection Diffusion Equations

Fourier analysis for discontinuous Galerkin and related methods. Abstract

30 crete maximum principle, which all imply the bound-preserving property. But most

ICES REPORT A Multilevel-WENO Technique for Solving Nonlinear Conservation Laws

On the positivity of linear weights in WENO approximations. Abstract

Improvement of convergence to steady state solutions of Euler equations with. the WENO schemes. Abstract

A minimum entropy principle of high order schemes for gas dynamics. equations 1. Abstract

TOTAL VARIATION DIMINISHING RUNGE-KUTTA SCHEMES

Maximum-principle-satisfying and positivity-preserving high order schemes for conservation laws: Survey and new developments

ENO and WENO schemes. Further topics and time Integration

Dedicated to the 70th birthday of Professor Lin Qun

A high order adaptive finite element method for solving nonlinear hyperbolic conservation laws

Weighted Essentially Non-Oscillatory limiters for Runge-Kutta Discontinuous Galerkin Methods

Finite Volume Schemes: an introduction

An Improved Non-linear Weights for Seventh-Order WENO Scheme

A parametrized maximum principle preserving flux limiter for finite difference RK-WENO schemes with applications in incompressible flows.

The RAMSES code and related techniques I. Hydro solvers

Anti-diffusive finite difference WENO methods for shallow water with. transport of pollutant

Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of. Conservation Laws 1. Abstract

Numerische Mathematik

A Central Compact-Reconstruction WENO Method for Hyperbolic Conservation Laws

Entropic Schemes for Conservation Laws

YINGJIE LIU, CHI-WANG SHU, EITAN TADMOR, AND MENGPING ZHANG

A numerical study of SSP time integration methods for hyperbolic conservation laws

Math 660-Lecture 23: Gudonov s method and some theories for FVM schemes

A Very Brief Introduction to Conservation Laws

Order of Convergence of Second Order Schemes Based on the Minmod Limiter

CENTRAL DISCONTINUOUS GALERKIN METHODS ON OVERLAPPING CELLS WITH A NON-OSCILLATORY HIERARCHICAL RECONSTRUCTION

Essentially Non-Oscillatory and Weighted Essentially Non-Oscillatory Schemes for Hyperbolic Conservation Laws

arxiv: v2 [math.ap] 1 Jul 2011

Entropy stable high order discontinuous Galerkin methods. for hyperbolic conservation laws

Strong Stability Preserving Time Discretizations

Solving the Payne-Whitham traffic flow model as a hyperbolic system of conservation laws with relaxation

Extremum-Preserving Limiters for MUSCL and PPM

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Runge-Kutta discontinuous Galerkin method with a simple and compact Hermite WENO limiter

SMOOTHNESS INDICATORS FOR WENO SCHEME USING UNDIVIDED DIFFERENCES

Semi-Lagrangian Formulations for Linear Advection Equations and Applications to Kinetic Equations

Numerical Methods for Modern Traffic Flow Models. Alexander Kurganov

Received 6 August 2005; Accepted (in revised version) 22 September 2005

ARTICLE IN PRESS Mathematical and Computer Modelling ( )

AN OPTIMALLY ACCURATE SPECTRAL VOLUME FORMULATION WITH SYMMETRY PRESERVATION

A Fifth Order Flux Implicit WENO Method

Finite difference Hermite WENO schemes for the Hamilton-Jacobi equations 1

Compact Central WENO Schemes for Multidimensional Conservation Laws

A general well-balanced finite volume scheme for Euler equations with gravity

A Fourth-Order Central Runge-Kutta Scheme for Hyperbolic Conservation Laws

On Convergence of Minmod-Type Schemes

Non-linear Scalar Equations

Chp 4: Non-linear Conservation Laws; the Scalar Case. By Prof. Dinshaw S. Balsara

A re-averaged WENO reconstruction and a third order CWENO scheme for hyperbolic conservation laws

Self-similar solutions for the diffraction of weak shocks

Solution of Two-Dimensional Riemann Problems for Gas Dynamics without Riemann Problem Solvers

High order finite difference Hermite WENO schemes for the Hamilton-Jacobi equations on unstructured meshes

DISCONTINUOUS GALERKIN METHOD FOR TIME DEPENDENT PROBLEMS: SURVEY AND RECENT DEVELOPMENTS

A second-order asymptotic-preserving and positive-preserving discontinuous. Galerkin scheme for the Kerr-Debye model. Abstract

Fifth order multi-moment WENO schemes for hyperbolic conservation laws

FDM for wave equations

A positivity-preserving high order discontinuous Galerkin scheme for convection-diffusion equations

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement

Chapter 17. Finite Volume Method The partial differential equation

1. Introduction. We are interested in the scalar hyperbolic conservation law

Sung-Ik Sohn and Jun Yong Shin

A New Class of Optimal High-Order Strong-Stability-Preserving Time Discretization Methods

ADER Schemes on Adaptive Triangular Meshes for Scalar Conservation Laws

NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS

A NUMERICAL STUDY FOR THE PERFORMANCE OF THE RUNGE-KUTTA FINITE DIFFERENCE METHOD BASED ON DIFFERENT NUMERICAL HAMILTONIANS

FUNDAMENTALS OF LAX-WENDROFF TYPE APPROACH TO HYPERBOLIC PROBLEMS WITH DISCONTINUITIES

Weighted ENO Schemes

Chapter 1. Introduction

Regularity and Lyapunov stabilization of weak entropy solutions to scalar conservation laws

Non-Oscillatory Central Schemes for a Traffic Flow Model with Arrhenius Look-Ahead Dynamics

MAXIMUM PRINCIPLE AND CONVERGENCE OF CENTRAL SCHEMES BASED ON SLOPE LIMITERS

ICES REPORT Accuracy of WENO and Adaptive Order WENO Reconstructions for Solving Conservation Laws

A local-structure-preserving local discontinuous Galerkin method for the Laplace equation

Strong Stability-Preserving (SSP) High-Order Time Discretization Methods

Existence result for the coupling problem of two scalar conservation laws with Riemann initial data

A Second Order Discontinuous Galerkin Fast Sweeping Method for Eikonal Equations

Strong Stability Preserving Properties of Runge Kutta Time Discretization Methods for Linear Constant Coefficient Operators

HIGH ORDER NUMERICAL METHODS FOR TIME DEPENDENT HAMILTON-JACOBI EQUATIONS

The Convergence of Mimetic Discretization

A weighted essentially non-oscillatory numerical scheme for a multi-class traffic flow model on an inhomogeneous highway

A High Order WENO Scheme for a Hierarchical Size-Structured Model. Abstract

Superconvergence of discontinuous Galerkin methods for 1-D linear hyperbolic equations with degenerate variable coefficients

Hybrid semi-lagrangian finite element-finite difference methods for the Vlasov equation

Info. No lecture on Thursday in a week (March 17) PSet back tonight

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2

Convex ENO Schemes for Hamilton-Jacobi Equations

The Closed Form Reproducing Polynomial Particle Shape Functions for Meshfree Particle Methods

Test 3 Review. y f(a) = f (a)(x a) y = f (a)(x a) + f(a) L(x) = f (a)(x a) + f(a)

On Nonlinear Dirichlet Neumann Algorithms for Jumping Nonlinearities

LARGE-TIME ASYMPTOTICS, VANISHING VISCOSITY AND NUMERICS FOR 1-D SCALAR CONSERVATION LAWS

September Math Course: First Order Derivative

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Transcription:

A genuinely high order total variation diminishing scheme for one-dimensional scalar conservation laws Xiangxiong Zhang and Chi-Wang Shu 3 Abstract It is well known that finite difference or finite volume total variation diminishing (TVD) schemes solving one-dimensional scalar conservation laws degenerate to first order accuracy at smooth extrema [8], thus TVD schemes are at most second order accurate in the L norm for general smooth and non-monotone solutions. However, Sanders [] introduced a third order accurate finite volume scheme which is TVD, where the total variation is defined by measuring the variation of the reconstructed polynomials rather than the traditional way of measuring the variation of the grid values. By adopting the definition of the total variation for the numerical solutions as in [], it is possible to design genuinely high order accurate TVD schemes. In this paper, we construct a finite volume scheme which is TVD in this sense with high order accuracy (up to sixth order) in the L norm. Numerical tests for a fifth order accurate TVD scheme will be reported, which include test cases from traffic flow models. AMS subject classification: 65M06 Keywords: hyperbolic conservation laws; finite volume scheme; total variation diminishing; total variation bounded; high order accuracy; conservative form Research supported by NSF grant DMS-0809086 and AFOSR grant FA9550-09--06. Department of Mathematics, Brown University, Providence, RI 09. E-mail: Xiangxiong Zhang@brown.edu 3 Division of Applied Mathematics, Brown University, Providence, RI 09. E-mail: shu@dam.brown.edu

Introduction We consider numerical solutions of one-dimensional hyperbolic scalar conservation law u t + f(u) x = 0, u(x, 0) = u 0 (x), (.) where u 0 (x) is assumed to be a bounded variation function. The main difficulty in solving (.) is that the solution may contain discontinuities even if the initial condition is smooth. Successful numerical schemes for solving (.) are usually total variation stable, for example the total variation diminishing (TVD) schemes [] or the total variation bounded (TVB) schemes [4], or essentially non-oscillatory, for example the essentially non-oscillatory (ENO) schemes [, 5] or the weighted ENO (WENO) schemes [6, 4]. ENO and WENO schemes, although uniformly high order accurate and stable in applications, do not have mathematically provable TVB properties for general solutions and do not satisfy a maximum principle. It is certainly desirable to have a TVD or TVB scheme, which shares the TVD property of the exact entropy solution of (.), satisfies a maximum principle, and has at least a convergent subsequence to a weak solution of (.) due to its compactness. Typically, for a finite difference scheme with the numerical solution given by the grid values u j, or a finite volume scheme with the numerical solution given by the cell averages u j, the total variation of the numerical solution is measured by T V (u) = j u j+ u j (.) which is the standard bounded variation semi-norm when the numerical solution is considered to be a piecewise constant function with the data u j. A scheme is TVD if the numerical solution satisfies T V (u n+ ) T V (u n ) (.3) where u n refers to the numerical solution at the time level t n. A TVB scheme is one which satisfies T V (u n ) M (.4)

for all n such that t n T, where the constant M does not depend on the mesh sizes but may depend on T. A sufficient condition for a scheme to be TVB is T V (u n+ ) T V (u n ) + M t, or T V (u n+ ) ( + M t)t V (u n ), where M is a constant and t is the time step. It is well known that finite difference or finite volume TVD schemes solving (.), where the total variation is measured by (.), necessarily degenerate to first order accuracy at smooth extrema [8], thus TVD schemes are at most second order accurate in the L norm for general smooth and non-monotone solutions. While the TVB schemes in [4] can overcome this accuracy degeneracy difficulty, the schemes are no longer scale-invariant (scale-invariance refers to the fact that the scheme does not change when x and t are scaled by the same factor) and involve a TVB parameter M which must be estimated and adjusted for individual problems. In [], Sanders introduced a third order accurate finite volume scheme which is TVD. The main idea in [] is to define the total variation by measuring the variation of the reconstructed polynomials, rather than the traditional measurement as in (.). The scheme of Sanders in [] can be summarized in the following steps. Start from the cell averages ū 0 j and the cell boundary values u 0 j+ for all j from the initial condition u 0 (x). For n = 0,,, perform the following. Reconstruct a piecewise quadratic polynomial solution u n (x), based on the information ū n j and un j+ for all j, such that u n (x) is third order accurate (degenerates to second order at isolated critical points, therefore still third order in the L 3

norm), and TVD T V (u n (x)) T V (u n (x)) (.5) where the total variation is measured by the standard bounded variation seminorm of the piecewise quadratic polynomial solution u n (x). For n = 0, T V (u n (x)) is taken as the bounded variation semi-norm of the initial condition u 0 (x).. Evolve the PDE (.) exactly for one time step t from the initial condition u n (x) at the time level t n, and take the cell averages ū n+ j values u n+ j+ above. and the cell boundary for all j from this exactly evolved solution. Then return to Step The crucial step in Sanders scheme is the reconstruction, which should be high order accurate and TVD in the sense of (.5). The second step above, namely the exact time evolution and cell averaging, does not increase the total variation. The resulting scheme is thus TVD as long as the reconstruction is TVD. The purpose of this paper is to generalize the scheme of Sanders, mainly the step of the high order TVD reconstruction, to higher order accuracy. In order to measure the total variation of a polynomial p(x) of degree k over the interval [a, b], we would need to obtain the zeros of its derivative p (x) in this interval, denoted by a, a,, a k. If we also denote a 0 = a and a k = b, then the variation of p(x) over the interval [a, b] is b a p (x) dx = k j= p(a j ) p(a j ). If we insist on working with explicit formulas for the zeros of polynomials to save cost, then we can only have the polynomial degree k of p(x) up to five, hence our approach can generate schemes up to sixth order in the L norm. A major difficulty in generalizing Sanders TVD reconstruction to higher order is the design of the nonlinear limiter, which should maintain accuracy in smooth regions while enforcing the TVD property (.5). The original limiter of Sanders in [] works well for the third order scheme (k = ), but it seems difficult to generalize it directly to higher order. We will develop a different limiter to achieve this purpose. The finite volume schemes we 4

develop in this paper are (k +)-th order accurate in the L norm, conservative, and TVD in the sense of (.5). Numerical tests for a fifth order accurate TVD scheme will be reported, which include test cases from traffic flow models. This paper is divided into six sections. In Section we develop a Hermite type reconstruction procedure using piecewise polynomials of degree k for functions of bounded variation. We use a quartic polynomial (k = 4) as an example to illustrate the procedure. The reconstruction does not increase the variation of the function being approximated, and is (k + )-order accurate in regions where the approximated function is smooth. In Section 3 we show how to evolve the approximation in time in essentially the same way as in []. In Section 4, we derive the conservative form of the scheme and show that the local truncation error is formally (k + )-th order accurate. In Section 5 we present some numerical examples of the fifth order scheme using quartic reconstruction polynomials. Numerical examples include those from traffic flow models. Finally, in Section 6, we give concluding remarks and remarks for future work. A fifth order TVD reconstruction For a smooth function u(x) with bounded variation over an interval J R, we would like to find a piecewise polynomial r(x) approximating u(x) with the property that the variation of r(x) does not exceed that of u(x). We will use a Hermite type quartic reconstruction polynomial as an example to show how to find such an approximation. However we remark that this approximation procedure can also be applied to any reconstruction polynomials of degree up to five, including those obtained with the ENO or WENO procedure. We will use the following notation for our mesh I j = [x j, x j+ ], x j = ( x j + x j+ ), x = x j+ x j, which is assumed to be uniform for simplicity, and for the discretization of u over the mesh, ū j = x xj+ x j u(x) dx, u j 5 = u(x j ).

Given the cell averages and cell boundary point values of u(x), there are many ways to obtain a reconstruction polynomial p j (x) over the cell J j. We choose to use the Hermite type reconstruction of degree four; i.e., the polynomial p j (x) should satisfy x I i p j (x) dx = ū i, i = j, j, j + ; and p j (x j± If the reconstruction is written as ) = u(x j± ). p j (x) = a 4 (x x j ) 4 + a 3 (x x j ) 3 + a (x x j ) + a (x x j ) + a 0, then the coefficients can be given explicitly as a 0 = ūj + 98ū j + ū j+ 54(u j 9 a = ūj ū j+ 0(ū j 8 x u j+ ) a = (ū j + 58ū j + ū j+ ) + 30(u j 8 x a 3 = ūj+ ū j + (u j x 3 u j+ a 4 = 5ū j + 50ū j + 5ū j+ 30(u j ) + u j+ ) + u j+ ) + u j+ ). x 4 It can be easily shown that the following properties hold for p j (x): I Accuracy (recall that u(x) is a smooth function) p j (x) = u(x) + O( x 5 ), x I j (.) II Agreement of the cell averages p j (x)dx = ū j, j (.) x I j Define the piecewise polynomial p(x) = j p j(x)χ j (x), where χ j is the characteristic function on I j. Notice that for the specific Hermite polynomial p j (x) defined above, we have p(x j ) = p j (x j ) = p j (x j ) = u(x j ), that is, p(x) is a continuous function. For any piecewise polynomial function r(x) = j r j(x)χ j (x), where r j (x) is a polynomial which may 6

not satisfy r j (x j cell by V ar(r j ) = ) = u(x j xj+ ) or r j (x j+ x j r j (x) dx + r j(x j ) = u(x j+ ), we define the variation of r on each ) u j + r j (x j+ ) u j+. The standard total variation seminorm of r(x) is T V (r) = j xj+ r j(x) dx + r j (x j ) r j (x j ) x j j V ar(r j ). The approximation r(x) is TVD if it satisfies T V (r) = r (x) dx u (x) dx = T V (u), J J where the integral is in the generalized sense since r (x) as well as u (x) may contain δ- functions. Obviously, r is a TVD approximation if V ar(r j ) u (x) dx, I j j where we assume the cell boundary values u(x j ) are well defined and shared by both cells I j and I j. For convenience, we denote the total variation of the function u over the interval I j by T V (u) j = u (x) dx. I j Now the question is, given a piecewise approximation polynomial p(x) and certain information of u(x) including its extrema, its cell boundary values u j, its cell averages ū j and its cell total variation T V (u) j for all j, whether we can find a TVD approximation r(x) by limiting p(x) such that the accuracy condition (.) and the conservation condition (.) still hold. To obtain the TVD property, it suffices to enforce V ar(r j ) T V (u) j, j. (.3) First, we assume u(x) has only finitely many nontrivial extrema so we can take the mesh fine enough such that there is at most one extremum of u(x) in each cell. We will deal with 7

the case of infinitely many extrema at the end of the section. We now discuss the limiting process case by case: Case I. p j (x) is monotone in the cell I j. For this case, the TVD requirement (.3) is already satisfied since p j (x) is a Hermite type polynomial which interpolates u at the cell boundaries. Case II. p j (x) is not monotone in the cell I j, but u(x) is monotone in this cell. In this case, the TVD property (.3) does not hold for p j (x) because V ar(p j ) > u j+ u j = T V (u) j. Without loss of generality, we only discuss the situation that u(x) is monotonically increasing in I j, i.e., u j u j+ and u (x) 0, x I j. Since p j (x) is not monotone, we must have p j(x) < 0 for some x I j. Consider p j (x) = p j (x) α j (x x j ), where α j denotes the minimum of p j (x) over I j. We then have the following lemma. Lemma.. The accuracy condition (.) and the cell average agreement condition (.) still hold for p j (x). Proof: The agreement of the cell average is obvious. To prove accuracy, it suffices to show α j = O( x 4 ). We have p j (x) u (x) = O( x 4 ) since p j (x) is a fourth degree Hermite approximation of u(x). If p j (x) attains its minimum at the point xmin I j, then we have u (x min ) 0, α j = p j (xmin ) < 0, therefore α j = α j u (x min ) α j = O( x 4 ). We now enforce the TVD requirement (.3). For this purpose, we apply the following scaling to p j (x) around its cell average on the cell I j : r θ j j (x) = θ j( p j (x) ū j ) + ū j, where θ j [0, ] is a parameter to be determined by the TVD requirement (.3). 8

Lemma.. If V ar( p j ) > T V (u) j, then there exists θ j [0, ] such that V ar(r θ j j ) = T V (u) j. Proof: Take { } u j ū j θ j = min p j (x j ) ū j, u j+ ū j. p j (x j+ ) ū j First, we need to show θ j [0, ]. If θ j >, then u j ū j > p j (x j ) ū j, u j+ ū j > p j (x j+ ) ū j. (.4) Since u(x) and p j (x) are both monotonically increasing in I j, we have u j ū j u j+ (.5) and p j (x j ) ū j p j (x j+ ). Therefore, (.4) implies u j u j+. We then have V ar( p j ) = xj+ x j p j (x) dx + p j(x j = ( p j (x j+ = u j+ u j = T V (u) j. ) p j (x j ) u j )) + ( p j (x j p j (x j + p j (x j+ ) u j ) + (u j+ ) ū j p j (x j+ ) ) u j+ p j (x j+ )) This contradicts V ar( p j ) > T V (u) j, therefore we have θ j [0, ]. Second, we should verify the TVD property (.3). For convenience, we denote r θ j j (x) by r j (x) here. By the definition of the θ j, r j (x j ) ū j = θ j p j (x j ) ū j u j ū j, r j (x j+ ) ū j = θ j p j (x j+ ) ū j u j+ ū j. (.6) Since u(x) and r j (x) are both monotonically increasing in I j, we have (.5) and r j (x j ) ū j r j (x j+ ), therefore (.6) implies u j r j (x j ) ū j r j (x j+ ) u j+. We thus 9

have V ar(r j ) = xj+ x j r j(x) dx + r j (x j = (r j (x j+ = u j+ u j = T V (u) j. ) r j (x j ) u j )) + (r j (x j + r j (x j+ ) u j ) + (u j+ ) u j+ r j (x j+ )) Notice that this scaling does not change the cell average. Of course, we would need to show that, with the θ j taken in Lemma., this scaling does not destroy accuracy. We would need the following result for polynomials: Lemma.3. If a polynomial p(x) of degree k (k 4) is monotone over an interval I = [a, b], and its cell average over I is p, then max x I p(x) p p(b) p C, max x I p(x) p p(a) p C, where C is a constant depending only on the degree of the polynomial k. The proof is elementary but lengthy, and is therefore deferred to the Appendix. A similar (and more general) result for quadratic polynomials can be found in the appendix of [5]. Using Lemma.3 we can prove the accuracy property: Lemma.4. For the θ j chosen in Lemma., the accuracy property (.) holds for r θ j j (x). Proof: It suffices to show that r θ j j (x) p j(x) = O( x 5 ). Without loss of generality, we assume u j ū j θ j = p j (x j ) ū j. In this case, since both u(x) and p j (x) are monotonically increasing, we actually have θ j = 0

u j ū j ep j (x j ) ū j. Then, r θ j j (x) p j(x) = θ j ( p j (x) u j ) + ū j p j (x) = (θ j )( p j (x) u j ) ( ) uj ū j = p j (x j ) ū j ( p j (x) u j ) = u j p j (x j ) ( p j (x) u j ) p j (x j ) ū j = p j (x) u j p j (x j = O( x 5 ) ) ū j (u j p j (x j )) where in the last equality we have used Lemma.3. Case III. p j (x) is not monotone in I j and u(x) has one extremum inside the interval I j. Without loss of generality, we assume u(x) attains its maximum at x max I j, and we denote u max = u(x max ). To deal with this case, we propose to break the polynomial p j (x) into two parts, p l j and p r j. Let u l j and ur j be the cell averages of u on I l j = [x j similarly let p l j and pr j be the cell averages of p j(x) on I l j and Ir j, x max ] and Ij r = [xmax, x j+ ] respectively, respectively. Define p l j (x) = p j(x), x I l j, pr j (x) = p j(x), x I r j, u l (x) = u(x), x I l j, ur (x) = u(x), x I r j, then, after an adjustment of the cell averages over the two sub-cells, in each of the two intervals I l j and Ir j, the situation reduces to either Case I or Case II. Here, we will only briefly discuss p l j, since the procedure for p r j is the same. Without loss of generality, we assume u l (x) is monotonically increasing.. If p l j is monotone (Case I), then define p l j (x) = pl j (x) pl j + ul j, (rl j )θ j (x) = θ j ( p l j (x) ul j ) + ul j,

where { u j ū j θ j = min p j (x j ) ū j, } u max ū j p j (x max ) ū j,.. If p l j is not monotone (Case II), let α be the minimum of p l j over I l j, then α < 0. Define ( p l j(x) = p l j(x) p l j + u l j α x x j (r l j )θ j (x) = θ j ( p l j (x) ul j ) + ul j, + x max ), where { u j ū j θ j = min p j (x j ) ū j, } u max ū j p j (x max ) ū j,. We define r r j(x) on I r j in a similarly way, and use r j (x) = r l j(x)χ(i l j) + r r j(x)χ(i r j ) as our TVD approximation of u(x) on I j. By the same arguments as in Cases I and II, we can show the accuracy, TVD and agreement of cell averages for r j (x). Finally, we consider the case that the smooth function u(x) has infinitely many extrema. This would involve clusters (limit points) of extrema. We have the following lemma to describe the behavior of u(x) at such limit points. Lemma.5. If x 0 is a limit point of extrema (maxima or minima) of u(x), then u (m) (x 0 ) = 0 for all m. Proof: Since x 0 is a limit point of extrema, there exists a sequence of extrema, {y j }, such that lim j y j = x 0. Each y j is an extremum, hence u (y j ) = 0, which implies u (x 0 ) = 0. By the Rolle s Theorem, there exists another sequence {y j : y j y j y j+ }, such that u (yj ) = 0 for all j. Obviously, lim j y j proves the conclusion of the Lemma. = x 0, hence u (x 0 ) = 0. Repeating this argument By Lemma.5 and using a Taylor expansion, we conclude that u(x) = u(x 0 ) + O( x m ) for all x [x 0 x, x 0 + x] and for all m, if x 0 is a limit point. Therefore, in any cell containing such a limit point x 0, we can simply use the constant u(x 0 ) to achieve accuracy

and the TVD property. When all such cells are excluded, there are only finitely many isolated extrema of u(x) left, hence we are back to the previously discussed case. 3 A TVD finite volume scheme Combining the high order accurate TVD reconstruction described in the previous section with the method of characteristics, we obtain a high order accurate TVD Godunov-type finite volume scheme solving the one dimensional scalar conservation law (.). 3. Time evolution To implement the approximation of the previous section, several pieces of information must be available for each cell. Specifically, the cell averages and the left and right cell boundary point values of the function being approximated must be known. To obtain this information, we follow Sanders [] and use a staggered spatial mesh with the method of characteristics. We only need to discuss the evolution procedure for one time step. Let T (u 0 )(x, t), t 0, denote the solution to the scalar conservation law (.) and R(u 0 )(x) denote the piecewise polynomial TVD reconstruction to u 0 (x) in the previous section. As in the previous section, we partition the real line into nonoverlapping intervals I j = [x j, x j+ ], and approximate u 0 BV by the piecewise polynomial TVD reconstruc- tion u 0 (x) = R(u 0 )(x) = j r j (x)χ j (x), where r j (x) is either a polynomial or a (possibly discontinuous) two-piece polynomials r j (x) = r l j(x)χ(i l j) + r r j(x)χ(i r j ). Consider a staggered partition I j = [x j, x j ]. The objective of the evolution is to determine the necessary information of T (u 0 )(x, t ) such that a TVD piecewise polynomial reconstruction at time t = t We assume that u 0 is given by can be obtained. u 0 (x) = R(u 0 )(x), 3

t x j t n+ t n x j y j x j+ x Figure 3.: The backward characteristic line from (x j, t n + t). where R denotes a preconditioned version of reconstruction R. By this we mean specifically that R(u 0 ) is modified (in a way we will discuss later) so that for all j, max I j d dx u0 (x) f (u 0 (x)) t <. (3.) Essentially, to enforce (3.) is to push extremely large gradients of r j (x) out of the interval I j and into the jump discontinuities at cell interfaces, see []. An additional condition that we assume throughout is the Courant condition; that is, for all u in the range of u 0 we assume the ratio λ = t/ x is taken so that f (u) λ <. (3.) If we can find the backward characteristic line from each point x j at time t = t/ back to the time level t = 0 with its foot located at y j I j (see Figure 3.) such that the exact entropy solution is constant u j = u 0 (y j ) along the line, then we have already obtained the cell endpoint values of T (u 0 )(x, t ) on the staggered cell I j, and we can apply the divergence theorem to (.) over the trapezoid defined by the points (x j, t/), (x j, t/), (y j, 0) 4

and (y j, 0) to obtain the the cell average of T (u 0 )(x, t ) on I j ū j [ ] = yj u 0 (x)dx t x y j f(u j) + (x j y j )u j + t f(u j ) (x j y j )u j. (3.3) Therefore, we may now focus on how to obtain the backward characteristic line. With (3.) and (3.) we have: as Lemma 3.. If the approximation function u 0 is continuous on I j, that is, r j (x) is a polynomial, then the backward characteristic equation has a unique solution y j I j. Proof: Consider finding the root of the function f (u 0 (x)) = x j x t/, x I j (3.4) H(s) = f (u 0 (s)) t + (s x j ). (3.5) According to (3.), we have that H(x + ) = f (u 0 (x + )) t x < 0, (3.6) j j Moreover, (3.) implies that for every s I j, H(x ) = f (u 0 (x )) t + x > 0. (3.7) j+ j+ d ds H(s) = f (u 0 (s)) t d ds r j(s) + > 0. (3.8) Therefore, H(s) has a unique root y j I j = (x j, x j+ ). Lemma 3.. If r j (x) = r l j(x)χ(i l j) + r r j(x)χ(i r j ) where r l j(x) and r r j(x) are two polynomials defined on Ij l = [x j, x 0 j] and Ij r = [x 0 j, x j+ ] respectively, we can get either one or three possible candidates for the backward characteristic line from (x j, t ) by solving the characteristic equation (3.4). 5

H(s) x j x 0 j s s x j+ s Figure 3.: A sketch of H(s) in Case 3. Proof: Again, consider finding the root of the function (3.5). We still have (3.6) and (3.7). Moreover, (3.8) holds for each piece of s (x j, x 0 j ) and s (x0 j, x j+ ), respectively. Therefore, H(s) is continuous on I j except at x 0 j and H(s) is monotonically increasing both on the left side and on the right side of x 0 j. Thus, there are three cases depending on the signs of H((x 0 j ) ) and H((x 0 j )+ ).. If H((x 0 j ) ) H((x 0 j )+ ) > 0, there is exactly one root of H(s).. If H((x 0 j ) ) 0, H((x 0 j )+ ) 0, the backward characteristic line is from (x 0 j, 0) to (x j, t/) and the speed of this characteristic is (x j x 0 j)/ t. Precisely speaking there is no root of H(s) if H((x 0 j ) ) < 0 and H((x 0 j )+ ) > 0, but this means a rarefaction wave emanating from (x 0 j, 0). 3. If H((x 0 j ) ) 0, H((x 0 j )+ ) 0, then there are two roots of H(s), one is in I l j and the other one is in I r j. Moreover, the line segment from (x 0 j, 0) to (x j, t/) is also a possible characteristic. See Figure 3.. 6

From the previous lemma, we know that there is a unique backward characteristic line unless Case 3 happens. For Case 3, we can use the Lax formula to choose the correct characteristic line among the candidates, if the flux f(u) is convex, see, e.g. the procedure used in [0]. However, if f(u) is nonconvex, it is very difficult to single out the correct characteristic line among these candidates. We will show in next section that any choice among these candidates will maintain the desired accuracy, therefore our main concern is the TVD property of the scheme. We will choose the candidate so that the cell average obtained from (3.3) satisfies the maximum principle, i.e. min [y j,y j ] u0 (x) ū j max [y j,y j ] u0 (x). (3.9) Once this maximum principle is satisfied, the conditions for the analysis in Section will be fulfilled and we may have a TVD reconstruction. Notice that a choice of the correct characteristics for both cell end points y j and y j would produce ū from (3.3) as the exact cell average of the entropy solution T (u 0 )(x, t/) on j I j, therefore it would automatically satisfy the maximum principle (3.9). Thus, in Case 3 when there are more than one candidate for the characteristic line, there is at least one choice which would return a ū satisfying (3.9). If more than one candidate satisfies this j criterion, we will simply choose one of them arbitrarily. In our implementation, if there are N intervals in which Case 3 happens, then we have 3 N candidates of possible combination. We check all the 3 N candidates sequentially until we find one choice such that each ū j from (3.3) satisfies (3.9), then we will stop the search and use this choice. After finding the backward characteristics, we can obtain the cell averages and cell boundary point values of T (u 0 )(x, t/). With this information, we can apply the procedure in the previous section to obtain a piecewise Hermite type reconstruction polynomial p(x) = j p j (x)χ j (x) on the staggered mesh I j = [x j, x j ]. To find a TVD approximation to T (u 0 )(x, t/), we still need to know the extrema of T (u 0 )(x, t/). In actual implementation, we use the maximum/minimum value of u 0 (x) on the interval [y j, y j ] to replace the maximum/minimum value of T (u 0 )(x, t/), and the position of the ex- 7

tremum of T (u 0 )(x, t/) is determined by forward characteristic lines starting from the maximum/minimum point of u 0 (x). For example, if x max j is the point of the maximum value of u 0 (x) in [y j, y j ] and the maximum value is u 0 max, then the forward characteristic is the line through (x max j, 0) and (x max j + f (u 0 max) t/, t/), i.e., we trace the maximum/minimum values by the characteristics. The two cell averages of the left and right parts can be computed in the same way as in (3.3). Remark 3.. Since the entropy solution to (.) satisfies the maximum principle, the maximum/minimum value of T (u 0 )(x, t/) on the interval I j is less/greater than or equal to the maximum/minimum value of u 0 (x) on the interval [y j, y j ], which could be easily computed because u 0 is a piecewise polynomial of degree k 5 and there are algebraic analytical formulas for the extrema. Remark 3.. When dealing with a nonsmooth solution (e.g., when a shock emerges), it is possible that there are two consecutive broken polynomials. In this case, there are two extrema of u 0 (x) in [y j, y j ], we simply pick either one of them as the extremum used in the TVD limiter. 3. Precondition We propose the following procedure as the preconditioning process to ensure (3.).. r j (x) is a polynomial. If r j (x) fails to satisfy (3.), i.e., either or then we use max r j (x)f (r j (x)) > / t, x I j min r j (x)f (r j (x)) < / t, x I j ˆr j (x) = µ(r j (x) ū j ) + ū j 8

to replace r j (x), where ū j is the cell average and { } µ = min t max x Ij f (r j (x)) max x Ij r j (x), t min x Ij f (r j (x)) min x Ij r j (x).. r j (x) = rj l(x)χ(il j ) + rr j (x)χ(ir j ). We only discuss rl j (x), the process for rr j (x) is similar. If rj l (x) fails to satisfy (3.), i.e., either max x I l j drj(x) l dx f (r j (x)) > / t, or then we use min x I l j drj l(x) dx f (r j (x)) < / t, ˆr l j (x) = µ(rl j (x) ūl j ) + ūl j to replace rj l(x), where ūl j is the cell average on I j l and µ = min t max x Ij f (rj l (x)) max dr l x Ij l j (x), t min dx x I l j f (rj l (x)) min x I j dr l j (x) dx. 3.3 Algorithm flowchart We can now formulate the algorithm flowchart for the TVD finite volume scheme. From now on we restrict ourself to the fifth order case for easy presentation, although the procedure and results are valid for all orders up to six.. Start with the preconditioned version of piecewise polynomial of degree four u n (x) = j r j(x)χ j (x) at time level n.. For each x j, find the foot y j of the backward characteristic line by finding the root y j of the characteristic equation (3.4) in I j. If there are three candidates for y j, then pick one which returns a maximum principle satisfying u n+ j in formula (3.3). 3. Evaluate T (u n )(x j, t ) = un (y j ) and the average of T (u n )(x, t ) on I j by formula (3.3). Construct the Hermite type reconstruction polynomials p j (x) on the staggered interval I j = [x j, x j ]. 9

4. Evaluate V ar(p j ) = x j x j p j (x) dx + p j the standard variation of u n (x) on [y j, y j ], T V (u n ) [yj,y j ] V ar(p j ) > T V (u n ) [yj,y j ], apply the TVD limiter to p j (x j ) u j + p j (x j ) u j and = y j y j (u n ) (x) dx. (x) on I j. If 5. Apply the preconditioning process. This finishes the evolution to t n + t on the staggered mesh I j. 6. Evolve to t n + t in an analogous way back to the mesh I j. 4 Properties of the scheme 4. Conservative form Since we use (3.3) to obtain the cell average, and noticing that the limiter and preconditioning process do not change the cell averages, we can rewrite our scheme in a conservative form for the cell averages on I j [ yj ū n+ j = x y j u n (x)dx t f(u j) + (x j y j )u j + t f(u j ) (x j y j )u j = ū n t j x ( ˆf j ˆf j ), where the numerical flux is and ū n j ˆf j = t ( u n (x)dx + f(u j ) (x ) j y j ) u j y j t xj denotes the average of u n (x) on I j. See Figure 4.. First, ˆf j only depends on u n (x) over the interval I j. Second, ˆfj is consistent in the sense that ˆf j = f(ū) if u n (x) is a constant ū. Thus, our scheme is conservative. 4. Total-variation diminishing As long as the cell averages satisfy the maximum principle (3.9), Lemma. in the TVD reconstruction section will hold, which ensures the TVD property, and the preconditioning process is total-variation diminishing. Therefore, our scheme is TVD, i.e., T V (u n+ (x)) V ar(u n+ (x)) T V (u n (x)). ] 0

t x j x j t n+ t n x j 3 y j x j y j x j+ Figure 4.: The trapezoid region in the x-t plane. x 4.3 Fifth order accuracy Assume the initial data u 0 (x) is a smooth function on a finite domain and u 0 (x) is the TVD piecewise polynomial approximating u 0 (x). We will prove that the local truncation error is O( x 5 ). It suffices to show that u (x) T (u 0 )(x, t/) = O( x 5 ). First of all, the preconditioning process does not change u 0 (x) at all if t is small enough. Since u 0 (x) is smooth, d u dx 0(x) is bounded. Thus d dx u0 (x) is also bounded because d dx u0 (x) d dx u 0(x) = O( x 4 ). If we assume f (u 0 (x)) is also bounded, then (3.) will be automatically satisfied for u 0 (x) if the mesh is fine enough. Second, u (x) will be a fifth order accurate approximation to T (u 0 )(x, t/) if all the characteristic lines used in the scheme are fifth order accurate. The forward characteristic to

trace the maximum/minimum is obviously fifth order accurate. Except for Case 3 in Lemma 3., the backward characteristic lines are all exact. Therefore, we only need to check the accuracy of the backward characteristic line that we choose in Case 3. Lemma 4.. Assume f (x) and u 0 (x) are both bounded, then all the three candidates of the backward characteristic lines in Case 3 are fifth order accurate if the mesh is fine enough. Proof: Assume the three possible locations of the foot of backward characteristics are s 0, s and s as shown in Figure 3. (in which s 0 is denoted as x 0 j ). It suffices to show that s s = O( x 5 ) if x and t are sufficiently small. Define G(x) = f (u 0 (x)) t + (x x j ) and H(x) = f (u 0 (x)) t + (x x j ). We have therefore G(x) H(x) = f (u 0 (x)) t f (u 0 (x)) t = f (ζ)(u 0 (x) u 0 (x)) t = O( x 5 ), H(s 0 ) H(s+ 0 ) H(s 0 ) G(s 0) + G(s 0 ) H(s + 0 ) = O( x5 ), hence H(s 0 ) H(s+ 0 ) < 0 implies H(s 0 ) = O( x5 ). Notice that hence we have G (x) 3 for all x [x j G (x) = f (u 0 (x))u 0 (x) t +,, x j+ ] if t is small enough, since f (x) and u 0 (x) are bounded. Now G (x) H (x) = O( x 4 ) implies that if x is small, H (x) for all x [x j, x j+ ]. Therefore H(s 0 ) H(s ) s 0 s = H (ξ), for some ξ [s, s 0 ], which implies s 0 s H(s 0 ) H(s ) = H(s 0 ) = O( x5 ). Similarly s 0 s = O( x 5 ). Therefore, the accuracy is not destroyed even if the entropic characteristic line is not necessarily chosen in Case 3. 5 Numerical Test In this section we provide numerical examples to test our schemes.

5. Standard test cases Example. We solve the model equation u t + u x = 0, x, with periodic boundary conditions. u(x, 0) = u 0 (x), Three initial data u 0 (x) are used. The first one is u 0 (x) = sin(πx), and we list the L and L errors for the cell averages at time t = 5 in Table 5.. The second one is u 0 (x) = sin 4 (πx), and we list the errors at time t = 5 in Table 5.. Here and below, the mesh size x = /N. We can clearly see that the designed fifth order accuracy is achieved in both cases, at least for the L error. Table 5.: u 0 (x) = sin(πx), t = 5, t/ x = 0.95. N L error order L error order 0.08E-6.8E-6 40 3.34E-8 5.0 6.93E-8 4.97 80.0E-9 5.03.7E-9 5.00 60 3.4E- 5.0 6.69E- 5.0 Table 5.: u 0 (x) = sin 4 (πx), t = 5, t/ x = 0.95. N L error order L error order 0 6.5E-4.E-3 40.7E-5 4.5 7.58E-5 4.0 80 8.46E-7 5.00 3.5E-6 4.59 60.65E-8 4.99.0E-7 5.3 30 8.57E-0 4.95 4.08E-9 4.47 The third initial function is u 0 (x) = {, x 0, 0 x. The results at t = 00 are shown in Figure 5.. We can see that numerical solution maintains a strict maximum principle and has relatively good resolution for the discontinuity for a coarse mesh after a very long time simulation (50 time periods). 3

0.5 u(x) 0-0.5 - - -0.5 0 0.5 x Figure 5.: N = 40, t = 00. Solid line: exact solution; Squares: numerical solution (cell averages). Example. We solve the Burgers equation with periodic boundary conditions ( ) u u t + x = 0, x, u(x, 0) = u 0 (x). For the initial data u 0 (x) = 0.5 + 0.5 sin(πx), the exact solution is smooth up to t = π, then it develops a moving shock which interacts with a rarefaction wave. At t = 0.5 the solution is still smooth. We list the errors in Table 5.3. We can clearly see the designed fifth order accuracy is achieved in the L norm. At t = π the shock just begins to form; at t =.0 the interaction between the shock and the rarefaction waves is over, and the solution becomes monotone between the shocks. In Figure 5. we can see that the shock is captured very well. The errors 0.05 away from the shock (i.e., x shock location 0.05) are listed in Table 5.4 at t =.0. We can again see that the designed order of accuracy is achieved or surpassed. Example 3. Note that we have only proved TVD for our schemes, not entropy conditions. We use nonconvex fluxes to test the convergence to the physically correct entropy solutions. 4

Table 5.3: u 0 (x) = 0.5 + 0.5 sin(πx), t = 0.5, t/ x =.. N L error order L error order 0.3E-6 6.73E-6 40 3.6E-8 5.34.47E-7 5.5 80 6.4E-0 5.66 4.5E-9 5. 60.30E- 4.80.38E-0 4.6 30 7.63E-3 4.9.59E- 3.90 640.46E-4 4.95.0E- 3.95 0.7 0.6 0.4 0.6 0.5 0.4 u(x) 0. u(x) 0.3 0. 0. 0 0-0. -0. -0.5 0 0.5 x -0. -0.5 0 0.5 x Figure 5.: N = 80, t/ x =.. Solid line: exact solution; Symbols: numerical solution (cell averages). Left: t = 0.6366; Right: t =. Table 5.4: u 0 (x) = 0.5 + 0.5 sin(πx), t =, t/ x =.. N L error order L error order 0.9E-3 4.09E- 40 3.30E-5 6.05 7.34E-4 5.80 80.68E-6 6.95.79E-5 5.36 60 8.3E-0 8.34 9.4E-8 9.4 30.70E-3.57 9.30E- 3.7 5

The exact solutions are obtained from the first order Lax-Friedrichs scheme on a very fine mesh. The first flux is the Buckley-Leverett flux f(u) = 4u 4u + ( u), with the initial data u = in [, 0] and u = 0 elsewhere. The computational result is displayed in Figure 5.3, which is quite satisfactory. 0.8 0.6 u(x) 0.4 0. 0 - -0.5 0 0.5 x Figure 5.3: N = 60, t = 0.4, t/ x = 0.3. Solid line: exact solution; Symbols: numerical solution (cell averages). The second flux is an example used in [], defined by, if u <.6 cos(5π(u.8)) +.0, if.6 u <.0 f(u) = cos(5π(u.)), if.0 u <.4, if u.4 with two initial conditions. The first initial condition is {, for x < 0 u 0 (x) = 3, for x 0 and it is shown in [] that the numerical solutions of many high order schemes would stay stationary which is entropy-violating. Our result is shown in Figure 5.4 which approximates 6

the exact entropy solution very well. The other initial data that we test is u 0 (x) = { 3, for x < 0, for 0 x with a periodic boundary condition. It is shown in [] that convergence towards the entropy solution for this test case is very slow for many schemes. Our results are shown in Figure 5.5. There is clearly convergence with refined meshes, and the rate of convergence is faster than that of the first order schemes shown in []. 3.5 u(x).5-0 -5 0 5 0 x Figure 5.4: N = 400, t =, t/ x = 0.04. Solid line: exact solution; Symbols: numerical solution (cell averages). 5. Test cases from traffic flow models In the subsection, we test our fifth order TVD scheme on two traffic flow problems. To describe the dynamic characteristics of traffic on a homogeneous and unidirectional highway, the Lighthill-Whitham-Richards (LWR) model is widely used. The governing equation for the LWR model is a scalar conservation law ρ t + q(ρ) x = 0 7

.0.005 u(x).995.99-0.5 0 0.5 x Figure 5.5: t =, t/ x = 0.04. The curves, from right to left, are corresponding to N = 800, N = 600, N = 300 and the exact solution, respectively. with suitable initial and boundary conditions. Here ρ (0, ρ max ) is the density, ρ max is the maximum (jam) density, and q(ρ) is the traffic flow on a homogeneous highway, which is assumed to be a function of the density only in the LWR model. The flow q, the density ρ and the equilibrium speed u are related by q(ρ) = u(ρ)ρ. Example 4. The first traffic flow test example is taken from [7]. The flow-density function is given by a concave function 0.4ρ + 00ρ, 0 ρ 50 q(ρ) = 0.ρ + 5ρ + 3500, 50 ρ 00 0.04ρ 5.ρ + 4760, 00 ρ 350. Consider a long homogeneous freeway of length 0 km. The entrance density is 50 veh/km. Due to an incident near the downstream end of the freeway, the piecewise linear traffic density profile shown in Fig 5.6 is formed. To release the traffic jam condition downstream, the freeway entrance is blocked for 0 min, after which traffic is released again from the entrance at the capacity density 75 veh/km. After 0 min, the entrance flow returns back 8

to normal with a density 50 veh/h. At the exit boundary, a traffic signal is installed, with a repeated pattern of min green light (zero density) followed by min red light (jam density). The numerical solutions are shown in Figures 5.7, 5.8 and 5.9, in which the solid lines are the exact solution and the symbols are the numerical solution obtained by our fifth order TVD scheme using N = 800 cells. We can observe that our TVD scheme produces very good approximations to the exact solution for this test case. 350 300 50 Density (veh/km) 00 50 00 50 5 0 5 Distance (km) Figure 5.6: The initial density for first traffic flow Example 4. Example 5. We consider a similar problem but with a much more complicated flow-density function in [3]. The flow function q(ρ) = ρv e (ρ) is given by V e (ρ) = Ṽ + + 4V 0 V 0 Ṽ with Ṽ (ρ) = ( T r ρ ) α(ρ max ) ρ max α(ρ) 9

350 300 50 Density 00 50 00 50 0 0 5 0 5 0 Distance Figure 5.7: Traffic flow Example 4: t = 30 min, N = 800. Solid line: exact solution; Circles: numerical solution (cell averages). 30

350 300 50 Density 00 50 00 50 0 0 5 0 5 0 Distance Figure 5.8: Traffic flow Example 4: t = 60 min, N = 800. Solid line: exact solution; Circles: numerical solution (cell averages). 3

350 300 50 Density 00 50 00 50 0 0 5 0 5 0 Distance Figure 5.9: Traffic flow Example 4: t = 90 min, N = 800. Solid line: exact solution; Circles: numerical solution (cell averages). 3

and ( α(ρ) = α 0 + α tanh ( ρ ρ ) c ρ ) +. Here V 0, T r, ρ max, α 0, α, ρ c and ρ are all constant parameters to be determined by fitting them to the empirical data. The physical meaning of these parameters can be found in [3]. We simply choose some typical values mentioned in [3]: V 0 = 0 km/h, T r =.8 seconds, ρ max = 60 vehicles/km, α 0 = 0.008, α = 0.0, ρ c = 0.7ρ max and ρ = 0.ρ max. With all these parameters, the flow-density function q(ρ) is well-defined, the graphs of this function and its second derivative are plotted in Figure 5.0. It is clearly neither a globally concave nor a globally convex function. 000 5 0 Flow (veh/h) 500 000 5 0-5 -0 500-5 0 0 50 00 50 Density (veh/km) -0 0 50 00 50 Figure 5.0: Left: the graph of q(ρ); Right: the graph of q (ρ). Consider a long homogeneous freeway of length 0 km. The entrance density is constant 30 veh/km. The initial condition is given as a sine function ρ 0 (x) = 35 sin ( π 45 x) +. At 0 the exit boundary, a traffic signal is installed, with a repeated pattern of min green light (ρ = 0 veh/km) followed by min red light (ρ = 40 veh/km). The numerical solutions are shown in Figure 5., with a magnified graph for the boxed region shown in Figure 5., where the solid line is the reference solution obtained by the first order Lax-Friedrichs scheme on a very fine grid (N = 4000000) and the circles are the numerical solution with N = 600 33

cells at t = 8 min. We again observe very good resolution of our scheme for this nonconvex traffic flow model. 60 40 0 00 Density 80 60 40 0 0 0 5 0 5 0 Distance Figure 5.: Traffic flow Example 5: t = 8 min, N = 600. The region inside the rectangle on the right is magnified in Figure 5.. Remark 5.. The advantage of our scheme is that it is high order accurate and satisfies strictly a maximum principle, therefore it has better resolution than the usual TVD schemes when the solution contains many waves, and it does not generate any unphysical solution such as negative density. From the two examples above, we can see that all the waves (shocks 34

60 40 0 00 Density 80 60 40 0 0 7 8 9 0 Distance Figure 5.: Magnified graph of the region inside the rectangle in Figure 5.. 35

and rarefactions) are well captured. Remark 5.. The boundary conditions in these two examples are all piecewise constants in time. Hence we simply use constant values on ghost cells as the numerical boundary condition for our scheme. 5.3 A simplified scheme In this subsection we discussed a simplified version of our finite volume scheme. We use the same method for time evolution, and a similar but simpler limiter which only enforces strict maximum principle but not TVD, without breaking a polynomial into two pieces on any interval. The algorithm satisfies all the theoretical properties of the previous scheme except for a rigorous proof of TVD. This maximum-principle-satisfying finite volume scheme is described below.. Start with the preconditioned version of piecewise polynomial of degree four u n (x) = j r j(x)χ j (x) at time level n.. For each x j, find the unique root y j of the characteristic equation (3.4) in I j. The uniqueness of the root is ensured by Lemma 3.. 3. Evaluate T (u n )(x j, t) = un (y j ) and the average ū n+ of T (u n )(x, t) on I j j by the formula (3.3). Construct the Hermite type interpolation polynomials p j (x) on the staggered interval I j = [x j, x j ]. 4. For each interval I j, evaluate the maximum M j and the minimum m j of p j (x) on I j, and the maximum M j and the minimum m j of u n (x) on [y j, y j ]. Apply the following scaling r j (x) = θ(p j (x) ū n+ ) + ū n+ j j 36

where θ is determined by θ = min M j ū n+ j M j ū n+ j, m j ū n+ j m j ū n+ j,. 5. Apply the preconditioning process. This finishes the evolution to t n + t on the staggered mesh I j. 6. Evolve to t n + t in an analogous way back to the mesh I j. Remark 5.3. We can easily prove that this scheme is conservative and fifth order accurate. Obviously it satisfies the maximum principle. Therefore we will refer to it as the maximumprinciple-satisfying scheme. Remark 5.4. The maximum-principle-satisfying scheme is much easier to code than the TVD scheme. Although we cannot rigorously prove TVD or TVB of the numerical solution, we have not observed any significant difference between this scheme and the TVD scheme tested before, for all the test cases reported in this paper. We will not show these results here to save space. A Concluding remarks In this paper we have extended the work in [] and have constructed a class of genuinely high order accurate finite volume TVD schemes for solving one dimensional scalar conservation laws. These schemes do not degenerate to lower order accuracy at smooth extrema, yet they satisfy a strict maximum principle and they can be proved to be TVD, when the total variation is measured by the bounded variation semi-norm of the reconstructed piecewise polynomials. The key ingredient of the algorithm is the TVD reconstruction, which can be efficiently implemented for order of accuracy up to six. 37

We have tested the fifth order scheme on a variety of examples including those from traffic flow models and those with non-convex fluxes. The solutions are high order accurate and provide good resolution to shocks and rarefaction waves. A simplified scheme is also described, which enforces a strict maximum principle but is not rigorously TVD, however it is much simpler to implement than the TVD scheme. Numerical experiments indicate that this simplified scheme perform as nicely in all the test cases as the TVD scheme. The advantage of the schemes constructed in this paper, compared with traditional TVD schemes, is that they do not degenerate to first order at smooth extrema, hence they give very good resolutions to solutions with complicated smooth waves. On the other hand, the advantage of the schemes constructed in this paper, compared with ENO and WENO schemes, is that they satisfy strictly the maximum principle, hence they will not generate nonphysical solutions such as negative density for the traffic flows. This property is important in some applications. In order to generalize of this scheme to two dimensions, we should abandon the requirement of TVD and insist only on the strict maximum principle, that is, along the approach of the simplified scheme in Section 5.3. It is also possible to formally generalize the scheme to hyperbolic systems, see [3] for one possible approach. However, it would be probably more appropriate, for the system case, to enforce certain positivity preserving properties, such as positivity preserving for density and pressure for Euler equations of compressible gas dynamics, see [9] for one possible approach. Both of these generalizations constitute ongoing research. References [] A. Harten, High resolution schemes for hyperbolic conservation laws, Journal of Computational Physics, 49 (983), pp.357-393. 38

[] A. Harten, B. Engquist, S. Osher and S. Chakravarthy, Uniformly high order essentially non-oscillatory schemes, III, Journal of Computational Physics, 7 (987), 3-303. [3] D. Helbing, A. Hennecke, V. Shvetsov and M. Treiber, MASTER: macroscopic traffic simulation based on a gas-kinetic, non-local traffic model, Transportation Research Part B, 35 (00), pp.83-. [4] G.-S. Jiang and C.-W. Shu, Efficient implementation of weighted ENO schemes, Journal of Computational Physics, 6 (996), pp.0-8. [5] X.-D. Liu and S. Osher, Non-oscillatory high order accurate self similar maximum principle satisfying shock capturing schemes, SIAM Journal on Numerical Analysis, 33 (996), pp.760-779. [6] X.-D. Liu, S. Osher and T. Chan, Weighted essentially non-oscillatory schemes, Journal of Computational Physics, 5 (994), 00-. [7] Y. Lu, S.C. Wong, M. Zhang, C.-W. Shu and W. Chen, Explicit construction of entropy solutions for the Lighthill-Whitham-Richards traffic flow model with a piecewise quadratic flow-density relationship, Transportation Research Part B, 4 (008), pp.355-37. [8] S. Osher and S. Chakravarthy, High resolution schemes and the entropy condition, SIAM Journal on Numerical Analysis, (984), pp.955-984. [9] B. Perthame and C.-W. Shu, On positivity preserving finite volume schemes for Euler equations, Numerische Mathematik, 73 (996), pp.9-30. [0] J.-M. Qiu and C.-W. Shu, Convergence of Godunov-type schemes for scalar conservation laws under large time steps, SIAM Journal on Numerical Analysis, 46 (008), pp.- 37. 39

[] J.-M. Qiu and C.-W. Shu, Convergence of high order finite volume weighted essentially non-oscillatory scheme and discontinuous Galerkin method for nonconvex conservation laws, SIAM Journal on Scientific Computing, 3 (008), pp.584-607. [] R. Sanders, A third-order accurate variation nonexpansive difference scheme for single nonlinear conservation law, Mathematics of Computation, 5 (988), pp.535-558. [3] R. Sanders, High resolution staggered mesh approach for nonlinear hyperbolic systems of conservation laws, Journal of Computational Physics, 0 (99), pp.34-39. [4] C.-W. Shu, TVB uniformly high-order schemes for conservation laws, Mathematics of Computation, 49 (987), pp.05-. [5] C.-W. Shu and S. Osher, Efficient implementation of essentially non-oscillatory shockcapturing schemes, Journal of Computational Physics, 77 (988), pp.439-47. A Appendix In this appendix we provide a proof of Lemma.3. Lemma.3. If a polynomial p(x) of degree k (k 4) is monotone over an interval I = [a, b], and its cell average over I is p, then max x I p(x) p p(b) p C, max x I p(x) p p(a) p C, (A.) where C is a constant depending only on the degree of the polynomial k. In particular, C() =, C(3) = 4 and C(4) = 7. Proof: We only prove the k = 4 case. The proof for lower k is very similar (and simpler) and is thus omitted. We can assume the interval is I = [, ] by considering the rescaled variable x = x (a+b)/ b a, which leaves the ratios in (A.) unchanged. We will still denote x by x and, 40

without loss of generality, we assume p(x) = a 0 + a x + a x + a 3 x 3 + a 4 x 4 is increasing on I = [, ]. Notice that p(x) is monotone on I = [, ], we only need to show that p ( ) p p ( ) p ( 7, ) p p p ( ) 7. (A.) p We will only prove the first inequality in (A.), the derivation for the second inequality being the same. We have ( p ) ( ) p = a 0 a + 4 a 8 a 3 + 6 a 4 = a 0 + a + 4 a + 8 a 3 + 6 a 4 p = a 0 + a + 80 a 4 Thus, p ( ) p p ( ) = p = p( ) p p( ) + p a + a 6 + a 8 3 + a 0 4 a a 6 + a 8 3 a 0 4 = a + 3 a + 4 a 3 + 0 a 4 a 3 a + 4 a 3 = + = + 3 0 a 4 3 a + 5 a 4 a 3 a + 4 a 3 0 a 4 a + 3 0 a 4 a 3 a + 4 a 3 0 a 4. We now discuss this in several cases. Case. If a + 3 a 0 4 = 0, then p( ) p = < 7. p( ) p Case. If a + 3 a 0 4 < 0, then p ( ) p p ( = + ) p 3 a + 4 a 3 a + 3 0 a 4 3. 4