Abstract
We propose an explicit finite volume scheme for the shallow water equations. The different unknowns of the system are approximated on staggered meshes. The numerical fluxes are computed with upwind and centered discretizations. We prove a number of properties of the scheme: positivity preserving, well-balanced, consistent with the global entropy inequality. We compare it with collocated schemes, using approximate Riemann solvers, on various problems.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
1 Introduction
The shallow water equations are a nonlinear hyperbolic system of conservation laws with a source term due to the topography. In the one-dimensional case, they read
where \(t\) denotes the time variable, \(x\) denotes the space variable, \(h\) is the water height, \(u\) is the velocity, \(g\) is the gravitational constant, and \(z\) is the topography of the bottom.
For such a problem, where shocks can form in the solution, finite volume methods have proved to be very effective. Generally, all the unknowns of the system are approximated on the same mesh and the numerical fluxes are computed with an approximate Riemann solver. We refer to [1, 6] for a thorough description and analysis of this approach. Staggered finite volume discretizations for solving nonlinear hyperbolic system of conservation laws have been investigated more recently (see, e.g., [3–5]). In contrast to the collocated discretization described above, the different unknowns of the system are approximated on staggered meshes. The numerical fluxes can then be computed simply componentwise, using upwind or centered approximations.
In the present paper, we propose an explicit staggered finite volume scheme for the shallow water equations. The scheme is identical to the one in [4] when the topography is flat. We prove a number of properties of the scheme: preservation of the water height positivity, preservation of some particular discrete steady states (well-balanced property), consistency with the entropy inequality. The preservation of the water height positivity is physically relevant and is crucial for the stability, the occurrence of negative quantities leading rapidly to the computation failure. We obtain this positivity for the staggered scheme under a CFL-like condition. The steady states of the shallow water equations are the states \((h,u)\) such that \(hu=cst\) and \(\frac{1}{2}u^2 +g(h+z)=cst\). In particular, the steady states at rest, that is the steady states such that \(u=0\), satisfy \(h+z=cst\). The preservation of these steady states at rest at the discrete level is important since many practical problems are perturbations of such states. With approximate Riemann solvers, this preservation is quite involved [1], whereas it is straightforward in the staggered framework (on uniform grids). The entropy \(\eta \) for the shallow water equations is the sum of the kinetic energy, the potential energy and a term stemming from the topography:
The entropy inequality reads
where the entropy flux \(G\) is defined by
The staggered scheme does not satisfy a discrete entropy inequality. However, we prove that it is consistent with the global entropy inequalitiy, which guarantees that the discontinuities computed by the scheme are admissible discontinuities.
Finally, we test the staggered scheme on various problems with analytical solutions: a dam break on a wet bed, oscillations in a parabola and a transcritical flow with shock [2]. The results are compared with those of two approximate Riemann solvers (Suliciu/HLLC and kinetic solvers [1]).
The paper is organized as follows. Section 2 describes the staggered scheme and its first properties. Section 3 presents the entropy consistency theorem and Sect. 4 the numerical tests. A brief comparison between the staggered and collocated schemes is made in conclusion.
2 Description of the Scheme
For sake of brevity, we only describe the staggered scheme in the one-dimensional case. The extension to the two-dimensional case is discussed in Remark 2 below. We consider the time interval \((0,T)\) and the space domain \(\varOmega :=(0,L)\) with solid wall boundary conditions (i.e., \(u=0\) at each end of the domain \(\varOmega \)). The time interval is divided into \(N_t\) time steps of length \(\varDelta t\) and, for all \(n\in \{0,\ldots ,N_t\}\), \(t^n:=n\varDelta t\). The domain \(\varOmega \) is divided into \(N_x\) cells of length \(\varDelta x\). The left end, the center and the right end of the \(i\)-th cell are denoted by \(x_{i-\frac{1}{2}}\), \(x_i\) and \(x_{i+\frac{1}{2}}\), respectively. We set \(\fancyscript{M}:=\{1,\ldots ,N_x\}\), \(\fancyscript{E}_{int}:=\{1,\ldots ,N_x-1\}\), \(\fancyscript{E}_b:=\{0,N_x\}\), and \(\fancyscript{E}:=\fancyscript{E}_{int}\cup \fancyscript{E}_b\). The water height \(h\) and the topography \(z\) are discretized at the center of the cells. The approximation of \(h\) at point \(x_i\) and at time \(t^n\) is denoted by \(h_i^n\). The approximation of \(z\) at point \(x_i\) is denoted by \(z_i\). The velocity \(u\) is discretized at the interfaces between the cells. The approximation of \(u\) at point \(x_{i+\frac{1}{2}}\) and at time \(t^n\) is denoted by \(u_{i+\frac{1}{2}}^n\).
The mass conservation equation is discretized with an explicit upwind scheme:
where
The momentum balance equation is discretized with explicit upwind fluxes for the convection term and implicit centered fluxes for the pressure term and topography term:
where
The discrete boundary conditions are
The computation of the discrete unknowns at each time step is completely explicit. First the discrete water heights \(\{h_{i}^{n+1}\}\) are computed with (6), then the discrete velocities \(\{u_{i+\frac{1}{2}}^{n+1}\}\) are computed with (7) (if \(h_{i+\frac{1}{2}}^{n+1}=0\), by convention, \(u_{i+\frac{1}{2}}^{n+1}\) is set to zero). We see immediately that this scheme conserves the mass and, for a flat topography, the total momentum. It is easy to verify that the water height remains nonnegative at time \(t^{n+1}\) under the CFL-like condition
where, for any \(a\in \mathbb {R}\), \((a)^+:=\max (a,0)\) (similarly, the notation \((a)^-:=\min (a,0)\) will be used in the next section). The steady states at rest are also preserved. Indeed, if \(u_{i+\frac{1}{2}}^n=0\) and \(h_i^n+z_i=cst\) for all \(i\in \{0,\ldots ,N\}\), then \(u_{i+\frac{1}{2}}^{n+1}=0\) and \(h_i^{n+1}+z_i=cst\). At each time step, the Courant number is defined by
The numerical simulations show that the staggered scheme is stable under the CFL condition \(\nu <1\).
Remark 1
It is essential to make an implicit discretization of the pressure term in (7). With an explicit discretization (\(\left[ (h_{i+1}^{n})^2 -(h_{i}^{n})^2\right] \) instead of \(\big [(h_{i+1}^{n+1})^2 -(h_{i}^{n+1})^2\big ]\)), the scheme would not be consistent with the entropy inequality. As a consequence, non-entropic shocks might occur in the numerical simulations (see Fig. 2).
Remark 2
The extension of the scheme (6)–(8) to the two-dimensional case is direct with a Cartesian grid. The water height \(h\) and the topography \(z\) are discretized at the center of the cells. The velocity in the \(x\)-direction is discretized at the center of the edges normal to the \(x\)-direction, while the velocity in the \(y\)-direction is discretized at the center of the edges normal to the \(y\)-direction.
Remark 3
The upwind fluxes and the Euler-like time-integration limit the scheme (6)–(8) to first-order accuracy in space and time. Second-order accuracy can be achieved with usual techniques: MUSCL or ENO flux reconstruction, second-order time-integration scheme (for instance, a scheme mixing Heun and Crank-Nicolson discretizations).
Remark 4
Source terms are often added to the momentum equation to model friction phenomena. For instance, the Manning friction term is \(C u|u|/h^{1/3}\), where \(C\) is a given coefficient. In the staggered framework, such a term can be approximated with \(C u_{i+\frac{1}{2}}^{n+1}|u_{i+\frac{1}{2}}^n|/(h_{i+\frac{1}{2}}^{n+1})^{1/3}\).
3 Consistency with the Entropy Inequality
We first establish a balance on the kinetic energy and a balance on the potential and topography energy.
Proposition 1
The discrete solution of the scheme (6)–(7) satisfies, for all \(i\in \fancyscript{E}_{int}\) and all \(n\in \{0,\ldots ,N_t\}\), the balance
with
and, for all \(i\in \fancyscript{M}\) and all \(n\in \{0,\ldots ,N_t\}\), the balance
with
Using the above balances we can deduce the following global consistency result.
Theorem 1
Let \(Q_T:=(0,T)\times \varOmega \). Let \((h^{(k)},u^{(k)})_{k\in \mathbb {N}}\) be a sequence of discrete solutions. If the sequence satisfies some estimates (that we do not specify here) and converges in \(L^{p}(Q_T)\times L^{p}(Q_T)\), with \(p\in [1,+\infty )\), then its limit \((h,u)\) satisfy
for all nonnegative test functions \(\varphi \in C^\infty _c(Q_T)\).
Remark 5
A similar consistency study in the case of a flat topography can be found in [4].
4 Numerical Tests
4.1 Dam Break on a Wet Bed
The domain is \(\varOmega =[0,1]\) and the topography is flat. The initial velocity is zero and the initial water height is \(h_\mathrm{ini}(x)=1\!\!1_{x<0.5}+0.2 1\!\!1_{x\ge 0.5}\). The solution of this problems consists of a shock and a rarefaction wave. The numerical solution obtained with the staggered scheme is in very good agreement with the exact solution (see Fig. 1). The staggered scheme yields a sharper shock than the kinetic and Suliciu schemes. However, a small overshoot in the water height and the velocity can be observed upstream from the shock for the staggered scheme. This overshoot does not occur in the kinetic and Suliciu schemes. The numerical convergence rate of the staggered scheme in \(L^1\)-norm is slightly less than 0.8 for \(h\) and about 0.8 for \(u\). These convergence rates are comparable to those obtained with the kinetic and Suliciu schemes.
The staggered scheme with an explicit pressure, discussed in Remark 1, has also been tested on the dam break problem. The non-entropic character of this variant is confirmed by the simulations; see the occurrence of a non-entropic shock at the left end of the rarefaction wave in Fig. 2.
4.2 Oscillations in a Parabola
The domain is \(\varOmega =[-2,2]\). The topography is a parabola \(z(x)=0.5\left( x^2-1\right) \). The initial velocity is zero and the initial water height is \(h_\mathrm{ini}(x)=-z(x+0.5)1\!\!1_{-1.5<x<0.5}\). The solution is periodic in time: the water oscillates in the parabola, the surface remaining planar. The numerical simulations show that the staggered scheme is able to treat accurately dry-wet transitions (see Fig. 3). For this problem, the staggered scheme is even more accurate than the collocated schemes. The numerical convergence rate of the staggered scheme in \(L^1\)-norm is very close to 1 for both \(h\) and \(hu\) and seems slightly better than the kinetic and Suliciu schemes.
4.3 Transcritical Flow with Shock
This problem simulates a flow over a bump. The domain is \(\varOmega =[0,25]\) and the topography is \(z(x)=0.2 - 0.05(x -10)^2 1\!\!1_{8<x<12}\). The initial conditions are \(h_\mathrm{ini}=0.33-z\) and \(u_\mathrm{ini}=0.18/0.33\). At the upstream end of the domain, the discharge is enforced (\(hu(x=0)=0.18\)), while, at the downstream end, the water height is prescribed (\(u(x=25)=0.33\)). After a time long enough (\(t\ge 100\)), the flow reaches a steady state. Upstream from the top of the bump, the flow is subcritical; downstream, it becomes supercritical, then, after a hydraulic jump, it is subcritical again. The staggered scheme reproduces quite accurately the final steady state and captures well the location of the shock. (see Fig. 4). The kinetic and Suliciu schemes seem to yield a slightly better shock profile than the staggered scheme. The numerical convergence rate of the staggered scheme in \(L^1\)-norm is close to 1 for both \(h\) and \(u\), which is comparable to the kinetic and Suliciu schemes.
5 Conclusion
The staggered scheme is an alternative to the collocated schemes for solving the shallow water equations. The numerical tests demonstrate that the staggered scheme is as accurate and robust as the collocated schemes. The staggered scheme presents the same mathematical guarantees as the collocated schemes. In particular, the staggered scheme is consistent with the global entropy inequality. The componentwise computation of numerical fluxes is simpler than the approximate Riemann solvers and the well-balanced discretization of the topography source term is straightforward on uniform grids.
References
Bouchut, F.: Nonlinear Stability of Finite Volume Methods for Hyperbolic Conservation Laws and Well-Balanced Schemes for Sources. Birkhäuser, Basel (2004)
Delestre, O., Lucas, C., Ksinant, P.A., Darboux, F., Laguerre, C., Vo, T.N.T., James, F., Cordier, S.: Swashes: a compilation of shallow water analytic solutions for hydraulic and environmental studies. Int. J. Numer. Meth. Fluids 72(3), 269–300 (2013)
Herbin, R., Kheriji, W., Latché, J.C., et al.: Consistent Semi-Implicit Staggered Schemes for Compressible Flows. Part I: The Barotropic Euler Equations. submitted (2013)
Herbin, R., Latché, J.C., Nguyen, T.T., et al.: Consistent Explicit Staggered Schemes for Compressible Flows Part I: The Barotropic Euler Equations. submitted (2013)
Stelling, G.S., Duinmeijer, S.P.A.: A staggered conservative scheme for every froude number in rapidly varied shallow water flows. Int. J. Numer. Meth. Fluids 43(12), 1329–1354 (2003)
Toro, E.F.: Riemann Solvers and Numerical Methods for Fluid Dynamics. Springer, Berlin (2009)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Doyen, D., Gunawan, P.H. (2014). An Explicit Staggered Finite Volume Scheme for the Shallow Water Equations. In: Fuhrmann, J., Ohlberger, M., Rohde, C. (eds) Finite Volumes for Complex Applications VII-Methods and Theoretical Aspects. Springer Proceedings in Mathematics & Statistics, vol 77. Springer, Cham. https://doi.org/10.1007/978-3-319-05684-5_21
Download citation
DOI: https://doi.org/10.1007/978-3-319-05684-5_21
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-05683-8
Online ISBN: 978-3-319-05684-5
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)