Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2167 https://internationalpubls.com Artificial Viscosity Stabilization of Meshless Methods for Shallow Water Flows in Channels Mariam Ijerch1, Mohamed Sadik2 1Engineering Sciences Laboratory, Faculty of Sciences, Agadir, Ibn Zohr University, Morocco (Email: mariam.ijerch@edu.uiz.ac.ma) 2Engineering Sciences Laboratory, Faculty of Sciences, Agadir, Ibn Zohr University, Morocco (Email: m.sadik@uiz.ac.ma) Article History: Received: 12-01-2025 Revised: 15-02-2025 Accepted: 01-03-2025 Abstract: The purpose of this paper is to present an efficient localized meshless methods based on radial basis functions to accurately analyze the shallow water equations (SWEs) in open channels. It is a hyperbolic system of first-order nonlinear partial differential equations. Due to their classification as advection equations, they allow for discontinuous solutions, often characterized by shock behaviour in simulations. Therefore, the development of an efficient and accurate numerical model for analyzing the SWEs holds critical importance in scientific research. To address non-physical oscillations near discontinuities, we developed a technique involving artificial viscosity, which is integrated with the local meshless methods for spatial discretization of the SWEs, while temporal discretization is achieved using the fourth-order Runge-Kutta method. A series of experiments has been conducted to evaluate the effectiveness and accuracy of the suggested methods. These experiments included examining flow at a steady state with and without friction, as well as studying the dam-break scenario on a wet bed. The results compared with analytical solutions, demonstrate that the artificial viscosity combined with the proposed methods proficiently capture shocks and effectively handles discontinuous flow by introducing an appropriate viscosity coefficient into the equations. Overall, the results are satisfactory and show good agreement. Keywords: Shallow water equations, Open channel, Radial basis function partition of unity method (RBF-PUM), Radial basis function finite difference (RBF-FD) method, QR factorization. 1. Introduction The shallow water equations (SWEs) were first proposed in 1871 by Saint-Venant [1] to describe various applications in ocean and hydraulic engineering, such as coastal flow, open-channel flow in natural rivers and prismatic channels, flood waves, failure of dams, etc. Under some essential assumptions [2], the SWEs are derived by three-dimensional Navier-Stokes equations where the horizontal wave length is much larger than the depth of the fluid. SWEs form a system of non-linear hyperbolic partial differential equations (PDEs) governed by conservation of mass and balance of momentum. The critical problem in solving this system of equations is the spurious oscillation happens in the discontinuous areas such as shock waves, dam break, or hydraulic jump problems. The analytical solution for these problems is only available for a limited number of special cases [3]. Therefore it is significant to develop a reliable and accurate numerical solver. mailto:mariam.ijerch@edu.uiz.ac.ma mailto:m.sadik@uiz.ac.ma Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2168 https://internationalpubls.com In the past decades, plenty of mesh-based numerical models have been developed for solving the SWEs, such as the Finite Difference Method (FDM) [4], Finite Element Method (FEM) [5], and Finite Volume Method (FVM) [6, 7]. However, for multidimensional problems defined on a complex geometries, mesh generation have a common difficulty that it is a time-consuming and their performance depends on the quality of the mesh. To overcome these difficulties, many researchers have paid attention to use the newly developed meshless method as the promising alternative to traditional methods which have been employed to analyse various problems. The meshless methods were also adopted to solve SWEs by many scholars. Among them, the development of meshless methods based on Radial Basis Functions (RBFs), such as multiquadric method [8], Compactly Supported RBF (CSRBF) [9], Local Radial Basis Function based Differential Quadrature Method (LRBFDQM) [10], Extrapolated Local Radial Basis Functions Collocation Method (ELRBFCM) [11], and others. The main advantages of RBF-based methods for solving partial differential equations lie in their simplicity, flexibility, and applicability to various PDEs. They are particularly effective in handling high-dimensional problems with complex geometries. Since the shallow water equations are a hyperbolic non-linear partial differential equations, the information of characteristic and the correct directions of wave transmission are quite important to numerical simulation. The first author who introduced the radial basis functions method in the field of PDEs was Kansa in 1990 [12, 13]. He developed the global RBF method which is a numerical method that gives an approximate solution for PDEs. It can be considered as one of the collocation methods which are efficient and expected to produce spectral accuracy for the numerical solution. However, the infinitely smooth RBFs (Table 1) produce dense matrices thus ill-conditioned matrices, especially for the parameter values that lead to the highest accuracy. To overcome this issue, it is essential to introduce certain locality in the system to be solved. Not only the conditioning will be improved, but also the accuracy of the numerical solution will be guaranteed. In this context, we conducted our studies using local and stable meshless methods in addition to Kansa's method to solve SWEs. One such method is the RBF Finite Difference method (RBF-FD), first described in [14] in 2000. The idea of this method is to form computational stencils, similar to those in finite difference method, by constructing derivative discretizations based on RBF interpolants on localized node sets [15]. Another localized method is the RBF Partition of Unity Method (RBF-PUM) which is based on approximating the solution of PDEs in a regular covering of overlapping subdomains and then patching up the local solutions using the partition of unity principle [16, 17]. The RBF-PUM, increasing the sparsity of linear systems, enables us to offer significant savings in the computational time, but in order to guarantee the stability of the solution, as ๐œ€ โŸถ 0 (called flat limit regime), a stable evaluation algorithm is employed. The stable RBF-QR algorithm bypasses some limitations, including complications related to the selection of ๐œ€, ill-conditioning of RBF-PUM matrices. The main logic behind the RBF-QR method is to replace the bad basis (ill-conditioned) with a good one that can span the same space [18, 19]. The RBF methods that we investigate are: the RBF generated finite difference(RBF-FD) method, the RBF partition of unity method (RBF-PUM) and Kansa's method. The first two methods are localized such that the final system of equations is sparse, and the third method is global and gives a dense system of equations. It is known, based on numerical experiments, that all three methods in general are unstable when computing collocated solutions to time-dependent conservation laws without Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2169 https://internationalpubls.com additional stabilization [20]. In [21], the author suggests activating artificial viscosity in the time domain rather than in localized regions of space and using hyperviscosity provides an elegant approach to spatially selecting the diffusion effect based on supplementing the numerical scheme by a hyperviscosity term. Hyperviscosity was first introduced to spectral methods in 1998 by Ma under the name (super)spectral viscosity [22]. Despite the promising analytical results demonstrated by Ma, the method was never widely adopted and has only been mentioned in a few research papers where it was applied to the Navier-Stokes equations. The meshless community first adopted spectral viscosity, now called hyperviscosity, in 2011 when Fornberg [20] demonstrated that hyperviscosity could stabilize time-stepping schemes by shifting spurious eigenvalues into the stable region. Subsequently, hyperviscosity was applied to a variety of fluid dynamics cases [23, 24]. Initially, the parameters of hyperviscosity were only briefly mentioned and included a large number of empirical approximations. Recently, new artificial hyperviscosity formulations have been proposed in the literature [25], which are very effective for RBF-FD methods for solving surface convection-diffusion equations and for nonlinear conservation laws [26]. additionally, meshless schemes combined with hyperviscosity technique have been proposed to the authors' knowledge such in [27] used the RBF-based method for solving the shallow water equations to capture shocks. Moreover, hyperviscosity and its connection to the stability of the RBF Partition of Unity (RBF-PU) method was only well established by the work of Liu et al. [28], who showed that the hyperviscosity improve the stability of the RBF-PU method for solving convection-diffusion equations on surfaces. Therefore, we suggested to combine the RBF-FD (using Inverse Multiquadratic function) and RBF-PUM-QR with hyperviscosty technique in order to establish a localized numerical meshless model which can accurately and effectively solve the SWEs. This paper is organized as follows. In Section 2, the governing equations and some properties are explained. The Kansa's method, RBF-FD method and RBF-PUM with QR factorization with Hyperviscosity technique is presented in Section 3. Then, two challenging tests are adopted to evaluate the accuracy and stability of the numerical methods in Section 4. Finally, some conclusions are given in Section 5. 2. Governing equations and properties Saint-Venant [1] introduced the mathematical model for shallow water, known as Saint-Venant's Equations or Shallow Water Equations (SWEs). These equations are based on fundamental physical principles, specifically the laws of mass conservation and momentum conservation. The model is applicable to free surface flows when the horizontal scales of water mass significantly exceed the vertical scale and the flow in the vertical direction is negligible. The water density in our model is considered to be constant and Coriolis force is neglected. As the source terms the bed slope term and bed friction term are considered. The equations of interest consist of the following system: { ๐œ•๐‘กโ„Ž + ๐œ•๐‘ฅ๐‘ž = 0, ๐œ•๐‘ก๐‘ž + ๐œ•๐‘ฅ ( ๐‘ž2 โ„Ž + 1 2 ๐‘”โ„Ž2) = ๐‘”โ„Ž๐‘†๐‘ โˆ’ ๐‘†๐‘“ , (1) where โ„Ž(๐‘ฅ, ๐‘ก) is the height of the water, ๐‘ข(๐‘ฅ, ๐‘ก) is the flow velocity, ๐‘ž(๐‘ฅ, ๐‘ก) = โ„Ž(๐‘ฅ, ๐‘ก)๐‘ข(๐‘ฅ, ๐‘ก) is the flow discharge and ๐‘” is the acceleration due to gravity. Concerning the source terms, ๐‘†๐‘ = โˆ’๐œ•๐‘ฅ๐‘ is the bed slope where ๐‘: โ„ โ†’ โ„+ is a given smooth function which describes the topography and ๐‘†๐‘“ is Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2170 https://internationalpubls.com the friction term, it is a given function of โ„Ž and ๐‘ข , two examples widely used in hydrology are the Manning and the Darcy-Weisbach friction laws, which are given respectively by ๐‘†๐‘“ = ๐ถ๐‘“๐‘” ๐‘ข|๐‘ข| โ„Ž 1 3 = ๐ถ๐‘“๐‘” ๐‘ž|๐‘ž| โ„Ž 7 3 , โ€ˆ (2) where ๐ถ๐‘“โ€ˆ = โ€ˆ๐‘›2, โ€ˆ๐‘› is Manning's coefficient. ๐‘†๐‘“ = ๐ถ๐‘“๐‘”๐‘ข|๐‘ข| = ๐ถ๐‘“๐‘” ๐‘ž|๐‘ž| โ„Ž2 , (3) where ๐ถ๐‘“ = ๐‘“ 8๐‘” , ๐‘“ is dimensionless coefficient. In order to emphasize the properties of (1) without friction, we rewrite the one-dimensional equations in quasilinear form โˆ‚t๐ + A(๐) โˆ‚xQ = S(๐), (4) with ๐‘ธ = (โ„Ž ๐‘ž ), A(๐) = ( 0 1 โˆ’๐‘ข2 + ๐‘”โ„Ž 2๐‘ข ), ๐‘†(๐‘ธ) = ( 0 โˆ’gh โˆ‚xb ). (5) When โ„Ž > 0, the system is strict hyperbolic with the eigenvalues of ๐ด are given by ๐œ†1 = ๐‘ข โˆ’ โˆš๐‘”โ„Ž ๐‘Ž๐‘›๐‘‘ ๐œ†2 = ๐‘ข + โˆš๐‘”โ„Ž. (6) These eigenvalues represent the wave speeds which are basic characteristics of the flow. When โ„Ž = 0 (dry zone) the eigenvalues coincide and the system looses hyperbolicity. For considering the well- posed problem in 1D described by the SWEs, the number of boundary conditions should be confirmed by the Froude number Fr = |๐‘ข| โˆš๐‘”โ„Ž . (7) If Fr < 1 the flow is considered subcritical, indicating the presence of one positive and one negative eigenvalue. In such cases, it is necessary to define one boundary value on the left and another on the right. On the other hand, when Fr > 1 then the flow is supercritical which means that two values have to be specified at one of the boundaries depending on the sign of the velocity. A transcritical regime can exist in the solution if parts of the flow are subcritical and other parts are supercritical. 2.1 Hyperviscosity technique Although the global stability theory of RBF-FD and RBF-PUM methods is largely undeveloped, Fornberg and Lehto [20] proposed a practical method to correct the spectra of RBF-FD differentiation matrices for hyperbolic operators on the sphere by introducing artificial hyperviscosity. Their approach effectively shifted rogue eigenvalues to the left half of the complex plane. This issue is also caused by using large RBF-FD stencils, where increasing the stencil size ๐‘›๐‘™๐‘œ๐‘ enhances the accuracy of the approximation. Based on the above analysis, we will use the Kansa, RBF-FD, and RBF-PUM methods combined with an artificial hyperviscosity formulation to solve the shallow water equations, where the convection term dominates and leads to non-physical oscillations that would otherwise amplify with time. Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2171 https://internationalpubls.com Stabilization of the methods is achieved by applying a hyperviscosity as a filter to the right hand side of the model, the equation solved takes the form ๐œ•๐‘ก๐‘ธ = โˆ’๐น(๐‘ธ) + ๐‘†(๐‘ธ) + ๐ป(๐‘ธ), (8) where ๐‘ธ = (โ„Ž ๐‘ž ), F(๐) = ( ๐œ•๐‘ฅ๐‘ž ๐œ•๐‘ฅ( ๐‘ž2 โ„Ž + 1 2 ๐‘”โ„Ž2) ), ๐‘†(๐‘ธ) = ( 0 ๐‘”โ„Ž๐‘†๐‘โˆ’๐‘†๐‘“ ), (9) and ๐ป is the hyperviscosity filter defined by ๐ป = ๐œ‡ ๐œ•2๐‘˜ ๐œ•๐‘ฅ2๐‘˜ , (10) where ๐œ‡ โˆˆ ๐‘… and ๐‘˜ โˆˆ ๐‘โˆ— small numbers that must be selected. The constant ฮผ has to be selected carefully to provide enough stabilisation without ruining the solution [20, 23]. There is no broad consensus in the literature with an abundance of proposed estimates and scalings for the constant ฮผ. However, there are many studies suggesting that the hyperviscosity parameter should be chosen through trial and error. Fornberg and Lehto [20] provide suggestions for selecting ฮผ in the RBF-FD method, they found scaling ๐œ‡ ~ ๐‘โˆ’2๐‘˜ worked well, where N is the total number of nodes in the domain. Then, in [23], Flyer et al. empirically computed ฮผ and k for the shallow water equations on the sphere. They found experimentally that for given values of N, ๐‘›๐‘™๐‘œ๐‘ and ๐œ€ , choosing ๐œ‡ = ๐œ‡๐‘๐‘โˆ’๐‘˜ where ๐œ‡๐‘ ranging from O(1) to O(10โˆ’2) provides stability with good accuracy for PDEs. In this paper, we experimentally determine the hyperviscosity parameter through trial and error, the order k set to one, drawing on the work of Dehghan and Abbaszadeh [29], who used a value of 10โˆ’3 to stabilize their method for the dam break problem. We also reference [27], where values ranging from 0.01 to 0.5 were employed with an order k set to one, and [30], where a small value around 10โˆ’5 was deliberately chosen with the same order k. 3. Numerical methods 3.1 Kansa method First, we introduce the well-known Kansa method [12, 13]. It is also referred to as Radial Basis Function Collocation Method (RBFCM). The main idea of the method is approximating the solution in terms of linear combination of infinitely differentiable Radial Basis Functions (RBFs) ๐œ‘ which are listed in Table 1, this functions depends only on the distance to a center point and shape parameter ๐œ€. This method is particularly useful for solving PDEs in complex geometries with irregularly distributed points, offering an efficient and flexible numerical technique. However, The main disadvantage of the method is that it represents the discretization of the PDE as a dense matrix. These matrices are Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2172 https://internationalpubls.com extremely sensitive to the choice of the shape parameter for the RBFs, which makes it difficult to solve problems with a large number of unknowns. This occurs because in the use of RBF interpolation and add more nodes, the matrices involved become less stable. This is especially true when a poor choice has been made when designating the RBF centers, and also when infinitely smooth basis functions are used with associated shape parameters set to extreme values. To have more details on the theoretical background, we refer the reader to [35, 36]. Table 1. Infinitely smooth RBFs Multiquadric Inverse multiquadratic Inverse quadratic Gaussian (๐Ÿ + ๐๐Ÿ๐’“๐Ÿ) ๐Ÿ ๐Ÿ (๐Ÿ + ๐๐Ÿ๐’“๐Ÿ) โˆ’๐Ÿ ๐Ÿ (๐Ÿ + ๐๐Ÿ๐’“๐Ÿ)โˆ’๐Ÿ ๐’†โˆ’๐๐Ÿ๐’“๐Ÿ 3.1.1 Methodโ€™s principle In this section, we introduce the general notation and quantities we need for RBF approximation of SWEs. Assume that X = {๐‘ฅ1, ๐‘ฅ2, . . . , ๐‘ฅ๐‘} is a set of distinct points in โ„ฆ โŠ‚ โ„๐‘‘. We start from given an interpolant ๐ผ๐‘ข that approximates a function ๐‘ข: ๐ผ๐‘ข(๐‘ฅ) = โˆ‘ ๐œ†๐‘– ๐‘› ๐‘–=1 ๐œ‘(โ€–๐‘ฅ โˆ’ ๐‘ฅ๐‘–โ€–), ๐‘ฅ โˆˆ ๐›บ, (11) where ๐œ†๐‘– โˆˆ โ„ are the unknown coefficient to be determined and ๐œ‘ can be any radial basis function such in Table 1, the shape parameter ๐œ€ appearing in the RBFs dictates the flatness of the radial basis function and plays a key role in the convergence rate of the approximations and the condition number of the coefficient matrices. By applying the interpolation criteria ๐ผ๐‘ข(๐‘ฅ๐‘—) = ๐‘ข(๐‘ฅ๐‘—), the coefficient ๐œ†๐‘— , ๐‘— = 1, . . . , ๐‘ is discovered. And we obtain a linear system as follow: A๏ฟฝฬ…๏ฟฝ = ๐‘ˆ, (12) where ๐ด = ( ๐œ‘(โ€–๐‘ฅ1 โˆ’ ๐‘ฅ1โ€–) โ‹ฏ ๐œ‘(โ€–๐‘ฅ1 โˆ’ ๐‘ฅ๐‘โ€–) โ‹ฎ โ‹ฑ โ‹ฎ ๐œ‘(โ€–๐‘ฅ๐‘ โˆ’ ๐‘ฅ1โ€–) โ‹ฏ ๐œ‘(โ€–๐‘ฅ๐‘ โˆ’ ๐‘ฅ๐‘โ€–) ), (13) ๏ฟฝฬ…๏ฟฝ = [๐œ†1, ๐œ†2, โ€ฆ , ๐œ†๐‘]๐‘‡, U = [๐‘ข(๐‘ฅ1), ๐‘ข(๐‘ฅ2), โ€ฆ , ๐‘ข(๐‘ฅ๐‘)]๐‘‡. (14) When solving PDE, we prefer to work with the discrete approximate instead of the coefficients. From (11) and (12) we can write ๐ผ๐‘ข(๐‘ฅ) = ๏ฟฝฬ…๏ฟฝ(๐‘ฅ)๐ดโˆ’1๐‘ˆ = ๐ท(๐‘ฅ)๐‘ˆ, (15) Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2173 https://internationalpubls.com where ๏ฟฝฬ…๏ฟฝ(๐‘ฅ) = [๐œ‘ (โˆฅ ๐‘ฅ โˆ’ ๐‘ฅ1 โˆฅ) , ๐œ‘ (โˆฅ ๐‘ฅ โˆ’ ๐‘ฅ2 โˆฅ) , โ€ฆ , ๐œ‘ (โˆฅ ๐‘ฅ โˆ’ ๐‘ฅ๐‘ โˆฅ)] and ๐ท = ๏ฟฝฬ…๏ฟฝ๐ดโˆ’1. Micchlli [37] proved that the strict positive definiteness of an RBF listed in Table 1 guarantees that the interpolation matrix A in (13) is also positive definite, and thus invertible. Because our final target is to solve PDEs, we apply a linear differential operator ๐ฟ to the RBF approximation, we get (๐ผ๐‘ข)๐ฟ(๐‘ฅ) = ๏ฟฝฬ…๏ฟฝ๐ฟ(๐‘ฅ)๐ดโˆ’1๐‘ˆ = ๐ท๐ฟ(๐‘ฅ)๐‘ˆ, (16) where ๐ท๐ฟ = ๏ฟฝฬ…๏ฟฝ๐ฟ๐ดโˆ’1 is known as a differentiation matrix. 3.1.2 Spatial discretization of SWEs using Kansa method In this section, we will describe the implementation of Kansa method for shallow water equations. Let {๐‘ฅ1, ๐‘ฅ2, . . . , ๐‘ฅ๐‘} be a set of scattered nodes considered in the study area. Using (16), the first and second spatial derivatives of a function ๐‘ธ(๐‘ฅ, ๐‘ก) can be expressed as follows: ๐œ•๐‘ธ(๐‘ฅ,๐‘ก) ๐œ•๐‘ฅ = ๐ท๐‘ฅ๐‘ธ(๐‘ฅ, ๐‘ก), ๐œ•2๐‘ธ(๐‘ฅ,๐‘ก) ๐œ•๐‘ฅ2 = ๐ท๐‘ฅ๐‘ฅ๐‘ธ(๐‘ฅ, ๐‘ก), (17) where ๐ท๐‘ฅ and ๐ท๐‘ฅ๐‘ฅ are first and second derivative matrices with respect to ๐‘ฅ . The system (8) is approximated by the following equivalent system: ๐œ•๐‘ก๐‘ธ = โˆ’๏ฟฝฬ…๏ฟฝ(๐‘ธ) + ๐‘†ฬ…(๐‘ธ) + ๏ฟฝฬ…๏ฟฝ(๐‘ธ), (18) where ๏ฟฝฬ…๏ฟฝ is the convective flux, ๏ฟฝฬ…๏ฟฝ contains the hyperviscosity and ๐‘†ฬ… is the source term due to bottom elevator. Using the Kansa method, we obtain ๐น ฬ…(๐‘ธ) = ( ๐ท๐‘ฅ๐‘ž ๐ท๐‘ฅ( ๐‘ž2 โ„Ž + 1 2 ๐‘”โ„Ž2) ), ๐‘† ฬ…(๐‘ธ) = ( 0 โˆ’๐‘”โ„Ž๐ท๐‘ฅ๐‘ ), ๐ป ฬ…ฬ… ฬ…(๐‘ธ) = (๐œ‡๐ท๐‘ฅ๐‘ฅโ„Ž ๐œ‡๐ท๐‘ฅ๐‘ฅ๐‘ž ), (19) Equivalent to ๐œ•๐‘ก๐‘ธ = ๐‘…๐ป๐‘†๐‘˜๐‘Ž๐‘›๐‘ ๐‘Ž(๐‘ธ) where ๐‘…๐ป๐‘†๐‘˜๐‘Ž๐‘›๐‘ ๐‘Ž(๐‘ธ) = โˆ’๏ฟฝฬ…๏ฟฝ(๐‘ธ) + ๐‘†ฬ…(๐‘ธ) + ๏ฟฝฬ…๏ฟฝ(๐‘ธ). (20) 3.2 Radial Basis Function Finite Difference Method (RBF-FD) First introduced by Tolstykh [14], RBF-FD formulas are derived through RBF interpolation over local sets of nodes on the surface. This type of method is conceptually similar to the standard Finite Difference (FD). The fundamental principle underlying RBF-FD revolves around the approximation of the differential operator for solutions at interior nodes. The approximation is achieved by means of a linear combination of function values at the neighbouring node locations and then determining the RBF-FD weights by assuming that the approximations become exact for all RBFs that are centred at the neighbouring nodes, as opposed to the standard FD, which focuses on approximating polynomials for the same nodes sets. After performing calculations at all interior nodes, the approximate solution Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2174 https://internationalpubls.com can be computed from the associated linear system of equations, for which the RBF-FD system matrix is sparse, thus can be effectively inverted. 3.2.1 Methodโ€™s principle We will next present an outline of the RBF along with finite-difference (RBF-FD) formulation. Let X = {๐‘ฅ1, ๐‘ฅ2, . . . , ๐‘ฅ๐‘} is a set of distinct points in โ„ฆ โŠ‚ โ„๐‘‘ and let ๐ผ(๐‘ฅ๐‘—) = {๐‘ฅ1 ๐‘— , ๐‘ฅ2 ๐‘— , โ€ฆ , ๐‘ฅ๐‘›๐‘™๐‘œ๐‘ ๐‘— } be a set of points to form a stencil weight at ๐‘ฅ๐‘— . Note that the number of points ๐‘›๐‘™๐‘œ๐‘ in each stencil is either constant or vary with ๐‘—, without loss of generality we suppose that ๐‘›๐‘™๐‘œ๐‘ is constant. In RBF-FD, any linear differential operator ๐ฟ that acts on ๐‘ข(๐‘ฅ) evaluated at ๐‘ฅ๐‘— can be approximated by a linear weighted combination of the function values at the points of ๐ผ(๐‘ฅ๐‘—), i.e. ๐ฟ๐‘ข(๐‘ฅ๐‘—) โ‰ˆ โˆ‘ ๐œ”๐‘˜ (๐‘—)๐‘›๐‘™๐‘œ๐‘ ๐‘˜=1 ๐‘ข(๐‘ฅ๐‘˜ (๐‘—) ). (21) The RBF-FD weights ๐œ”๐‘˜ (๐‘—) , ๐‘˜ = 1, โ€ฆ , ๐‘›๐‘™๐‘œ๐‘ are computed by assuming the approximations (21) become exact for all RBFs ๐œ‘ (Table 1) that are centred at the nodes ๐‘ฅ๐‘– (๐‘—) , ๐‘– = 1, โ€ฆ , ๐‘›๐‘™๐‘œ๐‘ , i.e., we assume that (21) becomes exact for function ๐‘ข(๐‘ฅ๐‘—) = ๐œ‘(โˆฅ ๐‘ฅ โˆ’ ๐‘ฅ๐‘– (๐‘—) โˆฅ)| ๐‘ฅ=๐‘ฅ๐‘— , ๐‘– = 1, โ€ฆ , ๐‘›๐‘™๐‘œ๐‘ , this assumption leads to ๐‘›๐‘™๐‘œ๐‘ ร— ๐‘›๐‘™๐‘œ๐‘ linear system: ( ๐œ‘ (โ€–๐‘ฅ1 (๐‘—) โˆ’ ๐‘ฅ1 (๐‘—)โ€–) โ‹ฏ ๐œ‘ (โ€–๐‘ฅ1 (๐‘—) โˆ’ ๐‘ฅ๐‘›๐‘™๐‘œ๐‘ (๐‘—) โ€–) โ‹ฎ โ‹ฑ โ‹ฎ ๐œ‘ (โ€–๐‘ฅ๐‘›๐‘™๐‘œ๐‘ (๐‘—) โˆ’ ๐‘ฅ1 (๐‘—)โ€–) โ‹ฏ ๐œ‘ (โ€–๐‘ฅ๐‘›๐‘™๐‘œ๐‘ (๐‘—) โˆ’ ๐‘ฅ๐‘›๐‘™๐‘œ๐‘ (๐‘—) โ€–) ) ( ๐œ”1 (๐‘—) โ‹ฎ ๐œ”๐‘›๐‘™๐‘œ๐‘ (๐‘—) ) = ( ๐ฟ๐œ‘(โˆฅ๐‘ฅ โˆ’ ๐‘ฅ1 (๐‘—) โˆฅ)| ๐‘ฅ=๐‘ฅ๐‘— โ‹ฎ ๐ฟ๐œ‘(โˆฅ๐‘ฅ โˆ’ ๐‘ฅ๐‘›๐‘™๐‘œ๐‘ (๐‘—) โˆฅ)| ๐‘ฅ=๐‘ฅ๐‘— )(22) Note that the system matrix is invertible due to the properties of the RBFs mentioned before. Therefore, the RBF-FD weights can always be calculated. To obtain the RBF-FD weights, we have to solve the system (22) for each stencil center ๐‘ฅ๐‘— , ๐‘— = 1, โ€ฆ , ๐‘ to form ๐‘ rows of the differentiation matrix denoted by ๐‘Š๐ฟ where ๐ฟ refer to a linear differential operator that acts on solutions, ๐‘Š๐ฟ is a sparse matrix and contains ๐‘›๐‘™๐‘œ๐‘ non-zero elements per row. When solving PDE, we apply a similar procedure of what has done for Kansa method. After obtaining the weights, we use the approximation equation (21) to conclude an approximate solution for the PDE. 3.2.2 Spatial discretization of SWEs using RBF-FD method In this section, we will present implementation details on the computational of RBF-FD formulation for solving equations (1). Let {๐‘ฅ1, ๐‘ฅ2, . . . , ๐‘ฅ๐‘} be a set of scattered nodes. Using (21), the first and second spatial derivatives of a function ๐‘ธ(๐‘ฅ, ๐‘ก) can be expressed as follows: ๐œ•๐‘ธ(๐‘ฅ๐‘—,๐‘ก) ๐œ•๐‘ฅ = โˆ‘ ๐œ• ๐œ”๐‘˜ (๐‘—) ๐œ•๐‘ฅ ๐‘›๐‘™๐‘œ๐‘ ๐‘˜=1 ๐‘ธ(๐‘ฅ๐‘˜ (๐‘—) , ๐‘ก), ๐œ•2๐‘ธ(๐‘ฅ๐‘—,๐‘ก) ๐œ•๐‘ฅ2 = โˆ‘ ๐œ•2๐œ”๐‘˜ (๐‘—) ๐œ•๐‘ฅ2 ๐‘›๐‘™๐‘œ๐‘ ๐‘˜=1 ๐‘ธ(๐‘ฅ๐‘˜ (๐‘—) , ๐‘ก), ๐‘— = 1, โ€ฆ , ๐‘ (23) Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2175 https://internationalpubls.com After collocating the points, we obtain ๐œ•๐‘ธ(๐‘ฅ,๐‘ก) ๐œ•๐‘ฅ = ๐‘Š๐‘ฅ๐‘ธ(๐‘ฅ, ๐‘ก), ๐œ•2๐‘ธ(๐‘ฅ,๐‘ก) ๐œ•๐‘ฅ2 = ๐‘Š๐‘ฅ๐‘ฅ๐‘ธ(๐‘ฅ, ๐‘ก), (24) where ๐‘Š๐‘ฅ and ๐‘Š๐‘ฅ๐‘ฅ are first and second derivative matrices with respect to ๐‘ฅ . The system (8) is approximated by the following equivalent system: ๐œ•๐‘ก๐‘ธ = โˆ’๏ฟฝฬ…๏ฟฝ(๐‘ธ) + ๐‘†ฬ…(๐‘ธ) + ๏ฟฝฬ…๏ฟฝ(๐‘ธ), (25) Using the RBF-FD method to perform numerical evaluation, we obtain ๐น ฬ…(๐‘ธ) = ( ๐‘Š๐‘ฅ๐‘ž ๐‘Š๐‘ฅ( ๐‘ž2 โ„Ž + 1 2 ๐‘”โ„Ž2) ), ๐‘† ฬ…(๐‘ธ) = ( 0 โˆ’๐‘”โ„Ž๐‘Š๐‘ฅ๐‘ ), ๐ป ฬ…ฬ… ฬ…(๐‘ธ) = (๐œ‡๐‘Š๐‘ฅ๐‘ฅโ„Ž ๐œ‡๐‘Š๐‘ฅ๐‘ฅ๐‘ž ), (26) Equivalent to ๐œ•๐‘ก๐‘ธ = ๐‘…๐ป๐‘†๐‘…๐ต๐นโˆ’๐น๐ท(๐‘ธ), where ๐‘…๐ป๐‘†๐‘…๐ต๐นโˆ’๐น๐ท(๐‘ธ) = โˆ’๏ฟฝฬ…๏ฟฝ(๐‘ธ) + ๐‘†ฬ…(๐‘ธ) + ๏ฟฝฬ…๏ฟฝ(๐‘ธ). (27) 3.3 Radial Basis Function Partition of Unity Method (RBF-PUM) The Partition of Unity Method (PUM) was first proposed by Babuลกka and Melenk [31] and applied the method to solve PDEs. The main idea of RBF-PUM is to subdivide the domain into overlapping subdomains or patches in which we construct the local RBF approximation on each patches, then the global solution is given by the sum of these local approximations multiplied by partition of unity weight functions. 3.3.1 Methodโ€™s principle Let {โ„ฆ๐‘–} ๐‘–=1 ๐‘›๐‘ be an open covering of an open set ๐›บ i.e., ๐›บ โІ โ‹ƒ ๐›บ๐‘– ๐‘›๐‘ ๐‘–=1 . The RBF-PUM is a localized method based on subdividing the domain ๐›บ on np patches ๐›บ1, โ€ฆ , ๐›บ๐‘›๐‘ . First, we define a partition of unity functions {๐œ”๐‘–}๐‘–=1 ๐‘›๐‘ subordinated to the covering {โ„ฆ๐‘–} ๐‘–=1 ๐‘›๐‘ such that โˆ‘ ๐œ”๐‘–(๐‘ฅ) = 1, ๐‘ฅ โˆˆ โ„ฆ, ๐‘›๐‘ ๐‘–=1 (28) where the weight function ๐œ”๐‘– โˆถ ๐›บ๐‘– โ†’ โ„ is compactly supported, non-negative and continuous. For each patch we may thus construct a local RBF interpolant ๐ผ๐‘ข ๐‘– โˆถ ๐›บ๐‘– โ†’ โ„ of the form: ๐ผ๐‘ข ๐‘– (๐‘ฅ) = โˆ‘ ๐œ†๐‘— ๐‘–๐‘›๐‘– ๐‘—=1 ๐œ‘(โ€–๐‘ฅ โˆ’ ๐‘ฅ๐‘— ๐‘–โ€–), (29) where ๐‘›๐‘– is the number of nodes in ฮฉi. Therefore, the global RBF-PUM interpolant is defined as Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2176 https://internationalpubls.com ๐ผ๐‘ข(๐‘ฅ) = โˆ‘ ๐œ”๐‘–(๐‘ฅ)๐ผ๐‘ข ๐‘– (๐‘ฅ) ๐‘›๐‘ ๐‘–=1 = โˆ‘ ๐œ”๐‘–(๐‘ฅ) ๐‘›๐‘ ๐‘–=1 โˆ‘ ๐œ†๐‘— ๐‘–๐‘›๐‘– ๐‘—=1 ๐œ‘(โ€–๐‘ฅ โˆ’ ๐‘ฅ๐‘— ๐‘–โ€–), ๐‘ฅ โˆˆ โ„ฆ, (30) By enforcing the interpolation condition, we have the following form of the global interpolant [32] ๐‘ˆ = โˆ‘ ๐‘…๐‘–๐‘Š๐‘– ๐‘›๐‘ ๐‘–=1 ๐ด๐‘–๐œ†๐‘–,ฬ…ฬ… ฬ… (31) where ๐‘ˆ is a vector containing the global solution at๐‘ฅ๐‘˜, ๐‘˜ = 1, โ€ฆ , ๐‘, ๐‘…๐‘– is a permutation projection operator which maps the local index set into the global one, ๐‘Š๐‘– is a diagonal matrix with element ๐œ”๐‘–(๐‘ฅ) on it and ๐ด๐‘– is the local RBF matrix. The weight function ๐œ”๐‘– are constructed using Shepardโ€™s method [33] ๐œ”๐‘–(๐‘ฅ) = ๐œ“๐‘–(๐‘ฅ) โˆ‘ ๐œ“๐‘™(๐‘ฅ) ๐‘›๐‘ ๐‘™=1 , ๐‘– = 1, โ€ฆ , ๐‘›๐‘ (32) where ๐œ“(๐‘ฅ) is compactly supported function with support on ๐›บ๐‘– . We have used the following compactly supported Wendland function [34] ๐œ“(๐‘Ÿ) = { (1 โˆ’ ๐‘Ÿ)2(32๐‘Ÿ3 + 25๐‘Ÿ2 + 8๐‘Ÿ + 1) 0 โ‰ค ๐‘Ÿ โ‰ค 1, 0 ๐‘Ÿ > 1 In this paper, we will use circular patches due to their flexibility in practice. Thus, the Wendland functions will be scaled to get ๐œ“๐‘–(๐‘ฅ) = ๐œ“ ( โ€–๐‘ฅโˆ’๐œ‰๐‘–โ€– ๐œŒ๐‘– ) , ๐‘– = 1, โ€ฆ , ๐‘›๐‘ (33) where ๐œ‰๐‘– and ๐œŒ๐‘– are, respectively, the centres and the radii of patches ๐›บ๐‘–, ๐‘– = 1, โ€ฆ , ๐‘›๐‘. Let ๐‘ข๐‘˜ ๐‘– be the value of local solution at the node ๐‘ฅ๐‘˜ located in ๐›บ๐‘–. Because our final target is to solve PDEs, the problem here is that there would be more unknown than equations. This can be fixed by requiring the local solutions ๐‘ข๐‘˜ ๐‘– to coincide with the global one. The interpolation property implies that ๐‘ข๐‘– = ๐ด๐‘–๐œ†๏ฟฝฬ…๏ฟฝ โ‡’ ๐œ†๏ฟฝฬ…๏ฟฝ = ๐ด๐‘– โˆ’1๐‘ข๐‘– (34) Therefore, the approximation of any linear differential operator ๐ฟ can be derived ๐ฟ๐‘ˆ = โˆ‘ ๐‘…๐‘–๐ฟ(๐‘Š๐‘– ๐‘›๐‘ ๐‘–=1 ๐ด๐‘–)๐œ†๐‘–ฬ…ฬ… ฬ…ฬ… (35) = โˆ‘ ๐‘…๐‘–๐ฟ(๐‘Š๐‘– ๐‘›๐‘ ๐‘–=1 ๐ด๐‘–)๐ด๐‘– โˆ’1๐‘ข๐‘– (36) = โˆ‘ ๐‘…๐‘–๐ท๐ฟ ๐‘–๐‘›๐‘ ๐‘–=1 ๐‘ข๐‘– (37) Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2177 https://internationalpubls.com where ๐ท๐ฟ ๐‘– is a local differentiation matrix which defined as ๐ท๐ฟ ๐‘– = ๐ฟ(๐‘Š๐‘–๐ด๐‘–)๐ด๐‘– โˆ’1. 3.2.2 Spatial discretization of SWEs using RBF-PUM We intend to illustrate the discretization of RBFโ€“PU method for the shallow water equations. Let {๐‘ฅ1, ๐‘ฅ2, . . . , ๐‘ฅ๐‘} be a set of ๐‘ distinct points. Using (35), the first and second spatial derivatives of a function ๐‘ธ(๐‘ฅ, ๐‘ก) can be expressed as follows: ๐œ•๐‘ธ(๐‘ฅ,๐‘ก) ๐œ•๐‘ฅ = โˆ‘ ๐‘…๐‘–๐ท๐‘ฅ ๐‘–๐‘›๐‘ ๐‘–=1 ๐‘ธ๐‘– , ๐œ•2๐‘ธ(๐‘ฅ,๐‘ก) ๐œ•๐‘ฅ2 = โˆ‘ ๐‘…๐‘–๐ท๐‘ฅ๐‘ฅ ๐‘–๐‘›๐‘ ๐‘–=1 ๐‘ธ๐‘– , (38) Hence, the global differentiation matrices ๐ท๐‘ฅ ฬ…ฬ… ฬ…ฬ… and ๐ท๐‘ฅ๐‘ฅ ฬ…ฬ… ฬ…ฬ… ฬ… is computed by assembling the above local matrices into the global one, (38) becomes ๐œ•๐‘ธ(๐‘ฅ,๐‘ก) ๐œ•๐‘ฅ = ๐ท๐‘ฅ ฬ…ฬ… ฬ…ฬ… ๐‘ธ(๐‘ฅ, ๐‘ก), ๐œ•2๐‘ธ(๐‘ฅ,๐‘ก) ๐œ•๐‘ฅ2 = ๐ท๐‘ฅ๐‘ฅ ฬ…ฬ… ฬ…ฬ… ฬ…๐‘ธ(๐‘ฅ, ๐‘ก), (39) The system (8) is approximated by the following equivalent system ๐œ•๐‘ก๐‘ธ = โˆ’๏ฟฝฬ…๏ฟฝ(๐‘ธ) + ๐‘†ฬ…(๐‘ธ) + ๏ฟฝฬ…๏ฟฝ(๐‘ธ). (40) Using the RBF-PUM to perform numerical evaluation, we obtain ๐น ฬ…(๐‘ธ) = ( ๐ท๐‘ฅ ฬ…ฬ… ฬ…ฬ… ๐‘ž ๐ท๐‘ฅ ฬ…ฬ… ฬ…ฬ… ( ๐‘ž2 โ„Ž + 1 2 ๐‘”โ„Ž2) ), ๐‘† ฬ…(๐‘ธ) = ( 0 โˆ’๐‘”โ„Ž๐ท๐‘ฅ ฬ…ฬ… ฬ…ฬ… ๐‘ ), ๐ป ฬ…ฬ… ฬ…(๐‘ธ) = (๐œ‡๐ท๐‘ฅ๐‘ฅ ฬ…ฬ… ฬ…ฬ… ฬ…ฬ… โ„Ž ๐œ‡๐ท๐‘ฅ๐‘ฅ ฬ…ฬ… ฬ…ฬ… ฬ…ฬ… ๐‘ž ), (41) Equivalent to ๐œ•๐‘ก๐‘ธ = ๐‘…๐ป๐‘†๐‘…๐ต๐นโˆ’๐‘ƒ๐‘ˆ๐‘€(๐‘ธ), where ๐‘…๐ป๐‘†๐‘…๐ต๐นโˆ’๐‘ƒ๐‘ˆ๐‘€(๐‘ธ) = โˆ’๏ฟฝฬ…๏ฟฝ(๐‘ธ) + ๐‘†ฬ…(๐‘ธ) + ๏ฟฝฬ…๏ฟฝ(๐‘ธ). (42) 3.4 RBF-PUM with QR factorization (RBF-PUM-QR) It is well known that the use of infinitely smooth RBFs (Table 1) can provide spectral accuracy for solving PDEs. As mentioned previously, this type of RBFs is usually formulated by including a free shape parameter ๐œ€, which is generally applied to control the fatness of the functions. Decreasing ๐œ€ often improves the accuracy of approximation. However, mathematical investigations show that when ๐œ€ โ†’ 0 (flat limit region), the RBF methods suffers from severe ill-conditioning. Therefore, RBF- PUM requires a stable evaluation method to converge as ๐œ€ โ†’ 0 [38, 39]. The obvious question becomes how to devise algorithms that balance numerical stability and computational efficiency when dealing with small values of ฮต. This was the subject of many papers published during the last two decades (e.g. [40, 41, 42]). Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2178 https://internationalpubls.com In order to use small values of the shape parameter in RBF-PUM, we consider the RBF-QR algorithm [40]. The essential concept behind the RBF-QR algorithm is finding a way to form a well conditioned basis in the same function space spanned by a finite set of nearly flat RBFs [41]. The change of basis will allow to remove the ill-conditioning issue while maintaining the same accuracy or even better one. The construction of the new basis was done by expanding the Gaussian RBF (Table (1)) on Chebyshev polynomials in one dimension, on Chebyshev polynomials and trigonometric functions in two dimensions and on a combination between Chebyshev polynomials and spherical harmonics in three dimensions. The new basis derived from RBF-QR algorithm spans the same approximation space as the Gaussian basis which produce an accurate numerical solutions and bypasses some limitations, including complications related to the selection of ฮต, ill-conditioning of RBF-PUM matrices. To have more details on the construction of the new basis, we refer the reader to [40]. 3.5 Temporal discretization of the numerical methods To achieve a higher order of accuracy, it is sensible to use a high order time discretization as well. The ODE systems (20), (21), (42) are integrated in time using the fourth order Runge-Kutta scheme. The procedure to advance the solution from the time ๐‘ก๐‘› to the next time ๐‘ก๐‘›+1 is carried out as ๐‘˜1 = โˆ†๐‘ก ๐‘…๐ป๐‘†(๐‘ธ๐‘›), ๐‘˜2 = โˆ†๐‘ก ๐‘…๐ป๐‘† (๐‘ธ๐‘› + 1 2 ๐‘˜1), ๐‘˜3 = โˆ†๐‘ก ๐‘…๐ป๐‘† (๐‘ธ๐‘› + 1 2 ๐‘˜2), ๐‘˜4 = โˆ†๐‘ก ๐‘…๐ป๐‘†(๐‘ธ๐‘› + ๐‘˜3), ๐‘ธ๐‘›+1 = ๐‘ธ๐‘› + 1 6 (๐‘˜1 + 2๐‘˜2 + 2๐‘˜3 + ๐‘˜4), (43) where ๐‘…๐ป๐‘† can be ๐‘…๐ป๐‘†๐‘˜๐‘Ž๐‘›๐‘ ๐‘Ž or ๐‘…๐ป๐‘†๐‘…๐ต๐นโˆ’๐น๐ท or๐‘…๐ป๐‘†๐‘…๐ต๐นโˆ’๐‘ƒ๐‘ˆ๐‘€, ๐‘› represents the time level and ๐›ฅ๐‘ก is the time step, this needs to be chosen carefully to guarantee the stability of the scheme. In all our simulations, we chose ๐›ฅ๐‘ก using the following formula: โˆ†๐‘ก = ๐ถ๐น๐ฟ ๐‘‘๐‘š๐‘–๐‘› max (|๐‘ข|+โˆš๐‘”โ„Ž) , (44) where ๐‘‘๐‘š๐‘–๐‘› denotes the smallest nodal distance between collocation points and ๐ถ๐น๐ฟ is the Courant number such that 0 < ๐ถ๐น๐ฟ < 1. In the following, Algorithm 1 and Algorithm 2 illustrates the full discretization of the SWEs using RBF-FD method and RBF-PUM-QR method, respectively. Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2179 https://internationalpubls.com Algorithm 1 Full discretization of 1D SWEs using RBF-FD method 1: Enter the required simulation parameters, i.e ๐‘ต, ๐, ๐’๐’๐’๐’„, ๐‘ป, ๐’๐’• . .. 2: Construct the RBF-FD differentiation matrices : a: Specify the computational domain ๐œด. b: Generate a set of collocation points (nodes) {๐’™๐’Š}๐’Š=๐Ÿ ๐‘ต in the domain ๐œด. c: Choose an RBF ๐‹ and determine the shape parameter ๐œบ. d: For each node ๐’™๐’Š, find a stencil of neighboring nodes {๐’™๐Ÿ ๐’Š , ๐’™๐Ÿ ๐’Š , โ€ฆ , ๐’™๐’๐’๐’๐’„ ๐’Š }. e: Form a local RBF interpolation matrix using the stencil nodes. f: Construct the differentiation matrices ๐‘พ๐’™ and ๐‘พ๐’™๐’™ by differentiating the RBFs and solving for the weights the system (22). 3: Make the right hand side of ODE obtained : ๐‘น๐‘ฏ๐‘บ๐’‰ = @(๐’‰, ๐’’) โˆ’ ๐‘พ๐’™๐’’ + ๐๐‘พ๐’™๐’™๐’‰ (45.a) ๐‘น๐‘ฏ๐‘บ๐’’ = @(๐’‰, ๐’’) โˆ’ ๐‘พ๐’™ ( ๐’’๐Ÿ ๐’‰ + ๐Ÿ ๐Ÿ ๐’ˆ๐’‰๐Ÿ) โˆ’๐’ˆ(๐’‰. ๐‘พ๐’™๐’ƒ) + ๐๐‘พ๐’™๐’™๐’’ (45.b) 4: Enter initial condition. 5: for ๐’‹ = ๐Ÿ: ๐’๐’• do 6: ๐’• = ๐’‹. ๐’…๐’• 7: ๐’Œ๐Ÿ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’‰(๐’‰, ๐’’) ๐’Œ๐Ÿ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’’(๐’‰, ๐’’) 8: ๐’Œ๐Ÿ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’‰(๐’‰ + ๐’Œ๐Ÿ ๐Ÿ , ๐’’) ๐’Œ๐Ÿ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’’(๐’‰, ๐’’ + ๐’Œ๐Ÿ ๐Ÿ ) 9: ๐’Œ๐Ÿ‘ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’‰(๐’‰ + ๐’Œ๐Ÿ ๐Ÿ , ๐’’) ๐’Œ๐Ÿ‘ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’’(๐’‰, ๐’’ + ๐’Œ๐Ÿ ๐Ÿ ) 10: ๐’Œ๐Ÿ’ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’‰(๐’‰ + ๐’Œ๐Ÿ‘, ๐’’) ๐’Œ๐Ÿ’ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’’(๐’‰, ๐’’ + ๐’Œ๐Ÿ‘) 11: ๐’‰ = ๐’‰ + ๐Ÿ ๐Ÿ” (๐’Œ๐Ÿ + ๐Ÿ๐’Œ๐Ÿ + ๐Ÿ๐’Œ๐Ÿ‘ + ๐’Œ๐Ÿ’) ๐’’ = ๐’’ + ๐Ÿ ๐Ÿ” (๐’Œ๐Ÿ + ๐Ÿ๐’Œ๐Ÿ + ๐Ÿ๐’Œ๐Ÿ‘ + ๐’Œ๐Ÿ’) 12: Apply boundary condition. 13: end 14: Compute error. Algorithm 1 Full discretization of 1D SWEs using RBF-PUM-QR method 1: Enter the required simulation parameters, i.e ๐‘ต, ๐, ๐’๐’‘, ๐‘ป, ๐’๐’• . .. 2: Construct the RBF-PUM-QR differentiation matrices : a: Specify the computational domain ๐œด. b: Generate a set of collocation points (nodes) {๐’™๐’Š}๐’Š=๐Ÿ ๐‘ต in the domain ๐œด. c: Divide the domain into overlapping subdomains {โ„ฆ๐’Š}๐’Š=๐Ÿ ๐’๐’‘ such that ๐œด โІ โ‹ƒ ๐œด๐’Š ๐’๐’‘ ๐’Š=๐Ÿ . d: For each subdomain โ„ฆ๐’Š, select a set of nodes {๐’™๐’‹ ๐’Š}๐’‹=๐Ÿ ๐’๐’Š within โ„ฆ๐’Š . e: For each point {๐’™๐’‹ ๐’Š}๐’‹=๐Ÿ ๐’๐’Š , define the partition of unity using Shepardโ€™s method (32). f: Construct the differentiation matrices ๐‘ซ๐’™ ฬ…ฬ… ฬ…ฬ… and ๐‘ซ๐’™๐’™ ฬ…ฬ… ฬ…ฬ… ฬ…ฬ… using the differentiation weights obtained from the QR factorization of the local RBF-PUM systems, specifically using Gaussian RBFs [40]. Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2180 https://internationalpubls.com 3: Make the right hand side of ODE obtained : ๐‘น๐‘ฏ๐‘บ๐’‰ = @(๐’‰, ๐’’) โˆ’ ๐‘ซ๐’™ ฬ…ฬ… ฬ…ฬ… ๐’’ + ๐๐‘ซ๐’™๐’™ ฬ…ฬ… ฬ…ฬ… ฬ…ฬ… ๐’‰ (46.a) ๐‘น๐‘ฏ๐‘บ๐’’ = @(๐’‰, ๐’’) โˆ’ ๐‘ซ๐’™ ฬ…ฬ… ฬ…ฬ… ( ๐’’๐Ÿ ๐’‰ + ๐Ÿ ๐Ÿ ๐’ˆ๐’‰๐Ÿ) โˆ’ ๐’ˆ(๐’‰. ๐‘ซ๐’™ ฬ…ฬ… ฬ…ฬ… ๐’ƒ) + ๐๐‘ซ๐’™๐’™ ฬ…ฬ… ฬ…ฬ… ฬ…ฬ… ๐’’ (46.b) 4: Enter initial condition. 5: for ๐’‹ = ๐Ÿ: ๐’๐’• do 6: ๐’• = ๐’‹. ๐’…๐’• 7: ๐’Œ๐Ÿ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’‰(๐’‰, ๐’’) ๐’Œ๐Ÿ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’’(๐’‰, ๐’’) 8: ๐’Œ๐Ÿ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’‰(๐’‰ + ๐’Œ๐Ÿ ๐Ÿ , ๐’’) ๐’Œ๐Ÿ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’’(๐’‰, ๐’’ + ๐’Œ๐Ÿ ๐Ÿ ) 9: ๐’Œ๐Ÿ‘ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’‰(๐’‰ + ๐’Œ๐Ÿ ๐Ÿ , ๐’’) ๐’Œ๐Ÿ‘ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’’(๐’‰, ๐’’ + ๐’Œ๐Ÿ ๐Ÿ ) 10: ๐’Œ๐Ÿ’ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’‰(๐’‰ + ๐’Œ๐Ÿ‘, ๐’’) ๐’Œ๐Ÿ’ = ๐’…๐’•. ๐‘น๐‘ฏ๐‘บ๐’’(๐’‰, ๐’’ + ๐’Œ๐Ÿ‘) 11: ๐’‰ = ๐’‰ + ๐Ÿ ๐Ÿ” (๐’Œ๐Ÿ + ๐Ÿ๐’Œ๐Ÿ + ๐Ÿ๐’Œ๐Ÿ‘ + ๐’Œ๐Ÿ’) ๐’’ = ๐’’ + ๐Ÿ ๐Ÿ” (๐’Œ๐Ÿ + ๐Ÿ๐’Œ๐Ÿ + ๐Ÿ๐’Œ๐Ÿ‘ + ๐’Œ๐Ÿ’) 12: Apply boundary condition. 13: end 14: Compute error. 3.6 Friction source term discretization The non-linear nature of the friction terms (2), (3) and their interactions with other source terms remains to be a challenge for developing numerically accurate and stable schemes to solve the SWEs for simulating very shallow flows as found in the applications involving overland flows and wet/dry fronts. Indeed, the friction term actually dominates the stability of a numerical scheme. In particular, when the water depth becomes very small, the friction formulations may lead to an exaggerated force that can even reverse the flow, which is obviously physically incorrect [43]. To deal with this problem, at the beginning of each step of the Runge-Kutta scheme, the friction effect is evaluated and used implicitly by the splitting method described by [27, 43], and it is equivalent to solve the following ordinary differential equations ๐œ•๐‘ž ๐œ•๐‘ก = ๐‘†๐‘“ . (47) Since the friction term is only involved in the momentum equation, only the flow rates need to be evaluated. The above equation is then discretized by a full implicit method as: ๐‘ž๐‘›+1โˆ’๐‘ž๐‘› โˆ†๐‘ก = ๐‘†๐‘“ ๐‘›+1, (48) Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2181 https://internationalpubls.com where the friction term ๐‘†๐‘“ ๐‘›+1 may be expressed using a Taylor series as ๐‘†๐‘“ ๐‘›+1 = ๐‘†๐‘“ ๐‘› + ( ๐œ•๐‘†๐‘“ ๐œ•๐‘ž ) ๐‘› โˆ†๐‘ž + ๐‘œ(โˆ†๐‘ž2), (49) Where โˆ†๐‘ž = ๐‘ž๐‘›+1 โˆ’ ๐‘ž๐‘›. Ignoring the higher-order terms and substituting the above equation into (48) lead to the following formula for updating water discharge ๐‘ž at the new time step: ๐‘ž๐‘›+1 = ๐‘ž๐‘› + โˆ†๐‘ก ๐‘†๐‘“ ๐‘› 1โˆ’โˆ†๐‘ก( ๐œ•๐‘†๐‘“ ๐œ•๐‘ž ) ๐‘› (50) = ๐‘ž๐‘› + โˆ†๐‘ก ( ๐‘†๐‘“ ๐ท ) ๐‘› = ๐‘ž๐‘› + โˆ†๐‘ก๐น, (51) where ๐ท = { 1 + 2โˆ†๐‘ก ( ๐‘”๐‘›2|๐‘ข| โ„Ž 4 3 ) 1 + 2โˆ†๐‘ก ( ๐‘“|๐‘ข| 8โ„Ž ) (52) ๐ท is the coefficient derived for a full implicit scheme where the first line is for manning law and the second line is for Darcy-Weisbach law and ๐น is the friction source term including the implicit coefficient. This updated water discharge is used as an initial condition for the operators in equation (43). 4. Numerical results In order to verify the feasibility and the ability of the proposed methods combined with artificial viscosity to solve the problem with strong discontinuity appears in SWEs, we present sets of numerical tests, including various frictionless steady-state solutions, transient solutions and steady-state solutions with friction to address different numerical challenges. These problems are widely used to test numerical algorithms for the SWEs (e.g. [44, 45, 51]). The goal of the first numerical test is to assess the ability of the suggested schemes to capture steady state solutions, in addition to preserving them. The second numerical example is performed to test if the numerical methods catches the transitory behaviour and shock behaviour of the solution properly. The third numerical test verifies the accuracy of the proposed methods in preserving moving steady states that involve both topography and friction. The following parameters are defined: ๐‘ is the total number of nodes in the whole computational domain, ๐‘›๐‘™๐‘œ๐‘ is the stencil number of the RBF-FD method based on the inverse multiquadric radial basis function, the optimal shape parameter ๐œ€ is selected using the computed error of the approximate solutions, ๐‘›๐‘ is the number of patch of the RBF-PUM-QR method. For Kansa method based on the multiquadric radial basis function, the shape parameter ๐œ€ = ๐œ€0โˆš๐‘ ๐‘‘๐‘š๐‘–๐‘› in which ๐‘‘๐‘š๐‘–๐‘› is the minimum distance between two nodes and 10โˆ’4 โ‰ค ๐œ€0 โ‰ค 10โˆ’1 [46] and ๐‘‡ is the terminal time of the simulation. To show the advantages of the methods in terms of accuracy, we compute the relative error as follows: Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2182 https://internationalpubls.com ๐ธ๐‘Ÿ๐‘Ÿ = โˆš1 ๐‘ โˆ‘ ( ๐‘ธ๐‘›๐‘ข๐‘š(๐‘ฅ๐‘–,๐‘ก)โˆ’๐‘ธ๐‘Ž๐‘›๐‘Ž(๐‘ฅ๐‘–,๐‘ก) ๐‘ธ๐‘Ž๐‘›๐‘Ž(๐‘ฅ๐‘–,๐‘ก) ) 2 ๐‘ ๐‘–=1 , (53) where ๐‘ธ๐‘›๐‘ข๐‘š and ๐‘ธ๐‘Ž๐‘›๐‘Ž are respectively, the numerical and analytical solutions. In all our computations a fixed courant number ๐ถ๐น๐ฟ = 0.5. The numerical tests are performed on a core CPU i5 2.11GH computer in a MATLAB 2018a tools. 4.1 Test 1: Steady flow over a bump According to [47], the source term appears in (8) is a crucial point in preserving steady states. In order to prove the ability of the proposed methods to catch these states, we apply the schemes to a series of benchmark cases of different boundary and initial conditions [48]. These benchmarks have been derived by considering the Bernoulli equation that governs the steady state solutions of the shallow- water equations with non-flat topography and a vanishing friction contribution, The experiments from [48] are called the subcritical flow, the transcritical flow without shock and the transcritical flow with shock. The computational domain is a rectangular channel with ๐ฟ = 25 ๐‘š in length. The inflow and outflow boundary conditions are imposed along the left and the right boundary segments, respectively. The bed elevation of a bump is defined as follows: ๐‘(๐‘ฅ) = {0.2 โˆ’ 0.05(๐‘ฅ โˆ’ 10)2 8๐‘š < ๐‘ฅ < 12๐‘š 0 ๐‘œ๐‘กโ„Ž๐‘’๐‘Ÿ๐‘ค๐‘–๐‘ ๐‘’. (54) The boundary conditions are defined in terms of two quantities, ๐‘ž0 and โ„Ž๐ฟ , whose values vary depending on the specific experiment being analysed: โ€ข on the left boundary, the water height satisfies a homogeneous Neumann condition and the discharge is set to a specific ๐‘ž0. โ€ข on the right boundary, the water height is set to โ„Ž๐ฟ when the flow is subcritical (and a homogeneous Neumann boundary condition is prescribed otherwise), and the discharge follows a homogeneous Neumann boundary condition. In addition, the initial conditions set to โ„Ž(๐‘ฅ) + ๐‘(๐‘ฅ) = โ„Ž๐ฟ๐‘š and ๐‘ž(๐‘ฅ) = 0๐‘š2/๐‘  throughout the domain. All these results are frictionless and displayed at ๐‘‡ = 200๐‘  using๐‘ = 1001, ๐‘›๐‘™๐‘œ๐‘ = 100 and ๐‘›๐‘ = 300, the analytical solutions are also plotted within the obtained numerical results. 4.1.1 Subcritical flow For this test, a discharge of ๐‘ž0 = 4.42๐‘š2/๐‘  and the constant water surface level of the water level โ„Ž๐ฟ = 2๐‘š are set as upstream and downstream boundary conditions, respectively. The steady-state numerical solutions of water height โ„Ž and discharge ๐‘ž compared with the analytical solution [48] are plotted in Figure 1. The numerical examples are performed for Kansa method using ๐œ‡ = 8 ร— 10โˆ’3, for Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2183 https://internationalpubls.com RBF-PUM-QR method using ๐œ‡ = 8 ร— 10โˆ’3, and for RBF-FD method using ๐œ‡ = 2 ร— 10โˆ’3 with the optimal shape parameter ๐œ€ = 5 . The selection of an optimal shape parameter ๐œ€ and the viscosity coefficient ๐œ‡ in all tests in this paper was made using trial and error strategy. The strategy is to perform a series of experiments by varying the values of the shape parameter or viscosity coefficient, and then pick the best one corresponding to the smallest error. In Figure 1, it is evident that the impact of a bump in subcritical flow is clearly observable and the model can well capture the drop of the water surface elevation at the bump. A more detailed analysis of the numerical error is listed in Table 2. Figure 2 shows the computed ๐ฟ2 error for different values of the viscosity coefficient ๐œ‡. From Figure 2, we remark that for Kansa method the minimum error is for obtained around ๐œ‡ = 10โˆ’3, for RBF-FD method ๐œ‡ = 10โˆ’2 and for RBF-PUM-QR method ๐œ‡ = 10โˆ’3 . We make a error analysis for the subcritical flow problem using RBF-FD method (see Figure 3 (a)). Four different stencil sizes are used, ๐‘›๐‘™๐‘œ๐‘ = 20, ๐‘›๐‘™๐‘œ๐‘ = 100 and ๐‘›๐‘™๐‘œ๐‘ = 150. The result seen in Figure 3 (a) plotted in logarithmic scales , where the ๐ฟ2-norm of the numerical error is plotted against the grid size, we display in Figure 3 (b) the error of the numerical solution at ๐‘‡ = 200 seconds in terms of the shape parameter in order to show that stable computations were achieved for ๐œ€ = 5. The computed solutions are oscillation-free which demonstrates the ability of the proposed methods to accurately capture steady state solutions. Table 2. Error comparison of water level and discharge for different flow conditions (subcritical, transcritical without shock and transcritical with shock) using Kansa, RBF-FD and RBF-PUM-QR methods. Kansa RBF-FD RBF-PUM-QR Water height โ„Ž[๐‘š] 6.73 ร— 10โˆ’6 3.94 ร— 10โˆ’6 1.38 ร— 10โˆ’6 Subcritical Discharge ๐‘ž[๐‘š2/๐‘ ] 7. 02 ร— 10โˆ’6 4.21 ร— 10โˆ’6 1.05 ร— 10โˆ’6 Water height โ„Ž[๐‘š] 3.99 ร— 10โˆ’5 1.95 ร— 10โˆ’5 1.26 ร— 10โˆ’5 Transcritical without shock Discharge ๐‘ž[๐‘š2/๐‘ ] 1. 88 ร— 10โˆ’5 1.06 ร— 10โˆ’5 6.90 ร— 10โˆ’6 Water height โ„Ž[๐‘š] 4.70 ร— 10โˆ’4 4.51 ร— 10โˆ’4 4.40 ร— 10โˆ’4 Transcritical with shock Discharge ๐‘ž[๐‘š2/๐‘ ] 3.50ร— 10โˆ’4 2.50 ร— 10โˆ’4 3.10 ร— 10โˆ’4 Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2184 https://internationalpubls.com (a) Kansa method (b) RBF-FD method (c) RBF-PUM-QR method Figure 1. Subcritical flow over a bump using (a) Kansa, (b) RBF-FD, and (c) RBF-PUM-QR at T = 200 seconds 4.1.2 Transcritical flow without shock In this case, the upstream inflow of the discharge ๐‘ž0 = 1.53๐‘š2/๐‘  is imposed and a downstream condition for the height โ„Ž๐ฟ = 0.40๐‘š only if the flow is subcritical. If the flow is supercritical, no condition is imposed. The numerical examples are performed for Kansa method using ๐œ‡ = 7 ร— 10โˆ’3, for RBF-FD method using ๐œ‡ = 4 ร— 10โˆ’3, the optimal shape parameter ๐œ€ = 7 and for RBF-PUM-QR method using ๐œ‡ = 10โˆ’3. As shown in Figure 4, the water height and discharge are compared with the analytical solution [48], which can be observed that the water surface drops significantly as the flow passes through the bump. The transcritical flow happened nearby the bump, since the subcritical flow is at the upstream and the supercritical flow is at the downstream. The errors of water height โ„Ž and Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2185 https://internationalpubls.com discharge ๐‘ž are listed in Table 2. It can be clearly seen that the numerical and analytical solutions are in good agreement. (a) Kansa method (b) RBF-FD method (c) RBF-PUM-QR method Figure 2. ๐ฟ2 error as a function of the viscosity coefficient for the โ€Subcritical flowโ€ problem for (a) Kansa, (b) RBF-FD, and (c) RBF-PUM-QR at T = 200 seconds Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2186 https://internationalpubls.com (a) (b) Figure 3. (a) ๐ฟ2 Errors of the RBF-FD method for solving โ€Subcritical flowโ€ problem using ๐œ‡ = 8 ร— 10โˆ’3. (b) ๐ฟ2 error in terms of the shape parameter ๐œ€. 4.1.3 Transcritical flow with shock This case is similar to the previous one but with different boundary conditions. Here, a discharge of ๐‘ž0 = 0.18๐‘š2/๐‘  is imposed as the upstream boundary condition and a water level of โ„Ž๐ฟ = 0.33๐‘š as the downstream boundary condition; The flow regime changed from subcritical flow to supercritical flow and back to subcritical flow with a hydraulic jump over the bump. For this numerical test, we used the following parameters ๐œ‡ = 8 ร— 10โˆ’3, ๐œ‡ = 6 ร— 10โˆ’3 and ๐œ‡ = 9 ร— 10โˆ’3, for Kansa, RBF-FD, RBF-PUM-QR methods respectively. In our simulation, we set the shape parameter ๐œ€ = 5 . Figure 5, shows the numerical solutions concerning the water height and discharge, compared with the analytical solution. However, near the jump discontinuity we can observe differences that are even more clear when we compare analytical and numerical discharge. A more quantitative analysis of the accuracy is listed in Table 1, we observe that capturing the discharge ๐‘ž correctly in the Kansa method is more difficult than in the other methods. From the results and comparisons in this example, the merits of the proposed meshless methods are verified. 4.2 Test 2: Dam break problem The dam-break problem is the most commonly investigated problem and have also become the standard test scenario for numerical methods for shallow water equations. Toro [49] has the dam-break Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2187 https://internationalpubls.com (a) Kansa method (b) RBF-FD method (c) RBF-PUM-QR method Figure 4. Transcritical flow without shock over a bump using (a) Kansa, (b) RBF-FD, and (c) RBF- PUM-QR at T = 200 seconds in high regard, because its solution includes both continuous and discontinuous solutions at the same time, and several researches have shown that the shallow water equations are suitable for the representation of dam-break flows e.g. [3, 50, 51] and thus, in order to examine the capability of the proposed methods considering artificial viscosity term to solve the problem of discontinuous initial condition, we consider dam-break test is adopted as the second test. The one-dimensional dam break is an initial value problem consisting of two still bodies of water of different heights. The upstream body (the reservoir) is separated from the downstream body of water by a partition that is instantaneously removed at time ๐‘ก = 0 seconds. The two bodies of water are allowed to interact under the force of gravity. We consider the dam-break problem in a rectangular channel with flat bottom, ๐‘(๐‘ฅ) = 0 and frictionless. The channel is of length 10๐‘š and the initial conditions are given by Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2188 https://internationalpubls.com (a) Kansa method (b) RBF-FD method (c) RBF-PUM-QR method Figure 5. Transcritical flow with shock over a bump using (a) Kansa, (b) RBF-FD, and (c) RBF- PUM-QR at T = 200 seconds ๐‘ž(๐‘ฅ, 0) = 0 and โ„Ž(๐‘ฅ, 0) = { 0.005 ๐‘ฅ < 5๐‘š 0.001 ๐‘œ๐‘กโ„Ž๐‘’๐‘Ÿ๐‘ค๐‘–๐‘ ๐‘’ (55) As boundary conditions, a zero discharge and a free boundary are considered at the left and right ends of the channel. The analytical solution for this simple dam break test consists of a backward propagating rarefaction and a forward-moving shock wave [49]. The comparison of the numerical results at ๐‘‡ = 2, 4, 6 ๐‘  are displayed in Figure 6 for RBF-FD method using ๐œ‡ = 2 ร— 10โˆ’4 and the optimal shape parameter ๐œ€ = 12. Table 3 depicts the error comparison of water height โ„Ž and discharg Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2189 https://internationalpubls.com Table 2. Error comparison of water level and discharge for Dam break problem over a wet bed. Kansa RBF-FD RBF-PUM-QR Water height โ„Ž[๐‘š] 3.07 ร— 10โˆ’4 1.71 ร— 10โˆ’4 2.10 ร— 10โˆ’4 Discharge ๐‘ž[๐‘š2/๐‘ ] 1.48ร— 10โˆ’3 9.76 ร— 10โˆ’4 8.85 ร— 10โˆ’4 Figure 6: Dam-break on wet bed using RBF-FD method at ๐‘‡ = 2, 4, 6 ๐‘ , top: water height, bottom: discharge. for all RBF-based methods. The results show that the proposed meshless numerical methods with hyperviscosity has ability of shock capturing and provides stability in dealing with problems with discontinuous flow. Additionally, Figure 7 shows the computed ๐ฟ2 error for different values of the viscosity coefficient ๐œ‡, this coefficient controls the accuracy of the method where small values are expected to provide accurate solutions, and should be a limit value of around 10โˆ’4 to avoid instability issues. Another consequence is that the accuracy of RBF-FD method does not indefinitely increase with stencil size ๐‘›๐‘™๐‘œ๐‘. As shown in Figure 8 (left) the stencil size has no bearing on accuracy, hence ๐‘›๐‘™๐‘œ๐‘ = 100 is the stencil size chosen for this test case. With ๐œ‡ = 10โˆ’4, we display in Figure 8 (right) the curve of the ๐ฟ2 in terms of the shape parameter ฮต, we remark that the minimum error is obtained for ๐œ€ = 12. From this study, we can note that increasing the number of points per stencil leads to enhanced accuracy. Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2190 https://internationalpubls.com 4.3 Test 3: Steady flow with friction (a) Kansa method (b) RBF-FD method (c) RBF-PUM-QR method Figure 7. ๐ฟ2 error as a function of the viscosity coefficient for the โ€Dam-breakโ€ problem for (a) Kansa, (b) RBF-FD, and (c) RBF-PUM-QR at T = 6 seconds Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2191 https://internationalpubls.com (a) (b) Figure 8. (a) ๐ฟ2 Errors of the RBF-FD method for solving โ€Dam-breakโ€ problem with respect to the number of stencils using ๐œ‡ = 2 ร— 10โˆ’4. (b) ๐ฟ2 error in terms of the shape parameter ๐œ€. The solutions presented in this section are more intricate than those in the previous section 4.1-4.2 due to the variability of the topography near the boundaries. Consequently, they provide a more rigorous validation of the boundary conditions. When ๐‘†๐‘“ = 0 (indicating bottom friction), the following solutions can verify if the friction terms are implemented correctly to maintain steady states. These solutions are derived using the procedure introduced by I. MacDonald [52, 53]: given the water depth profile and the discharge, the corresponding topography is subsequently computed. The three selected solutions illustrate the efficacy of the scheme in addressing stationary states induced by the topography and by friction under a wide range of flow conditions. At steady states, we have ๐œ•๐‘กโ„Ž = ๐œ•๐‘ก๐‘ข = ๐œ•๐‘ก๐‘ž = 0, thus the mass-conservation equation gives ๐‘ž = constant and we get the equation ๐œ•๐‘ฅ๐‘ = ( ๐‘ž2 ๐‘”โ„Ž3 โˆ’ 1) ๐œ•๐‘ฅโ„Ž + ๐‘†๐‘“. (56) Where ๐‘†๐‘“ depends on the friction law chosen. From this relation, one can make as many solutions as needed. In this section, we present a few of these solutions obtained for specific value of the domain length ๐ฟ and fixed parameters, such as the friction law and its coefficient. The water height profile and the discharge are provided, and the corresponding topographies are computed by solving the equation (56) with a high order iterative method [51]. In the following computations, the initial conditions set to โ„Ž(๐‘ฅ) + ๐‘(๐‘ฅ) = 0, ๐‘ž(๐‘ฅ) = 0 and all results are displayed at ๐‘‡ = 1500๐‘  using ๐‘ = 801, ๐‘›๐‘™๐‘œ๐‘ = 100 and ๐‘›๐‘ = 400 . The analytical solutions shown in [51] are also plotted within the obtained numerical results. Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2192 https://internationalpubls.com 4.3.1 Subcritical flow We consider a ๐ฟ = 1000 ๐‘š long channel with a discharge of q = 2๐‘š2/๐‘ . The flow is subcritical at inflow and is subcritical at outflow with depth โ„Ž๐‘Ž๐‘›๐‘Ž(1000) = 0.748409 ๐‘š where โ„Ž๐‘Ž๐‘›๐‘Ž is analytical solution. The Manning coefficient for the channel is ๐‘› = 0.033๐‘šโˆ’1/3๐‘ . The boundary conditions set to { ๐‘ž(๐‘ฅ) = 2 ๐‘ฅ = 0 โ„Ž(๐‘ฅ) = โ„Ž๐‘Ž๐‘›๐‘Ž(1000) ๐‘ฅ = ๐ฟ (57) The water depth and discharge are shown in Figure 9 for Kansa, RBF-FD with an optimal shape parameter ฮต = 0.25 and RBF-PUM-QR methods using ๐œ‡ = 10โˆ’1 in all cases. The numerical solutions is very close to the analytical solution, and we obtained very satisfying results in the approximation of the steady discharge and water height as illustrated in Table 4. Figure 10 shows the computed ๐ฟ2 error for different values of the viscosity coefficient ๐œ‡. From Figure 10, we remark that for Kansa method the minimum error is for obtained around ๐œ‡ = 10โˆ’1, for RBF-FD method ๐œ‡ = 10โˆ’1 and for RBF- PUM-QR method ๐œ‡ = 10โˆ’1. We make an error analysis for the subcritical flow problem using RBF- FD method (see Figure 11 (a)). Four different stencil sizes are used, ๐‘›๐‘™๐‘œ๐‘ = 20, ๐‘›๐‘™๐‘œ๐‘ = 100 and ๐‘›๐‘™๐‘œ๐‘ = 150. The result in seen in Figure 11 (a) plotted in logarithmic scales, where the ๐ฟ2-norm of the numerical error is plotted against the grid size, we display in Figure 11 (b) the error of the numerical solution at ๐‘‡ = 1500 seconds in terms of the shape parameter in order to show that stable computations were achieved for ๐œ€ = 0.25. From the results and comparisons in this example, the merits of the proposed meshless method are verified. 4.3.2 Supercritical flow Considering a 1000 ๐‘š long computational domain with a discharge of q = 2๐‘š2/๐‘  . The flow is supercritical at inflow with depth โ„Ž๐‘Ž๐‘›๐‘Ž(0) = 0.741599 ๐‘š and is supercritical at outflow. The Manning coefficient for the channel is ๐‘› = 0.0218๐‘šโˆ’1/3๐‘ . The boundary conditions set to { ๐‘ž(๐‘ฅ) = 2, โ„Ž(๐‘ฅ) = โ„Ž๐‘Ž๐‘›๐‘Ž(0) ๐‘ฅ = 0, ๐‘“๐‘Ÿ๐‘’๐‘’ ๐‘ฅ = ๐ฟ. (58) The initial free surface is set to zero on the whole domain. We show on Figure 12 the steady state water free surface and discharge at ๐‘‡ = 1500๐‘  and we observe very close agreement between numerical results and the reference solution. The numerical examples are performed for Kansa, RBF-FD with an optimal shape parameter ๐œ€ = 0.1 and RBF-PUM-QR methods using ๐œ‡ = 10โˆ’1 for all cases. The error of converged results by different schemes are listed in Table 4. Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2193 https://internationalpubls.com 4.3.3 Supercritical to subcritical flow We consider a discharge of q = 2๐‘š2/๐‘ . Again, the initial free surface and discharge are set to zero on the whole domain. The flow is supercritical at inflow with depth โ„Ž๐‘Ž๐‘›๐‘Ž(0) = 0.543853๐‘š and is Table 4. Error comparison of water level and discharge for different flow conditions (subcritical, supercritical and supercritical to subcritical) with friction using Kansa, RBF-FD and RBF-PUM-QR methods. Kansa RBF-FD RBF-PUM-QR Water height โ„Ž[๐‘š] 2.66 ร— 10โˆ’4 2.29 ร— 10โˆ’4 2.55 ร— 10โˆ’4 Subcritical Discharge ๐‘ž[๐‘š2/๐‘ ] 1.85 ร— 10โˆ’4 1.39 ร— 10โˆ’4 1.82 ร— 10โˆ’4 Water height โ„Ž[๐‘š] 8.88 ร— 10โˆ’5 1.07 ร— 10โˆ’5 8.65 ร— 10โˆ’5 Supercritical Discharge ๐‘ž[๐‘š2/๐‘ ] 9.55 ร— 10โˆ’5 7.83 ร— 10โˆ’5 6.04 ร— 10โˆ’6 Water height โ„Ž[๐‘š] 6.45 ร— 10โˆ’4 8.31 ร— 10โˆ’4 5.20 ร— 10โˆ’4 Supercritical to subcritical Discharge ๐‘ž[๐‘š2/๐‘ ] 2.83 ร— 10โˆ’4 3.21 ร— 10โˆ’4 2.50 ร— 10โˆ’4 subcritical at outflow with depth โ„Ž๐‘Ž๐‘›๐‘Ž(1000) = 1.334899m . The Manning coefficient for the channel is ๐‘› = 0.0218๐‘šโˆ’1/3๐‘ . The boundary conditions set to { ๐‘ž(๐‘ฅ) = 2, โ„Ž(๐‘ฅ) = โ„Ž๐‘Ž๐‘›๐‘Ž(0) ๐‘ฅ = 0, โ„Ž(๐‘ฅ) = โ„Ž๐‘Ž๐‘›๐‘Ž(1000) ๐‘ฅ = ๐ฟ. (59) The water depth and discharge are shown in Figure 13 for Kansa, RBF-FD ๐œ€ = 0.1 and RBF-PUM- QR methods using ๐œ‡ = 10โˆ’1. We can clearly see that the flow accurately converges towards the steady state and that the shock location is accurately computed. The comparison of the relative error of the results by Kansa, RBF-FD and RBF-PUM-QR methods is shown in Table 4. 5. Conclusion In this paper, the shallow water equations is presented to simulate the one-dimensional flow of water in channels. The resulting system is solved numerically using a globally, localized and stable meshless methods based on radial basis functions. In order to stabilize these methods and minimize the non- physical numerical oscillations near the discontinuities which can solve the strong discontinuity Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2194 https://internationalpubls.com problem in SWEs, an artificial viscosity (Hyperviscosity) technique is implemented. In Kansaโ€™s method the system to be solved is dense and therefore it was necessary to refer to localized meshless methods such as RBF-FD and RBF-PUM in order to present sparsity and locality. The problem of choosing any value of shape parameter ฮต from the flat limit region which affect the accuracy of the solution can be handled by combining the RBF-PUM with RBF-QR approach. The proposed meshless methods with hyperviscosity has been tested on systems of shallow water equations at different flow regimes. The obtained results indicate good shock resolution with high (a) Kansa method (b) RBF-FD method (c) RBF-PUM-QR method Figure 9. Subcritical flow using (a) Kansa, (b) RBF-FD, and (c) RBF-PUM-QR methods at T = 1500 seconds with Manning friction ๐‘› = 0.033๐‘šโˆ’1/3๐‘ . accuracy in smooth regions, and the convergence to the correct steady state solution has been clearly verified in flow over a non-flat bottom, which confirm the numerical stability and computational Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2195 https://internationalpubls.com accuracy. Additionally, the main challenge encountered was the selection of hyperviscosity parameters, particularly the constant ฮผ and its scaling relations, to ensure adequate stabilization across a wide range of flow regimes and discretization densities. While our numerical computations have been limited to one-dimensional shallow water problems, the current meshless-based RBF methods can be readily extended to two-dimensional shallow water problems incorporating source terms. These extensions, along with other related issues, will be the focus of future investigations. (a) Kansa method (b) RBF-FD method (c) RBF-PUM-QR method Figure 10. ๐ฟ2 error as a function of the viscosity coefficient for the โ€Subcritical flowโ€ problem for (a) Kansa, (b) RBF-FD, and (c) RBF-PUM-QR at T = 1500 seconds Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2196 https://internationalpubls.com (a) (b) Figure 11. (a) ๐ฟ2 Errors of the RBF-FD method for solving โ€Subcritical flowโ€ problem with respect to the number of stencils using ๐œ‡ = 10โˆ’1. (b) ๐ฟ2 error in terms of the shape parameter ๐œ€. (a) Kansa method (b) RBF-FD method Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2197 https://internationalpubls.com (c) RBF-PUM-QR method Figure 12. Supercritical flow using (a) Kansa, (b) RBF-FD, and (c) RBF-PUM-QR methods at T = 1500 seconds with Manning friction ๐‘› = 0.0218๐‘šโˆ’1/3๐‘ . (a) Kansa method (b) RBF-FD method (c) RBF-PUM-QR method Figure 13. Supercritical to subcritical flow using (a) Kansa, (b) RBF-FD, and (c) RBF-PUM-QR methods at T = 1500 seconds with Manning friction ๐‘› = 0.0218๐‘šโˆ’1/3๐‘ . Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2198 https://internationalpubls.com Refrences [1] A.B. de Saint-Venant, Thรฉorie du mouvement non permanent des eaux, avec application aux crues des riviรจres et a l'introduction de marรฉes dans leurs lits, Comptes rendus de l'Acadรฉmie des Sciences de Paris 73, 147--154 and 237-240 (1871). [2] M.H. Chaudhry, Open-channel flow, Boston, MA: Springer US (2008). [3] O. Delestre, C. Lucas, P.A. Ksinant, F. Darboux, C. Laguerre, et al., SWASHES: a compilation of Shallow Water Analytic Solutions for Hydraulic and Environmental Studies, International Journal for Numerical Methods in Fluids 72(3), 269-300 (2013). [4] Y. Xing, C.W. Shu, Solution of shallow-water equations using least-squares finite-element method, Journal of Computational Physics 208(1), 206-227 (2005). [5] S.J. Liang, J.H. Tang, M.S. Wu, High order finite difference WENO schemes with the exact conservation property for the shallow water equations, Acta Mechanica Sinica 24, 523-532 (2008). [6] S.N. Kuiry, K. Pramanik, D. Sen, Finite Volume Model for Shallow Water Equations with Improved Treatment of Source Terms, Journal of Hydraulic Engineering 134(2), 231-242 (2008). [7] G.H. Duenas, A. Beljadid, A central-upwind scheme with artificial viscosity for shallow-water flows in channels, Advances in Water Resources 96, 323โ€“338 (2016). [8] Y.C. Hon, K.F. Cheung, X.Z. Mao, E.J. Kansa, Multiquadric Solution for Shallow Water Equations, Journal of Hydraulic Engineering 125, 524-533 (1999). [9] S.M. Wong, Y.C. Hon, M.A. Golberg, Compactly supported radial basis functions for shallow water equations. Applied Mathematics and Computation 127, 79-101 (2002). [10] S.M. Wong, Y.C. Hon, M.A. Golberg, Compactly supported radial basis functions for shallow water equations. Applied Mathematics and Computation 127, 79-101 (2002). [11] E.J. Kansa, Multiquadrics-{A} scattered data approximation scheme with applications to computational fluid-dynamics-{II} Solutions to parabolic, hyperbolic and elliptic partial differential equations, Computers and Mathematics with Applications 19(8), 147-161 (1990). [12] A. Tolstykh, D. Shirobokov, On using radial basis functions in a finite difference mode with applications to elasticity problems, Computational Mechanics 33, 68-79 (2003). [13] B. Fornberg, N. Flyer, A primer on radial basis functions with applications to the geosciences}, CBMS-NSF Regional Conference Series in Applied Mathematics, Society for Industrial and Applied Mathematics (SIAM), (2015). [14] E. Ben-Ahmed, M. Sadik and M. Wakrim, Radial basis function partition of unity method for modelling water flow in porous media, Computers and Mathematics with Applications 8(75), 2925-2941 (2018). [15] V. Shcherbakov and E. Larsson, Radial basis function partition of unity methods for pricing vanilla basket options, Computers and Mathematics with Applications 71(1), 185-200 (2016). [16] E. Ben-Ahmed, M. Sadik and M. Wakrim, RBFPUM with QR Factorization for Solving Water Flow Problem in Multilayered Soil, International Journal of Nonlinear Sciences and Numerical Simulation, (2018). [17] E. Ben-Ahmed, M. Sadik and M. Wakrim, A Stable Radial Basis Function Partition of Unity Method with d-Rectangular Patches for Modelling Water Flow in Porous Media, Journal of Scientific Computing 84, (2020). Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2199 https://internationalpubls.com [18] B. Fornberg, E. Lehto, Stabilization of rbf-generated finite difference methods for convective pdes, Journal of Computational Physics 230, 2270-2285 (2011). [19] D. Stevens, H. Power, The Radial Basis Function Finite Collocation Approach for Capturing Sharp Fronts in Time Dependent Advection Problems, Journal of Computational Physics 298, 423-445 (2015). [20] H. Ma, Chebyshev-Legendre super spectral viscosity method for nonlinear conservation laws, SIAM Journal of Numerical Analysis 35, 893-908 (1998). [21] N. Flyer, E. Lehto, S. Blaise, G.B. Wright, A. St-Cyr, A guide to RBF-generated finite differences for nonlinear transport: Shallow water simulations on a sphere, Journal of Computational Physics 231, 4078-4095 (2012). [22] N. Flyer, G.A. Barnett, L.J. Wicker, Enhancing finite differences with radial basis functions: Experiments on the Navierโ€“Stokes equations, Journal of Computational Physics 316, 39-62 (2016). [23] V. Shankar, G.B. Wright, A. Narayan, A Robust Hyperviscosity Formulation for Stable RBF-FD Discretizations of Advection-Diffusion-Reaction Equations on Manifolds, SIAM Journal on Scientific Computing 42, A2371-A2401 (2020). [24] I. Tominec, M. Nazarov, Residual viscosity stabilized RBF-FD methods for solving nonlinear conservation laws, Journal of Scientific Computing 94, (2022). [25] M. Al Nuwairan, E. Chaabelasri, Balanced Meshless Method for Numerical Simulation of Pollutant Transport by Shallow Water Flow over Irregular Bed: Application in the Strait of Gibraltar, applied sciences 12, 6849 (2022). [26] Y. Liu, Y. Qiao, X. Feng, A stable radial basis function partition of unity method for solving convection-diffusion equations on surfaces, Engineering Analysis with Boundary Elements 155, 148-159 (2023). [27] M. Dehghan, M. Abbaszadeh, The use of proper orthogonal decomposition (POD) meshless RBF- FD technique to simulate the shallow water equations, Journal of Computational Physics 351, 478-510 (2017). [28] J. Borggaard, T. Iliescu, Z. Wang, Artificial viscosity proper orthogonal decomposition, Mathematical and Computer Modelling 53, 269-279 (2011). [29] I. Babuska and J.M.~Melenk, The partition of unity method, International Journal for Numerical Methods in Engineering 40(4), 727-758 (1998). [30] V. Shcherbakov, E. Larsson, Radial basis function partition of unity methods for pricing vanilla basket options, Computers and Mathematics with Applications 71, 185-200 (2016). [31] D. Shepard, A two-dimensional interpolation function for irregularly-spaced data, in: Proceedings of the 23rd ACM National Conference, 517-524 (1968). [32] H. Wendland, Piecewise polynomial, positive definite and compactly supported radial functions of minimal degree, Advances in Computational Mathematics 4(1), 389-396 (1995). [33] M.D. Buhmann, Radial Basis Functions: Theory and Implementation, Cambridge University Press, Cambridge (2003). [34] H. Wendland, Scattered Data Approximation, Cambridge University Press, Cambridge (2005). Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 32 No. 9s (2025) 2200 https://internationalpubls.com [35] C.A. Micchelli, Interpolation of scattered data: Distance matrices and conditionally positive definite functions, Constructive Approximation 2, 11-22 (1986). [36] E. Larsson, V. Shcherbakov, A. Heryudono, A Least Squares Radial Basis Function Partition of Unity Method for Solving PDEs, SIAM Journal on Scientific Computing 39, A2538-A2563 (2017). [37] A. Heryudono, E. Larsson, A. Ramage, L. von Sydow, Preconditioning for radial basis function partition of unity methods, Journal of Scientific Computing 67, 1089-1109 (2016). [38] B. Forenberg, E. Larsson, N. Flyer, Stable computations with Gaussian radial basis functions, SIAM Journal on Scientific Computing 33, 869-892 (2011). [39] B. Forenberg, C. Piret, A stable algorithm for flat radial basis functions on a sphere, SIAM Journal on Scientific Computing 33, 60-80 (2008). [40] B. Fornberg, G. Wright, Stable computation of multiquadric interpolants for all values of the shape parameter. Computers and Mathematics with Applications 48, 853-867 (2004) [41] Q. Liang, F. Marche, Numerical resolution of well-balanced shallow water equations with complex source terms, Advances in Water Resources 32, 873-884 (2009). [42] T. Zhang, C.X. Zhan, B. Cai, C. Lin, X.M. Guo, An improved meshless artificial viscosity technology combined with local radial point interpolation method for 2D shallow water equations, Engineering Analysis with Boundary Element 133, 303-318 (2021). [43] D. Satyaprasada, S.N. Kuiry, S. Sundar, A shock-capturing meshless method for solving the one- dimensional Saint-Venant equations on a highly variable topography, Journal of Hydroinformatics 25, 17-18 (2023). [44] S. Sarra, A local radial basis function method for advection-diffusion-reaction equations on complexly shaped domains. Applied Mathematics and Computation 218, 9853-9865 (2012). [45] A. Bermudez, M.E. Vazquez, Upwind methods for hyperbolic conservation laws with source terms, Computers and Fluids 23(8), 1049-1071 (1994). [46] N. Goutal, F. Maurel, Electriciteรฉ de France Service Applications de l'Electriciteรฉ et Environnement & Workshop on Dam-Break Wave Simulation, In: Proceedings of the 2nd Workshop on Dam-Break Wave Simulation, Direction des รฉtudes et recherches, Electricitรฉ de France, (1997). [47] E.F. Toro, Shock-Capturing Methods for Free-Surface Shallow Flows, Wiley and Sons (2001). [48] Benkhaldoun. F, Seaid. M, A simple finite volume method for the shallow water equations, Journal of Computational and Applied Mathematics 234, 58-72 (2010). [49] O. Delestre, Simulation du ruisselement d'eau de pluie sur des surfaces agricoles, PhD thesis (2010). [50] I. MacDonald, Analysis and computation of steady open channel flow, PhD thesis, University of Reading - Department of Mathematics (1996). [51] I. MacDonald, M.J. Baines, N.K. Nichols, P.G. Samuels. Analytic benchmark solutions for open- channel flows. Journal of Hydraulic Engineering 123(11), 1041-1045 (1997).