Abstract
In this work, a model for shallow water flows that accounts for the effects of horizontal density fluctuations is presented and derived. While the density is advected by the flow, a two-way feedback between the density gradients and the time evolution of the fluid is ensured through the pressure and source terms in the momentum equations. The model can be derived by vertically averaging the Euler equations while still allowing for density fluctuations in horizontal directions. The approach differs from multi-layer shallow water flows where two or more layers are considered, each of them having their own depth, velocity and constant density. A Roe-type upwind scheme is developed and the Roe matrices are computed systematically by going from the conservative to the quasi-linear form at a discrete level. Properties of the model are analyzed. The system is hyperbolic with two shock-wave families and a contact discontinuity associated to interfaces of regions with density jumps. This new field is degenerate with pressure and velocity as the corresponding Riemann invariants. We show that in some parameter regimes numerically recognizing such invariants across contact discontinuities is important to correctly compute the flow near those interfaces. We present a numerical algorithm that correctly captures all waves with a hybrid strategy. The method integrates the Riemann invariants near contact discontinuities and switches back to the conserved variables away from it to properly resolve shock waves. This strategy can be applied to any numerical scheme. Numerical solutions for a variety of tests in one and two dimensions are shown to illustrate the advantages of the strategy and the merits of the scheme.
Similar content being viewed by others
References
Audusse, E., Bouchut, F., Bristeau, M.-O., Klein, R., Perthame, B.: A fast and stable well-balanced scheme with hydrostatic reconstruction for shallow water flows. SIAM J. Sci. Comput. 25(6), 2050–2065 (2004). (electronic)
Ardakani, Hamid Alemi, Bridges, Thomas J., Turner, Matthew R.: Shallow-water sloshing in a moving vessel with variable cross-section and wetting-drying using an extension of george’s well-balanced finite volume solver. J. Comput. Phys. 314, 590–617 (2016)
Abgrall, Rémi, Karni, Smadar: Computations of compressible multifluids. J. Comput. Phys. 169(2), 594–623 (2001)
Abgrall, R., Karni, S.: Two-layer shallow water system: a relaxation approach. SIAM J. Sci. Comput. 31(3), 1603–1627 (2009)
Audusse, E.: A multilayer Saint-Venant model: derivation and numerical validation. Discrete Contin. Dyn. Syst. Ser. B 5(2), 189–214 (2005)
Balbás, J., Karni, S.: A central scheme for shallow water flows along channels with irregular geometry. M2AN Math. Model. Numer. Anal. 43(2), 333–351 (2009)
Bouchut, F.: Nonlinear stability of finite volume methods for hyperbolic conservation laws and well-balanced schemes for sources. Frontiers in Mathematics. Birkhäuser Verlag, Basel (2004). doi:10.1007/b93802
Bouchut, François, Zeitlin, Vladimir: A robust well-balanced scheme for multi-layer shallow water equations. Discrete Contin. Dyn. Syst. Ser. B 13(4), 739–758 (2010)
Castro, M.J., García-Rodríguez, J.A., González-Vida, J.M., Macías, J., Parés, C., Vázquez-Cendón, M.E.: Numerical simulation of two-layer shallow water flows through channels with irregular geometry. J. Comput. Phys. 195(1), 202–235 (2004)
Chertock, Alina, Karni, Smadar, Kurganov, Alexander: Interface tracking method for compressible multifluids. ESAIM Math. Model. Numer. Anal. 42(06), 991–1019 (2008)
Chertock, Alina, Kurganov, Alexander, Liu, Yu.: Central-upwind schemes for the system of shallow water equations with horizontal temperature gradients. Numer. Math. 127(4), 595–639 (2014)
Castro, M., Macías, J., Parés, C.: A \(Q\)-scheme for a class of systems of coupled conservation laws with source term. Application to a two-layer 1-D shallow water system. M2AN Math. Model. Numer. Anal. 35(1), 107–127 (2001)
Desveaux, Vivien, Zenk, Markus, Berthon, Christophe, Klingenberg, Christian: Well-balanced schemes to capture non-explicit steady states: Ripa model. Math. Comput. 85(300), 1571–1602 (2016)
George, D.L.: Augmented Riemann solvers for the shallow water equations over variable topography with steady states and inundation. J. Comput. Phys. 227(6), 3089–3113 (2008)
Garcia-Navarro, P., Vazquez-Cendon, M.E.: On numerical treatment of the source terms in the shallow water equations. Comput. Fluids 29(8), 951–979 (2000)
Hernández-Dueñas, G., Karni, S.: Shallow water flows in channels. J. Sci. Comput. 48(1–3), 190–208 (2011)
Han, Xiao, Li, Gang: Well-balanced finite difference WENO schemes for the Ripa model. Comput. Fluids 134(135), 1–10 (2016)
Jin, S.: A steady-state capturing method for hyperbolic systems with geometrical source terms. M2AN Math. Model. Numer. Anal. 35(4), 631–645 (2001)
Karni, Smadar: Multicomponent flow calculations by a consistent primitive algorithm. J. Comput. Phys. 112(1), 31–43 (1994)
Karni, Smadar: Hybrid multifluid algorithms. SIAM J. Sci. Comput. 17(5), 1019–1039 (1996)
Karni, Smadar, Hernández-Dueñas, Gerardo: A hybrid algorithm for the baer-nunziato model using the riemann invariants. J. Sci. Comput. 45(1–3), 382–403 (2010)
Kurganov, A., Levy, D.: Central-upwind schemes for the Saint-Venant system. M2AN Math. Model. Numer. Anal. 36(3), 397–425 (2002)
Kurganov, A., Petrova, G.: A second-order well-balanced positivity preserving central-upwind scheme for the Saint-Venant system. Commun. Math. Sci. 5(1), 133–160 (2007)
LeVeque, R.J.: Numerical Methods for Conservation Laws. Lectures in Mathematics ETH Zürich, 2nd edn. Birkhäuser Verlag, Basel (1992)
LeVeque, R.J.: Balancing source terms and flux gradients in high-resolution Godunov methods: the quasi-steady wave-propagation algorithm. J. Comput. Phys. 146(1), 346–365 (1998)
Lelong, M.P., Sundermeyer, M.A.: Geostrophic adjustment of an isolated diapycnal mixing event and its implications for small-scale lateral dispersion. J. Phys. Oceanogr. 35(12), 2352–2367 (2005)
Noelle, S., Pankratz, N., Puppo, G., Natvig, J.R.: Well-balanced finite volume schemes of arbitrary order of accuracy for shallow water flows. J. Comput. Phys. 213(2), 474–499 (2006)
Noelle, S., Xing, Y., Shu, C.-W.: High-order well-balanced finite volume WENO schemes for shallow water equation with moving water. J. Comput. Phys. 226(1), 29–58 (2007)
Oleinik, O.A.: Discontinuous solutions of non-linear differential equations. Uspekhi Matematicheskikh Nauk 12(3), 3–73 (1957)
Perthame, B., Simeoni, C.: A kinetic scheme for the Saint-Venant system with a source term. Calcolo 38(4), 201–231 (2001)
Ripa, P.: On improving a one-layer ocean model with thermodynamics. J. Fluid Mech. 303, 169–201 (1995)
Roe, P.L.: Approximate Riemann solvers, parameter vectors, and difference schemes. J. Comput. Phys. 43(2), 357–372 (1981)
Roe, P.L.: Upwind differencing schemes for hyperbolic conservation laws with source terms. In: Nonlinear Hyperbolic Problems (St. Etienne, 1986), volume 1270 of Lecture Notes in Math., pp. 41–51. Springer, Berlin (1987)
Russo, G.: Central schemes for balance laws. In: Hyperbolic Problems: Theory, Numerics, Applications, vol. I, II (Magdeburg, 2000), volume 141 of Internat. Ser. Numer. Math., 140, pp. 821–829. Birkhäuser, Basel (2001)
Sánchez-Linares, C., Morales de Luna, T., Castro Díaz, M.J.: A HLLC scheme for Ripa model. Appl. Math. Comput. 272(part 2), 369–384 (2016)
Touma, R., Klingenberg, C.: Well-balanced central finite volume methods for the Ripa system. Appl. Numer. Math. 97, 42–68 (2015)
Vázquez-Cendón, M.E.: Improved treatment of source terms in upwind schemes for the shallow water equations in channels with irregular geometry. J. Comput. Phys. 148(2), 497–526 (1999)
Xing, Yulong, Shu, Chi-Wang: High order finite difference WENO schemes with the exact conservation property for the shallow water equations. J. Comput. Phys. 208(1), 206–227 (2005)
Xing, Yulong, Shu, Chi-Wang: High-order finite volume weno schemes for the shallow water equations with dry states. Adv. Water Resour. 34(8), 1026–1038 (2011)
Xing, Yulong, Shu, Chi-Wang: A survey of high order schemes for the shallow water equations. J. Math. Study 47(3), 221–249 (2014)
Xing, Yulong, Shu, Chi-Wang, Noelle, Sebastian: On the advantage of well-balanced schemes for moving-water equilibria of the shallow water equations. J. Sci. Comput. 48(1–3), 339–349 (2011)
Xing, Yulong, Zhang, Xiangxiong, Shu, Chi-Wang: Positivity-preserving high order well-balanced discontinuous galerkin methods for the shallow water equations. Adv. Water Resour. 33(12), 1476–1493 (2010)
Author information
Authors and Affiliations
Corresponding author
Additional information
Research supported in part by Grants UNAM-DGAPA-PAPIIT IA103015 and IA104517.
Appendices
Appendix A: Details and Properties of the 2-D Hybrid Numerical Scheme
The hybrid strategy is now carried over to the two-dimensional space. Local linearizations of eigenvalues, eigenvectors, and amplitudes are needed for both the conservative and primitive formulations in 2-D in order to apply the numerical scheme (32), (33), (34).
Conservative Formulation
Let us first consider the 2-D conservative formulation (1) and its quasilinear form (2) for the variables \(\mathbf{W }^c = (\rho h, \; \rho h u, \; \rho h v, \; h)^T\). Although not necessary in the description of the numerical scheme, we include the corresponding local linearizations of the Roe matrices (3) and (4) and source terms
The corresponding matrices of eigenvalues are \(\Lambda ^A = \text {diag}( {\hat{u}}-{\tilde{c}}, {\hat{u}}, {\hat{u}}, {\hat{u}}+{\tilde{c}})\) and \(\Lambda ^B = \text {diag}( {\hat{v}}-{\tilde{c}}, {\hat{v}}, {\hat{v}}, {\hat{v}}+{\tilde{c}})\). The matrices of eigenvectors needed in the numerical scheme are
Finally, the amplitudes in the decomposition of both the flux gradient and source discretization in each direction are:
Here \(\Delta _x(\cdot )\) and \(\Delta _y(\cdot )\) refer to the horizontal (east-west) and vertical (north and south) differences respectively. We note that when \(\rho \) is constant the second terms in \(\alpha _1,\alpha _2\) vanish, as well as \(\alpha _2^{c,A}, \alpha _3^{c,B}\), recovering the regular scheme for the 2-D shallow water equations.
Primitive Formulation
Using the primitive variables, \(\mathbf{W }^{nc} = (u, \; v, \; p, \; \rho )^T\), the 2-D non-conservative primitive system reads
Any consistent discretization of the above system automatically preserves u, v and p across contact discontinuities (in a flat topography). For consistency, we choose the same averages here as in the conservative formulation \({\hat{u}}, \overline{\rho h}, \widehat{1/\rho }, {\tilde{c}}\). The matrices of eigenvectors are
Finally, the amplitudes in the decomposition of both the flux gradient and source discretization in each direction are:
1.1 Appendix A.1: Summary of the 2-D Numerical Scheme
The 2-D numerical scheme is summarized as follows. Each cel (i, j) is updated as
Here,
If the jump in density near cell (i, j) does not exceed a threshold, i.e., if \(\max _{i-1 \le i' \le i+1,}\) \({j-1 \le ij \le j+1}( |\rho _{i'+1,j'+1}-\rho _{i',j'}| ) < \rho _o\), then
If the jump in the density exceed the chosen threshold ( \(\max _{i-1 \le i' \le i+1,j-1 \le ij \le j+1}( |\rho _{i'+1,}\) \({j'+1}-\rho _{i',j'}| ) \ge \rho _o\) ), then
and
Here the threshold and averages are given by Eqs. (28), (40), (46). In addition, the second order extension and entropy fix is conducted as in [24].
Appendix B: Derivation of the Model
We start with the 3D Euler equations
and integrate in the vertical direction from the bottom topography B(x, y) to the surface \(B(x,y)+h(x,y,t)\), where h is the depth of water, using the relation
where r is any of the spatial variables x or y, and f is any of the conserved variables \(\rho ,\rho u,\rho v\) or \(\rho w\). For any conserved variable f, we also define the vertically averaged quantity
In addition, we assume a hydrostatic balance so that the pressure is given as \(p(x,y,z,t) = g \int _z^{B+h} \rho (x,y,z') dz'\). If the density is approximately uniform in the vertical direction, the pressure is approximated as
The vertically integrated pressure is then approximated as \(g \rho h^2/2\), and denoted by p. Vertically integrating the first three components of Eq. (68) we get
where
The bottom and surface are assumed to be streamlines so that \(S_{\big |_{B+h}}=S_{\big |_B} =0\) vanish. Assuming that the flow is shallow, we replace \(\overline{\rho u}\approx \bar{\rho }\bar{u}, \overline{\rho u^2} \approx \bar{\rho }\bar{u}^2\) and so on, and drop the bars.
The system can be closed by assuming that the density \(\rho \) is advected by the flow \(\partial _t \rho + u \partial _x \rho +v \partial _y \rho =0\), and combining it with the first equation we get system (1).
Rights and permissions
About this article
Cite this article
Hernandez-Duenas, G. A Hybrid Method to Solve Shallow Water Flows with Horizontal Density Gradients. J Sci Comput 73, 753–782 (2017). https://doi.org/10.1007/s10915-017-0553-1
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10915-017-0553-1