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

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

High order well-balanced finite volume WENO schemes and discontinuous Galerkin methods for a class of hyperbolic systems with source terms

Dedicated to the 70th birthday of Professor Lin Qun

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

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

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

Positivity-preserving high order schemes for convection dominated equations

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

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

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

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

High order finite difference WENO schemes with positivity-preserving. limiter for correlated random walk with density-dependent turning rates

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

Simulations of Shallow Water Equations with Finite Difference Lax-Wendroff Weighted Essentially Non-oscillatory Schemes

Comparison of cell-centered and node-centered formulations of a high-resolution well-balanced finite volume scheme: application to shallow water flows

On the positivity of linear weights in WENO approximations. Abstract

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

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

A discontinuous Galerkin finite element method for directly solving the Hamilton Jacobi equations

FLUX DIFFERENCE SPLITTING AND THE BALANCING OF SOURCE TERMS AND FLUX GRADIENTS

Multi-Domain Hybrid Spectral-WENO Methods for Hyperbolic Conservation Laws

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

arxiv: v1 [math.na] 2 Feb 2018

High Order Accurate Runge Kutta Nodal Discontinuous Galerkin Method for Numerical Solution of Linear Convection Equation

Improved Seventh-Order WENO Scheme

TOTAL VARIATION DIMINISHING RUNGE-KUTTA SCHEMES

Semi-Discrete Central-Upwind Schemes with Reduced Dissipation for Hamilton-Jacobi Equations

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

H. L. Atkins* NASA Langley Research Center. Hampton, VA either limiters or added dissipation when applied to

Multi-Domain Hybrid Spectral-WENO Methods for Hyperbolic Conservation Laws

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

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

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

HFVS: An Arbitrary High Order Flux Vector Splitting Method

In particular, if the initial condition is positive, then the entropy solution should satisfy the following positivity-preserving property

Well-balanced DG scheme for Euler equations with gravity

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

SECOND ORDER ALL SPEED METHOD FOR THE ISENTROPIC EULER EQUATIONS. Min Tang. (Communicated by the associate editor name)

Well-balanced central finite volume methods for the Ripa system

Well-Balanced Schemes for the Euler Equations with Gravity

Fourier analysis for discontinuous Galerkin and related methods. Abstract

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

High-order finite difference methods with subcell resolution for 2D detonation waves

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

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

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

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

NUMERICAL SIMULATION OF LONG WAVE RUNUP ON A SLOPING BEACH*

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

c 2012 Society for Industrial and Applied Mathematics

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

Lecture 16. Wednesday, May 25, φ t + V φ = 0 (1) In upwinding, we choose the discretization of the spatial derivative based on the sign of u.

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

ENO and WENO schemes. Further topics and time Integration

Discontinuous Galerkin Method for 1D Shallow Water Flow with Water Surface Slope Limiter

Solving the Euler Equations!

A Discontinuous Galerkin Moving Mesh Method for Hamilton-Jacobi Equations

Finite Volume Schemes: an introduction

Weighted ENO Schemes

Sung-Ik Sohn and Jun Yong Shin

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

Finite volumes for complex applications In this paper, we study finite-volume methods for balance laws. In particular, we focus on Godunov-type centra

Journal of Computational Physics

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

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

Numerische Mathematik

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

Sound generation in the interaction of two isentropic vortices

arxiv: v2 [math.ap] 1 Jul 2011

Finite-Volume-Particle Methods for Models of Transport of Pollutant in Shallow Water

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

Chapter 17. Finite Volume Method The partial differential equation

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

arxiv: v1 [math.na] 15 Apr 2014

Hermite WENO schemes and their application as limiters for Runge Kutta discontinuous Galerkin method: one-dimensional case

Fifth order multi-moment WENO schemes for hyperbolic conservation laws

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

A semi-lagrangian finite difference WENO scheme for scalar nonlinear conservation laws

Chapter 1. Introduction

SMOOTHNESS INDICATORS FOR WENO SCHEME USING UNDIVIDED DIFFERENCES

HIGH ORDER NUMERICAL METHODS FOR TIME DEPENDENT HAMILTON-JACOBI EQUATIONS

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

Divergence Formulation of Source Term

A Central Compact-Reconstruction WENO Method for Hyperbolic Conservation Laws

Dissipative numerical methods for the Hunter-Saxton equation

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

On limiting for higher order discontinuous Galerkin method for 2D Euler equations

High-resolution finite volume methods for hyperbolic PDEs on manifolds

Adaptive TVD-RK Discontinuous Galerkin Algorithms for Shallow Water Equations

The Penultimate Scheme for Systems of Conservation Laws: Finite Difference ENO with Marquina s Flux Splitting 1

Introduction to Partial Differential Equations

Applicability of the High Field Model: A Preliminary Numerical Study

Applying Asymptotic Approximations to the Full Two-Fluid Plasma System to Study Reduced Fluid Models

A recovery-assisted DG code for the compressible Navier-Stokes equations

Stable Semi-Discrete Schemes for the 2D Incompressible Euler Equations

AN OPTIMALLY ACCURATE SPECTRAL VOLUME FORMULATION WITH SYMMETRY PRESERVATION

A Well-Balanced Gas-Kinetic Scheme for the Shallow-Water Equations with Source Terms

Sistemas Hiperbólicos no Lineales: Un Nuevo Método para Calcular Flujos Relativistas

Hydraulic Modelling for Drilling Automation

Transcription:

COMMUNICATIONS IN COMPUTATIONAL PHYSICS Vol., No., pp. -34 Commun. Comput. Phys. February 6 A New Approach of High OrderWell-Balanced Finite Volume WENO Schemes and Discontinuous Galerkin Methods for a Class of Hyperbolic Systems with Source Terms Yulong Xing and Chi-Wang Shu, Department of Mathematics, Brown University, Providence, RI 9, USA. Division of Applied Mathematics, Brown University, Providence, RI 9, USA. Received 6 August 5; Accepted (in revised version September 5 Abstract. Hyperbolic balance laws have steady state solutions in which the flu gradients are nonzero but are eactly balanced by the source terms. In our earlier work [3 33], we designed high order well-balanced schemes to a class of hyperbolic systems with separable source terms. In this paper, we present a different approach to the same purpose: designing high order well-balanced finite volume weighted essentially non-oscillatory (WENO schemes and Runge- Kutta discontinuous Galerkin (RKDG finite element methods. We make the observation that the traditional RKDG methods are capable of maintaining certain steady states eactly, if a small modification on either the initial condition or the flu is provided. The computational cost to obtain such a well balanced RKDG method is basically the same as the traditional RKDG method. The same idea can be applied to the finite volume WENO schemes. We will first describe the algorithms and prove the well balanced property for the shallow water equations, and then show that the result can be generalized to a class of other balance laws. We perform etensive one and two dimensional simulations to verify the properties of these schemes such as the eact preservation of the balance laws for certain steady state solutions, the non-oscillatory property for general solutions with discontinuities, and the genuine high order accuracy in smooth regions. Key words: Hyperbolic balance laws; WENO finite volume scheme; discontinuous Galerkin method; high order accuracy; source term; conservation laws; shallow water equation; elastic wave equation; chemosensitive movement; nozzle flow; two phase flow. Correspondence to: Chi-Wang Shu, Division of Applied Mathematics, Brown University, Providence, RI 9, USA. E-mail: shu@dam.brown.edu Research supported by ARO grant W9NF-4--9, NSF grant DMS-5345 and AFOSR grant FA955-5- -3. http://www.global-sci.com/ c 6 Global-Science Press

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 Introduction In this paper, we are concerned with the construction of high order well balanced weighted essentially non-oscillatory (WENO finite volume schemes and Runge-Kutta discontinuous Galerkin (RKDG finite element methods for solving hyperbolic balance laws, which have attracted significant attention in the past few years. Hyperbolic balance laws are hyperbolic systems of conservation laws with source terms: or in the one dimensional case u t + f (u,, y + f (u,, y y = g(u,, y (. u t + f(u, = g(u, (. where u is the solution vector, f (u,, y and f (u,, y (or f(u, are the flues and g(u,, y (or g(u, is the source term. An essential part for these balance laws is that they often admit steady state solutions in which the flu gradients are eactly balanced by the source term. A straightforward treatment of the source terms in a numerical scheme will fail to preserve this balance. Many physical phenomena come from small perturbations of these steady state solutions, which are very difficult to capture numerically, unless the numerical schemes can preserve the unperturbed steady state at the discrete level. Schemes which can preserve the unperturbed steady state at the discrete level are the so called well balanced schemes. Our purpose is to design well balanced schemes without sacrificing the high order accuracy and non-oscillatory properties of the scheme when applied to general, non-steady state solutions. Balance laws have many applications in the physical world. A typical and etensively considered eample is the shallow water equations with a non flat bottom topology. Many geophysical flows are modeled by the variants of the shallow water equations. In one space dimension, they take the form h t + (hu = (hu t + (hu + (.3 gh = ghb, where h denotes the water height, u is the velocity of the fluid, b represents the bottom topography and g is the gravitational constant. The steady state solutions are given by hu = constant and u + g(h + b = constant. (.4 People are particularly interested in the still water stationary solution, denoted by u = and h + b = constant. (.5 Bermudez and Vazquez [4] first introduced the concept of the eact C-property, which means that the scheme is eact when applied to the still water stationary solution (.5. Also, they introduced the first order Q-scheme and the idea of source term upwinding to obtain such

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 property. After this, many well balanced schemes for the shallow water equations have been developed in the literature, mostly for first and second order accuracy, e.g. [,7 9,,8 3,34]. In our recent work [3 33], we have successfully developed high order well balanced finite difference, finite volume WENO schemes and RKDG methods for a class of hyperbolic balanced laws with separable source terms. This class of hyperbolic systems includes the shallow water equations mentioned above, the elastic wave equation, the hyperbolic model for a chemosensitive movement, the nozzle flow, a model from fluid mechanics and a two phase flow model. In [3], we developed a well balanced high order finite difference WENO scheme for solving the shallow water equations, which is non-oscillatory, well balanced (satisfying the eact C-property for still water, and genuinely high order in smooth regions. In [3], we etended the process to a general class of balance laws with separable source terms, allowing the design of well balanced high order finite difference WENO scheme for all balance laws falling into this category. In [33], well balanced high order finite volume WENO schemes and finite element discontinuous Galerkin schemes on general triangulations were designed for the same class of balance laws as those in [3], which are more suitable for computations in comple geometry and / or for using adaptive meshes. The key ingredient of the technique used in [3 33] to obtain well balanced property is a special decomposition of the source term, allowing a discretization to the source term to be both high order accurate for general solutions and eactly well balanced with the flu gradient for some steady states. In this paper, we consider RKDG methods first, and show that the traditional RKDG methods can achieve the well balanced property with a small modification of either the initial value or the flu. This is by far the simplest approach to obtain a high order well balanced scheme. Very little additional computational cost over the traditional RKDG methods is involved to obtain a well balanced property. Similar ideas are then applied to obtain well balanced finite volume WENO schemes. We emphasize that the setup in this paper for well balanced schemes is completely different from the one used in our previous paper [33], rather it is a generalization of a well-balanced high order scheme recently developed by Noelle et al. [], see Remark 4.3 in Section 4. Comparing with the schemes in our previous work [33], the schemes presented here require less computational cost, and are easier to understand and to code, at least for the RKDG methods. For the cases we have tested, this simpler approach seems to yield comparably good numerical results. We will first describe the algorithms and prove the well balanced property for the shallow water equations, and then generalize the result to a class of other balance laws. The paper is organized as follows. In Section, we give a brief review of finite volume WENO schemes and RKDG schemes. In Section 3, we develop genuine high order well-balanced RKDG schemes for the shallow water equations. The well-balanced generalization of finite volume WENO schemes is presented in Section 4. Section 5 contains etensive numerical simulation results to demonstrate the behavior of our well balanced schemes for one and two dimensional shallow water equations, verifying high order accuracy, the eact C-property, and good resolution for smooth and discontinuous solutions. Application of these ideas to other balance laws, together with some selective numerical tests, are presented in Section 6. In Section 7, we give the concluding remarks.

3 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 A review of high order finite volume WENO and discontinuous Galerkin schemes In this section, we briefly review the basic ideas of finite volume WENO schemes and discontinuous Galerkin methods. For further details about these subjects, we refer to [3,5,5,6,, 3,5 7]. We consider a scalar hyperbolic conservation law equation in one dimension u t + f(u =, (. and discretize the computational domain with cells I i = [ i, i+ ], i =,, N. We denote ( the size of the i-th cell by i and the center of the cell by i = i + i+. In a finite volume scheme, our computational variables are ū i (t, which approimate the cell averages ū( i, t = i I i u(, td. The conservative numerical scheme is given by: with ˆf i+ d dtūi(t = ( ˆfi+ i ˆf i = F(u, u + being the numerical flu. Here u i+ i+ i+ pointwise approimations to u( i+ (. and u + are the high order i+, t, obtained from the cell averages by a high order WENO reconstruction procedure. The numerical flu F(a, b needs to be monotone. The simplest and most inepensive monotone flu is the La-Friedrichs flu: F(a, b = (f(a + f(b α(b a, (.3 where α = ma u f (u. The approimations u and u + are computed through the neighboring cell average values i+ i+ ū j. Basically, for a (k--th order WENO scheme, we first compute k reconstructed boundary values u (k,± i+ corresponding to different candidate stencils. Then by providing each value a weight which indicates the smoothness of the corresponding stencil, we define the (k--th order WENO reconstruction u ± as a conve combination of all these k reconstructed values. i+ The complete algorithm can be found in [6,3,5]. For hyperbolic systems, we usually use the local characteristic decomposition, which is more robust than a component by component version. Together with a TVD high order Runge-Kutta time discretization [6], this completes the description of a high order finite volume WENO scheme. Finite volume WENO schemes in the two dimensional case have the same framework but are more complicated to implement. In this paper, we consider only rectangular cells for simplicity. For the two dimensional homogeneous conservation law u t + f (u,, y + f (u,, y y =, (.4

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 4 together with a spatial discretization of the computational domain by cells I ij = [ i [y j, y j+ ], i =,, N, j =,, N y, we use the notations as usual: i = i+ i, y j = y j+ y j, i+ ] to denote the grid sizes. By taking the integral of the equation, we can obtain the conservative scheme d dtūij(t = ( ( ˆf i+ i,j ( ˆf i,j ( ( y ˆf i,j+ ( ˆf j i,j, (.5 where the numerical flu ( ˆf i+,j is defined by ( ˆf i+,j = w α F (u i+, u +i+,yj+βα yj,yj+βα yj α (.6 where β α and w α are the Gaussian quadrature nodes and weights, to approimate the integration in y: yj+ f (u( y i+, y, tdy. j y j The monotone flu F(a, b is the same as above (for eample, Formula (.3. u ± i+,y j +β α y j are the (k -th order accurate reconstructed values obtained by a WENO reconstruction procedure. Similarly, we can compute the flu ( ˆf i,j+. In a high order RKDG scheme, we seek an approimation u h to u which belongs to the finite dimensional space V h = Vh k {v : v I j P k (I j, j =,..., N}, (.7 where P k (I denotes the space of polynomials in I of degree at most k. The numerical scheme is given by t u h (, tv h (d f(u h (, t v h (d + ˆf j+ I j I j v h ( ˆf j+ j v h ( + =, (.8 j As before, ˆfj+ = F(u h (, t, u j+ h ( +, t, and F(a, b is chosen as a monotone flu. We j+ could, for eample, again use the simple La-Friedrichs flu (.3. Another important ingredient for the RKDG method is that a slope limiter procedure might be needed after each inner stage in the Runge-Kutta time stepping, when the solution contains discontinuities. In this paper we use the total variation bounded (TVB limiter in [6, 8, 9, 4]; we refer to these references for the details of this limiter. Together with a TVD high order Runge-Kutta time discretization [6], we have then finished the description of the RKDG method. Multi-dimensional problems can be handled in the same fashion. The main difference is that the flues are now integrals along the cell boundary, which can be calculated by Gaussquadrature rules.

5 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 3 Construction of well balanced RKDG schemes for shallow water equations The traditional high order RKDG method has been presented in Section. In this section, we claim that, for one-dimensional and two-dimensional shallow water equations, this method is indeed a well balanced scheme for still water, based on a suitable choice of the initial value or the flu. This choice will not affect the property of the scheme, such as high order accuracy in smooth region and non-oscillatory shock resolution, and it increases the computational cost only slightly. For the shallow water equations (.3, we are interested in preserving the still water stationary solution (.5. For this still water, the first equation (hu = is satisfied eactly for any consistent scheme since hu =. Let us concentrate on the second equation, which can be denoted by (hu t + f(u = g(h, b where U = (h, hu T with the superscript T denoting the transpose. As described in Section 3, in a RKDG method U is approimated by the piecewise polynomial U h, which belongs to V h defined in (.7. We project the bottom function b into the same space V h, to obtain an approimation b h. This implies that h h + b h = constant if h + b = constant. Following the idea first introduced by Audusse et al. [], and later used in the recent paper by Noelle et al. [], our numerical scheme has the form: t (hu h v h d f(u h v h d + ˆf l j+ h ( I j I j v j+ ˆf r j v h ( + = g(h j h, b h v h d. (3. I j Comparing with the standard RKDG scheme (.8, we can see that the single valued flues ˆf j+ and ˆf j have been replaced by the left flu ˆf l and the right flu ˆf r, respectively. We can j+ j rewrite the above scheme as: t (hu h v h d I j f(u h v h d + ˆf j+ I j v h ( ˆf j+ j v h ( + = (3. j g(h h, b h v h d + ( ˆf j+ ˆf l j+ h ( I j v ( ˆf j+ j ˆf r j v h ( +, j where ˆf j+ = F(U h (, t, U j+ h ( +, t. The left side of (3. is the traditional RKDG scheme, j+ and the right side is our approimation to the source term. The design of the left flu ˆf l j+ and the right flu ˆf r will be eplained later, however we point out here that ˆf j j+ ˆf l and j+ ˆf j ˆf r are high order correction terms at the level of O( k+. Therefore, the scheme j (3. is a (k + -th order conservative scheme and will converge to the weak solution. In order to obtain the well balanced property, we need the residue R = f(u h v h d + ˆf l j+ h ( I j v j+ ˆf r j v h ( + g(h j h, b h v h d (3.3 I j

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 6 to be zero if the still water stationary state (.5 is reached. The following three conditions, which only need to be valid for the still water stationary state, are sufficient to guarantee this zero residue property. All the integrals in formula (3.3 should be calculated eactly for the still water. This can be easily achieved by using suitable Gauss-quadrature rules since h h, b h and v h are polynomials in each cell I j, hence f, g are both polynomials. Note that (hu h = for the still water. We assume that ˆf l j+ = f(u h (, t, ˆfr j+ j = f(u h ( +, t (3.4 j for the still water. Note that this condition is not obvious. Later we will comment on how to make it possible for the RKDG method. We assume that U h, which is the numerical approimation of U, is a steady state solution of the equation (hu t + f(u = g(h, b h, where b h has substituted b. This is true since h h + b h = constant and (hu h =, which imply ( gh h = gh h(b h, or f(u h = g(h h, b h. (3.5 Proposition 3.: RKDG schemes which satisfy the above three conditions for the shallow water equations are eact for the still water stationary state (.5. Proof: If these three conditions are satisfied, the residue R in (3.3 for still water reduces to R = f(u h v h d + ˆf l j+ h ( I j v j+ ˆf r j v h ( + g(h j h, b h v h d I j = f(u h v h d + f(u h (, tv j+ h ( f(u j+ h ( +, tv j h ( + g(h j h, b h v h d I j I j = f(u h v h d g(h h, b h v h d I j I j = ( f(u h g(h h, b h v h d = I j where the second equality is due to (3.4, the third equality follows from a simple integration by parts, and the last equality follows from (3.5. Remark 3.: For discontinuous solutions, the limiter on the function U h is usually performed after each Runge-Kutta stage. This limiter procedure might destroy the preservation of the still water steady state h + b = constant. Therefore, following the idea presented in [,34], we apply the limiter procedure on the function (h h +b h, (hu h T instead. The modified RKDG solution is then defined by h mod h (h+b mod mod mod h b h. Since h h = (h + bh bh = (h + b h b h = h h, we

7 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 observe that this procedure will not destroy the conservativity of h h, which should be maintained during the limiter process. For shallow water equations, the first and third conditions are obviously true, hence the only one remaining for us to check is the second condition. In order to fulfill it, we have two choices. Choice A: Define the initial value and the approimation b h by continuous piecewise polynomials. We would then have b h (, t = b j+ h ( +, t. If the steady state h j+ h + b h = constant is reached, we will have a continuous h h, i.e. h h (, t = h j+ h ( +, t, which makes j+ ˆf j+ = F(U h (, t, U j+ h ( +, t = f(u j+ h (, t = f(u j+ h ( +, t j+ We can therefore simply define the left and right flues as ˆf l j+ = ˆf j+, ˆfr j = ˆf j, which will fulfill the second condition. This make our scheme (3. to be identical to the traditional RKDG scheme without any modification. In order to define the continuous piecewise polynomial approimations to the initial value and b, we can use the idea of essentially non-oscillatory (ENO procedure [3]. Based on the values u j+, we can choose suitable stencils for each individual cell I j by an ENO procedure, and then obtain a polynomial on I j through an interpolation. This polynomial equals to u j at the two cell boundaries. Hence the global piecewise polynomial is continuous. and u j+ Choice B: Here we follow the idea of Audusse et al. []. After computing boundary values U ± h,j+, we set h,+ h,j+ h, h,j+ ( = ma, h + + b + ma(b +, b h,j+ h,j+ h,j+ h,j+ ( = ma, h + b ma(b +, b h,j+ h,j+ h,j+ h,j+ (3.6 (3.7 and redefine the left and right values of U as: U,± h,j+ = ( h,± h,j+ (hu ± h,j+ (3.8 Then the left and right flues ˆf l j+ and ˆf r j are given by: ˆf l j+ = F(U,, U,+ + h,j+ h,j+ ( g (h h,j+ g (h, h,j+ (3.9

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 8 ˆf r j = F(U,, U,+ + h,j h,j ( g (h+ h,j g (h,+ h,j (3. Here F is a monotone flu as mentioned in Section. It is easy to check that ˆf j+ ˆf l and j+ ˆf j ˆf r are indeed at the level of O( k+ for general solutions, hence the original (k+- j th order of accuracy is maintained. Under the still water stationary state, h h + b h = constant, hence it is easy to see U, = U,+. The left flu then returns to: h,j+ h,j+ ( ( ( ˆf l j+ Similarly, = g (h, h,j+ + g (h h,j+ ˆf r j+ g (h, h,j+ = g (h h,j+ = f(u h,j+ (3. = f(u + h,j+. (3. Remark 3.3: Clearly Choice A provides a simpler scheme with smaller computational cost, hence it would be preferred if it provides comparable numerical results to that of Choice B. Unfortunately, although it works well for small perturbation solutions from still water for a smooth bottom, the numerical resolution for a discontinuous bottom is not ideal. On the other hand, Choice B provides good numerical results for all the test cases we have eperimented. In Section 5, we will report only the results obtained by Choice B to save space. We now consider the etension of the well-balanced high order RKDG schemes to -D shallow water equations h t + (hu + (hv y = (hu t + (hu + gh + (huv y = ghb (hv t + (huv + (hv + (3.3 gh = ghb y where again h is the water height, (u, v is the velocity of the fluid, b represents the bottom topography and g is the gravitational constant. The still water stationary solution we are interested to preserve is y h + b = constant, hu =, hv =. (3.4 It is straightforward to etend our well balanced RKDG schemes to this two-dimensional problem. Also, the scheme can be applied on any triangulation. 4 Construction of well balanced finite volume WENO schemes for shallow water equations In this section, we generalize the idea used in Section 3 to design a well balanced finite volume WENO schemes for the shallow water equations. The basic idea is the same as that for the

9 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 RKDG methods. The only etra step is due to the fact that we only have the reconstructed pointwise values U ± and would need to first define an approimation function U j+ h. We can then follow the procedure as before. As before, we denote U ± as the reconstructed left and right values at the interface j+ j+. The still water is given by h j + b j = constant where as before the overbar denotes the cell average. We would like to have the reconstructed values to satisfy h j+ + b j+ = constant as well. This can be achieved by the approach that we used in [33]. Basically, the WENO reconstruction can be eventually written out as U + j+ r = w k Ū j+k, U j+ k= r+ = r k= r w k Ū j+k. (4. where r = 3 for the fifth order WENO approimation and the coefficients w k and w k depend nonlinearly on the smoothness indicators involving the cell average ū and satisfy r k= r+ w k = r k= r w k =. We then use the same coefficients w k and w k computed from above on B = (b, T to obtain r r B + = w j+ k Bj+k, B = w j+ k Bj+k. (4. Hence, k= r+ k= r U + j+ + B + j+ r = w k (Ūj+k + B j+k, U j+ k= r+ + B j+ = r k= r w k (Ūj+k + B j+k, from which we know that the reconstructed values satisfy h ± +b ± = constant for still water. j+ j+ For the well balanced property, we only need to consider the second equation of (.3. Our well balanced finite volume WENO scheme is given by d ( j dt hu j(t = ˆfl ˆf r + g(h, bd (4.3 j+ j I j where ˆf l and ˆf r are the left and right flues as defined in Section 3. The residue R is j+ j denoted by the right side of the equation (4.3. Here we also give three conditions which need to be valid for the still water stationary state (.5: We use interpolation to obtain a high order polynomial h h on the cell I j, based on the boundary values h +, h and several other neighboring boundary values. For eample, j j+ we can use h, h, h + and h + to interpolate a third degree polynomial. Similarly, j+ 3 j+ j j 3 we can use the same interpolation on b to obtain a polynomial b h, and then use them to compute I j g(h h, b h d eactly by using a suitable Gauss quadrature. In order to

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 obtain (k-th order accuracy for the approimation of the source term, h h and b h need to approimate h and b with (k + -th order accuracy. We observe from the definition of h h and b h that the interpolated polynomials satisfy the following properties: h h ( j+ = h, h j+ h ( j = h +, b j h ( j+ = b, b j+ h ( j = b +, j h h + b h = constant if h ± j+ + b ± j+ = constant. We assume that the left and right flues ˆf l j+ and ˆf r j satisfy (3.4. We assume that interpolated polynomial U h (, t above, is a steady state solution of the equation (hu t +f(u = g(h, b h, where b h has substituted b. As before, this is true since h h + b h = constant and (hu h =. Proposition 4.: Finite volume WENO schemes which satisfy the above three conditions for shallow water equations are well balanced for still water stationary state (.5. Proof: If these three conditions are satisfied, the residue R for still water reduces to R = ˆf l + ˆf r + g(h j+ j h, b h d I j = f(u h (, t + f(u j+ h ( +, t + g(h j h, b h d I j = f(u h d + g(h h, b h d I j I j = ( f(u h g(h h, b h d = I j where the second equality is due to (3.4, and the last equality follows from (3.5. Note that the first and third conditions are obviously true for the still water of the shallow water equations. As to the second one, we follow Choice B in Section 3, i.e. (3.8, (3.9 and (3.. Remark 4.: During the WENO reconstruction, we reconstruct k polynomials on the cell I j, based on different stencils, and then define the boundary values u and u + as conve j+ j combinations of those polynomials. We emphasize that such conve combination, when viewed as a function, is not a polynomial on I j, due to the nonlinear nature of the weights. Therefore, the interpolated polynomial u h is not that conve combination and must be recomputed. However, if we use ENO instead of WENO schemes, we can directly take u h as the ENO reconstructed polynomial on I j, thereby saving the computational cost to obtain it again by interpolation.

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 Remark 4.3: Audusse et al. [] introduced a second order well balanced finite volume scheme, and recently, Noelle et al. [] generalized it to higher order accuracy. The idea proposed here is a generalization of these schemes, by allowing more freedom in defining the polynomials h h and b h to save computational cost. If we interpolate h h and b h based on the two boundary values plus the center value of the cell I j (which must be reconstructed, this will give us the fourth order discretization of the source term as introduced in []. Now let us consider the D shallow water equations (3.3 with the still water stationary solution (3.4 to be balanced. It is straightforward to etend our well balanced WENO schemes to this two-dimensional problem, at least for rectangular meshes. Let us look at the second equation in (3.3 for instance. As we mentioned in Section, the numerical scheme is given by: d dtūij(t = ( ( ˆf l i+ i,j ( ˆf r i,j (( y ˆf l ( ˆf i,j+ r + g i,j i,j, (4.4 j with ( ˆf l,r i+,j = α w α ( ˆf (, y j + β α y j l,r i+ (4.5 and similarly for ( ˆf l,r, and i,j+ g i,j = i α i y j w α g (hb (, y j + β α y j d (I i I i I j ghb ddy (4.6 where the first quadrature summation in the y direction must be accurate to the order of the scheme and the integration in the direction must be computed eactly (by Gauss-quadrature with enough eactness. If the still water stationary solution (3.4 is given, the right side of the numerical scheme (4.4 becomes: i ( ( ˆf l i+,j ( ˆf r i,j = i α i α i α w α g (hb (, y j + β α y j d (I i ( w α ( ˆf (, y j + β α y j l ( ˆf i+ (, y j + β α y j r i w α g (hb (, y j + β α y j d, (I i We can balance ( ˆf (, y j +β α y j l ( ˆf i+ (, y j +β α y j r with i I i g (hb (, y j +β α y j d for each fied α, by the same technique used in the D case. This means that at each Gauss point in the y direction, we interpolate polynomials as functions of, and use them to compute the source term. Well balanced property is thus obtained. Similarly, we can handle the third equation in (3.3 in the same fashion.

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 Remark 4.4: Both the well-balanced RKDG and finite volume WENO schemes are developed here. The RKDG schemes involve less modification for the well balanced property to hold, and are more fleible for general geometry, adaptivity and parallel implementation. On the other hand, the RKDG schemes rely on limiters to control spurious oscillations for discontinuous solutions, which are less robust than the WENO reconstruction procedure in the capability of maintaining accuracy in smooth regions and controlling oscillations for strong discontinuities simultaneously. We refer to [35] for a comparison of these two types of schemes. 5 Numerical results for the shallow water equations In this section we provide numerical results to demonstrate the good properties of the well balanced finite volume WENO and finite element RKDG schemes when applied to the shallow water equations. Fifth order finite volume WENO scheme and third order finite element RKDG scheme are implemented as eamples. In all numerical tests, time discretization is by the third order TVD Runge-Kutta method in [6]. For finite volume WENO schemes, the CFL number is taken as.6, ecept for the accuracy tests where smaller time steps are taken to ensure that spatial errors dominate. For the third order RKDG scheme, the CFL number is.8. For the TVB limiter implemented in the RKDG scheme, the TVB constant M (see [8, 4] for its definition is taken as in most numerical eamples, unless otherwise stated. The gravitation constant g is taken as 9.8m/s during the computation. 5. Test for the eact C-property The purpose of the first test problem is to verify that the schemes indeed maintain the eact C-property over a non-flat bottom. We choose two different functions for the bottom topography given by ( : b( = 5e 5 ( 5, (5. which is smooth, and b( = { 4 if 4 8 otherwise, which is discontinuous. The initial data is the stationary solution: h + b =, hu =. This steady state should be eactly preserved. We compute the solution until t =.5 using N = uniform cells. In order to demonstrate that the eact C-property is indeed maintained up to round-off error, we use single precision, double precision and quadruple precision to perform the computation, and show the L and L errors for the water height h (note: h in this case is not a constant function! and the discharge hu in Tables and for the two bottom functions (5. and (5. and different precisions. For the RKDG method, the errors are computed based on the numerical solutions at cell centers. We can clearly see that the L and L errors are at the level of round-off errors for different precisions, verifying the eact C-property. (5.

3 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 Table : L and L errors for different precisions for the stationary solution with a smooth bottom (5.. L error L error precision h hu h hu single 3.E-5.E-4 4.39E-5 5.9E-4 FV double 5.4E-4.99E-3.E-3.6E- quadruple 6.48E-33 3.45E-3.7E-3.54E-3 single 8.4E-6 3.5E-5 3.7E-5.6E-4 RKDG double 3.E-5 3.59E-5.6E-4 7.E-4 quadruple 8.6E-3.9E-33 8.5E-9.7E-3 Table : L and L errors for different precisions for the stationary solution with a nonsmooth bottom (5.. L error L error precision h hu h hu single.8e-5.4e-4 3.4E-5.4E-4 FV double 4.4E-4.57E-3.5E-3.3E- quadruple 4.7E-3 3.7E-3.7E-3.46E-3 single 5.7E-7.E-7 9.54E-7 3.4E-7 RKDG double.4e-5 3.6E-6 3.55E-5 7.77E-5 quadruple 8.6E-3.65E-34 8.6E-9 4.E-33 We have also computed stationary solutions using initial conditions which are not the still water stationary solutions and letting time evolve into a still water stationary solution, obtaining similar results with the eact C-property, i.e. the errors are at the level of round-off errors for different precisions. 5. Testing the orders of accuracy In this eample we will test the high order accuracy of our schemes for a smooth solution. We have the following bottom function and initial conditions b( = sin (π, h(, = 5 + e cos(π, (hu(, = sin(cos(π, [, ] with periodic boundary conditions, see [3]. Since the eact solution is not known eplicitly for this case, we use the fifth order finite volume WENO scheme with N =, 8 cells to compute a reference solution, and treat this reference solution as the eact solution in computing the numerical errors. We compute up to t =. when the solution is still smooth (shocks develop later in time for this problem. Table 3 contains the L errors for the cell averages and numerical orders of accuracy for the finite volume and RKDG schemes, respectively. We can clearly see

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 4 Table 3: L errors and numerical orders of accuracy for the eample in Section 5.. FV schemes RKDG schemes No. of CFL h hu h hu cells L error order L error order L error order L error order 5.6.8E-.6E-.35E-3.E- 5.6.5E-3.5.5E-.37.4E-4 4.36.E-3 4.39.4 3.6E-4.79.75E-3 3.3.4E-5 3..9E-4 3..3.33E-5 3.8.E-4 3.79.E-6 3.59 8.97E-6 3.6 4. 9.54E-7 4.6 8.E-6 4.6.E-7 3.9 9.79E-7 3.9 8..99E-8 4.99.58E-7 4.99.3E-8 3.9.4E-7 3.8.4. initial surface level bottom b. initial surface level bottom b surface level h+b.8.6.4 surface level h+b.8.6.4...5.5.5.5 Figure : The initial surface level h+b and the bottom b for a small perturbation of a steady-state water. Left: a big pulse ɛ=.; right: a small pulse ɛ=.. that fifth order accuracy is achieved for the WENO scheme, and third order accuracy is achieved for the RKDG scheme. For the RKDG scheme, the TVB constant M is taken as 3. Notice that the CFL number we have used for the finite volume scheme decreases with the mesh size and is recorded in Table 3. For the RKDG method, the CFL number is fied at.8. 5.3 A small perturbation of a steady-state water The following quasi-stationary test case was proposed by LeVeque [9]. It was chosen to demonstrate the capability of the proposed scheme for computations on a rapidly varying flow over a smooth bed, and the perturbation of a stationary state.

5 Xing and Shu / Commun. Comput. Phys., (6, pp. -34..5 n=3 n=.4 n=3 n= surface level h+b..5.95.9 hu. -..85 -.4.8.5.5.5.5 Figure : FV scheme: Small perturbation of a steady-state water with a big pulse. t=.s. Left: surface level h + b; right: the discharge hu. The bottom topography consists of one hump: b( = {.5(cos(π(.5 + if.4.6 otherwise (5.3 The initial conditions are given with (hu(, = and h(, = { b( + ɛ if.. b( otherwise (5.4 where ɛ is a non-zero perturbation constant. Two cases have been run: ɛ =. (big pulse and ɛ =. (small pulse. Theoretically, for small ɛ, this disturbance should split into two waves, propagating left and right at the characteristic speeds ± gh. Many numerical methods have difficulty with the calculations involving such small perturbations of the water surface [9]. Both sets of initial conditions are shown in Figure. The solution at time t=.s for the big pulse ɛ =., obtained on a cell uniform grid with simple transmissive boundary conditions, and compared with a 3 cell solution, is shown in Figure for the FV scheme and in Figure 4 for the RKDG scheme. The results for the small pulse ɛ =. are shown in Figures 3 and 5. At this time, the downstream-traveling water pulse has already passed the bump. We can clearly see that there are no spurious numerical oscillations. 5.4 The dam breaking problem over a rectangular bump In this eample we simulate the dam breaking problem over a rectangular bump, which involves a rapidly varying flow over a discontinuous bottom topography. This eample was used in [9].

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 6. n=3 n=. n=3 n=.6. surface level h+b..9998 hu.9994 -..999.5.5 -..5.5 Figure 3: FV scheme: Small perturbation of a steady-state water with a small pulse. t=.s. Left: surface level h + b; right: the discharge hu...5 n=3 n=.4 n=3 n= surface level h+b..5.95.9 hu. -..85 -.4.8.5.5.5.5 Figure 4: RKDG scheme: Small perturbation of a steady-state water with a big pulse. t=.s. Left: surface level h + b; right: the discharge hu. The bottom topography takes the form: { 8 if 75 5/8 b( = otherwise (5.5 for [, 5]. The initial conditions are (hu(, = and h(, = { b( if 75 5 b( otherwise (5.6

7 Xing and Shu / Commun. Comput. Phys., (6, pp. -34. n=3 n=. n=3 n=.6. surface level h+b..9998 hu.9994 -..999.5.5 -..5.5 Figure 5: RKDG scheme: Small perturbation of a steady-state water with a small pulse. t=.s. Left: surface level h + b; right: the discharge hu. The numerical results obtained by the FV scheme with 4 uniform cells (and a comparison with the results using 4 uniform cells are shown in Figures 6 and 7, with two different ending time t=5s and t=6s. Figures 8 and 9 demonstrate the numerical results by the RKDG scheme, with the same number of uniform cells. In this eample, the water height h( is discontinuous at the points = 56.5 and = 937.5, while the surface level h(+b( is smooth there. Both schemes work well for this eample, giving well resolved, non-oscillatory solutions using 4 cells which agree with the converged results using 4 cells. 5.5 Steady flow over a hump The purpose of this test case is to study the convergence in time towards steady flow over a bump. These are classical test problems for transcritical and subcritical flows, and they are widely used to test numerical schemes for shallow water equations. For eample, they have been considered by the working group on dam break modelling [], and have been used as a test case in, e.g. [8]. The bottom function is given by: b( = {..5( if 8 otherwise (5.7 for a channel of length 5m. The initial conditions are taken as h(, =.5 b( and u(, =. Depending on different boundary conditions, the flow can be subcritical or transcritical with or without a steady shock. The computational parameters common for all three cases are: uniform

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 8 8 h+b initial h+b bottom b n=4 n=4 surface level h+b, bottom b 6 4 8 6 4 surface level h+b 9 8 7 6 5 5 5 75 5 5 4 5 5 Figure 6: FV scheme: The surface level h + b for the dam breaking problem at time t=5s. Left: the numerical solution using 4 grid cells, plotted with the initial condition and the bottom topography; Right: the numerical solution using 4 and 4 grid cells. surface level h+b, bottom b 8 6 4 8 6 4 h+b initial h+b bottom b surface level h+b 9 8 7 6 n=4 n=4 5 5 75 5 5 5 5 5 Figure 7: FV scheme: The surface level h + b for the dam breaking problem at time t=6s. Left: the numerical solution using 4 grid cells, plotted with the initial condition and the bottom topography; Right: the numerical solution using 4 and 4 grid cells. mesh size =.5 m ( cells, ending time t= s. Analytical solutions for the various cases are given in Goutal and Maurel []. a: Transcritical flow without a shock. upstream: The discharge hu=.53 m /s is imposed.

9 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 8 h+b initial h+b bottom b n=4 n=4 surface h+b, bottom b 6 4 8 6 surface level h+b 9 8 7 6 4 5 5 75 5 5 5 4 5 5 Figure 8: RKDG scheme: The surface level h + b for the dam breaking problem at time t=5s. Left: the numerical solution using 4 grid cells, plotted with the initial condition and the bottom topography; Right: the numerical solution using 4 and 4 grid cells. surface level h+b, bottom b 8 6 4 8 6 4 h+b initial h+b bottom b surface level h+b 9 8 7 6 n=4 n=4 5 5 75 5 5 5 5 5 Figure 9: RKDG scheme: The surface level h + b for the dam breaking problem at time t=6s. Left: the numerical solution using 4 grid cells, plotted with the initial condition and the bottom topography; Right: the numerical solution using 4 and 4 grid cells. downstream: The water height h=.66 m is imposed when the flow is subcritical. The surface level h + b and the discharge hu, as the numerical flu for the water height h in equation (.3, are plotted in Figures and, which show very good agreement with the analytical solution. The correct capturing of the discharge hu is usually more difficult than the surface level h + b, as noticed by many authors.

Xing and Shu / Commun. Comput. Phys., (6, pp. -34.. analytic h+b numerical h+b bottom b.535 analytic discharge numerical discharge.9.535 surface level h+b.8.7.6.5.4 discharge.53.3.. 5 5 5.575.55 5 5 5 Figure : FV scheme: Steady transcritical flow over a bump without a shock. Left: the surface level h + b; right: the discharge hu as the numerical flu for the water height h... analytic h+b numerical h+b bottom b.535 analytic discharge numerical discharge.9.535 surface level h+b.8.7.6.5.4 discharge.53.3.. 5 5 5.575.55 5 5 5 Figure : RKDG scheme: Steady transcritical flow over a bump without a shock. Left: the surface level h + b; right: the discharge hu as the numerical flu for the water height h. b: Transcritical flow with a shock. upstream: The discharge hu=.8 m /s is imposed. downstream: The water height h=.33 m is imposed. In this case, the Froude number Fr = u/ gh increases to a value larger than one above the bump, and then decreases to less than one. A stationary shock can appear on the surface. The surface level h+b and the discharge hu, as the numerical flu for the water height h in equation

Xing and Shu / Commun. Comput. Phys., (6, pp. -34.45.4.35 analytic h+b numeical h+b bottom b..9 analytic discharge numerical discharge surface level h+b.3.5..5 discarge.8..7.5 5 5 5.6 5 5 5 Figure : FV scheme: Steady transcritical flow over a bump with a shock. Left: the surface level h + b; right: the discharge hu as the numerical flu for the water height h..45.4.35 analytic h+b numeical h+b bottom b..9 analytic discharge numerical discharge surface level h+b.3.5..5 discarge.8..7.5 5 5 5.6 5 5 5 Figure 3: RKDG scheme: Steady transcritical flow over a bump with a shock. Left: the surface level h + b; right: the discharge hu as the numerical flu for the water height h. (.3, are plotted in Figure and 3. In Figure for the FV scheme, some minor oscillations can be observed near the jump. Here we also plot the numerical result with 4 uniform cells in Figure 4, where we can observe that the oscillation is completely removed. The reason for this phenomenon is still not known. c: Subcritical flow. upstream: The discharge hu=4.4 m /s is imposed.

Xing and Shu / Commun. Comput. Phys., (6, pp. -34.45.4.35 analytic h+b numeical h+b bottom b..9 analytic discharge numerical discharge surface level h+b.3.5..5 discarge.8..7.5 5 5 5.6 5 5 5 Figure 4: FV scheme with 4 uniform cells: Steady transcritical flow over a bump with a shock. Left: the surface level h + b; right: the discharge hu as the numerical flu for the water height h. 3.5 analytic h+b numerical h+b bottom b 4.44 analytic discharge numerical discharge 4.43 surface level h+b.5 discharge 4.4.5 4.4 5 5 5 4.4 5 5 5 Figure 5: FV scheme: Steady subcritical flow over a bump. Left: the surface level h + b; right: the discharge hu as the numerical flu for the water height h. downstream: The water height h= m is imposed. This is a subcritical flow. The surface level h + b and the discharge hu, as the numerical flu for the water height h in equation (.3, are plotted in Figure 5 and 6, which are in good agreement with the analytical solution.

3 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 3.5 analytic h+b numerical h+b bottom b 4.44 analytic discharge numerical discharge 4.43 surface level h+b.5 discharge 4.4.5 4.4 5 5 5 4.4 5 5 5 Figure 6: RKDG scheme: Steady subcritical flow over a bump. Left: the surface level h + b; right: the discharge hu as the numerical flu for the water height h. 5.6 Test for the eact C-property in two dimensions This eample is used to check that our schemes indeed maintain the eact C-property over a non-flat bottom for D shallow water equations. The two-dimensional hump b(, y =.8e 5((.5 +(y.5,, y [, ] (5.8 is chosen to be the bottom. h(, y, = b(, y is the initial depth of the water. Initial velocity is set to be zero. This surface should remain flat. The computation is performed to t =. using single, double and quadruple precisions with a uniform mesh. Table 4 contains the L errors for the water height h (which is not a constant function and the discharges hu and hv for both schemes. We can clearly see that the L errors are at the level of round-off errors for different precisions, verifying the eact C-property. 5.7 Testing the orders of accuracy In this eample we check the numerical orders of accuracy when the schemes are applied to the following two dimensional problem. The bottom topography and the initial data are given by: b(, y = sin(π + cos(πy, h(, y, = + e sin(π cos(πy, (hu(, y, = sin(cos(π sin(πy, (hv(, y, = cos(π cos(sin(πy defined over a unit square, with periodic boundary conditions. The terminal time is taken as t=.5 to avoid the appearance of shocks in the solution. Since the eact solution is also not known eplicitly for this case, we use the same fifth order WENO scheme with an etremely refined mesh consisting of 6 6 cells to compute a reference solution, and treat this

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 4 Table 4: L errors for different precisions for the stationary solution in Section 5.6. L error precision h hu hv single 8.77E-7 7.49E-7 6.93E-7 FV double.49e-5.3e-5.3e-5 quadruple.4e-33 9.87E-34.E-33 single 9.43E-8 4.84E-7 4.94E-7 RKDG double 6.98E-7.3E-5.3E-5 quadruple 6.4E-34.5E-33.53E-33 Table 5: FV scheme: L errors and numerical orders of accuracy for the eample in Section 5.7. Number h hu hv of cells CFL L error order L error order L error order 5 5.6 7.9E-3.E- 6.5E- 5 5.6.3E-3.8.E-3 3.4 9.E-3.8.6 8.89E-5 3.66.5E-4 4. 7.9E-4 3.68.4 4.7E-6 4.45 5.9E-6 4.59 3.3E-5 4.45 4 4.3.4E-7 4.84.84E-7 4.8.5E-6 4.84 8 8. 4.38E-9 5. 5.99E-9 4.94 3.63E-8 4.99 reference solution as the eact solution in computing the numerical errors. The TVB constant M in the limiter for the RKDG scheme is taken as 4 here. Tables 5 and 6 contain the L errors and orders of accuracy for the cell averages. We can clearly see that, in this two dimensional test case, fifth order accuracy is achieved for the finite volume WENO scheme and close to third order accuracy is achieved for the RKDG scheme. 5.8 A small perturbation of a two dimensional steady-state water This is a classical eample to show the capability of the proposed scheme for the perturbation of the stationary state, given by LeVeque [9]. It is analogous to the test done previously in Section 5.3 in one dimension. We solve the system in the rectangular domain [, ] [, ]. The bottom topography is an isolated elliptical shaped hump: b(, y =.8 e 5(.9 5(y.5. (5.9

5 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 Table 6: RKDG scheme: L errors and numerical orders of accuracy for the eample in Section 5.7. Number h hu hv of cells L error order L error order L error order 5 5.45E-3.36E-.5E- 5 5 5.73E-4..9E-3. 4.75E-3..6E-4.43 5.3E-4.46 8.5E-4.48.7E-5.63 8.8E-5.6.39E-4.6 4 4.53E-6.75.3E-5.74.E-5.7 8 8 3.5E-7.84.88E-6.8 3.E-6.8 The surface is initially given by: { b(, y +. if.5.5 h(, y, = b(, y otherwise hu(, y, = hv(, y, = (5. So the surface is almost flat ecept for.5.5, where h is perturbed upward by.. Figures 7 and 8 display the right-going disturbance as it propagates past the hump, on two different uniform meshes with cells and 6 3 cells for comparison. The surface level h + b is presented at different times. The results indicate that both schemes can resolve the comple small features of the flow very well. 6 Other applications In this section, we generalize high order well balanced schemes, designed in Sections 3 and 4, to other balance laws introduced in [3], including the elastic wave equation, the hyperbolic model for a chemosensitive movement, the nozzle flow, a model of fluid mechanics and a two phase flow model. Due to page limitation, only the elastic wave equation and chemosensitive movement model are investigated here, however our technique can also be applied to the other three cases. Some selective numerical tests are presented to show the good properties of our well balance schemes. 6. Elastic wave equation We consider the propagation of compressional waves [, 3] in an one-dimensional elastic rod with a given media density ρ(. The equations of motion in a Lagrangian frame are given by the balance laws: { (ρε t + ( ρu = u dρ d (6. (ρu t + ( σ =,

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 6 Surface level at time t=. Surface level at time t=..8.8.6.6.4.4...5.5.5.5 Surface level at time t=.4 Surface level at time t=.4.8.8.6.6.4.4...5.5.5.5 Surface level at time t=.36 Surface level at time t=.36.8.8.6.6.4.4...5.5.5.5 Surface level at time t=.48 Surface level at time t=.48.8.8.6.6.4.4...5.5.5.5 Surface level at time t=.6 Surface level at time t=.6.8.8.6.6.4.4...5.5.5.5 Figure 7: FV scheme: The contours of the surface level h+b for the problem in Section 5.8. 3 uniformly spaced contour lines. From top to bottom: at time t =. from.9994 to.656; at time t =.4 from.9938 to.659; at time t =.36 from.9884 to.6; at time t =.48 from.993 to.58; and at time t =.6 from.9954 to.69. Left: results with a uniform mesh. Right: results with a 6 3 uniform mesh.

7 Xing and Shu / Commun. Comput. Phys., (6, pp. -34 Surface level at time t=. Surface level at time t=..8.8.6.6.4.4...5.5.5.5 Surface level at time t=.4 Surface level at time t=.4.8.8.6.6.4.4...5.5.5.5 Surface level at time t=.36 Surface level at time t=.36.8.8.6.6.4.4...5.5.5.5 Surface level at time t=.48 Surface level at time t=.48.8.8.6.6.4.4...5.5.5.5 Surface level at time t=.6 Surface level at time t=.6.8.8.6.6.4.4...5.5.5.5 Figure 8: RKDG scheme: The contours of the surface level h + b for the problem in Section 5.8. 3 uniformly spaced contour lines. From top to bottom: at time t =. from.9994 to.656; at time t =.4 from.9938 to.659; at time t =.36 from.9884 to.6; at time t =.48 from.993 to.58; and at time t =.6 from.9954 to.69. Left: results with a uniform mesh. Right: results with a 6 3 uniform mesh.

Xing and Shu / Commun. Comput. Phys., (6, pp. -34 8 where ε is the strain, u is the velocity and σ is a given stress-strain relationship σ(ε,. The equation of linear acoustics can be obtained from above if the stress-strain relationship is linear, σ(ε, = K(ε where K( is the given bulk modulus of compressibility. The steady state we are interested to preserve for this problem is characterized by a σ(ε, = constant, a u = constant. Here we only show the well balanced property for the RKDG schemes. Similar idea can be used for the finite volume WENO schemes. First, we project the initial value to obtain U h = ((ρε h, (ρu h T, and also apply the same procedure for ρ to obtain ρ h. Then, we check the three conditions in Section 3 one by one. Only the first equation in (6. must be considered for the well balanced property. : If the steady state is reached, u h (ρu h ρ h is constant and ρ h is a polynomial, hence the integral of the source term can be calculated eactly. : We set (ρu,+ h,j+ = (ρu + h,j+ ρ + h,j+ ma(ρ +, ρ (6. h,j+ h,j+ (ρu, h,j+ = (ρu h,j+ ρ h,j+ ma(ρ +, ρ (6.3 h,j+ h,j+ and redefine the left and right values of U as: U,± h,j+ = ( (ρε ± h,j+ (ρu,± h,j+ (6.4 Then we define the left and right flues as: ˆf l j+ ˆf r j = F(U,, U,+ + h,j+ h,j+ = F(U,, U,+ + h,j h,j ( (ρu + (ρu, h,j+ h,j+ ( (ρu + + (ρu,+ h,j h,j (6.5. (6.6 The ma in (6.-(6.3 was chosen in [] to guarantee positive water height and was referred to as hydrostatic reconstruction there. Here it does not have a clear physical meaning and could be replaced by minimum or average as well. 3: (ρu h, satisfying u h = constant, is also a steady state solution of : ( ρu = u dρ h d.