[Paper Review] A MacCormack Method for Complete Shallow Water Equations with Source Terms
This paper presents a second-order accurate MacCormack finite difference scheme for the 1D complete shallow water equations with source terms, incorporating fractional steps to handle stiff friction slopes and upwinding to control oscillations. The method achieves second-order convergence and demonstrates stability and accuracy under proper time-step and mesh-size constraints, validated via analytical and numerical comparisons.
In the last decades, more or less complex physically-based hydrological models, have been developed to solve the shallow water equations or their approximations using various numerical methods. The MacCormack method was developed for simulating overland flow with spatially variable infiltration and microtopography using the hydrodynamic flow equations. The basic MacCormack scheme is enhanced when it uses the method of fractional steps to treat the friction slope or a stiff source term and to upwind the convection term in order to control the numerical oscillations and stability. In this paper we describe, the MacCormack scheme for 1D complete shallow water equations with source terms, analyze the stability condition of the method and we provide the convergence rate of the algorithm. This work improves some well known results deeply studied in the literature which concern the Saint-Venant problem and it represents an extension of the time dependent shallow water equations without source terms. The numerical evidences consider the rate of convergence of the method and compares the numerical solution respect to the analytical one.
Motivation & Objective
- To develop a robust numerical scheme for the 1D complete shallow water equations with source terms, including friction and bottom slope effects.
- To enhance the basic MacCormack scheme with fractional steps and upwinding to improve stability and reduce numerical oscillations.
- To analyze the stability condition of the modified scheme using Fourier analysis and verify its convergence rate numerically.
- To validate the method against analytical solutions for overland flow with time-dependent rainfall excess.
- To ensure the scheme remains well-balanced and positivity-preserving in the presence of small water depths and steep gradients.
Proposed method
- The scheme applies a two-step predictor-corrector approach based on second-order Taylor series in time and fourth-order spatial accuracy.
- The method of fractional steps is used to decouple the source terms, particularly the friction slope, to handle stiffness.
- Upwinding is applied to the convection term to suppress numerical oscillations and improve stability.
- The system is reformulated in conservation law form: ∂W/∂t + ∂F/∂x = S, with W = (A, Q), F = (Q, gA²/(2T) + Q²/A), and S = (r, gA(S₀ - S_f)).
- Stability is analyzed via Fourier analysis, yielding a CFL-like restriction on Δt and Δx.
- Convergence is evaluated numerically using L² errors for cross-section A and discharge Q across refined meshes.
Experimental results
Research questions
- RQ1Does the modified MacCormack scheme maintain second-order convergence for the 1D shallow water equations with source terms?
- RQ2How does the inclusion of fractional steps and upwinding affect the stability and accuracy of the MacCormack scheme?
- RQ3What is the impact of mesh size and time step on the stability and convergence of the numerical solution?
- RQ4Can the scheme preserve positivity and avoid spurious oscillations in regions of small water depth?
- RQ5How well does the numerical solution match the analytical solution for a time-dependent rainfall excess case?
Key findings
- The MacCormack scheme achieves second-order convergence in both cross-section A and discharge Q, as confirmed by L² error norms in Table 1.
- The convergence rate for A is approximately 2.0, with values of 2.0000, 2.0645, and 1.9787 across successive mesh refinements.
- The numerical solution for discharge Q matches the analytical solution exactly in the tested cases, with zero L² error.
- Stability is conditional: the scheme remains stable only when Δt and Δx satisfy the derived stability restriction (101).
- Numerical solutions do not grow over time and converge toward the analytical solution, indicating robustness under proper parameter selection.
- The method effectively controls numerical oscillations and maintains positivity, even in regions of small water depth, when upwinding and fractional steps are applied.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.