Well-balanced mesh-based and meshless schemes for the shallow-water equations
Alexander Bihlo, Scott MacLachlan

TL;DR
This paper develops a unified approach for designing mesh-based and meshless numerical schemes that exactly preserve the lake at rest state in shallow-water equations, ensuring stability and accuracy.
Contribution
It introduces a general criterion for mimetic design of derivative operators that guarantees the well-balanced property in both mesh-based and meshless schemes.
Findings
Proves the consistency of mimetic difference operators analytically.
Demonstrates the well-balanced property numerically in 1D and 2D cases.
Applies the approach to finite difference and RBF-FD schemes.
Abstract
We formulate a general criterion for the exact preservation of the "lake at rest" solution in general mesh-based and meshless numerical schemes for the strong form of the shallow-water equations with bottom topography. The main idea is a careful mimetic design for the spatial derivative operators in the momentum flux equation that is paired with a compatible averaging rule for the water column height arising in the bottom topography source term. We prove consistency of the mimetic difference operators analytically and demonstrate the well-balanced property numerically using finite difference and RBF-FD schemes in the one- and two-dimensional cases.
| error | error | error | ||||
|---|---|---|---|---|---|---|
| balanced | unbalanced | balanced | unbalanced | balanced | unbalanced | |
| 128 | ||||||
| 256 | ||||||
| 512 | ||||||
| 1024 | ||||||
| error | FD | ||||
|---|---|---|---|---|---|
| RBF-FD bal. | |||||
| RBF-FD unbal. | |||||
| error | FD | ||||
| RBF-FD bal. | |||||
| RBF-FD unbal. | |||||
| error | FD | ||||
| RBF-FD bal. | |||||
| RBF-FD unbal. |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Well-balanced mesh-based and meshless schemes for the shallow-water equations
Alexander Bihlo
Scott MacLachlan
Abstract
We formulate a general criterion for the exact preservation of the “lake at rest” solution in general mesh-based and meshless numerical schemes for the strong form of the shallow-water equations with bottom topography. The main idea is a careful mimetic design for the spatial derivative operators in the momentum flux equation that is paired with a compatible averaging rule for the water column height arising in the bottom topography source term. We prove consistency of the mimetic difference operators analytically and demonstrate the well-balanced property numerically using finite difference and RBF-FD schemes in the one- and two-dimensional cases.
1 Introduction
The shallow-water equations are a central model in geophysical fluid dynamics that is extensively used in the numerical simulation of propagating long waves such as tsunamis. A peculiarity of the shallow-water equations as used in ocean modeling is the presence of a source term arising due to a non-flat ocean bottom topography. An important exact steady-state solution of the shallow-water equations in this context is the lake at rest solution, i.e. that the total water height over arbitrary bottom topography remains constant and flat in the absence of a horizontal velocity field. From the numerical point of view, exactly preserving the lake at rest solution is usually the first benchmark for the quality of a discretization of the shallow-water equations. Since essentially all small amplitude wave solutions of the shallow-water equations can be regarded as perturbations of the lake at rest solution, the importance of preserving the lake at rest solution exactly cannot be overestimated, as it avoids the occurrence of spurious numerical waves that can render wholly inaccurate computed solutions. Numerical schemes that can preserve the lake at rest solution are called well-balanced. Designing such well-balanced numerical schemes for the shallow-water equations has attracted extensive interest in the literature, in particular in the finite-volume and discontinuous Galerkin methods communities. Examples of well-balanced numerical schemes are reported in, e.g., [1, 13, 17, 18, 26].
Besides finite-volume methods, several nodal-based discretization methodologies approximate derivatives of the field functions at a given point as linear combinations of certain weights with the field functions evaluated at nearby points. Examples for such methods include classical finite differences, meshless finite differences (where the weights are found using polynomial interpolation) and radial basis function based finite differences (RBF-FD; where the weights are found using radial basis function interpolation). It is this framework of nodal-based discretization for the shallow-water equations that we are interested in here.
Several numerical schemes for the shallow-water equations have been constructed over the past 20 years within the framework of the RBF methodology, see e.g. [15, 28, 30], but to the best of our knowledge none of these papers has explicitly studied the well-balanced properties of the constructed schemes. It was pointed out in [29] within the framework of a smoothed-particle hydrodynamics scheme that preserving the lake at rest solution in meshless approximations to the shallow-water equations is a nontrivial endeavor. We show in the present paper that constructing well-balanced schemes for the shallow-water equations requires a careful design for the spatial derivatives in the momentum flux equations that is paired with a compatible averaging rule for the water column height arising in the momentum flux source terms. While mostly focusing on finite difference and RBF-FD derivative approximations, the derived conditions are applicable to any nodal-based derivative approximation for the shallow-water equations in the strong form.
Numerical conservation of physical properties, such as mass, momentum, and energy, has received significant attention in recent years, including many contributions to the literature of so-called mimetic discretizations; see, for example [3, 16, 5] and the references therein. For grid-based schemes, generalizations of finite-volume (or staggered finite-difference) approaches have been applied to the shallow-water equations in [25, 24], yielding schemes that conserve mass, momentum, and energy. Similar techniques have also been applied to discretizations in Lagrangian formulations [6, 12, 7], with conservation of potential vorticity for the smoothed-particle hydrodynamics discretization of the shallow-water equations shown in [12]. Very little work has been done, however, in terms of combining the mimetic methodology with general meshless methods, such as RBF-FD discretizations. The work presented here can be seen as a necessary first step in such development, although much more research is needed in this direction to see if a similarly broad class of mimetic meshless schemes can be realized.
The further organization of this paper is as follows. In Section 2, we present the rigorous theoretical analysis underlying well-balanced nodal derivative approximations for the shallow-water equations along with several examples of such well-balanced schemes, both for mesh-based finite differences and meshless RBF-FD approximations. Section 3 contains numerical simulations for well-balanced mesh-based and meshless schemes for the one-dimensional shallow-water equations as well as meshless schemes for the two-dimensional shallow-water equations. Section 4 is devoted to the conclusions of this work.
2 Well-balanced shallow-water equation discretizations
In this section, we review the shallow-water equations together with the lake at rest solution. We then proceed to introduce the general formalism for finding derivative approximations using weighted nodal-based approximations. Within this framework, we then derive general criteria for obtaining well-balanced discretization schemes for the shallow-water equations.
2.1 The shallow-water equations
The shallow-water equations with variable bottom topography are given by the transport equations for mass and momentum in the following form [21],
[TABLE]
where is the vector of mass and momentum, and are the flux vectors, and is the source term. Here denotes the depth of a water column of constant density, is the (horizontal) vector of vertically averaged fluid velocity and is the prescribed bottom topography. Here and in the following, partial derivatives with respect to the independent variables , and are denoted by subscripts. Note that for notational simplicity we apply the scaling , i.e. the gravitational constant is set to one.
The lake at rest solution is the steady state solution of (1) given by
[TABLE]
It states that in the absence of horizontal motion, the total height of the water column and bottom topography over every point in the spatial domain is constant and independent of time. While it is usually straightforward to numerically preserve this steady state solution in the case of flat topography, , arbitrary sea bottom elevations are notoriously challenging to handle for typical shallow-water discretization schemes.
2.2 Computation of weights in nodal-based derivative approximations
The discretization framework we are interested in here is a slight generalization of the framework usually used for conventional finite difference approximations, see e.g. [10, 8, 9] for further details and a more in-depth discussion. Suppose we are given points covering the (one-dimensional) spatial domain as well as the values of a field function at these points, , we want to find the weights , , such that for a given linear differential operator we have
[TABLE]
To obtain the weights for the stencil of the point , one assumes that the approximation (2) is exact for a given set of basis functions over the entire stencil of , i.e.
[TABLE]
This defines a linear system for for each node . In general, care must be taken in the choice of nodes and basis functions so that this system has a solution that also yields a stable discretization (see, for example, [22]). Unique solvability is guaranteed when the coefficient matrix (restricted to points where is allowed to be nonzero) is square and non-singular, although more general situations are possible.
In the following we restrict ourselves to polynomial basis functions, i.e. (when the nodes are on an interval of the real line), as well as to radial basis functions (RBFs), , although the conditions on well-balanced shallow-water discretizations derived in Section 2.3 do not depend on the type of basis functions involved. For RBFs, it is clearly not essential that , i.e. and could be vectors and in as well, . For polynomial basis functions, standard finite-difference discretizations are obtained with appropriately chosen monomial basis functions on tensor-product meshes, and similar ideas can be extended to meshless finite-difference schemes assuming the points are suitably distributed through the domain (see, for example, [22]).
For polynomial basis functions in the one-dimensional case, the matrix in Eq. (3) is the Vandermonde matrix and hence non-singular if the points are distinct. The non-singularity of this matrix is also guaranteed for RBFs, again provided that no two points, and , coincide.
It is also possible to consider a family of basis functions that includes both RBFs and polynomials. Such a combination is relevant in meshless RBF schemes as derivative approximations derived solely based on RBFs typically cannot reproduce trivial derivatives such as exactly, for and .
Note that once the system (3) is solved at all points , , we can assemble the weights in a differentiation matrix . The derivatives of a field function at the nodal points are thus approximated as , where .
2.3 Well-balanced discretizations for the shallow-water equations
For the sake of simplicity of the following exposition, we consider the one-dimensional form of the shallow-water equation (1), i.e.
[TABLE]
Extension to the two-dimensional case is straightforward by enforcing that Eqs. (4) and (5) below have to hold for the -derivative approximation as well.
Since in the lake at rest solution, we need to preserve the property
[TABLE]
numerically for the case when , where . At the discrete level, this translates to the requirement that, at all nodal points,
[TABLE]
is satisfied, where and are the discrete first derivative operators for the partial derivatives with respect to arising in the flux and source terms of the shallow-water equations (not necessarily the same), and denotes an appropriate average over the field function in the stencil of . Note that consistency of the average requires that .
The above equality is naturally satisfied if the following two conditions hold for all
[TABLE]
The first condition arises naturally as a consistency condition on , and it is the second condition that requires more effort to achieve. A key step to this is to generalize so that, rather than discretizing this derivative to act on a vector of values of , it acts as a bilinear form,
[TABLE]
In this way, we define a differentiation tensor of order 3, , whose slice is the matrix used above. There are two important properties of to note. First, the classical case, where the derivative operator acts on the vector of values of , is still allowed, simply by choosing to be a diagonal matrix. Secondly, since we only consider values of , only the symmetric part of matters. In what follows, we assume to be symmetric, except where noted.
For the right-hand (source) derivative, , we use a standard discretization as a matrix, writing
[TABLE]
where we write for the th row of the matrix . Similarly writing for the averaging stencil, the second condition in (4) can be represented as
[TABLE]
From this it follows that
[TABLE]
and thus the following relation among the weights in the derivative approximations and the averaging relation has to hold for all :
[TABLE]
In other words, specifying an averaging matrix and the weights for the derivative matrix, , Eq. (5) prescribes weights in the flux derivative , represented by the tensor , such that the resulting numerical scheme for the shallow-water equations will be well-balanced. Alternately, given and one of the matrices and , it can be used to check if the other matrix can be defined in such a way as to yield a well-balanced scheme. We further motivate this approach by stating the following theorem.
Theorem 2.1**.**
Let the derivative tensor, , derivative matrix, , and averaging matrix, , be given. The resulting discretization is well-balanced, satisfying (4) at every nodal point, if and only if (where and represent the vectors with all entries equal to and [math], respectively) and, for every ,
[TABLE]
and
[TABLE]
Proof.
First note that naturally implies the first condition in (4). Next, from (5), recalling that is symmetric, we have that
[TABLE]
Similarly, we also have that for any ,
[TABLE]
Finally, we derive (7) by noting that (5) implies that
[TABLE]
whenever . ∎
When and are specified, Eq. (5) directly prescribes the flux differentiation tensor, , so that its slices are given by symmetric outer products of the rows of and . When both differentiation rules, and , are specified, then an algorithmic form of Theorem 2.1 can be expressed by introducing a basis where the vectors are pairwise orthogonal as well as orthogonal to , i.e.
[TABLE]
Then, the existence of a compatible averaging rule is guaranteed by Eq. (7), which can be expressed as
[TABLE]
for . If these conditions are satisfied, then the averaging rule itself is specified for point by specializing (6) to the basis, giving
[TABLE]
The derivation of Eqs. (6) and (7), as well as of the basis discussed above, can be restated in the obvious way to show both existence and the definition of a compatible source differentiation matrix, , given and .
Additionally, Eq. (5) can be used to understand the consistency and accuracy of the rules derived as described above in relation to their continuum counterparts. To do so, we define vectors for such that for all , noting that the case of corresponds to the vector, , of all ones. We define the following three consistency/accuracy conditions:
[TABLE]
For basic consistency, we would require that holds for all (meaning that defines a true averaging (row stochastic) matrix), hold for all (so that the discrete derivative of a constant is zero and of a linear function is its slope). Consistency is somewhat less natural for , and could be expressed either as (which is equivalent to since is symmetric) or holding for all . In the former case, this requires that the discrete flux derivative reproduce the true derivative on constants (the case when ) and that the scheme produced by “flattening” the flux derivative matrix at point into a row vector as exactly reproduces the derivative of a linear function. Requiring the stronger condition requires the flux derivative also to be faithful to the true derivative of a quadratic function, which is counter to our usual expectation of consistency of the first derivative, but more natural when recalling this is an approximation to the derivative of and not itself. When these conditions hold for all and larger values of and , they express accuracy conditions that are natural in the usual sense for meshless finite differences, requiring that they be accurate pointwise for monomials up to a given order.
The natural question to be answered in the context of Theorem 2.1 is whether or not the conditions given there, together with consistency and accuracy in the sense of conditions , , and/or yield consistency and accuracy for the third term in the well-balanced scheme. The following results present each possible implication.
Theorem 2.2**.**
Let and be given, and assume conditions and are satisfied for each nodal point with . Let be determined by Eq. (5). Then condition holds for all with .
Proof.
For any nodal point , consider for :
[TABLE]
∎
Theorem 2.3**.**
Let and be given, and assume conditions and are satisfied for each nodal point with . Assume there exists a matrix such that Eq. (5) holds and the conditions of Theorem 2.1 are satisfied. Then condition holds for all with .
Proof.
Without loss of generality, we consider the case where . First consider for , which gives
[TABLE]
Thus, . With this, we consider for , , giving
[TABLE]
Thus, for .
∎
Theorem 2.4**.**
Let and be given, and assume conditions and are satisfied for each nodal point with . Assume there exists a matrix such that Eq. (5) holds and the conditions of Theorem 2.1 are satisfied. Then condition holds for all with .
Proof.
Without loss of generality, we consider the case where . First consider for , , which gives
[TABLE]
Thus, . Similarly, taking gives
[TABLE]
Thus, . Finally, considering the general case with and , we have
[TABLE]
This implies that for all . ∎
These results illustrate a natural asymmetry between the consistency/accuracy of the various terms defined via Eq. (5) and Theorem 2.1. This is most noticeable in Theorem 2.3, where only basic consistency of is needed for to inherit the full accuracy of . In contrast, if both and are consistent, Theorem 2.4 shows that inherits only the lower level of accuracy from them.
We now provide several examples from classical finite differences on a uniform mesh with spacing to demonstrate the consequences of Eq. (5) for prescribing when and are given. In what follows, denotes the canonical th unit vector.
Example 2.1**.**
Suppose we wish to take both derivatives to be given by first-order upwind discretizations, with
[TABLE]
To satisfy the orthogonality condition in (9), we take , and complete through with the unit vectors for and . It is straightforward to see that for , meaning that we only need to verify (10) for and then use (11) to define .
To verify (10), we see that and, so . Since , the first equation in (11) forces . Computing from the second, we find that these both take value , giving . Direct calculation shows that Eq. (5) is satisfied for this .
Written in component form, the associated upwind scheme defined through (12) reads
[TABLE]
which is directly seen to be well-balanced. From (12), we can verify that conditions and are satisfied for all by the upwind discretizations. In this case (since does not hold for all ), Theorem 2.4 does not apply, and it can easily be seen that satisfies for all , but not . Considering the alternate implications, if we were to specify and , Theorem 2.2 would confirm that and for all implies for all , but not for all . Similarly, since and hold for all , Theorem 2.3 implies that holds for all .
Example 2.2**.**
A similar calculation verifies that taking a centered averaging for yields a well-balanced scheme when the two derivatives are approximated by centered finite differences. Setting
[TABLE]
Component-wise the differentiation and averaging rule (13) imply that, at the node , our well-balanced scheme is given by
[TABLE]
which obviously satisfies the conditions (4). Considering the consistency/accuracy conditions for these rules, we can directly verify that , , , and hold for all . (Note that neither nor implies the other, and that does not hold for all for this choice of .) Theorem 2.2 states that and together imply , Theorem 2.3 states that and together imply , and Theorem 2.4 states that and imply . We note that the conclusions of these theorems naturally depend differently on and in , with appearing in Theorem 2.3, but in Theorem 2.4.
Example 2.3**.**
When we choose centered differencing for the source derivative,
[TABLE]
we can consider which values for are possible to achieve a well-balanced scheme. If we restrict to have a nonzero pattern over only the three points , , and , we can write
[TABLE]
Take , , and complete through with for and . From (10), we have , , and . Simplifying (15), we then see a restricted form of
[TABLE]
In order to not break the flux form of the shallow-water equations, we need the off-diagonal terms in to vanish, forcing both and . In other words, the only consistent well-balanced discretization in flux form that uses centered differences for the source derivatives occurs when also using centered differences for the flux derivative, as in Example 2.2. Even if we were to allow breaking of the flux form, straightforward calculation shows that we cannot enforce consistency condition without also requiring that and .
Example 2.4**.**
To extend the above example, we consider the case where the right-hand (source) derivative is given by centered differencing, but the left-hand (flux) derivative is given by second-order upwinding, with
[TABLE]
Note that , but . Thus, Theorem 2.1 states that no possible choice of exists that yields a well-balanced scheme.
Example 2.5**.**
We now consider the case where both derivatives are given by second-order upwinding, with
[TABLE]
and
[TABLE]
Note that we can naturally take , and can find orthogonal to both and by taking the cross-product of the two three-dimensional restrictions of these vectors, giving . By construction, , but . Thus, Theorem 2.1 again states that no possible choice of exists that yields a well-balanced scheme for these choices.
The last two examples raise the question of whether higher-order well-balanced schemes are possible. This is easily addressed as a consequence of Equation (5).
Theorem 2.5**.**
Let the differentiation tensor, , be given. If there exists an such that is a diagonal matrix with more than 2 nonzero entries, then no well-balanced scheme exists.
Proof.
Equation (5) states that a scheme is well-balanced if and only if the symmetric part of is a rank-two matrix for all . When is diagonal, then it is its own symmetric part. The rank of a diagonal matrix equals the number of nonzero entries in the matrix. Thus, if more than two nonzero entries appear in such a , the scheme cannot be well-balanced. ∎
This result highlights another asymmetry in the construction of well-balanced schemes, that the flux derivative cannot be freely prescribed. In particular, for flux form discretizations, where is constrained to be diagonal, no higher-order finite-difference stencil can be accommodated under the restriction of only two nonzero weights. In constrast, Equation (5) and Theorem 2.2 state that for any choice of source derivative, , and averaging matrix, , a well-balanced scheme can be defined, inheriting the lower of the consistency orders of and , albeit with no expectation that be in flux form. Thus, of the possible ways to complete a well-balanced scheme, we exclusively adopt this latter one, which allows us to make free choices of and , prescribing a well-balanced scheme via Equation (5).
Remark 2.1**.**
It follows from the first condition in (4) that well-balanced shallow-water equation discretizations need to employ derivative approximations that are exact for constants. Thus, if the RBF-FD or global RBF collocation methodology is invoked, the underlying RBF interpolant for the field function should be of the form with the constraint that . In other words, the RBF basis should be supplemented with the monomial . Higher-order polynomials can be included in the basis as well for accuracy considerations, see, e.g., [2]. Such higher-order polynomials may play an important role for the accurate representation of more complicated, non-stationary solutions of the shallow-water equations.
Remark 2.2**.**
It is well-known that the application of RBF-FD methods to purely convective PDEs is prone to numerical instabilities since the eigenvalues of the differentiation matrices tend to scatter to the right half of the complex plane. As a remedy, the inclusion of hyperviscosity was proposed [11], which allows shifting the eigenspectrum of the convective operators back into the left-half plane, thus allowing for the use of explicit time-stepping methods. We note here that adding hyperviscosity in the momentum equations (specifically, terms like , where is the -th power of the Laplacian operator) to the above well-balanced schemes is perfectly possible without tampering with the well-balanced property for the lake at rest solution (where ).
Remark 2.3**.**
As mentioned above, we note that the extension of these results to the two-dimensional case follows simply by applying the one-dimensional results twice, independently in each coordinate direction. This follows from substituting the lake-at-rest solution into Equation (1), yielding two independent conditions, that and . Thus, no cross-derivative terms or other coupling arises in the development of well-balanced schemes in two dimensions.
3 Numerical simulations
In this section, we present some numerical verification for the above theoretical construction of well-balanced schemes for the shallow-water equations in the one- and two-dimensional case.
3.1 One-dimensional lake at rest solution
We solve the shallow-water equations using either centered finite differences with the averaging rule as defined in Example 2.2, or with the RBF-FD method. In the latter case, we exclusively use the multiquadric RBF, i.e. , augmented with the monomial (see Remark 2.1), where we set the shape parameter in all experiments. The stencil size of the RBF-FD method is three (center point and the immediate neighbors to the left and to the right) and the averaging rule is a normalized Gaussian filter, with weights given by assigned at all points, , that appear in the stencil for point , and constant chosen so these weights sum to 1. The discretization for the flux derivative is then computed using the condition (5). We note the flexibility in the framework defined above allows us to independently choose the source derivative and averaging rule, and this approach will always yield a well-balanced scheme. As time stepping, we use the Heun scheme. A total of equally spaced points are used on the domain where reflective boundary conditions were employed. The bottom topography is a cosine bump of amplitude extending over the interval , which is superimposed with white noise generated independently at each node using normally distributed random numbers with zero mean and unit variance. The initial total water height is .
In Figure 1 we show the results of the numerical computations at using the RBF-FD method. The results of the classical centered finite difference scheme presented in Example 2.2 are essentially the same, with slightly smaller errors overall, and are, hence, not displayed here.
Note that for irregular nodal layouts, the eigenvalues of the derivative matrices for the RBF-FD method scatter into the right half of the complex plane. This is particularly prominent in the multidimensional case and in the case that several neighboring nodal points are used for the computation of the derivative matrices. To improve the stability of the numerical schemes in these cases, hyperviscosity or other stabilization should be used.
Figure 1 shows that the RBF-FD scheme is indeed well-balanced, being able to maintain the constant water height even in the presence of quite rough bottom topography. We also monitored the conservation of total mass and found conservation with relative errors of the magnitude and hence machine precision (not shown here). The conservation of mass for the lake at rest solution is a particularly nice feature of the present well-balanced schemes as it is straightforward to check that mass is in general not conserved in numerical schemes for the shallow-water equations using the RBF-FD methodology.
In contrast, Figure 2 depicts the results obtained when the standard RBF-FD approximation is used for both the source and flux derivatives (i.e., not employing the well-balanced condition derived above). As expected, the violation of balance leads to the emergence of spurious waves that travel through the entire computational domain. The emergence of these waves is typically not tolerable in numerical schemes for the shallow-water equations, as they can lead to wrong run-up heights and, thus, to unphysical results estimating factors such as tsunami inundation or the stress on coastal structures.
3.2 Two-dimensional lake at rest solution
In the two-dimensional case, we constrain ourselves to the use of the RBF-FD method only. We consider the domain covered by nodes. To demonstrate the versatility and independence of the chosen nodal layout (mesh-based or meshfree) of the condition (5), we add as disturbance to each nodal point originally lying on an orthogonal and equally spaced mesh, where is a normally distributed random variable with zero mean and variance one. The resulting nodal layout is depicted in Figure 3.
The bottom topography used is a cosine bell on the area with amplitude and again superimposed with white noise obtained independently at each node from normally distributed random numbers with zero mean and unit variance.
We choose a stencil based on the 25 nearest neighbors of each point in the domain for the computation of the RBF-FD differentiation matrices. Once again, the multiquadric RBF is used in all computations and while the current nodal layout might profit from a spatially variable shape parameter for improved accuracy, for the sake of simplicity we used in all points. The averaging rule is a two-dimensional Gaussian filter over the 25 points in the stencil of each point. Once again, the flux derivative discretizations for and are obtained from the condition (5). We integrate the two-dimensional shallow-water equations with the Heun scheme up to . The results of this integration are displayed in Figure 4 and verify numerically that the scheme is indeed well-balanced.
Stabilization of the scheme was done by adding hyperviscosity of the form and to the momentum equations in the - and -directions, respectively. We chose and experimentally set such that the scheme remains stable but does not become unnecessarily diffusive. Note that similar results were obtained when refining the grid (i.e., starting from a finer uniform mesh but performing the same random perturbations to both node location and bottom topography). In this case, we replace the fixed hyperviscosity parameter, , by , where is a measure of the average nodal distance.
3.3 Parabolic bowl
Having verified the numerical preservation of the lake at rest solution, it is instructive to compare the numerical solution of the balanced scheme to that of an unbalanced scheme for a more challenging test case. Here, we consider oscillatory flow in a parabolic bowl, in the same setting as presented in [26], which is based on the exact solution derived in [23]. In particular, we use the domain with parabolic bottom topography , where and . The initial conditions are such that the exact solution to this benchmark test is given by
[TABLE]
where and .
Using the three-point RBF-FD and Gaussian filter averaging rule described above in Section 3.1, we integrate the shallow-water equations numerically until . We consider three measures of the error for varying numbers of nodal points, :
the maximum error in conservation of the total mass, , over all time steps, 2. 2.
the error in water height , measured by taking the relative error in (measured in the maximum norm) at each time step, and measuring the maximum of these values over all time steps, and 3. 3.
the error in momentum, , measured by taking the absolute error in (measured in the maximum norm) at each time step, and measuring the maximum of these values over all time steps.
Note that this solution requires an inundation model, since the water surface hits the bowl and, thus, creates a moving boundary condition. Inundation is not considered here, and we use the analytical solution to prescribe the time-varying boundary condition. For the discussion of a possible inundation model for this case, consult [4]. The results of this convergence study are reported in Table 1, showing that, as expected, the balanced scheme is consistently better than the unbalanced scheme, both being of second order. The errors differ most dramatically (by about one order of magnitude) for mass conservation.
For a second experiment, we consider fourth-order schemes and extend the comparison to include both a standard FD scheme and an RBF-FD scheme as described above. Since we continue to use the Heun scheme for time stepping, we now decrease the time step by a factor of four each time the number of points is space is doubled, in order to balance the errors between the second-order time stepper and the fourth-order spatial discretizations. We use uniform grids in space, and integrate to ; for points in space, we use 250 points in the time direction, which approximately balances the spatial and temporal discretization errors at this spatial mesh size. For the standard FD scheme, we use the fourth-order (five-point) central difference stencil for the source derivative terms, the identity operator for the averaging rule, and the well-balanced prescription in (5) for the flux derivative. For the RBF-FD scheme, we also use a five-point discretization for the source derivative, following the description in Section 2.2, but now including polynomials up to third order in the construction of the differencing scheme. To achieve a nontrivial fourth-order averaging rule, we use a five-point averaging, with weights of for the point itself, for the two immediate neighbours, and for the two distance-two neighbours. We note that the normalized Gaussian filter used above cannot yield a fourth-order averaging, as some negative weights must appear in the averaging rule to attain fourth order. We consider this scheme in both balanced form, following (5) to prescribe the flux derivative, and unbalanced form, directly using the fourth-order RBF-FD derivative for the flux term. Numerical results are given in Table 2. We note slight differences in the errors from the FD and balanced RBF-FD schemes, but these are small overall. In comparison with the unbalanced RBF-FD scheme, however, we see notably larger errors in height and momentum, by up to a factor of three over the balanced schemes. Most notably, comparing results for and , we see reductions in both height and momentum error by factors of almost 15 for the two balanced schemes (consistent with fourth-order discretization), but only by a factor of 7 or 8 for the unbalanced scheme. Taken together with the results for the lake at rest solution, these results indicate the advantage of choosing a well-balanced scheme for the shallow-water equations over an unbalanced scheme.
4 Conclusion
In this paper, we have derived general criteria for obtaining well-balanced numerical schemes for the shallow-water equations that employ a nodal expansion for their spatial derivative approximation. We have shown analytically and numerically that the resulting discretization schemes for the shallow-water equations exactly maintain the lake at rest steady state, which is considered as the first important criterion for applying such schemes to real-world problems such as tsunami modeling. We have further proved consistency and order conditions for the discrete differential and averaging operators involved in these well-balanced schemes.
One particularly important feature of the derived schemes is that they do not require the nodes to lay on a uniform, orthogonal grid. Rather, any nodal distribution can be used and the resulting schemes will remain well-balanced. This feature is important as it guarantees that various adaptation strategies, such as - and -adaptivity (i.e. introducing or removing nodes, as well as dynamically redistributing them), can be used without complicating the design of the resulting numerical method. Due to the involved time and length scales in the shallow-water equations when used for tsunami modeling (e.g. open ocean wave propagation vs. coastal inundation), adaptivity is usually a practical necessity [14].
The present work is also an important step in the development of mimetic methods for general meshless numerical schemes, in that we have derived criteria that derivative approximations have to mimic in order for the resulting numerical scheme to be well-balanced. More generally, mimetic discretization is an active field of research in which one aims to discretize differential equations is such a way that certain important identities from vector calculus will be preserved in a numerical scheme. This is important since these vector identities are typically associated with central conservation laws in the equations of hydrodynamics and electrodynamics. For an overview of mimetic discretization schemes and some examples, including the shallow-water equations, consult e.g. [3, 5, 16, 24, 25, 27]. Most mimetic methods derived so far apply to the finite difference, finite element and finite volume methodologies only and thus exclude the important class of meshless integration schemes. As these schemes are getting increasingly popular in fields such as atmospheric sciences, ocean sciences and geophysics, whose governing equations all admit important conservation laws, finding mimetic schemes in the wider meshless framework is an important timely research field. For first results of this research perspective in geophysics, see [20, 19]. The present study for the shallow-water equations can thus be regarded as being amongst the first examples for mimetic methods within the meshless methodology.
Acknowledgments
This research was undertaken, in part, thanks to funding from the Canada Research Chairs program and the NSERC Discovery Grant program. The authors thank Grady Wright for helpful discussions, and the two anonymous referees for their helpful and considerate remarks.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] E. Audusse, F. Bouchut, M.-O. Bristeau, R. Klein, and B. Perthame , A fast and stable well-balanced scheme with hydrostatic reconstruction for shallow water flows , SIAM J. Sci. Comput., 25 (2004), pp. 2050–2065.
- 2[2] V. Bayona, N. Flyer, B. Fornberg, and G. A. Barnett , On the role of polynomials in RBF-FD approximations: II. Numerical solution of elliptic PD Es , J. Comput. Phys., 332 (2017), pp. 257–273.
- 3[3] P. B. Bochev and J. M. Hyman , Principles of mimetic discretizations of differential operators , in Compatible spatial discretizations, Springer, 2006, pp. 89–119.
- 4[4] R. Brecht, A. Bihlo, S. Mac Lachlan, and J. Behrens , A well-balanced meshless tsunami propagation and inundation model . ar Xiv:1705.09831.
- 5[5] F. Brezzi, K. Lipnikov, and M. Shashkov , Convergence of the mimetic finite difference method for diffusion problems on polyhedral meshes , SIAM J. Numer. Anal., 43 (2005), pp. 1872–1896.
- 6[6] E. J. Caramana, D. E. Burton, M. J. Shashkov, and P. P. Whalen , The construction of compatible hydrodynamics algorithms utilizing conservation of total energy , J. Comput. Phys., 146 (1998), pp. 227–262.
- 7[7] S. Dubinkina and J. Frank , Statistical relevance of vorticity conservation in the Hamiltonian particle-mesh method , J. Comput. Phys., 229 (2010), pp. 2634–2648.
- 8[8] B. Fornberg and N. Flyer , A Primer on Radial Basis Functions with Applications to the Geosciences , vol. 3529, SIAM Press, Philadelphia, PA, 2015.
