Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

A kinetic flux vector splitting scheme for shallow water equations incorporating variable bottom topography and horizontal temperature gradients

  • M. Rehan Saleem ,

    Contributed equally to this work with: M. Rehan Saleem, Waqas Ashraf, Saqib Zia, Ishtiaq Ali, Shamsul Qamar

    Roles Methodology, Validation, Writing – original draft, Writing – review & editing

    Rehanmathematician@gmail.com

    Affiliation COMSATS Institute of Information Technology, Park Road, Chak Shahzad Islamabad, Pakistan

  • Waqas Ashraf ,

    Contributed equally to this work with: M. Rehan Saleem, Waqas Ashraf, Saqib Zia, Ishtiaq Ali, Shamsul Qamar

    Roles Conceptualization, Formal analysis, Software, Writing – original draft, Writing – review & editing

    Affiliation Institute of Space Technology, Islamabad, Pakistan

  • Saqib Zia ,

    Contributed equally to this work with: M. Rehan Saleem, Waqas Ashraf, Saqib Zia, Ishtiaq Ali, Shamsul Qamar

    Roles Conceptualization, Formal analysis, Methodology, Software, Validation, Writing – original draft

    Affiliation COMSATS Institute of Information Technology, Park Road, Chak Shahzad Islamabad, Pakistan

  • Ishtiaq Ali ,

    Contributed equally to this work with: M. Rehan Saleem, Waqas Ashraf, Saqib Zia, Ishtiaq Ali, Shamsul Qamar

    Roles Conceptualization, Methodology, Writing – original draft

    Affiliation COMSATS Institute of Information Technology, Park Road, Chak Shahzad Islamabad, Pakistan

  • Shamsul Qamar

    Contributed equally to this work with: M. Rehan Saleem, Waqas Ashraf, Saqib Zia, Ishtiaq Ali, Shamsul Qamar

    Roles Conceptualization, Investigation, Methodology, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliation COMSATS Institute of Information Technology, Park Road, Chak Shahzad Islamabad, Pakistan

Abstract

This paper is concerned with the derivation of a well-balanced kinetic scheme to approximate a shallow flow model incorporating non-flat bottom topography and horizontal temperature gradients. The considered model equations, also called as Ripa system, are the non-homogeneous shallow water equations considering temperature gradients and non-uniform bottom topography. Due to the presence of temperature gradient terms, the steady state at rest is of primary interest from the physical point of view. However, capturing of this steady state is a challenging task for the applied numerical methods. The proposed well-balanced kinetic flux vector splitting (KFVS) scheme is non-oscillatory and second order accurate. The second order accuracy of the scheme is obtained by considering a MUSCL-type initial reconstruction and Runge-Kutta time stepping method. The scheme is applied to solve the model equations in one and two space dimensions. Several numerical case studies are carried out to validate the proposed numerical algorithm. The numerical results obtained are compared with those of staggered central NT scheme. The results obtained are also in good agreement with the recently published results in the literature, verifying the potential, efficiency, accuracy and robustness of the suggested numerical scheme.

Introduction

In the recent years, the study of hyperbolic systems with source terms has attracted much attention in the field of computational fluid dynamics (CFD) due to their wide rang physical and engineering applications. One example of such systems is the set of Saint-Venant equations which are widely used in the ocean currents and hydraulic engineering to describe the hydraulic jumps and shallow water flows [13]. In the early decades many numerical methods have been developed to investigate such flows.

The present work deals with the numerical approximation of shallow water equations which have temperature fluctuations of prime interest [4]. This set of shallow water equations, containing horizontal temperature gradient terms, is called as Ripa system and is used to investigate ocean currents [5, 6]. The main difference between the well known shallow water model and the Ripa system is the definition of steady states at rest. Indeed, the Ripa system involves the steady states at rest governed by the system of partial differential equations. This system is a non-homogenous hyperbolic system with non-zero source terms which appear after incorporating horizontal temperature gradients in the shallow water equations [712].

The classical nonlinear shallow water equations were derived in 1871 by de Saint-Venant [13]. Currently these equations are widely used in practice and one can find thousands of publications devoted to the applications, validations and numerical solutions of these equations [14]. In the pioneering work of Savage and Hutter [15] a shallow water type model in one-space dimension has been proposed to study aerial avalanches, followed by an extension of their approach to two-space dimensions [16].

Several well-balanced and higher order accurate computational methods have been designed for solving Saint-Venant equations and Ripa system in one and two space dimensions. Some of the well known finite volume schemes for solving systems of conservation laws include the finite volume weighted essentially non-oscillatory (WENO) scheme, conservation element solution element (CESE) scheme, central upwind (CUP) scheme, central Nessyahu Tadmor (NT) scheme, as well as Bhatnagar Gross Krook (BGK) and kinetic flux vector splitting (KFVS) schemes [1723]. In this work, the KFVS scheme is extended to solve the current shallow flow model equations.

In the literature, many positivity preserving and well-balanced schemes have been suggested for solving single and two phase shallow flow models [2431]. An efficient computational scheme should preserve the positivity of h and θ and should capture the steady states and small perturbations of the solutions. In addition to the above requirements, a good numerical method should avoid developing spurious oscillations of pressure in the neighborhood of temperature jumps. Such type of typical oscillations may appear when a Godunov-type finite volume scheme is applied [32].

Zhou et al. have developed a well-balanced and robust numerical scheme based on the Harten Lax and van Leer (HLL) Riemann solver and surface gradient method (SGM) for interpolating the initial data [33]. The main advantage of their approach is the consideration of h + B for the initial reconstruction instead of h that guarantees the achievement of steady state. In this manuscript, the same h + B is used as a conservative variable. Audusse et al. have developed a first-order accurate KFVS scheme based on the collisionless Boltzmann transport equation for the system of shallow water equations [34]. That scheme is well-balanced based on the appropriate choice of flux splitting but the accuracy of that scheme was not sufficient for some test problems. Furthermore, for the shallow water equations the source terms effects the evolution around the cell interface and has tendency to change the flux terms. Thus, special attention is needed to the discretization of source terms. Our proposed KFVS scheme, which is second order accurate and discretizes the source terms appropriately, has the capability to overcome all such difficulties.

The Godunov upwind finite volume schemes are based on the hyperbolic structure of the underlying conservation laws [4, 35]. However, for some systems, it is difficult to find the explicit expressions of eigenvalues. Thus, the development of Riemann solvers are not possible for such systems. In such scenarios, the kinetic theory based numerical schemes can be very interesting if the Maxwellian distributions are available for such systems. One of the fascinating aspects of the kinetic schemes is that when applied to Euler equations of gas dynamics, they preserve the positivity of mass, density and pressure. As a result, the kinetic schemes are unconditionally stable in the L1-norm. Moreover, they also possess the entropy property as a consequence of the celebrated Boltzmann H-theorem [35]. Since the form of the numerical dissipation in the FVS scheme is consistent with the Navier-Stokes viscous terms, the robustness of the KFVS schemes can be easily understood, i.e., the absence of numerical shock instability. These advantages of the kinetic schemes are also very attractive when solving the current shallow flow model [31].

There are two types of gas kinetic schemes. One of the well-balanced gas kinetic schemes is KFVS scheme which is based on the collionless Boltzmann equation, while the other scheme is based on the BGK model [36, 37]. On combining the dynamical effects of both gas evolution and projection stages, the governing equations are physically same for both KFVS and BGK schemes. The major difference between both the two schemes is that the particle collision time τ in BGK scheme is replaced by the Courant Friedrichs Lewy (CFL) time step Δt of the KFVS scheme [38]. As the structures of both Ripa system and shallow water model are very similar, we can expect the same performance of this well balanced scheme for the Ripa model. Furthermore, as the shallow water equations can be recovered by providing a constant temperature θ, the extended scheme for the Ripa system will also preserve the lake at rest steady states exactly for the constant θ.

The KFVS scheme is based on the Boltzmann equation of kinetic theory of fluids. Due to their intrinsic upwinding, multidimensional and free of Riemann solver properties, gas kinetic schemes have got increasing attention of the researchers in this field [3942]. The current KFVS scheme has capability to tackle all difficulties associated with the non-conservative part of the equations. The basic idea behind this scheme is that it uses information of local propagation speeds and estimates solutions in the form of cell averages. Moreover, this scheme has an upwind nature, as it takes care about the direction of propagation of wave by measuring the one-sided local speeds. Apart from its advantages, the KFVS has some limitations as well. For example, the scheme strictly depends on the Boltzmann equation and Maxwellian distribution function. In the case of complications in the Maxwellian distribution function, the KFVS method becomes complicated and requires more computational effort. The application of KFVS is almost not possible in the absence of Maxwellian distribution function. This scheme has been successfully applied to approximate several models in gas dynamics. Mandal and Deshpande [43] have used this scheme to investigate bump in a channel problem and it was found that the explicit flux function of KFVS scheme was similar to the flux function of Van Leer [44]. For the simulation of two dimensional problems for structured and unstructured meshes, the high order KFVS schemes have been used [22, 45]. In the current KFVS scheme, we start with the cell average initial data of conserved variables and calculate the cell averaged values in the same cells at updated time step. In order to achieve second order accuracy of the scheme, MUSCL-type initial reconstruction procedure and Runge-Kutta time stepping method are used.

As particles have the ability to move in forward and backward directions with the fluid motion, the fluxes of conservative variables can be divided into forward and backward fluxes at the cell interface, i.e., (1) where, Wi represents the vector of conserved variables within the cell [xi−1/2, xi+1/2] and F(Wi) denotes the vector of flux functions. For validation, the results of our proposed scheme are compared with those obtained from the staggered central NT scheme [10, 12]. The main reason for choosing this scheme is its simplicity, efficiency, robustness, Riemann-solver free nature and second-order accuracy. The current KFVS scheme is developed in such a way that it preserves the positivity of physical variables like height, temperature and pressure. Thus, the scheme gives stable results.

The present article is organized as follows. Sections 2 and 3 are devoted to the introduction of one-dimensional Ripa system and to the derivation of KFVS scheme, respectively. The two-dimensional (2D) Ripa system and the corresponding 2D KFVS scheme are presented in the Sections 4 and 5, respectively. Numerous numerical case studies are carried out in Section 6. Finally, concluding remarks are given in Section 7.

Single-phase one-dimensional Ripa model

Firstly, we consider the one-dimensional single-phase shallow flow model with variable bottom topography [57] (2) (3) (4) where h is the flow height, g is the gravitational acceleration constant, u is the flow velocity along the x direction, denotes the bottom topography from a given level and θ represents the temperature fluctuation function. The stationary steady states for this model are expressed as (5) Eqs (2)–(4) can be written in the compact form as (6) where W is the vector of conserved variables, F represents the vector of fluxes and τ denotes the source term. The conserved variables are give as (7) and the conservative fluxes are given as (8) Moreover, the non-conservative source terms are expressed as (9)

Above equations can be expressed in quasi-linear form as (10) where W = (w1, w2, w3)T, R(W) = [0, −ghθx B, 0]T and A(W) is the Jacobian matrix whose element at the k-th row and l-th column is for k, l = 1, 2, 3 and the functions fk(w1, w2) are defined in Eq (8). The matrix A(W) is given as (11) The eigenvalues of the Jacobian matrix A(W) are λ1 = u, and . Since these eigenvalues are all real, so the one-dimensional Ripa system under consideration is hyperbolic.

KFVS scheme for one-dimensional single-phase shallow flow model

The flux of conserved variables is related to the particle motion across cell interfaces. For the one-dimensional flow, the particle motion in this direction determines the flux function F(W).

In statistical mechanics, the distribution of moving particles in the x- direction can be considered by local Maxwellian distribution function. The Maxwellian distribution function in normal direction n ∈ {x} is given as [22, 46], (12) where un is the average fluid velocity in the n-direction, vn is the individual particle velocity in the same direction, and λ is the normalization factor of the distribution of random velocity. The transport of any flow quantity is due to the movement of particles. Considering the distribution function fM in Eq (12), particles can be split into two groups. One group move to the right side with positive velocity (un > 0) and the other group move to the left side with negative velocity (un < 0). Before splitting the fluxes, let us define (13) (14) The above two moments are sufficient to split all the fluxes. In order to simplify the notation, one can define [22] (15) (16) and (17) (18) Here, the complementary error function is defined as (19) In order to apply KFVS scheme, first we divide the domain of interest into N sub-domains. Let us define a cell Ci by interval for i = 1, 2, ⋯, N. Therefore, represents the uniform width of cell, the points xi = iΔx denote to the cells center and the points represent the cells faces. We start the process with a cell averaged initial data at time step tn and compute the cell average updated solution over the same cell at the next time step tn+1.

Let us consider the one dimensional single-phase shallow flow model. Using the above relations, the flux functions in Eq (8) can be splitted as (20) Following [22], the flux vectors at the left and right interfaces of the cell Ci are given as (21) where, F±(Wi). Thus we have, (22) Integration of Eq (6) over the cell gives the following semi-discrete kinetic upwind scheme (23) where, Wi denotes the cell averaged values of the conserved variables. Moreover, following [32] a modified Godunov type approach is taken into account for the discretization of the non-conservative term. In this approach, non-conservative terms appear on the right hand side are approximated as cell averaged values and the differential terms are approximated by using flux splitting technique, (24)

Here, the cell averaged values Wi are defined as (25) and and are given by (21).

The above scheme is only first order accurate in space. To achieve high order accuracy, the initial reconstruction strategy must be applied for the interpolation of cell averaged variables Wi. Here, a second order accurate MUSCL-type initial reconstruction procedure is employed. Starting with a piecewise constant solution Wi, one can reconstructs a piecewise linear (MUSCL-type) approximation by selecting slope vector (differences) Wx. Then, boundary extrapolated values are given as (26) A possible computation of these slopes is given by the family of discrete derivatives parameterized with 1 ≤ ϑ ≤ 2, for example (27) where, Δ denotes central differencing and 1 ≤ ϑ ≤ 2 is a parameter. For ϑ = 1 the limiter is most dissipative and is least dissipative for ϑ = 2. Moreover, (28) and MM denotes the min-mod nonlinear limiter (29) On the basis of above reconstruction, a semi discrete high resolution kinetic solver is formulated as (30) In the above equation, (31) To obtain second order accuracy in time, a second order total variation diminishing (TVD) Runge-Kutta (R-K) scheme is used to solve Eq (30). Let us denote the right-hand side of Eq (30) as L(W). A second order TVD R-K scheme updates W through the following two stages [22] (32) (33) where, Δt = tn+1tn represents the time step. In all our 1D computations, we have chosen the dynamic time steps according to the following CFL condition: (34) where σi is the maximum eigenvalue of the Jacobin matrix A(W) given by Eq (11).

Single-phase two-dimensional Ripa model

Now, we consider the two-dimensional Ripa system in which the water temperature fluctuations are taken into account. The two dimensional Ripa model has the following form (35) (36) (37) (38) Here, h represents the water height, u and v are respectively the fluid velocities in the x and y directions, B = B(x, y) denotes the bottom topography and the gravitational constant is represented by g. The variable θ is referred to as the potential temperature field and hu and hv are the momentums along x and y directions, respectively. The stationary steady states for this system are (39) In compact form, the above system can be rewritten as (40) where W is the vector of conserved variable, F(W) and G(W) represent fluxes along x-axis and y-axis respectively, and τ denotes the vector of source terms. The conserved variables are given as (41) and the conservative fluxes are expressed as (42) (43) Moreover, the non-conservative source terms are defined as (44) The quasi-linear form of the above system is as follows (45) where W = (w1, w2, w3, w4)T, S(W) = [0, −ghθx B, −ghθy B, 0]T. H(W) and J(W) are the Jacobian matrices of the system under consideration. The matrices H(W) and J(W) are given as (46) Eigenvalues of the Jacobian matrix H(W) are α1 = α2 = u, and . Similarly, the eigenvalues of the Jacobian matrix J(W) are β1 = β2 = v, and . As the eigenvalues of two-dimensional Ripa system are all real, so it is a hyperbolic system having independent eigenvectors. To calculate the time step of the numerical scheme, eigenvalues are needed in the time step relation for ensuring the stability of the scheme. If we take , the Jacobian of the Ripa system will not provide a complete set of eigenvalues, i.e. the Ripa system produces a resonance phenomenon. For that reason, the solution of the Riemann problems becomes very difficult in such situations. The current KFVS for the Ripa system avoids such complexities because it calculates the cell interface fluxes from the Maxwellian distribution function and it does not require a Riemann solver.

KFVS scheme for two-dimensional single-phase shallow flow model

Now consider the two-dimensional single-phase shallow flow model in Eqs (35)–(38). In this case, the flux is associated with the particles motion across the boundaries of cell interfaces. In the two-dimensional case, the flow of particles along each characteristic direction x and y is considered using the macroscopic flux functions F(W) and G(W) through boundaries of the mesh cells. For example, for flow in the x-direction, the flux function is determined by the particle motion in that direction. The remaining quantities, e.g. velocity in y–direction and water height may be treated as passive scalars which are moved with the x-direction particle’s velocity. The same Maxwellian distribution fM in Eq (12) is considered with n ∈ {x, y} to split the flux functions in the x and y-directions. In the x-direction, we have (47) where, (48) Similarly, in the y-direction (49) where, (50) Let Nx and Ny be large integers in the x and y-directions, respectively. We assume a Cartesian grid with a rectangular domain [x0, xmax] × [y0, ymax] which is covered by cells Cij ≔ [xi−1/2, xi+1/2] × [yj−1/2, yj+1/2] for 1 ≤ iNx and 1 ≤ jNy. Here, (xNx+1/2, yNy+1/2) = (xmax, ymax) The representative coordinates in cell Cij are denoted by (xi, yj). Therefore, (51) (52) and (53) Thus, fluxes at the cell interfaces are described as (54) Integration of Eq (17) over Ci,j gives the following semi-discrete kinetic upwind scheme (55) where, the cell averaged values Wi,j are defined as (56) The cell interface fluxes and are defined by Eq (54). Moreover, and are expressed as (57) (58)

The same reconstruction procedure can be applied in direction by direction manner which was discussed in Eqs (26)–(29) of the previous section. Therefore, the final form of the 2D-KFVS scheme is given as (59) The second order TVD RK scheme (Eqs (32) and (33)) is used to solve the system of ordinary differential equations in Eq (59). In all our 2D computations, we have chosen the dynamic time steps according to the following CFL condition: (60) where and are the maximum eigenvalues of the Jacobian matrices H(W) and J(W) given by Eq (46). The proposed KFVS schemes for 1D and 2D flows can be analogously extended to the 3D flows. In that case, the same Maxwellian distribution can be used to split the flux functions along the characteristic directions x, y and z. For example, for flow in the x-direction, the flux function is determined by the particles motion in that direction. The remaining quantities, such as velocities in the y and z directions and water height may be treated as passive scalars moving with x-direction velocity of particles. Moreover, the current KFVS scheme can be easily extended to solve multidimensional incompressible and compressible multiphase flow models, see for example [39, 46].

There are so many techniques and procedures which can be used to further enhance the accuracy and reduce the computational cost of the above KFVS schemes. For example one can increase the order of accuracy by using WENO-limiters and can apply adaptive meshing techniques to reduce the computational cost [47]. One can also adopt Singh’s numerical scheme for further improvements [48]. Moreover, one can also try to establish a variational formulation for the discussed systems [49].

Numerical case studies

In this section, several case studies are carried out in one and two-space dimensions. The initial data of these Riemann problems contain a single discontinuity. There are conditions, called as “shock conditions”, which decide the occurrence of shocks. These conditions can be used to find the state on the other side of the shock if a state on the one side of the shock is already known [4, 50]. The results obtained from KFVS scheme are compared with the results of central NT scheme. The main reason for choosing NT scheme is its simplicity, robustness and efficiency. Moreover, the scheme does not requires any exact or approximate Riemann solver. If we want to apply a Godunov upwind scheme then we have to derive the exact Riemann solver and a complete set of eigenvalues which are very difficult or almost impossible. The KFVS scheme is applied for the first time to the Ripa system incorporating variable bottom topography and horizontal temperature gradients. In all the test problems outflow boundary conditions are used.

One-dimensional case studies

Here, we present the one-dimensional test problems. In the first problem, a variable bottom topography and smooth initial data are considered to calculate L1-errors and L-errors of both schemes. The next two test problems are related to the flat bottom and the last three problems involve non-flat bottom topography. The initial data for each case study are given along with it. The reference solutions are obtained on 2000 grid points. Both KFVS and central schemes give identical solutions at refined grids. Thus, either central scheme or KFVS scheme can be used to obtain reference solutions. In all 1D results the black solid line represents the reference solution, the black dashed line denotes the numerical solution of KFVS scheme, and the gray dashed line is used to represent the numerical solution of central NT scheme. In error plots KFVS scheme is represented by black dotted line and grey dotted line denotes the central NT scheme. The value of gravitational constant is taken as g = 1 in all test problems.

Problem 1: Convergence study of KFVS scheme.

This problem is taken from [24] to study the convergence of proposed numerical scheme for a smooth solution. The computational domain is chosen as [−1, 1] and the bottom topography function in the form of a smooth bump is defined as (61) The initial data are given as (62) The computational domain is divided into 200 grid points on which numerical solutions are calculated. The numerical solutions at t = 0.1 are plotted in Fig 1. The L1 and L errors are computed for water height and temperature with respect to reference solution, which are displayed in the Tables 1 and 2, respectively. The L1-errors and L-errors in both schemes are functions of grid points which are also ploted in Figs 2 and 3. It can be observed that KFVS method produces less errors in the solutions and has faster convergence rate when the number of grid points are increased.

thumbnail
Fig 1. Problem 1: A comparison of KFVS and NT central scheme results at time t = 0.1.

https://doi.org/10.1371/journal.pone.0197500.g001

thumbnail
Fig 2. Problem 1: A comparison of L1 errors in the height and temperature of both schemes at different grid points.

https://doi.org/10.1371/journal.pone.0197500.g002

thumbnail
Fig 3. Problem 1: A comparison of L errors in height and temperature of both schemes at different grid points.

https://doi.org/10.1371/journal.pone.0197500.g003

In the literature, the accuracy and efficiency of the KFVS scheme has been analyzed and verified for several nonlinear hyperbolic systems, see for example [2123, 31, 38, 39, 41, 46].

Problem 2: Dam break over the flat bottom.

This dam break problem over the flat bottom was considered in [7]. Here, we have solved it for the Ripa system with flat bottom topography (B ≡ 0). The computational domain is [−1, 1] and the initial data are given as (63) The computational domain is divided into 200 grid points. In this problem, we have computed w = h + B, u, θ and p using the KFVS scheme and compared its results with those of central NT scheme. All the results are plotted in Fig 4 at time t = 0.2. It can be seen that results of both schemes are in good agreement with each other. Both KFVS and central schemes give comparable results. However, KFVS scheme gives better resolution of sharp fronts in the solutions.

thumbnail
Fig 4. Problem 2: Dam break over the flat bottom.

A comparison of KFVS scheme with NT central scheme at time t = 0.2.

https://doi.org/10.1371/journal.pone.0197500.g004

Problem 3: 1D dam break over a flat waterbed.

Our last one-dimensional flat bottom experiment is a dam break over a flat waterbed. The initial conditions for this problem are defined as [6] (64) The numerical solution is calculated at t = 0.2 in the computational domain [−1, 1] using the KFVS scheme and its results are compared with those obtained from the central NT scheme. The computational domain is divided into 200 grid points. We noticed that when waterbed is flat, the source term appearing in the Ripa system vanishes and the system can be easily solved by using any finite volume scheme. Fig 5 shows the plots of h, u, θ, p, hu and . A good agreement can be observed between the results of KFVS and central NT schemes.

thumbnail
Fig 5. Problem 3: Dam break over the flat waterbed.

A comparison of KFVS scheme with NT central scheme at time t = 0.2.

https://doi.org/10.1371/journal.pone.0197500.g005

Problem 4: Dam break over the non-flat bottom.

This problem is also taken from [7] which we have solved for the Ripa system with non-flat bottom using the following initial data (65) The variable bottom topography function is defined as (66) This problem is solved to verify the performance of KFVS and central schemes for non-homogeneous shallow water equations. The computational domain [−1, 1] is discretized into 200 grid points. The results of numerical schemes at t = 0.3 are plotted in Fig 6. Initially the area near x = 0.3 is almost dry, as h = wB(x), thus (67) Both the schemes are found well-balanced and preserve the positivity of w, h and θ.

thumbnail
Fig 6. Problem 4: Dam break over the nonflat bottom.

A comparison of KFVS scheme with NT central scheme at time t = 0.3.

https://doi.org/10.1371/journal.pone.0197500.g006

Problem 5: Small perturbation of a steady state solution.

This one-dimensional experiment describes a small perturbation of a steady-state solution [7]. The initial conditions are given as (68)

The non-flat bottom topography is defined as (69) In this problem, the numerical solutions are obtained at t = 0.4 in the computational domain [−2, 2]. The computational domain is divided into 200 grid points. The numerical results are presented in Fig 7. It can be observed that with an increase in time the perturbation splits into two pulses moving in opposite directions. The first right moving pulse passes through the first hump of the bottom and keeps moving over the temperature jump and then passes through the second hump of the bottom. The results obtained by KFVS scheme are better than the central NT scheme.

thumbnail
Fig 7. Problem 5: Small Perturbation of a steady-state solution.

A comparison of KFVS scheme with NT central scheme at time t = 0.4.

https://doi.org/10.1371/journal.pone.0197500.g007

Problem 6: 1D dam break problem over a rectangular bump.

Our last one-dimensional problem of variable bottom topography is a discontinuous waterbed problem which is taken from [6] for the case of Ripa system. The waterbed for the rectangular bump is defined as (70) and the initial data are given by (71) Numerical solutions are obtained in the computational domain [0, 600] at time t = 12 using the well-balanced KFVS and central NT schemes. The computational domain is divided into 200 grid points. The plots for w = h + B, h, θ, p, u, B, hu and are given in Fig 8. Both the schemes have the ability to capture sharp variation in the solution profile. However, the KFVS scheme captures the peaks more efficiently.

thumbnail
Fig 8. Problem 6: 1D dam break problem over the rectangular bump.

A comparison of KFVS scheme with NT central scheme at time t = 12.

https://doi.org/10.1371/journal.pone.0197500.g008

Two-dimensional case studies

In this section, four test problems are considered for the two-dimensional single-phase shallow flows on flat or non-flat bottom topographies, i.e. B(x, y) = 0 or B(x, y) ≠ 0. Here, we have discretized the computational domain [−1, 1] × [−1, 1] into 100 × 100 mesh cells for the numerical solutions. Moreover, the 2D results obtained by the KFVS scheme are compared with those obtained from the central NT scheme and their comparison is expressed in the 1D form. In the 1D plots, the results of KFVS scheme are represented by black solid lines and those of central NT scheme are denoted by dashed grey lines.

Problem 7: Rectangular dam break problem.

This two-dimensional classical rectangular dam break problem over the flat bottom was considered in [6]. The two constant states of initial conditions are given as (72) The numerical solutions are computed in the computational domain [−1, 1] at the final simulation time t = 0.2 using the well balanced KFVS and central NT schemes. The 3D plots (left) of KFVS scheme and their comparison with the central scheme in the form of 1D plots (right) are presented in Fig 9. The solutions obtained show two shock and two contact waves moving away from the vertical axis and two rarefaction waves propagating towards vertical axis. A good agreement can be seen between the results of both schemes. However, KFVS is more efficient and accurate.

thumbnail
Fig 9. Problem 7: Rectangular dam break problem.

3D views of solution components(left) and their 1D comparison(right) computed by KFVS and central NT schemes at time t = 0.2 using uniform mesh Δx = Δy = 2/100.

https://doi.org/10.1371/journal.pone.0197500.g009

Problem 8: Radial dam break over the flat bottom.

This circular dam break over a flat bottom was considered in [7] for the shallow flow model. We have solved this problem for the Ripa system using the following initial data (73) In this experiment, we compare the results of KFVS and central schemes for flat bottom topography. The 3D plots of KFVS method and the 1D plots for comparison of the two schemes are shown in Fig 10 at t = 0.15 using the uniform mesh Δx = Δy = 0.02. When the dam breaks, a shock wave is generated which moves radially outwards, a rarefaction wave travels radially inward and a contact wave moves between the shock and rarefaction waves. One can easily see that a good agreement is found between both schemes. It is observed that some small oscillations are generated in the contact area, which can be seen in the contour plots of KFVS scheme presented in Fig 11.

thumbnail
Fig 10. Problem 8: Radial dam break problem over the flat bottom.

3D views of solution components(left) and their 1D comparison(right) computed by KFVS with central NT schemes at time t = 0.15 using uniform mesh Δx = Δy = 2/100.

https://doi.org/10.1371/journal.pone.0197500.g010

thumbnail
Fig 11. Problem 8: Radial dam break problem over the flat bottom.

Contour plots of solution components computed by KFVS scheme at time t = 0.15 using uniform mesh Δx = Δy = 2/100.

https://doi.org/10.1371/journal.pone.0197500.g011

Problem 9: Perturbation of steady states on an irregular waterbed.

This 2D steady state problem was considered for Ripa system in [6, 7]. It contains a bottom topography function having two Gaussian shaped humps. The initial conditions, featuring the steady states of a lake at rest are given below (74) and the variable waterbed is defined as follows (75) The steady state numerical solution is perturbed by introducing the bottom topography and water height. The numerical results of KFVS and central NT schemes are computed at t = 0.12. The 3D plots of KFVS scheme and the 1D plots for the comparison of schemes are given in Fig 12. One can easily see from the plots that the proposed KFVS scheme preserves the steady states of w, θ and radial pressure oscillations. Moreover, the contours of KFVS scheme for this problem are presented in Fig 13.

thumbnail
Fig 12. Problem 9: Perturbation of steady states on an irregular waterbed.

3D views of solution components(left) and their 1D comparison(right) computed by KFVS and central NT schemes at time t = 0.12 using uniform mesh Δx = Δy = 2/100.

https://doi.org/10.1371/journal.pone.0197500.g012

thumbnail
Fig 13. Problem 9: Perturbation of steady states on an irregular waterbed.

Contour plots of solution components computed by KFVS scheme at time t = 0.12 using uniform mesh Δx = Δy = 2/100.

https://doi.org/10.1371/journal.pone.0197500.g013

Problem 10: Small perturbation of steady states solution.

In this case study, we use the same bottom topography as defined in the Problem 10, but initial data are perturbed near the center of the computational domain [−1, 1] inside the two small annulus [0.01, 0.09] and [0.09, 0.25] for two humps. The initial data for this problem are given as (76) The numerical solutions are obtained at t = 0.15 and perturbation propagation can be seen in the plots given in Figs 14 and 15. The 3D plots of KFVS scheme and the 1D plots for comparisons of both schemes are given in Fig 14. The solution obtained from central scheme develops radial shaped small oscillations in the pressure solution, which interact with the perturbation. Due to the interaction of circular shape pressure oscillations and perturbation, parasitic waves appear in the contour of pressure that can be seen easily in Fig 15. Moreover, KFVS scheme shows its capability to capture perturbation more accurately.

thumbnail
Fig 14. Problem 10: Small perturbation of a steady states solution.

3D views of solution components(left) and their 1D comparison(right) computed by KFVS and central NT schemes at time t = 0.15 using uniform mesh Δx = Δy = 2/100.

https://doi.org/10.1371/journal.pone.0197500.g014

thumbnail
Fig 15. Problem 10: Small perturbation of a steady states solution.

Contour plots of solution components computed by KFVS scheme at time t = 0.15 using uniform mesh Δx = Δy = 2/100.

https://doi.org/10.1371/journal.pone.0197500.g015

Conclusion

In this paper, we have developed a high resolution KFVS scheme to approximate the one and two-dimensional Ripa systems. The KFVS method was applied for the first time to solve the Ripa systems for both flat and non-flat bottom topographies. The proposed scheme has the ability to capture sharp discontinuities, efficiently handles dry bed regions, and is extendable for multi-phase flow problems. The scheme preserves the non-negativity of the flow height and temperature. To satisfy the well-balanced nature of the scheme for the Ripa system, we have discretized the source term analogously to the discretization of flux divergence terms. The scheme was validated by taking into account some classical test problems already available in the recent literature. The results of KFVS scheme were compared with those obtained from the staggered central NT scheme and the reference solutions. The numerical results of both schemes were found in good agreement with each other and those available in the literature. However, it was observed that KFVS gives better resolution of sharp discontinuities as compared to the central scheme. The scheme has preserved the well-balanced property and non-negativity in the problems of steady sate perturbed variable waterbed. This confirms the efficiency of the KFVS method to accurately solve the one and two dimensional Ripa systems. The considered numerical simulations include the dam-break problems, small perturbation problems of variable bottom topography, and varying temperature gradients.

References

  1. 1. Kurganov A, Levy D. Central-upwind schemes for the Saint-Venant system. ESAIM: Math. Model. and Num. Anal. 2002; 36: 397–425.
  2. 2. Kurganov A, Petrova G. A second-order well-balanced positivity preserving central-upwind scheme for the Saint-Venant system. Commun. in Math. Sci. 2007; 5: 133–160.
  3. 3. Perthame B, Simeoni C. A kinetic scheme for the Saint-Venant system with a source term, Calcolo. 2001; 38: 201–231.
  4. 4. Toro EF. Shock-capturing methods for free-surface shallow flows. (2001).
  5. 5. Ripa P. On improving a one-layer ocean model with thermodynamics. J. Fluid Mech. 1995; 303: 169–201.
  6. 6. Touma R, Klingenberg C. Well-balanced central finite volume methods for the Ripa system, Appl. Num. Math. 2015; 97: 42–68.
  7. 7. Chertock A, Kurganov A, Liu Y. Central-upwind schemes for the system of shallow water equations with horizontal temperature gradients. Num. Math. 2014; 127: 595–639.
  8. 8. Dellar PJ. Common Hamiltonian structure of the shallow water equations with horizontal temperature gradients and magnetic fields. Phys. of Fluids. 2003; 15: 292–297.
  9. 9. Hubbard ME, Garcia-Navarro P. Flux difference splitting and the balancing of source terms and flux gradients. J. Comput. Phys. 2000; 165: 89–125.
  10. 10. Jiang G-S, Tadmor E. Nonoscillatory central schemes for multidimensional hyperbolic conservation laws. SIAM. J. Sci. Comput. 1998; 19: 1892–1917.
  11. 11. Jin S. A steady-state capturing method for hyperbolic systems with geometrical source terms. ESAIM: Math. Model. and Num. Anal. 2001; 35: 631–645.
  12. 12. Nessyahu H, Tadmor E. Non-oscillatory central differencing for hyperbolic conservation laws. J. comput. phys. 1990; 87: 408–463.
  13. 13. de Saint Venant, AJC. Théorie du mouvement non-permanent des eaux, avec application aux crues des rivières et è l’introduction des marées dans leur lit. C. R. Acad. Sci. Paris. 1871; 73: 147–154.
  14. 14. Dutykh D, Clamond D. Modified shallow water equations for significantly varying seabeds. Appl. Math. Model. 2016; 40:9767–9787.
  15. 15. Savage SB, Hutter K. The motion of a finite mass of granular material down a rough inclined plan. J. fluid mech. 1989; 199: 177–215.
  16. 16. Savage SB, Hutter K. The dynamics of avalanches of granular materials from initiation to runout. Part I: Anal. Acta Mech. 1991; 86: 201–223.
  17. 17. Caleffi V, Valiani A, Bernini A. Fourth-order balanced source term treatment in central WENO schemes for shallow water equations. J. Comput. Phys. 2016; 218: 228–245.
  18. 18. Chang S-C. The method of space time conservation element and solution element-A new approach for solving the Navier Stokes and Euler equations. J. Comput. Phys. 1995; 119: 295–234.
  19. 19. Greenberg JM, Leroux AY. A well-balanced scheme for the numerical processing of source terms in hyperbolic equations. SIAM J. Numer. Anal. 1996; 33: 1–16.
  20. 20. Kupferman R, Tadmor E. A fast, high resolution, second-order central scheme for incompressible flows. Proceed. of the Nation. Acad. Sci. 1997; 94: 4848–4852.
  21. 21. Tang HZ, Wu HM. Kinetic flux vector splitting for radiation hydrodynamical equations Comp. & fluids. 2000; 29: 917–933.
  22. 22. Tang HZ, Xu K. A high-order gas-kinetic method for multidimensional ideal magnetohydrodynamics. J. Comput. Phys. 2000; 165: 69–88.
  23. 23. Xu K. Gas-kinetic theory-based flux splitting method for ideal magnetohydrodynamics. J. Comput. Phys. 1999; 153: 334–352.
  24. 24. Desveaux V, Zenk M, Berthon C, Klingenberg C. Well-balanced schemes to capture non-explicit steady states, Ripa. Model. Math. Comput. 2016; 85: 1571–1602.
  25. 25. Javeed S, Qamar S, Ashraf W, Warnecke G, Seidel-Morgenstern A. Analysis and numerical investigation of two dynamic models for liquid chromatography. Chem. Eng. Sci. 2013; 90: 17–31.
  26. 26. Nisar UA, Ashraf W, Qamar S. A splitting scheme based on the space-time CE/SE method for solving multi-dimensional hydrodynamical models of semiconductor devices. Comput. Phys. Commun. 2016; 205: 69–86.
  27. 27. Qamar S, Ashraf W. Application of Space-Time CE/SE Method for Solving Gas-Solid Reaction and Chemotaxis Models. Indust. & Chem. Eng. Res. 2012; 51: 9173–9185.
  28. 28. Qamar S, Ashraf W. Application of central schemes for solving radiation hydrodynamical models. Comput. Phys. Commun. 2013; 184: 1349–1363.
  29. 29. Qamar S, Zia S, Ashraf W. The space-time CESE method for solving single and two-phase shallow flow models. Comp. and Fluids. 2014; 96: 136–151.
  30. 30. Qamar S, Ashraf W. A space-time CESE method for solving hyperbolic heat conduction model. Int. J. Comput. Meth. 2014; 11: 1350048.
  31. 31. Xu K. A well-balanced gas-kinetic scheme for the shallow-water equations with source terms. J. Comput. Phys. 2002; 178: 533–562.
  32. 32. Saurel R, Abgrall R. A multiphase Godunov method for compressible multifluid and multiphase flows. J. Comput. Phys. 1999; 150: 425–467.
  33. 33. Zhou JG, Causon DM, Mingham CG, Ingram DM. The surface gradient method for the treatment of source terms in the shallow-water equations. J. Comput. Phys. 2001; 168: 1–25.
  34. 34. Audusse E, Bristeau MO, Perthame B. Kinetic schemes for Saint-Venant equations with source terms on unstructured grids, PhD diss., INRIA. 1998.
  35. 35. Godlewski E, Raviart P-A. Numerical approximation of hyperbolic systems of conservation laws. Appl. Math. Sci. Springer-Verlag, New York. 1996.
  36. 36. Cercignani C. The Boltzmann equation and its applications. Springer, New York 1988.
  37. 37. Xu K, Martinelli L, Jameson A. Gas-kinetic finite volume methods, flux-vector splitting, and artificial diffusion. J. Comput. Phys. 1995; 120: 48–65.
  38. 38. Xu K. Gas-kinetic schemes for unsteady compressible flow simulations. Lecture series-van Kareman Institute for fluid dynamics. 1998; 3: C1–C202.
  39. 39. Qamar S, Ahmed M. A high order kinetic flux-vector splitting method for the reduced five-equation model of compressible two-fluid flows. J. Comput. Phys. 2009; 228: 9059–9078.
  40. 40. Qamar S, Mudasser S. A Kinetic flux-vector splitting method for the shallow water magnetohydrodynamics. J. Comput. Phys. 2010; 181: 1109–1122.
  41. 41. Tang H, Tang T, Xu K. A gas-kinetic scheme for shallow-water equations with source terms. Zeitschrift für angewandte Mathematik und Physik ZAMP. 2004; 55: 365–382.
  42. 42. Tao T, Xu K. Gas-kinetic schemes for the compressible Euler equations: positivity-preserving analysis. Zeitschrift für angewandte Mathematik und Physik ZAMP. 1999; 50: 258–281.
  43. 43. Mandal JC, Deshpande SM. Kinetic flux vector splitting for Euler equations. Comp. & fluids. 1994; 23: 447–478.
  44. 44. Leer BV. Flux-vector splitting for the Euler equations, Eighth international conference on numerical methods in fluid dynamics. Springer Berlin/Heidelberg. 1982; 507–512.
  45. 45. Weatherill NP, Mathur JS, Marchant MJ. An upwind kinetic flux vector splitting method on general mesh topologies. Int. J. Num. Meth. in Eng. 1994; 37: 623–643.
  46. 46. Zia S, Qamar S. A kinetic flux-vector splitting method for single-phase and two-phase shallow flows. Comp. & Math. with App. 2014; 67: 1271–1288.
  47. 47. Shu C-W. Essentially Non-Oscillatory and Weighted Essentially Non-Oscillatory Schemes for Hyperbolic Conservation Laws. NASA/CR-97-206253 ICASE Report No.97-65: 1998.
  48. 48. Singh H. Solution of fractional Lienard equation using Chebyshev operational matrix method. Nonlin. Sci. Lett. A. 2017; 8: 397–404.
  49. 49. Jiang H-Y, Jiang J-F. Construction of a variational formulation for heat transfer. Therm. Sci. 2016; 20: 889–892.
  50. 50. Guner O. Shock wave solution of nonlinear partial differential equations. Nonlin. Sci. Lett. A. 2017; 8: 405–409.