Abstract

A modified predictor-corrector scheme combining with the depth gradient method (DGM) and the weighted average flux (WAF) method has been presented to solve the one-dimensional shallow water equations with source terms. Approximate solutions in the predictor step are obtained by the DGM with piecewise-linear reconstructions in each cell volume. The source terms can then be calculated directly by these predicted values at the corresponding half-time step. In the corrector step, the TVD version of the WAF method is applied to calculate the numerical fluxes at the same half-time step for each cell face. The accuracy of numerical solutions is shown by applying the method to solve various test cases in both steady and unsteady problems with and without source terms. It shows that the numerical results are in good agreement with the existing analytical solutions as well as experimental data in some test cases.

1. Introduction

The shallow water equations have a wide variety of applications in ocean and hydraulic engineering. Some examples are tides in oceans and moving waves in shallow beaches, as well as flood waves in rivers. Due to the nonlinear behavior of the equations, analytical method can only be successful in very special cases of flow. Numerical methods must be used to solve approximately in case of realistic problems. A number of finite volume methods based on Godunov type have been developed to solve the shallow water equations in various forms. Difficulties in the computation arise when some source terms are introduced in the model equations. The source terms are in the form of bed and friction slopes. A simple and efficient method for solving the equations with source terms is a split-step method [1, 2] in which the nonhomogeneous equations are splitt into a homogeneous equation and a set of ordinary differential equations dealing with only the source and time derivative terms; see [3]. By this method, the scheme is not easy to be improved to achieve high-order accuracy in time discretization because the source terms cannot be computed directly during the semitime integration step. Recently, the operator split-step method related with the Cauchy-Kowalewski method is applied to solve the thermal-peaking wave in open-channel flows, see [4], where the fluxes at interfaces are calculated by the weighted average method.

In this study, the predictor-corrector method for time integration is proposed. We present a modified concept by applying both the depth gradient method (DGM) in [5] and the weighted average flux method (WAF) method in [1] to solve numerically the one-dimensional shallow water equations. The approximate solutions in the predictor step which corresponds to the half-time step are obtained by the DGM; see Figure 1. The approximations are performed by the piecewise-linear reconstruction to calculate the conservative variables at cell interfaces in each cell volume. Then, these predicted solutions are employed to calculate the values of source terms at the corresponding half-time step. This is a different point from the usual operator splitting of the WAF method. The problems are then become how we can calculate the numerical fluxes at the corresponding half-time step for each cell face. Various approaches can be applied to resolve this problem. One famous method is the Roe averaging method, see [6], but it is usually suffer from some artificial oscillations near the discontinuity region. The slope limiter concept is needed to remove the oscillations. In this work, the WAF method with the total variation diminishing (TVD) approach [7] is applied to obtain high-order solutions and to remove some oscillations in case of very high gradient problem. This is a modified approach. Consequently, the shallow water equations with source terms can be solved numerically in this work.

The shallow water equations are shown in Section 2. The predictor-corrector method with DGM and WAF are provided in Section 3. Accuracy of numerical results for both steady and unsteady flows with and without source terms is demonstrated in Section 4. Conclusions are made in Section 5.

2. The Shallow Water Equations

For a rectangular open-channel flow, the one-dimensional unsteady flow under the hydrostatic pressure and small channel slope assumptions can be described in conservative form asπœ•π‘ˆ+πœ•π‘‘πœ•πΉπœ•π‘₯=𝑆,(2.1) where π‘₯ and 𝑑 represent longitudinal distance and time, respectively, and ξƒ¬β„Žξƒ­βŽ‘βŽ’βŽ’βŽ£π‘ˆ=π‘’β„Ž,𝐹=β„Žπ‘’β„Žπ‘’2+12π‘”β„Ž2⎀βŽ₯βŽ₯⎦,(2.2) where β„Ž is the fluid depth, 𝑒 is the horizontal velocity, and 𝑔 is the gravitation acceleration.

The source term 𝑆 in (2.1) represents bed slope and friction slope at the bottom of the channel0𝑆𝑆=π‘”β„Ž0βˆ’π‘†π‘“ξ€Έξƒ­,(2.3) where 𝑆0 is the slope of the bottom elevation 𝑧𝑏, and 𝑆𝑓 is the slope of the energy grade line, 𝑆𝑓=𝑛2𝑀𝑒2β„Ž4/3,(2.4) where 𝑛𝑀 is the Manning’s roughness coefficient.

3. Predictor-Corrector WAF with DGM

In this section, we present an accurate and efficient method that combines two important concepts which are the weighted average flux method in [1], and the depth gradient method modified from [5], with the predictor-corrector TVD scheme to solve numerically the shallow water equation (2.1) in various test problems.

The computational domain is discretized as π‘₯𝑖=𝑖Δπ‘₯, and 𝑑𝑛=𝑛Δ𝑑, 𝑖=1,…𝑁, 𝑁 is the number of cells, and 𝑛 is the number of time steps. In Figure 1, the cell volume and time step are given by Ξ”π‘₯=π‘₯𝑖+1/2βˆ’π‘₯π‘–βˆ’1/2,Δ𝑑=𝑑𝑛+1βˆ’π‘‘π‘›.(3.1) Left and right interfaces for each cell are π‘₯π‘–βˆ’(1/2) and π‘₯𝑖+(1/2), respectively.

The integral averages of π‘ˆ(π‘₯,𝑑) at time 𝑑=𝑑𝑛 and 𝑑=𝑑𝑛+1 over the cell volume are given byπ‘ˆπ‘›π‘–=1ξ€œΞ”π‘₯π‘₯𝑖+1/2π‘₯π‘–βˆ’1/2π‘ˆ(π‘₯,𝑑𝑛)𝑑π‘₯,π‘ˆπ‘–π‘›+1=1ξ€œΞ”π‘₯π‘₯𝑖+1/2π‘₯π‘–βˆ’1/2π‘ˆξ€·π‘₯,𝑑𝑛+1𝑑π‘₯.(3.2) Time integral averaged flux at interfaces are given byπΉπ‘–βˆ’1/2=1ξ€œΞ”π‘‘π‘‘π‘›+1π‘‘π‘›πΉξ€·π‘ˆξ€·π‘₯π‘–βˆ’1/2,𝑑𝑑𝑑,𝐹𝑖+1/2=1ξ€œΞ”π‘‘π‘‘π‘›+1π‘‘π‘›πΉξ€·π‘ˆξ€·π‘₯𝑖+1/2,𝑑𝑑𝑑.(3.3) The splitting scheme cooperating with the source term can be expressed byπ‘ˆπ‘–π‘›+1=π‘ˆπ‘›π‘–βˆ’Ξ”π‘‘ξ€ΊπΉΞ”π‘₯𝑛𝑖+1/2βˆ’πΉπ‘›π‘–βˆ’1/2ξ€»ξ‚€π‘ˆ+Δ𝑑𝑆𝑖(𝑠).(3.4) The source term is approximated at π‘ˆπ‘–(𝑠). There are two obvious choices which are π‘ˆπ‘–(𝑠)=π‘ˆπ‘›π‘– and π‘ˆπ‘–(𝑠)=π‘ˆπ‘–π‘›+1, or a linear combination of these two values, π‘ˆπ‘–(𝑠)=(1βˆ’π›½)π‘ˆπ‘›π‘–+π›½π‘ˆπ‘–π‘›+1,(3.5) where 𝛽 is a weighted constants in which 0≀𝛽≀1.

The scheme (3.4) is just the first-order method in time. We can improve the scheme by applying the predictor-corrector method. There are two time levels with Δ𝑑/2. The computations can be separated into two time steps asπ‘ˆβˆ—π‘–=π‘ˆπ‘›π‘–βˆ’Ξ”π‘‘ξ€ΊπΉ2Ξ”π‘₯DGM𝑖+1/2βˆ’πΉDGMπ‘–βˆ’1/2ξ€»ξ€·π‘ˆ+Δ𝑑𝑆𝑛𝑖,π‘ˆ(3.6)𝑖𝑛+1=π‘ˆβˆ—π‘–βˆ’Ξ”π‘‘ξ€ΊπΉ2Ξ”π‘₯TVD𝑖+1/2βˆ’πΉTVDπ‘–βˆ’1/2ξ€»ξ€·π‘ˆ+Ξ”π‘‘π‘†βˆ—π‘–ξ€Έ,(3.7) where 𝐹DGM𝑖±(1/2) and 𝐹TVD𝑖±(1/2) are the numerical fluxes at interfaces obtained by the depth gradient method and the TVD version of WAF method, respectively.

Solving (3.6) provides the values of the conservative variables π‘ˆβˆ—π‘– at 𝑑=𝑑𝑛+Δ𝑑/2. The values of fluxes at cell interfaces on the RHS of (3.6) are approximated by the method of DGM described in the next section. Then, we use these predicted solutions π‘ˆβˆ—π‘– to calculate the source terms on the RHS of (3.7). The values of fluxes at cell interfaces on the RHS of (3.7) are approximated by the WAF method which is in the process of the half-time step; see Figure 1. Finally, the corrected solutions at 𝑑=𝑑𝑛+Δ𝑑 can be obtained. So, the time integration process is performed repeatly until the final time reached. All of computational details of the present method are summarized in the next sections.

3.1. Predictor Step with DGM

We apply the DGM for solving π‘ˆβˆ—π‘– in (3.6). This scheme is an accurate reconstruction of conservative variables at cell interfaces. Then, numerical fluxes at cell faces can be calculated directly using the values of predicted-conservative variables. The values of conservative variables within a cell are calculated using a piecewise-linear reconstruction, that is, for any function πœ™ within a cell 𝑖, the approximation is given byπœ™=πœ™π‘–+ξ€·π‘₯βˆ’π‘₯π‘–ξ€Έπ›Ώξ€·πœ™π‘–ξ€Έ,(3.8) where 𝛿 is the gradient of πœ™ given by π›Ώπœ™π‘–ξ‚΅πœ™=𝐺𝑖+1βˆ’πœ™π‘–π‘₯𝑖+1βˆ’π‘₯𝑖,πœ™π‘–βˆ’πœ™π‘–βˆ’1π‘₯π‘–βˆ’π‘₯π‘–βˆ’1ξ‚Ά,(3.9) where 𝐺 is a slope limiter used to avoid spurious oscillations at the cell interfaces [5]. In our work, we apply 𝐺 as the minmod limiter which is in the form of𝐺(π‘Ž,𝑏)=max(0,min(π‘Ž,𝑏)).(3.10) Thus, the values of πœ™ on the left and right of the considering cell interface (π‘–βˆ’1/2) are πœ™πΏπ‘–βˆ’1/2=πœ™π‘–βˆ’1+12Ξ”π‘₯π‘–βˆ’1π›Ώπœ™π‘–βˆ’1,πœ™π‘…π‘–βˆ’1/2=πœ™π‘–βˆ’12Ξ”π‘₯π‘–π›Ώπœ™π‘–.(3.11) The values of πœ™πΏπ‘–+1/2 and πœ™π‘…π‘–+1/2 can be calculated in the same way.

We apply the conservative variables β„Ž and 𝑒 as the function πœ™ in (3.8). The conservative variables can then be approximated at the cell interfaces for each cell. Using (2.2), we can calculate π‘ˆ and 𝐹 at the cell faces. After substituting these values into (3.6), we can obtain π‘ˆβˆ—π‘– such that the source term is calculated directly by the values of β„Ž and 𝑒 in each cell. This completes the calculations of the predictor step by the depth gradient method.

3.2. Corrector Step with WAF

In the corrector step, we need to know the approximate values of fluxes at interfaces at time step 𝑑𝑛+Δ𝑑/2. Then we can march the numerical solutions in time to the next time step 𝑑𝑛+1. In this work, we apply the WAF method to obtain the numerical fluxes at time step 𝑑𝑛+Δ𝑑/2. This is a second-order accurate method in space; see [1]. Main concepts of this method are summarized in this subsection.

In each cell volume, the Riemann problem must be solved locally in order to obtain numerical fluxes at interfaces. We approximate these fluxes by the HLL (Harten, Lax, and van Leer) approach; see [8]. Note that another related approach is HLLC approach which needs to divide the region at interface into four regions. The HLL numerical flux can be written as𝐹HLL𝑖+1/2=⎧βŽͺβŽͺ⎨βŽͺβŽͺ⎩𝐹𝐿if𝑆𝐿𝑆β‰₯0,π‘…πΉπΏβˆ’π‘†πΏπΉπ‘…+π‘†π‘…π‘†πΏξ€·π‘ˆπ‘…βˆ’π‘ˆπΏξ€Έπ‘†π‘…βˆ’π‘†πΏif𝑆𝐿≀0≀𝑆𝑅,𝐹𝑅if𝑆𝑅≀0.(3.12) Here, 𝑆𝐿 and 𝑆𝑅 are the signal velocities in the solutions of the Riemann problem with known data π‘ˆπΏβ‰‘π‘ˆπ‘›π‘– and π‘ˆπ‘…β‰‘π‘ˆπ‘›π‘–+1, and the corresponding fluxes 𝐹𝐿≑𝐹𝑛(π‘ˆπΏ) and 𝐹𝑅≑𝐹𝑛(π‘ˆπ‘…). The signal velocities must be estimated separately for two cases of wet and dry beds. More detail derivations can be found in [9]. Summarized details of the approximations are given in the next subsections.

3.2.1. Wet-Bed Approximation

Assuming that both the left and right waves are rarefaction waves, the wave speed estimates 𝑆𝐿 and 𝑆𝑅 are𝑆𝐿=π‘’πΏβˆ’π‘ŽπΏπ‘žπΏ,𝑆𝑅=𝑒𝑅+π‘Žπ‘…π‘žπ‘…,(3.13) where π‘žπΎ with 𝐾 is 𝐿 or 𝑅 given by π‘žπΎ=⎧βŽͺ⎨βŽͺβŽ©ξ„Άξ„΅ξ„΅βŽ·12ξƒ¬ξ€·β„Žβˆ—+β„ŽπΎξ€Έβ„Žβˆ—β„Ž2𝐾ifβ„Žβˆ—>β„ŽπΎ,1ifβ„Žβˆ—β‰€β„ŽπΎ,(3.14) where β„Žβˆ— is an approximation of the exact solution for β„Ž in the interface area or usually called as star region. The approximations are given byβ„Žβˆ—=1𝑔12ξ€·π‘ŽπΏ+π‘Žπ‘…ξ€Έ+14ξ€·π‘’πΏβˆ’π‘’π‘…ξ€Έξ‚„2,π‘’βˆ—=12𝑒𝐿+𝑒𝑅+π‘ŽπΏβˆ’π‘Žπ‘…,(3.15) where π‘ŽπΎ=βˆšπ‘”β„ŽπΎ for 𝐾 is 𝐿 or 𝑅.

3.2.2. Dry-Bed Approximation

The computations of wave speed to the exact dry front are given by𝑆𝐿=ξƒ―π‘’π‘…βˆ’2π‘Žπ‘…ifβ„ŽπΏ=0,usualestimateifβ„ŽπΏπ‘†>0,𝑅=𝑒𝐿+2π‘ŽπΏifβ„Žπ‘…=0,usualestimateifβ„Žπ‘…>0.(3.16) Usual estimate means that the computations of wave speed are obtained from (3.13).

3.2.3. TVD Version of WAF Method

The basic idea of the weighted average flux method is described in this subsection. This method provides numerical fluxes at interfaces for the next half-time step. The method is performed by applying cell integration along the interface of the half-time step solution,𝐹WAF𝑖+(1/2)=1ξ€œΞ”π‘₯Ξ”π‘₯/2βˆ’Ξ”π‘₯/2πΉξ‚€π‘ˆπ‘–+(1/2)ξ‚€π‘₯,Δ𝑑2𝑑π‘₯.(3.17) In the form of wave structure, the integral (3.17) can be written as the summation𝐹WAF𝑖+(1/2)=𝑁𝐢+1ξ“π‘˜=1π‘€π‘˜πΉ(π‘˜)𝑖+(1/2),(3.18) where the weights π‘€π‘˜ areπ‘€π‘˜=12ξ€·π‘π‘˜βˆ’π‘π‘˜βˆ’1ξ€Έwith𝑐0=βˆ’1,𝑐𝑁𝐢+1𝑐=1,(3.19)π‘˜=Ξ”π‘‘π‘†π‘˜Ξ”π‘₯(3.20) is the Courant number of wave π‘˜.

For this method, π‘†π‘˜ is the speed of wave π‘˜ and 𝑁𝐢 is the number of conservation laws, or the number of waves in the solution of the Riemann problem.

Substituting the weights (3.19) into (3.18), an alternative expression can be obtained,𝐹WAF𝑖+1/2=12𝐹𝑖+𝐹𝑖+1ξ€Έβˆ’12π‘πΆξ“π‘˜=1π‘π‘˜Ξ”πΉ(π‘˜)𝑖+1/2,(3.21) with Δ𝐹(π‘˜)𝑖+1/2=𝐹(π‘˜+1)𝑖+1/2βˆ’πΉ(π‘˜)𝑖+1/2(3.22) representing the flux jump across the wave π‘˜.

For a one-dimensional flow, we have 𝑁𝐢=2. So, we need to know 𝐹(1)𝑖+(1/2), 𝐹(2)𝑖+(1/2), and 𝐹(3)𝑖+(1/2) in order to compute weighted average flux in (3.21). Left and right areas can be represented by π‘˜=1 and π‘˜=3, respectively. We have already known the values of conservative variables in these areas from the initial conditions, except that in the interface area which corresponds to π‘˜=2. In this work, the computation by (3.12) is applied to calculate the numerical flux at the interface region.

Following [1], a high-resolution method can be obtained by enforcing a total variation diminishing (TVD) constraint to the weighted numerical flux at the interface. The resulting TVD version of the WAF method can be expressed by𝐹TVD𝑖+1/2=12𝐹𝑖+𝐹𝑖+1ξ€Έβˆ’12π‘ξ“π‘˜=1𝑐sgnπ‘˜ξ€Έπœ™(π‘˜)𝑖+1/2Δ𝐹(π‘˜)𝑖+1/2,(3.23) where πœ™(π‘˜)𝑖+1/2 is a WAF limiter function. There are several choices of this limiter function. In this work, we apply the minmod limiter functionπœ™(π‘˜)𝑖+1/2=πœ™π‘–+1/2ξ€·π‘Ÿ(π‘˜),||π‘π‘˜||ξ€Έ=⎧βŽͺβŽͺ⎨βŽͺβŽͺ⎩1,π‘Ÿ(π‘˜)ξ€·||𝑐≀0,1βˆ’1βˆ’π‘˜||ξ€Έπ‘Ÿ(π‘˜),0β‰€π‘Ÿ(π‘˜)||𝑐≀1,π‘˜||,π‘Ÿ(π‘˜)β‰₯1.(3.24) The flow parameter π‘Ÿ(π‘˜) is π‘Ÿ(π‘˜)=⎧βŽͺβŽͺβŽͺ⎨βŽͺβŽͺβŽͺβŽ©Ξ”π‘ž(π‘˜)π‘–βˆ’1/2Ξ”π‘ž(π‘˜)𝑖+1/2ifπ‘π‘˜β‰₯0,Ξ”π‘ž(π‘˜)𝑖+3/2Ξ”π‘ž(π‘˜)𝑖+1/2ifπ‘π‘˜<0,(3.25) where π‘ž is a suitable variable. For shallow water flows, π‘ž is set to be β„Ž. Note that the value of Ξ”π‘ž(π‘˜)π‘–βˆ’1/2 denotes the jump in π‘ž across wave π‘˜ in the Riemann problem with data (π‘ˆπ‘›π‘–βˆ’1,π‘ˆπ‘›π‘–). Hence, the approximation of flux at interface is finally obtained by (3.23). This completes the weighted average flux method for computing flux at interfaces for each cell volume.

3.2.4. Calculation of Time Step

For any cell 𝑖 with length of Ξ”π‘₯𝑖, time step is defined byΔ𝑑𝑖=𝐢𝑛Δπ‘₯𝑖𝑆𝐿𝑖+1/2βˆ’π‘†π‘…π‘–βˆ’1/2ξ€Έ,(3.26) where 𝑆𝐿𝑖+1/2 and π‘†π‘…π‘–βˆ’1/2 are the left and right wave speed in the Riemann problem for cell 𝑖, and 𝐢𝑛 is the Courant number coefficient.

For easy programming in the case of uniform cell length, the time step can be defined by𝐢Δ𝑑=𝑛Δπ‘₯𝑆max,(3.27) where 𝑆max=max{𝑆𝐿𝑖+1/2βˆ’π‘†π‘…π‘–βˆ’1/2}, for all 𝑖.

3.2.5. Time Integration in the Corrector Step

Numerical solutions for the next time step can be obtained by using (3.7) as follows. The numerical fluxes at interfaces are calculated by the flux slope limiter (3.23). The source term 𝑆 involving the bed slope and friction effects is actually the function of the conservative variables β„Ž and 𝑒. We have already known the values of β„Ž and 𝑒 at the half-time step from the predictor calculations. Hence, we can calculate all terms on the RHS of (3.7). Consequently, numerical solutions for the next time step are obtained. This completes the overall steps of the predictor-corrector method with the TVD version of the WAF method.

4. Numerical Results

In this section, the presented method is applied to solve some benchmark problems in both steady and unsteady flows. The accuracy of numerical solutions are demonstrated in various test cases with and without friction effects, as well as the problems of wet and dry beds. In most of all our numerical investigations, we set 𝐢𝑛=0.95 for calculating time step size. This value is relatively large comparing with unity that shows the efficiency of the present method.

4.1. Steady Flows over a Bump

A steady one-dimensional flow in a channel 25-m-long with a bump at the bottom is defined by𝑧𝑏(π‘₯)=0.2βˆ’0.05(π‘₯βˆ’10)2,if8<π‘₯<12,0,otherwise.(4.1)

This flow is a frictionless test case. The steady flow can be subcritical, trancritical, or supercritical flow with or without a steady shock depending on the initial and boundary conditions. Some analytical solutions in various test cases are proposed by Goutal and Maurel [10]. In our investigations, the simulations run initially by appropriate data until the numerical solutions dramatically converge to some expected solutions.

4.1.1. Transcritical Flow with a Shock

In this test case, the upstream boundary is specified by a discharge per unit width of π‘ž=0.18 m2/s, while the downstream boundary is imposed by a fixed water depth β„Ž=0.33 m. The flow domain is discretized by 1,000 grid cells. The free surface profiles for analytical and numerical solutions are shown in Figure 2 which shows the accuracy of the proposed method.

4.1.2. Transcritical Flow without a Shock

The upstream boundary condition is imposed by a discharge per unit width of π‘ž=1.53 m2/s. No boundary condition is specified at the downstream flow. The flow domain is discretized by 100 grid cells. The free surface profiles for analytical and numerical solutions are shown in Figure 3. They are in good agreement.

4.1.3. Subcritical Flow

A discharge per unit width of π‘ž=4.42 m2/s is imposed at the upstream boundary, while a water depth β„Ž=2 m is specified at the downstream boundary. The flow domain is discretized by 100 grid cells. The free surface profiles for analytical and numerical solutions are shown in Figure 4 which again shows very good agreement.

4.2. Steady Flow over a Variable Bed

A 1000 m long rectangular channel has a discharge of 20 m3/s. The flow is subcritical at inflow and is subcritical at outflow. The outflow water depth is fixed to be 0.748409 m. The Manning coefficient for the channel is 0.03. The bed slope is given by𝑆0ξ‚΅4(π‘₯)=1βˆ’π‘”Μ‚π‘¦(π‘₯)3ξ‚ΆΜ‚π‘¦ξ…ž(π‘₯)+0.36(2̂𝑦(π‘₯)+10)4/3(10̂𝑦(π‘₯))10/3,(4.2) where ξ‚΅4̂𝑦(π‘₯)=𝑔1/3ξ‚Έ11+2ξ‚΅ξ‚€π‘₯expβˆ’16βˆ’1100022ξ‚Άξ‚Ή.(4.3)

The analytical solution to this problem is given by β„Žβ‰‘Μ‚π‘¦ proposed previously by MacDonald et al. [11]. The flow domain is discretized by 1000 grid cells. The comparison of numerical result and analytical solution is shown in Figure 5. This shows the accuracy of the presented solution. It also reveals that the present method can be used to simulate steady flow in case of variable bed with friction roughness.

4.3. Quasistationary Flow

A quasistationary test case was proposed previously by LeVeque [12]. This test case is used to demonstrate the ability of the proposed numerical scheme for computing some small perturbations of initial wave traveling along the channel. The computational domain is 0<π‘₯<1. The bed profile is given byπ‘§π‘βŽ§βŽͺ⎨βŽͺβŽ©ξ‚΅ξ‚΅(π‘₯)=0.25cosπœ‹(π‘₯βˆ’0.5)ξ‚Άξ‚Ά||||0.1+1,ifπ‘₯βˆ’0.5<0.1,0,otherwise.(4.4) The initial conditions are the stationary solution with 𝑒=0 andξƒ―β„Ž(π‘₯,0)=1+πœ–,if0.1<π‘₯<0.2,1,otherwise.(4.5) where πœ– are some small perturbations.

At the early stage, the initial disturbance splits into two waves propagating on the left and right at the characteristic speeds Β±βˆšπ‘”β„Ž. Many numerical methods may encounter the difficulties of capturing the correct wave speeds of disturbances. The comparisons of the presented solutions with those of LeVeque [12] at 𝑑=0.7 for πœ–=0.2 and πœ–=0.01 are shown in Figures 6 and 7. They are in good agreement with the same wave speeds. They also show that the presented scheme can provide accurate solutions in comparing with those are obtained by the high-resolution Godunov method based on balancing the source terms and flux gradients [12].

4.4. Unsteady Dam-Break Flow in Adverse Slope Channel

The laboratory experiment to induce shock formation of unsteady dam-break flow is proposed by Aureli et al. [13]. This experiment shows reverse flow on wetting and drying conditions. The experiment is conducted in a rectangular channel with length of 7 m, width of 1 m, and Manning 𝑛 coefficients of 0.025. The initial water depth is 0.292 m in the reservoir and a dry bed in the tailwater. A zero-discharge is specified at the upstream boundary, while a zero-gradient is imposed at the downstream boundary. The bed topography is given by𝑧𝑏(π‘₯)=0,if0≀π‘₯<π‘₯𝑐,ξ€·0.1π‘₯βˆ’π‘₯𝑐,ifπ‘₯𝑐≀π‘₯≀7,(4.6) in which π‘₯𝑐=3.5 m.

The flow domain is discretized by 700 grid cells. The Courant number is 0.95. The comparisons between numerical results and measured water depth profiles at the four different locations (1.4, 2.25, 3.4, 4.5 m) are shown in Figures 8, 9, 10, and 11. These results show very good agreements indicating that the presented scheme can capture not only shock and reverse flows but also wetting and drying wave fronts in transient case.

5. Conclusions

A modified predictor-corrector method for solving the one-dimensional shallow water equations with and without source terms is presented in this paper. This is a modified approach that combines two important concepts which are the depth gradient method (DGM) and the weighted average flux (WAF) method. The DGM is used to approximate the conservative variables at the interfaces in each cell volume for the half-time step. This is the predictor step. So, the source terms can be calculated directly at the same half-time step. By using the WAF method, fluxes at interfaces can be approximated and these values correspond to the half-time step as well. Combining these information together, we can march the numerical solutions in time to reach the next time step of calculations. This step is called the corrector method. For fixing a Courant number value, time step size can be obtained. We apply the presented scheme to solve both steady and unsteady problems. The considering steady problems are flows over a bump with and without shock formation behind the obstacle. It is found that our numerical results are in good agreement with the analytical results in all test cases. For unsteady problem, we have run simulations in order to compare with the existing experimental data of dam-break flow. This problem shows reverse flow with shock on wetting and drying conditions. It is found that our numerical solutions are in good agreement with the experimental data at all observed locations. Hence, the presented scheme can be applied to capture shock formation in shallow water flow for both steady and unsteady cases with or without source terms.

Acknowledgment

This research is supported by the Centre of Excellence in Mathematics, the Commission on Higher Education, Thailand.