Multilayer-HySEA

Numerical Scheme

We briefly describe the numerical discretization of system (1)–(4) assuming a constant split of the layers lα = 1L. Here, we follow the procedure described in [5]. The numerical scheme is based on a two-step projection-correction method, similar to the standard Chorin’s projection method for Navier-Stokes equations ([4]). That is a standard procedure when dealing with dispersive systems (see [9, 5, 12, 15] and references therein).

First, we shall solve the non-conservative hydrostatic underlying system (1)–(3) given by the compact equation

∂tU + ∂xF(U) + B(U)∂xU + G(U)∂xη = 0,
(8)

where the following compact notation has been used:

U = ( h hu 1 huL hw1 hw L ) ,F(U) = ( hu u 1hu1 uLhuL u1hw1 u LhwL ) ,G(U) = ( 0 gh gh 0 0 ),

and B is a matrix such B∂xU contains the non-conservative products related to the mass transfer across interfaces appearing at the momentum equations.

Then, in a second step, the non-hydrostatic terms from the right-hand side of equations (2)-(3) collected by the pressure vector

T(h,∂xh,zb,∂xzb,P,∂xP) = L ( 0 1 2h1x (p32 + p12) (p32 p12) xz1 1 2hLx (0 + pL12) (0 pL12) xzL h1 (p32 p12) h L (0 pL12) ) ,P = ( p12 p32 p L12 ) ,

as well as the divergence constraints at each layer given in (4) will be taken into account. Concerning the constraints, we will equivalently impose

Bα = 0, where B1 = I1,B2 = I2 I1,,BL = IL IL1,

so that the divergence impositions read as follows

B (U(k), xU(k),z b,∂xzb) = ( h1x(h1u1) + 2xz1h1u1 2h1w1 + 2h1tzb h2x(h2u2) h1x(h1u1) + 2h2u2xz2 2h1u1xz1 2h2w2 + 2h1w1 hLx(hLuL) hL1x(hL1uL1) + 2hLuLxzL 2hL1uL1xzL1 2hLwL + 2hL1wL1 ) .

System (8) is discretized using a second-order finite volume PVM positive-preserving well-balanced path-conservative method [2]. As usual, we consider a set of N finite volume cells Ii = [xi12,xi+12] with constant lengths Δx and define

Ui(t) = 1 ΔxIiU(x,t)dx,

the cell average of the function U(x,t) on cell Ii at time t. Concerning non-hydrostatic terms, we consider mid-points xi of each cell Ii and denote the point values of the function P at time t by

Pi(t) = ( p12(xi,t) p32(xi,t) pL12(xi,t) ).

Non-hydrostatic terms will be approximated by second-order compact finite differences.

Let us detail the time stepping procedure followed. Assume given time steps Δtn, and denote tn = knΔtk. To obtain second-order accuracy in time, the two-stage second-order TVD Runge-Kutta scheme is adopted. At the kth stage, k {1,2}, the two-step projection-correction method is given by

U(k~) U(k1) Δt + ∂xF(U(k1)) + B(U(k1)) xU(k1) + G(U(k1)) xzb = 0, (9) U(k) U(k~) Δt T(h(k), xh(k),z b,∂xzb,P(k), xP(k)) = 0 (10) B(U(k), xU(k),z b,∂xzb) = 0 (11)

where U(0) is U at the time level tn, U(k~) is an intermediate value in the two-step projection-correction method that contains the numerical solution of the hyperbolic system (8) at the corresponding kth stage of the Runge-Kutta, and U(k) is the kth stage estimate. After that, a final value of the solution at the tn+1 time level is obtained:

Un+1 = 1 2Un + 1 2U(2).

Observe that equations (10-11) require, at each stage of the calculation respectively, to solve a Poisson-like equation for each one of the variables contained in P(k). The resulting linear system is solved using an iterative Jacobi method combined with a scheduled relaxation (see [5, 9]). Note that the usual CFL restriction must be imposed for the computation of the time step Δt.

When friction with the bottom (5), viscous shear stress (6), and the breaking model (7) are considered, they will be computed semi-implicitly at the end of the second step of the projection-correction method at each kth stage of the TVD Runge-Kutta method as it is done in [6]. Note that the resolution of a straightforward tridiagonal system on the vertical for each volume Ii is exclusively required for the viscosity model. In contrast, the friction and breaking models can be considered by solving conventional algebraic problems, as is commonly the practice for friction models.

The resulting numerical scheme is well-balanced for the water at rest solution and is linearly L-stable under the usual CFL condition related to the hydrostatic system. It is also worth mentioning that the numerical scheme is positive preserving and can deal with emerging topographies.