+ All Categories
Home > Documents > Regularized Equations for Numerical Simulation of Flows in...

Regularized Equations for Numerical Simulation of Flows in...

Date post: 27-Oct-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
21
714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics, 2018, Vol. 58, No. 5, pp. 714–734. © Pleiades Publishing, Ltd., 2018. Original Russian Text © T.G. Elizarova, A.V. Ivanov, 2018, published in Zhurnal Vychislitel’noi Matematiki i Matematicheskoi Fiziki, 2018, Vol. 58, No. 5, pp. 741–761. Regularized Equations for Numerical Simulation of Flows in the Two-Layer Shallow Water Approximation T. G. Elizarova a, * and A. V. Ivanov b, ** a Institute of Applied Mathematics, Russian Academy of Sciences, Moscow, 125047 Russia b Faculty of Physics, Moscow State University, Moscow, 119991 Russia *e-mail: [email protected] **e-mail: [email protected] Received June 6, 2015; in final form, August 10, 2015 Abstract—Regularized equations describing hydrodynamic flows in the two-layer shallow water approximation are constructed. A conditionally stable finite-difference scheme based on the finite- volume method is proposed for the numerical solution of these equations. The scheme is tested using several well-known one-dimensional benchmark problems, including Riemann problems. Keywords: two-layer shallow water equations, quasi-gasdynamic approach, regularized equations, finite-volume method, central-difference scheme, one-dimensional f lows, transcritical flows. DOI: 10.1134/S0965542518050081 1. INTRODUCTION According to numerous works (see, e.g., [1–10]), the shallow water equations for two-layer flows can be written as a system of four equations (the notation used is explained in Fig. 1) (1) (2) (3) (4) Here, and are the depth and velocity of the lower layer, and are the depth and velocity of the upper layer, describes the topography of the bottom, and is the acceleration due to gravity. The layers are indexed starting from the lower one (see Fig. 1). The numerical coefficient is the ratio of the densities in the upper and lower layers. Obviously, for , Kelvin– Helmholtz instability can appear in the two-layer fluid system. The resulting flow field can no longer be described by the shallow water equations, which are derived assuming that the vertical velocity of the flow is negligibly low. The above-written system of equations does not involve external forces (for example, wind strength or Coriolis forces) and viscous friction forces, including interlayer friction. This system of equations represents two systems, each describing the flow of an individual layer. The layers are coupled only via the hydrostatic pressure, and this coupling is described by nonconservative nonlinear terms involving and . The last circumstance leads to additional instabilities of the numerical solution as compared with the case of the single-layer equations. To overcome the arising difficulties, there are numerous techniques, including splitting approaches and kinetic algorithms and methods, in which a third (intermediate) layer of vanishing depth is introduced to stabilize the solution. Correspond- ing numerical algorithms and their features used to overcome specific numerical instability in the case of two-layer equations are described in [1–10] (see also references therein). ( ) + = 1 1 1 div 0, h h t u ( ) + = 2 2 2 div 0, h h t u ( ) ( ) ( ) + +∇ + + = 2 1 1 1 1 1 1 1 2 div 0, 2 h gh h gh rh b t u u u ( ) ( ) ( ) + +∇ + + = . 2 2 2 2 2 2 2 2 1 div 0 2 h gh h gh h b t u u u , 1 ( ) h t x , 1 ( ) t u x , 2 ( ) h t x , 2 ( ) t u x () b x g ρ≤ 2 1 / 1 r > 1 r 1 h 2 h
Transcript
Page 1: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

ISSN 0965-5425, Computational Mathematics and Mathematical Physics, 2018, Vol. 58, No. 5, pp. 714–734. © Pleiades Publishing, Ltd., 2018.Original Russian Text © T.G. Elizarova, A.V. Ivanov, 2018, published in Zhurnal Vychislitel’noi Matematiki i Matematicheskoi Fiziki, 2018, Vol. 58, No. 5, pp. 741–761.

Regularized Equations for Numerical Simulation of Flowsin the Two-Layer Shallow Water Approximation

T. G. Elizarovaa,* and A. V. Ivanovb,**a Institute of Applied Mathematics, Russian Academy of Sciences, Moscow, 125047 Russia

b Faculty of Physics, Moscow State University, Moscow, 119991 Russia*e-mail: [email protected]

**e-mail: [email protected] June 6, 2015; in final form, August 10, 2015

Abstract—Regularized equations describing hydrodynamic f lows in the two-layer shallow waterapproximation are constructed. A conditionally stable finite-difference scheme based on the finite-volume method is proposed for the numerical solution of these equations. The scheme is tested usingseveral well-known one-dimensional benchmark problems, including Riemann problems.

Keywords: two-layer shallow water equations, quasi-gasdynamic approach, regularized equations,finite-volume method, central-difference scheme, one-dimensional f lows, transcritical f lows.DOI: 10.1134/S0965542518050081

1. INTRODUCTIONAccording to numerous works (see, e.g., [1–10]), the shallow water equations for two-layer f lows can

be written as a system of four equations (the notation used is explained in Fig. 1)

(1)

(2)

(3)

(4)

Here, and are the depth and velocity of the lower layer, and are the depth andvelocity of the upper layer, describes the topography of the bottom, and is the acceleration due togravity. The layers are indexed starting from the lower one (see Fig. 1). The numerical coefficient

is the ratio of the densities in the upper and lower layers. Obviously, for , Kelvin–Helmholtz instability can appear in the two-layer f luid system. The resulting f low field can no longer bedescribed by the shallow water equations, which are derived assuming that the vertical velocity of the f lowis negligibly low.

The above-written system of equations does not involve external forces (for example, wind strength orCoriolis forces) and viscous friction forces, including interlayer friction.

This system of equations represents two systems, each describing the f low of an individual layer. Thelayers are coupled only via the hydrostatic pressure, and this coupling is described by nonconservativenonlinear terms involving and . The last circumstance leads to additional instabilities of the numericalsolution as compared with the case of the single-layer equations. To overcome the arising difficulties,there are numerous techniques, including splitting approaches and kinetic algorithms and methods, inwhich a third (intermediate) layer of vanishing depth is introduced to stabilize the solution. Correspond-ing numerical algorithms and their features used to overcome specific numerical instability in the case oftwo-layer equations are described in [1–10] (see also references therein).

( )∂ + =∂

11 1div 0,h h

tu

( )∂ + =∂

22 2div 0,h h

tu

( ) ( ) ( )∂ + ⊗ + ∇ + ∇ + =∂

21 1 1

1 1 1 1 2div 0,2

h ghh gh rh btu

u u

( ) ( ) ( )∂ + ⊗ + ∇ + ∇ + = .∂

22 2 2

2 2 2 2 1div 02

h ghh gh h btu

u u

,1( )h tx ,1( )tu x ,2( )h tx ,2( )tu x( )b x g

= ρ ρ ≤2 1/ 1r > 1r

1h 2h

714

Page 2: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 715

Fig. 1. Schematic view of two-layer shallow water.

h2(x, t)

h1(x, t)

b(x)

Since Eqs. (1)–(4) underlying a numerical algorithm are written in nonconservative form, the resultingdifference scheme is nonconservative and its limiting discontinuous solutions generally depend on themethod used to specify numerical viscosity [11]. The problem of formulating the two-layer shallow watermodel in the form of a complete system of basis conservation laws was set up in [12], where this model wasstudied at the differential level. Later, this problem was addressed in a number of studies, which are over-viewed in [13]. Specifically, a system of basis conservation laws consisting of the mass conservation lawsin the layers, the total momentum conservation law, and the conservation law for the velocity jump at theinterface of the layers was proposed in [14]. A detailed analysis of discontinuous solutions admitted by thisbasis system of conservation laws, including in the two-dimensional case, can be found in [15].

Numerical algorithms based on nonconservative (Eqs. (1)–(4)) and conservative (see [14]) forms ofthe two-layer shallow water equations are compared in Section 9. This comparison shows that both dif-ference schemes produce similar numerical results. For this reason, our present study relies basically onan algorithm obtained by approximating the nonconservative system (1)–(4).

In this paper, for the numerical solution of the two-layer shallow water equations, we propose a newfinite-difference algorithm based on the quasi-gasdynamic approach [16–18]. Previously, a numericalalgorithm relying on this approach was developed for solving the shallow water equations; the algorithmwas tested and found to be efficient as applied to numerous problems in the indicated approximation (see,e.g., [19–23]).

Used in this work, the method for regularizing equations aimed at the design of a stable numericalalgorithm can be treated as a method of introducing artificial viscosity whose form is consistent with thefeatures of the original system of equations and its exact solutions. Another example is the introduction ofartificial viscosity approximating the physical one in f luid dynamics equations in the construction of fullyconservative schemes for gas dynamics equations [24]. Kinetically consistent schemes [16] and quasi-gas-dynamic equations [17, 18] can also be assigned to this class of models with additional dissipation.

The regularized form of system (1)–(4) written with the use of the quasi-gasdynamic approach is

(5)

(6)

(7)

(8)

where

(9)

(10)

∂ + =∂

11div 0,h

tj

∂ + =∂

22div 0,h

tj

( ) ( ) ( )( )( ) ( )( )

∂ + ⊗ + ∇ + − τ∂× ∇ + − ∇ τ = Π

21 1 1

1 1 1 1 1 1

2 1 2 2 2 1

div div2div div ,

h gh g h ht

rh b rgh h

uj u u

u

( ) ( ) ( )( )( ) ( )( )

∂ + ⊗ + ∇ + − τ∂

× ∇ + − ∇ τ = Π

22 2 2

2 2 2 2 2 2

1 2 1 1 1 2

div div2div div ,

h gh g h ht

h b gh h

uj u u

u

( ) ( )[ ]τ= ⊗ + ∇ + +11 1 1 1 1 1 2

1

div ,h gh b h rhh

w u u

( )= −1 1 1 1 ,hj u w

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 3: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

716 ELIZAROVA, IVANOV

(11)

(12)

(13)

(14)

These equations are based on a nonconservative form of the original system (1)–(4) and are a general-ization of the regularization approach developed earlier for the single-layer shallow water model [19–23].

In Section 2, we describe a method for constructing a regularized form of the two-layer shallow waterequations in the one-dimensional case (referred to hereafter as the large system). A corresponding differ-ence scheme is presented in Section 3. Whether the scheme is well-balanced is verified in Section 4.In Sections 5–8, we present examples of numerical computations of well-known test problems, such asinterface propagation, the conventional Riemann problem, the Riemann problem near a sloping beach(in which case the so-called dry-bed effect has to be taken into account), and transcritical f lows of layersover bottom irregularities.

The regularized system of shallow water equations obtained by applying the quasi-hydrodynamicapproach (referred to hereafter as the small system) is described in the Appendix. This approach was usedto compute test problems, and its features distinguishing it from the basic algorithm are indicated in thetext. The computations show that the small system exhibits strong oscillations on solution discontinuitiesand is poorly stable when the layer densities are close in value.

2. SMOOTHED TWO-LAYER SHALLOW WATER EQUATIONS

The one-dimensional two-layer shallow water equations are given by

(15)

(16)

(17)

(18)

By analogy with the construction of regularized gas dynamics equations and regularized shallow waterequations, we assume that the velocity and the depth of a liquid layer change over a short time interval(smoothing time ) to take new values and , respectively. To determine them, the correspondingfunctions are expanded in Taylor series up to the first term with :

(19)

Substituting (19) into and retaining only first-order terms in , we obtain

An expression for the time derivative is obtained from Eqs. (17) and (18). Let us describe this procedureas applied to the regularization of the equations for the lower layer ( ):

( ) ( )[ ]τ= ⊗ + ∇ + +22 2 2 2 2 1 2

2

div ,h gh b h hh

w u u

( )= −2 2 2 2 ,hj u w

( ) ( )[ ] ( )[ ]Π = τ ⊗ ⋅ ∇ + ∇ + + + τ1 1 1 1 1 1 1 1 2 1 1 1 1div ,h gh b h rh I gh hu u u u

( ) ( )[ ] ( )[ ]Π = τ ⊗ ⋅ ∇ + ∇ + + + τ2 2 2 2 2 2 2 1 2 2 2 2 2div .h gh b h h I gh hu u u u

( )∂ ∂+ =∂ ∂

11 1 0,h hu

t x

( )∂ ∂+ =∂ ∂

22 2 0,h h u

t x

( ) ( )∂∂ ⎛ ⎞ ∂∂ ∂+ + + + =⎜ ⎟∂ ∂ ∂ ∂ ∂⎝ ⎠

2 21 11 1 1 2

1 1 0,2

huhu gh h brgh ght x x x x

( ) ( )∂∂ ⎛ ⎞ ∂∂ ∂+ + + + = .⎜ ⎟∂ ∂ ∂ ∂ ∂⎝ ⎠

2 22 22 2 2 1

2 2 02

h uh u gh h bgh ght x x x x

τ∼ *u *hτ

∂ ∂= + τ , = + τ .∂ ∂

* *u hu u h ht t

* *h u τ

( ) ( ) ( )∂∂ ∂= + τ + τ = + τ + τ .∂ ∂ ∂

22( )* * huh uh u h u hu

t t t

,1 1h u

( ) ( )∂∂ ⎛ ⎞ ∂∂ ∂= − − − − .⎜ ⎟∂ ∂ ∂ ∂ ∂⎝ ⎠

2 21 11 1 1 2

1 12

huhu gh h brgh ght x x x x

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 4: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 717

Introducing

(20)

(21)we obtain

Similarly,

(22)

(23)

Now, we derive an expression for each term in Eq. (17) at and :

Using Eq. (17), we express the time derivative

(24)

An expression for the next term is obtained using (15):

Define

(25)

The remaining terms contain outside the derivative and can be written as

At the last step, we transform the derivative :

Thus, taking into account the transformations described above, for Eq. (17), we obtain

The term

is of the second order in , so it can be neglected.

( )⎡ ⎤∂ ⎛ ⎞τ ∂∂ ∂⎢ ⎥= + + + ,⎜ ⎟∂ ∂ ∂ ∂⎢ ⎥⎝ ⎠⎣ ⎦

2 21 11 1 2

1 1 11 2

hu gh h bw rgh ghh x x x x

( )= − ,1 1 1 1j h u w

∂ ∂+ = .∂ ∂

1 1 0h jt x

( )⎡ ⎤∂ ⎛ ⎞τ ∂∂ ∂⎢ ⎥= + + + ,⎜ ⎟∂ ∂ ∂ ∂⎢ ⎥⎝ ⎠⎣ ⎦

2 22 22 2 1

2 2 22 2

h u gh h bw gh ghh x x x x

( )= − ,∂ ∂+ = .∂ ∂

2 2 2 2

2 2 0

j h u wh jt x

∗=1 1h h ∗=1 1u u

∂ ∂ ∂ ∂⎛ ⎞ ⎛ ⎞ ⎛ ⎞ ⎛ ⎞∗ ∗ = + τ + τ = + τ + τ + τ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟⎝ ⎠ ⎝ ⎠ ⎝ ⎠ ⎝ ⎠∂ ∂ ∂ ∂

∂ ∂ ∂⎛ ⎞= + τ + τ + τ = + τ + τ .⎜ ⎟⎝ ⎠∂ ∂ ∂

2

2 2

22 2 21 1 1 1

1 1 1 1 1 1 1 1 1 1 1 1

2 21 1 1 11 1 1 1 1 1 1 1 1 1 1 1

( ) 2 ( )

( ) ( ) ( )

h u h uh u h u h u ut t t t

hu u uu hu u h Ju j u ht t t

∂ ∂ ∂ ∂ ∂⎡ ⎤= − + + + .⎢ ⎥⎣ ⎦∂ ∂ ∂ ∂ ∂

1 1 1 21

u u h h bu g rg gt x x x x

( ) ∂ ∂ ∂⎛ ⎞ ⎡ ⎤∗ = + τ = + τ − − + τ .⎜ ⎟ ⎢ ⎥⎝ ⎠ ⎣ ⎦∂ ∂ ∂

222 21 1 1

1 1 1 1 1 1 1 11 1 1 ( )2 2 2

h u hg h g h gh gh h ut x x

2

∂ ∂ ∂ ∂ ∂∂⎡ ⎤ ⎡ ⎤Π = τ + + + + τ + .⎢ ⎥ ⎢ ⎥⎣ ⎦ ⎣ ⎦∂ ∂ ∂ ∂ ∂ ∂

1 1 2 1 11 1 1 1 1 1 1 1 1

u h h u hbu h u g rg g gh h ux x x x x x∗1h

∂⎛ ⎞∗ = − τ .⎜ ⎟⎝ ⎠∂

1 11 1 1

( )huh hx

∗∂ ∂2 /h x

∂⎛ ⎞∂ − τ⎜ ⎟∗∂ ∂ ∂ ∂∂ ⎛ ⎞⎝ ⎠= = − τ .⎜ ⎟⎝ ⎠∂ ∂ ∂ ∂ ∂

2 22 2

2 2 2 22

( )( )

h uhh x h h ux x x x x

( ) ( )∂ ∂ ⎛ ⎞ ∂ ∂ ∂ ∂Π∂ ∂ ∂⎛ ⎞ ⎡ ⎛ ⎞ ⎤+ + + − τ − τ + = .⎜ ⎟ ⎜ ⎟⎜ ⎟ ⎢ ⎥⎝ ⎠ ⎣ ⎝ ⎠ ⎦∂ ∂ ∂ ∂ ∂ ∂ ∂ ∂ ∂⎝ ⎠

21 1 1 1 1 1 1 2 2 2 1

1 1 2( ) ( )

2hu u j gh hu h h u bg ht x x x x x x x x

∂ ∂∂ ⎛ ⎞τ τ = τ⎜ ⎟⎝ ⎠∂ ∂ ∂

21 1 2 21 2

( ) ( ) ( )hu h ug Ox x x

τ

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 5: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

718 ELIZAROVA, IVANOV

Applying the same procedure to Eq. (18) and simplifying the resulting expressions, we obtain a systemof smoothed equations for the second layer.

Thus, we have constructed the following regularized system for the two-layer shallow water equations,which is a special case of system (5)–(14):

(26)

(27)

(28)

(29)

where

(30)

(31)

(32)

(33)

(34)

(35)

3. DIFFERENCE SCHEME

By analogy with the algorithms from [19, 20] developed for quasi-gasdynamic equations, for thenumerical solution of regularized equations (26)–(35), we use a time-explicit difference scheme with allspatial derivatives approximated by central differences.

The desired variables are specified at nodes of a spatial grid . The valuesof the variables at half-integer spatial points are calculated as the arithmetic mean of the values atneighboring points:

Then, if and are the time and coordinate step sizes, respectively, we obtain

(36)

(37)

∂ ∂+ =∂ ∂

1 1 0,h jt x

∂ ∂+ =∂ ∂

2 2 0,h jt x

( ) ( )∂ ∂ ⎛ ⎞ ∂ ∂ ∂ ∂Π∂ ∂ ∂⎛ ⎞ ⎡ ⎤ ⎛ ⎞+ + + − τ + − τ =⎜ ⎟ ⎜ ⎟⎜ ⎟ ⎢ ⎥⎝ ⎠ ⎣ ⎦ ⎝ ⎠∂ ∂ ∂ ∂ ∂ ∂ ∂ ∂ ∂⎝ ⎠

21 1 1 1 1 1 1 2 2 2 1

1 1 1 2( ) ( ) ,

2hu u j gh hu h h ubg h r rght x x x x x x x x

( ) ( )∂ ∂ ⎛ ⎞ ∂ ∂ ∂ ∂Π∂ ∂ ∂⎛ ⎞ ⎡ ⎤ ⎛ ⎞+ + + − τ + − τ =⎜ ⎟ ⎜ ⎟⎜ ⎟ ⎢ ⎥⎝ ⎠ ⎣ ⎦ ⎝ ⎠∂ ∂ ∂ ∂ ∂ ∂ ∂ ∂ ∂⎝ ⎠

22 2 2 2 2 2 2 1 1 1 2

2 2 2 1( ) ( ) ,

2h u u j gh h u h hubg h gh

t x x x x x x x x

( ) ( )⎡ ⎤∂τ ∂⎢ ⎥= + + +

∂ ∂⎢ ⎥⎣ ⎦

21 11

1 1 1 21

,hu

w gh h rh bh x x

( )= −1 1 1 1 ,j h u w

( ) ( )⎡ ⎤∂τ ∂⎢ ⎥= + + +

∂ ∂⎢ ⎥⎣ ⎦

22 22

2 2 1 22

,h u

w gh h h bh x x

( )= −2 2 2 2 ,j h u w

( ) ( )∂∂ ∂⎡ ⎤Π = τ + + + + τ⎢ ⎥⎣ ⎦∂ ∂ ∂

1 111 1 1 1 1 1 2 1 1 ,

huuu h u g h rh b ghx x x

( ) ( )∂∂ ∂⎡ ⎤Π = τ + + + + τ .⎢ ⎥⎣ ⎦∂ ∂ ∂

2 222 2 2 2 2 1 2 2 2

h uuu h u g h h b ghx x x

, , , , , , ,1 2 1 2( ) ( ) ( ) ( )h x t h x t u x t u x t i+ 1/2i

+ ++ +

+ ++ +

+ τ + τ= τ =

+ += = =

1 11/2 1/2

1 11/2 1/2

( ) ( ), ( ) ,2 2

( ) ( ) ( ) ( )( ) , ( ) , 1,2.2 2

i i l i l ii l i

l i l i l i l il i l i

b bb

h h u uh u l

Δt Δx

+ / + + + ++ / + /

+ /

⎛τ − + + − − − ⎞= + ⎟⎜ Δ Δ ⎠⎝

2 21 1 2 1 1 1 1 1 1 1 2 1 1 1 2

1 1 2 1 1 21 1 2

( ) ( ) ( ) ( ) ( ) ( ) ( )( ) ( ) ,( )

i i i i i i i i ii i

i

hu hu h r h b h r h bw g hh x x

+ / ++ / +

+ +/

+ /

+⎛τ −= +⎜ Δ+ + − − − ⎞

⎟Δ ⎠⎝

2 22 1 2 2 2 1 12 2

2 1 2 2 11 2 1 1 1 2

22 1 2

( ( )) ( ) ( )( ) ( ) ( ( ))

) ( ) .(

i ii i ii

i

i i ii

ih u h uw g h h h b h h bxh x

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 6: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 719

Similarly, we define

(38)

(39)

Then

(40)

(41)

By using (26), (27), (40), and (41), the first equations are approximated as

(42)

(43)

Introducing , we approximate the f lux derivatives:

(44)

(45)

Equations (28) and (29) are approximated as follows:

(46)

(47)

Here,

(48)

The terms with and and with and in Eqs. (28) and (29), respectively, can be approximatedin a different manner. It will be shown in the next section that the method for the approximation of thesequantities affects the accuracy to which the hydrostatic equilibrium condition is satisfied. We will use thefollowing two approximation methods.

( ) + + + ++ / + / + / + /+ /

+ ++ / + /

− + + − − −⎛ ⎞= τ +Π ⎜ ⎟Δ Δ⎝ ⎠−+ τ

Δ

1 1 1 1 1 2 1 1 1 21 1 2 1 1 2 1 1 2 1 1 21 1 2

1 1 1 1 1 11 1 2 1 1 2

( ) ( ) ( ) ( ) ( ) ( )( ) ( ) ( ) ( )

( ) ( ) ( ) ( )( ) ( ) ,

i i i i i i i ii i i ii

i i i ii i

u u h r h b h r h bu h u gx xh u h ug h

x

( ) + + + ++ / + / + / + /+ /

+ ++ / + /

− + + − − −⎛ ⎞= τ +Π ⎜ ⎟Δ Δ⎝ ⎠−+ τ .

Δ

2 1 2 1 1 2 1 1 1 22 1 2 2 1 2 2 1 2 2 1 22 1 2

2 1 2 1 2 22 1 2 2 1 2

( ) ( ) ( ) ( ) ( ) ( )( ) ( ) ( ) ( )

( ) ( ) ( ) ( )( ) ( )

i i i i i i i ii i i ii

i i i ii i

u u h h b h h bu h u gx x

h u h ug hx

( )+ / + / + / + /= − ,1 1 2 1 1 2 1 1 2 1 1 2( ) ( ) ( ) ( )i i i ij h u w

( )+ / + / + / + /= − .2 1 2 2 1 2 2 1 2 2 1 2( ) ( ) ( ) ( )i i i ij h u w

++ / − /− −+ =

Δ Δ

11 1 1 1 2 1 1 2( ) ( ) ( ) ( ) 0,

k ki i i ih h j j

t x+

+ / − /− −+ = .Δ Δ

12 2 2 1 2 2 1 2( ) ( ) ( ) ( ) 0

k ki i i ih h j j

t x∂= ∂

( )l ll

husx

+ ++ /

−= ,Δ

1 1 1 1 1 11 1 2

( ) ( ) ( ) ( )( ) i i i ii

h u h usx

+ ++ /

−= .Δ

2 1 2 1 2 22 1 2

( ) ( ) ( ) ( )( ) i i i ii

h u h usx

( ) ( )+ ++ / − /+ / + / − / − /

+ / − / + / + / − / − /

+ / − /

−− −+ +Δ Δ Δ

− τ − τ∗∗∗+ −Δ Δ

−∗+ =Δ

2 21 11 1 2 1 1 21 1 1 1 1 1 2 1 1 2 1 1 2 1 1 2

2 1 2 2 1 2 2 1 2 2 1 2 2 1 2 2 1 21 1

1 2 1 21

( ) ( )( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )2

( ) ( ) ( ) ( ) ( ) ( )( ) ( )

( )

k k k ki ii i i i i i i i

i i i i i ii i

i ii

h hh u h u u j u j gt x x

h h s srg h rg hx x

b bg hx

( ) ( )+ / − /−Π ΠΔ

1 11 2 1 2 ,i i

x

( ) ( )+ ++ / − /+ / + / − / − /

+ / − / + / + / − / − /

+ / − / +

−− −+ +Δ Δ Δ

− τ − τ∗∗∗+ −Δ Δ

−∗+ =Δ

2 21 12 1 2 2 1 22 2 2 2 2 1 2 2 1 2 2 1 2 2 1 2

1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 22 2

1 2 1 22

( ) ( )( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )2

( ) ( ) ( ) ( ) ( ) ( )( ) ( )

( )

k k k ki ii i i i i i i i

i i i i i ii i

i i ii

h hh u h u u j u j gt x x

h h s sg h g hx x

b bg hx

( ) ( )/ − /−Π Π.

Δ2 21 2 1 2i

x

+ / + / − / − /−∗∗∗ = − τ , = , .Δ

1 2 1 2 1 2 1 2( ) ( ) ( ) ( )( ) ( ) ( ) 1 2l i l i l i l il i l i l i

h u h uh h lx

∗∗1h ∗∗

2h ∗1h ∗

2h

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 7: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

720 ELIZAROVA, IVANOV

Method 1:

(49)

Method 2:

(50)

The stability of the numerical algorithm is ensured by terms with the coefficient . The regularizer isdefined with the help of two independent coefficients and for each layer, respectively:

(51)

(52)

The quantity is proportional to the spatial mesh size with a coefficient , where is anumber determined by the accuracy and stability conditions. The stability condition is the Courant one,where the time step is given by the formula

(53)

A sufficient condition for the linear stability of the difference scheme for shallow water equations ofform (53) was obtained in [22].

The boundaries of the computational domain are placed at half-integer points. In difference form, theboundary conditions are set with the use of dummy nodes and a second-order accurate approximation.

4. HYDROSTATIC EQUILIBRIUM CONDITIONSTo represent the numerical results in a more convenient form, we introduce the following notation:

(54)

(55)

Additionally, if , for convenience, we will use

(56)The algorithm is said to satisfy the hydrostatic equilibrium condition, which, in this context, means

that the algorithm is well-balanced if, in the absence of external forces, horizontal liquid layers that areinitially at rest cannot spontaneously begin to move over a rough bottom.

For the two-layer shallow water equations, this condition has the form

and is checked by directly substituting these expressions into the two-layer shallow water equations andtheir regularized counterpart. The hydrostatic equilibrium is one of a few simple analytical solutions of thetwo-layer shallow water equations.

For numerical algorithms intended for solving the two-layer problem, whether this condition is satis-fied depends on the numerical algorithm used. Approaches to ensuring the fulfillment of this conditionare rather expensive and can be found, for example, in [1, 2].

For Method 1 (see (49)), this condition is precisely satisfied by the difference scheme, which can bechecked by direct substitution of the discrete solution , , into the system of difference equations (36)–(47) for the stationary problem. A similar condition waschecked for the single-layer case in [19].

For Method 2 (see (50)), the substitution of the hydrostatic equilibrium condition into scheme (36)–(47)leads to relations of the form

+ / − /+∗∗ = , = , .1 2 1 2( ) ( )( ) 1 22

l i l il i

h hh l

∗∗ = , = , .( ) ( ) 1 2l i l ih h l

τ ττ1 τ2

Δτ = α , =1 1 1 11

,x c ghc

Δτ = α , = .2 2 2 22

x c ghc

τi Δx αi < α <0 1i

( )ΔΔ = βmin

xtc

ξ , = , + ,1 1( ) ( ) ( )x t h x t b x

ξ , = , + , + .2 2 1( ) ( ) ( ) ( )x t h x t h x t b x

α = α1 2

α = α = α.1 2

= , + = , = =2 1 1 2const const 0h h b u u

= =1 2( ) ( ) 0i iu u + =1( ) consti ih b =2( ) constih

+ / − /+= , = , .1 2 1 2( ) ( )( ) 1 22

l i l il i

h hh l

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 8: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 721

Fig. 2. Method 1: hydrostatic equilibrium condition for in the case of (a) smooth bottom and (b) discontinuousbottom.

20 40 60 80 1000

1

2

3

4

5(a) (b)

b, ξ1, ξ2 b, ξ1, ξ2

x20 40 60 80 1000

1

2

3

4

5

x

= 100N

To numerically verify the hydrostatic equilibrium condition as applied to a two-layer f luid, we used twoproblems with initial conditions

for two cases of bottom topography, namely, the smooth profile

and the steplike discontinuous profile

The computation was performed with constant coefficients , , and on a grid with. In all the subsequent computations, we used . A decrease in this coefficient leads to finer

grids in time, but they were not required in the tests described below. The above value of ensures thehighest stability for the regularized system [19], although the hydrostatic equilibrium condition is obvi-ously satisfied for any values of these coefficients. The computation time was .

For Method 1, the numerical results are shown in Fig. 2. In this case, the numerical error for the prob-lems with a smooth and discontinuous bottom can be regarded as equal to machine zero, namely, about

.For Method 2, the numerical results are presented in Fig. 3. It can be seen that the equilibrium condi-

tion is satisfied approximately. The tables give the maximum peaks observed in the computations basedon this method. For the problem with a smooth bottom, the results in Table 1 suggest that the solution

, = = = ,2( 0) const 2h x t

, = + = = ,1( 0) ( ) const 2h x t b x

, = = , = = ,1 2( 0) ( 0) 0u x t u x t

( )( ). . π + , ,⎧= ⎨ , < ∪ > ,⎩

< <0 5 cos 0 1 1 10 90( )

0 10 90x x

b xx x

, <⎧= ⎨ , ≥ .⎩

0 50( )

1 50x

b xx

= .0 5r β = .0 1 α = .0 3= 100N β = .0 1

α

= 1t

− −−15 1610 10

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Table 1. Smooth bottom

N = 100 N = 200 N = 500 N = 1000

h1 1.68 × 10–3 4.96 × 10–4 8.42 × 10–5 2.16 × 10–5

h2 5.53 × 10–4 1.68 × 10–4 3.15 × 10–5 8.25 × 10–6

Page 9: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

722 ELIZAROVA, IVANOV

Fig. 3. Method 2: hydrostatic equilibrium condition for in the case of (a) smooth bottom and (b) discontinuousbottom.

20 40 60 80 1000

1

2

3

4

5(a) (b)

b, ξ1, ξ2 b, ξ1, ξ2

x20 40 60 80 1000

1

2

3

4

5

x

= 100N

converges rapidly with decreasing mesh size. For the problem with a discontinuous bottom profile (Table 2),this convergence is not observed.

In the subsequent computations, we used Method 1, which is a well-balanced solver.

5. TEST 1: PROPAGATION OF AN INTERFACE WITH DISCONTINUITYThis test was investigated in detail in [1–4]. Its formulation is based on [1]. Consider a system with a

flat bottom ( ) in which , , and the initial depths of the layers are given by

In [1] this problem was solved for with the number of cells being ; the results weredemonstrated for the time To solve the problem, the authors of [1] developed stable first- andsecond-order accurate time-splitting schemes, which are well-balanced and satisfy a discrete entropyinequality.

Figure 4 shows the results obtained at the same time with use of the regularized shallow water equationsfor and .

Figure 5 presents the numerical solution for various values of the regularization coefficient ( ). As is approached, oscillations arise in the numerical solution and it becomes unsta-ble. These results agree with [19].

According to the authors of [1], the numerical solution near the front exhibits oscillations, which canbe seen on a zoomed fragment of the figure in . However, these oscillations are small against the back-

=( ) 0b x = .9 81g = .0 98r

. , < . ,⎧, = = ⎨ . , . ,⎩2

0 5 0 5( 0)

0 55 0 5x

h x tx >

. , < . ,⎧, = = ⎨ . , . ,⎩1

0 5 0 5( 0)

0 45 0 5x

h x tx >

, = = , = = . .1 2( 0) ( 0) 2 5u x t u x t

∈ ,[0 1]x = 100N= .0 05.t

= 100N α = .0 3α

= 100N α = .0 05

x

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Table 2. Bottom with discontinuity

N = 100 N = 200 N = 500 N = 1000

h1 0.13 0.16 0.15 0.14h2 0.025 0.025 0.021 0.021

Page 10: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 723

Fig. 4. Test 1, , , : (a) whole field and (b) a fragment of the profile.

0.2 0.4 0.6 0.8 1.00

0.2

0.4

0.6

0.8

1.0

(a) (b)

x0 0.2 0.4 0.6 0.8 1.0

0.44

0.46

0.48

0.50

0.52

x

b, ξ1, ξ2 ξ1

= 100N β = .0 1 α = .0 3

Fig. 5. Test 1: for various and .

0 0.2 0.4 0.6 0.8 1.00.45

0.46

0.47

0.48

0.49

0.50

0.51ξ1

x

α = 0.05α = 0.1α = 0.3α = 0.5

ξ1 α = 100N

ground field, they are observed for , and their amplitude is about for the first-order accu-rate scheme and for the second-order accurate scheme. An analysis of the results suggests that theoscillations obtained in our computations in the zone for nearly coincide in ampli-tude with the oscillations of the second-order solution produced in [1].

It was indicated in [2] that insufficient numerical viscosity in this problem may lead to additional inter-face instabilities, which become more noticeable with a larger number of grid points. At the time ,such high-frequency instability occurs ahead of the front near the point . The same oscillations wereobserved when this problem was computed using the quasi-hydrodynamic (small) system of two-layershallow water equations. The interface oscillations suggest the lack of smoothing in the small system ofequations. The numerical experiments have shown that the quasi-gasdynamic (large) system is muchmore stable than the small one and its numerical solution does not exhibit the indicated instabilities.

Fine Grid Computations

Numerical experiments show that the asymptotic solution of the problem for large is a step at thefront. This is demonstrated in Fig. 6a. For = 5000 and 10000, it can be clearly seen that both front seg-ments bifurcate and flatten. In [1] only was considered and this phenomenon was not observed.

∈ . , .[0 5 0 6]x .0 01.0 003

∈ . , .[0 5 0 6]x α = .0 1

= .0 05t.0 4

NN= 100N

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 11: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

724 ELIZAROVA, IVANOV

Fig. 6. Test 1: (a) and (b) for , , and various N.

0.50 0.55 0.60 0.65 0.700.45

0.46

0.47

0.48

0.49

0.50(a) (b)

ξ1

x

N = 500N = 1000N = 5000N = 10000

0 0.2 0.4 0.6 0.8 1.02.500

2.505

2.510

2.515u1

x

N = 500N = 1000N = 5000N = 10000

ξ1 1u = 10g α = .0 5

The bifurcation of the front and the formation of a step were obtained in [2] for . Note thatthe problem in [2] was considered for (which was taken into account in our computation) and,additionally, a relaxation method with various artificial viscosity was used. The results presented in Fig. 6( ) agree well with those of [2].

In the case of the small system, the bifurcation of the interface jump front was also observed on a finerspatial grid ( ).

Values of r Close to 1

It was noted in [1] that the schemes used here begins to diverge as . This can be explainedfrom a physical point of view: for > 1, the heavier layer overlies the lighter one, so the f luids intermix,which is manifested as strong numerical oscillations at the interface and, as a consequence, leads to thedivergence of the scheme.

It was shown in [26] that a similar effect is observed with the use of the regularized two-layer shallowwater equations. The stability of difference schemes as is an important factor in the com-putation of liquid layers with slightly different densities.

6. TEST 2: RIEMANN PROBLEM FOR VARIOUS r

This test was described and studied in [1]. Consider a system with a f lat bottom ( ) in which and

The number of grid points was over the interval ; the results were presented for t = 1.In [1] the problem was solved using first- and second-order accurate hydrostatic solvers and a kineticsolver, which is considered more accurate and stable.

For the large system in this and the subsequent tests, we used an optimal value of the regularizationcoefficient, namely, . Throughout the rest of this paper, we mean this value, unless otherwisestated.

= 10 000N= 10g

α = .0 5

= 10 000N

= ρ ρ →2 1/ 1rr

= ρ ρ →2 1/ 1r

=( ) 0b x= .9 81g

. , < ,⎧, = = ⎨ . ,⎩ >1

0 2 5( 0)

1 8, 5x

h x tx

, = + , = = ,, = = , = = .

2 1

1 2

( 0) ( 0) 2( 0) ( 0) 0

h x t h x tu x t u x t

= 500N ∈ [0,10]x

α = .0 5

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 12: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 725

Fig. 7. Test 2: layer depth distribution for , , , , and various N.

2 4 6 8

N = 500

N = 5000

100

0.5

1.0

1.5

2.0

2.5b, ξ1, ξ2

x

= .0 7r = 1t α = .0 5 β = .0 1

Variant r = 0.7

This case is shown in Fig. 7 at . Our results are similar to those of [1] produced by the second-orderhydrostatic solver. As in [1], the lower layer distribution has plateaus at a depth of : and,then, at : . Similarly, the upper layer has three noticeable plateaus over

, respectively.

The dependence of the solution on was analyzed. For , the solution began to oscillate anddiverged. A comparison of the solutions from [1] with those based on the large system with N = 500 and5000 showed that they agree very well even on grids with identical numbers of nodes. Figure 7 demon-strates the grid convergence of the numerical solution.

Note that this problem was solved using a first-order accurate difference scheme with a Courant num-ber being 10 times higher than that in [1].

As was noted in [1], the solution produced by the first-order hydrostatic solver exhibits unphysical dis-continuities. At the same time, the more universal and more stable kinetic solver of the first order yieldsan unphysical extremely smoothed solution. An adequate numerical solution is obtained only by applyingthe second-order accurate hydrostatic or kinetic solvers.

Variant r = 0.98

In [1] this problem was simulated for r close to 1 ( ). The authors of [1] note that, in thiscase, a stationary discontinuity is formed, whose shape depends significantly on the solver used. In ourcomputations, the solution obtained using the large system differs widely from that in [1]. This case is dis-cussed in more detail in [26].

Variant

The partition was specified by . Figure 8a presents a stable structure of the layers for . For, this structure remains nearly unchanged over time (the front bifurcates at ). This result

seems natural and physical, since the case of a stationary discontinuity at corresponds to a stationaryfluid an everywhere identical density. Note that the proposed algorithm turns out to be stable for this spe-cific limiting case.

As increases slightly, the numerical solution becomes unstable, which is clearly seen in Fig. 8b( ). For and , the scheme diverges. This, in turn, suggests that the result agrees withthe physical instability of such layers.

= 1t=1 1h ∈ , .[4 5 5]x

= .1 1 75h ∈ ,[6 9]x∈ , ; , ; ,[0 3] [4 6] [6 9]x

α α .< 0 05

ρ ρ = .2 1/ 0 98

= 1r

= 500N = 1rα = .0 3 > 5t

= 1r

> 1rα = .0 5 > .1 0005r > 1t

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 13: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

726 ELIZAROVA, IVANOV

Fig. 8. Test 2, , : (a) , , and and (b) , , and .

2 4 6 8 100

0.5

1.0

1.5

2.0

2.5 (b)(a)b, ξ1, ξ2

x2 4 6 8 100

0.5

1.0

1.5

2.0

2.5b, ξ1, ξ2

x

= 500N β = .0 1 = .1 0r α = .0 3 = 5t = .1 0005r α = .0 5 = 1t

7. TEST 3: RIEMANN PROBLEM NEAR A SLOPING BEACH

In [1] this test was considered with , , , and the initial conditions

for N = 100. The results were presented for t = 0.5 and t = 50.

In [1] this problem was solved using a kinetic solver. The solid wall boundary condition was used onthe left to ensure mass conservation. The system in void regions (i.e., dry-bed zones) was found to behavewell. It was shown that a stable equilibrium is reached (by ), which suggests that the solver of [1] iswell-balanced.

In the present paper, to solve this problem, the boundary conditions of system (36)–(47) were supple-mented by dry-bed conditions. Specifically, following [20], a small was chosen such that

and

= .9 81g = .0 95r ∈ ,[0 10]x

. , < . ,⎧, = = ⎨ , . ,⎩ >1

0 5 0 25( 0)

0 0 25x

h x tx

+, = = − , = − ,, = = , = = ,

2 1

1 2

( 0) (1 ( 0) ( ))( 0) ( 0) 0

h x t h x t b xu x t u x t

= 50t

ε

( )Δ⎧α , > ε,⎪τ = ⎨

⎪ , ε,⎩ <

111

1

( )( )( )

0 ( )

iii

i

x hg h

h

( )Δ⎧α , > ε,⎪τ = ⎨

⎪ , ε,⎩ <

222

2

( )( )( )

0 ( )

iii

i

x hg h

h

++

+

⎧ > ε,⎪= ⎨ε,⎪⎩ <

111

1 11

(46), ( )( )

0, ( )

kik

i ki

hu

h

++

+

⎧ > ε,⎪= ⎨ε⎪⎩ <

121

2 12

(47), ( )( )

0, ( ) .

kik

i ki

hu

h

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 14: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 727

Fig. 9. Test 3, , : (a) for various and (b) , .

0.2 0.4 0.6 0.8 1.00

0.5

1.0

1.5

2.0

2.5(a) (b)

b, ξ1, ξ2

x0.2 0.4 0.6 0.8 1.00

0.5

1.0

1.5

2.0

2.5b, ξ1, ξ2

x

N = 500

N = 5000

β = .0 1 α = .0 5 = .0 5t N = 50t = 100N

For this problem, the cutoff parameter was specified as . As was decreased, the time step hadto be reduced to ensure stable computation of the problem. To smooth the solution in front propagationover a dry bed, we introduced additional dissipation of the form

(57)

This additional dissipation has the form of Navier–Stokes viscosity [24].To compare the results with [1], the test was run with the same partition (Fig. 9). Under mesh

refinement at , we obtained a conventional decay of a discontinuity, which can be observed inFig. 9a. At the time , the front position and the depths of the layers agree well with the reference datafrom [1].

Thus, we can conclude that the large system agrees, in accuracy, with the second-order accuratehydrostatic solver from [1], while being able to solve problems addressed with a more stable second-orderaccurate kinetic solver.

8. TEST 4: TRANSCRITICAL FLOW OVER BOTTOM IRREGULARITIES

The next problem was taken from [2]. Namely, we considered the transcritical f low connecting twoinfinite reservoirs with a Froude number varying from values smaller than 1 to supercritical values reachedat the crest. Depending on the initial and boundary conditions, the solution exhibits or does not exhibit asteady-state discontinuity, i.e., a hydraulic jump.

The problem was considered with the following conditions:

Note that the shallow water equations (15)–(18) have the exact solution

(58)

ε = .0 01 ε

( ) ∂= τ , = , .Π∂

2

1 22

i iiNS i

gh u ix

= 100N= .0 5t

= 50t

∈ − , , = , = . ,[ 3 3] 10 0 98x g r

( )π⎧ . + , ,⎪= ⎨, < .⎪⎩

<

<

0 125 cos 1 22( )

0 2 3

x xb x

x

⎧ = = , + + + = ,⎪⎪⎨⎪ = = , + + + = .⎪⎩

21

1 1 1 1 1 2 22122

2 2 2 3 1 2 422

const const2

const const2

QQ hu h rh bghQQ h u h h bgh

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 15: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

728 ELIZAROVA, IVANOV

Two tests were considered in [2], namely, the case of parallel f lows and the case of layers f lowing inopposite directions. Both cases are described by system (58).

Consider parallel f lows. The boundary condition imposed on the left is

(59)

and the f low drift condition is set on the right:

(60)

here,

Parallel Flows without DiscontinuityFor the problem without discontinuity, the initial conditions were specified as

(61)

where

(62)

The numbers and were taken arbitrary, but close to the final result. We used the results from[2] and Eqs. (58) describing the exact solution. Thus,

Following [2, 3], the transcriticality of the flow was determined using the “combined” Froude number defined as

(63)

where , , are the Froude numbers for layers 1 and 2, which are calculated as

(64)

The flow is subcritical for and transcritical for .The distribution of the liquid layers and the Froude numbers at are shown in Fig. 10. It can be

seen that the solution varies insignificantly under mesh refinement, which suggests that the required accu-racy was reached. Moreover, it can be seen that the f low is transcritical: as it goes over the bump on thebottom surface, the velocity grows and the combined Froude number passes through unity.

It should also be noted that the solution agrees with the result of the source, where the final boundaryvalues for the depths were

( )=−=−

∂= = , = , = , ;∂3 in

3const 0 1 2i

i i ixx

hhu iQx

= =

∂ ∂= , = , = ,∂ ∂3 3

0 0 1 2,i i

x x

h u ix x

( ) ( )= = . .1 2in in 0 09282893Q Q

( ), − < < − ,⎧

⎪, = . π + + , − ,⎨⎪ , < < ,⎩

, , = = ,

< <

in

out

in

( ) 3 2( 0) cos 0 25 ( 2) 2 2

( ) 2 3( 0) ( 0) ( ) ( )

i

i

i

i i i i

h xh x A x B x

h xh x u x Q x Q

( ) ( )= . − , = . + , = , .in out in out0 5 ( ) ( ) 0 5 ( ) ( ) 1 2i i i iA h h B h h i

in( )ih out( )ih

= . , = .1 in 1 out( ) 1 0816731 ( ) 0 1616669,h h

= . , = . .2 in 2 out( ) 0 4311358 ( ) 1 3338331h h

G

= + − − ,2 2 2 2 21 2 1 2(1 )G Fr Fr r Fr Fr

iFr = ,1 2i

= , = − .2

2 ' (1 )'i

ii

uFr g r gg h

<2 1G >2 1G= 300t

=− == . , = .1 13 31 0816731 0 1616669,x xh h

=− == . , = . .2 23 30 4311358 1 3338331x xh h

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 16: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 729

Fig. 10. Test 4, large system, flow without discontinuity for various N, , , and : (a) layer depth dis-tribution and (b) Froude number with schematic bottom topography.

−3 −2 −1 0 1 2 30

0.5

1.0

1.5(a) (b)b, ξ1, ξ2

b, G2

x

N = 200

N = 400

−3 −2 −1 0 1 2 30

2

4

6

8

10

12

x

N = 200N = 400

α = .0 5 β = .0 1 = 300t

Parallel Flows with Discontinuity

The initial conditions were specified as layers at rest, which was necessary for the formation of ahydraulic jump:

The values were taken approximate to the result, although they can generally be arbitrary, since the con-vergence to the solution with discontinuity is ensured primarily by the boundary conditions

(65)

On the right, we set a fixed boundary for the depth and drift for the velocity:

(66)

In the numerical integration of this problem, the solution exhibits grid oscillations near the disconti-nuity. To smooth these spurious oscillations, by analogy with the quasi-hydrodynamic algorithm for thesimulation of supersonic gas f lows, the expression for the viscous stress tensor (34), (35) has to be supple-mented by Navier–Stokes viscosity regularizers (57).

The numerical results at are presented in Figs. 11 and 12. It can be seen that the layer distribu-tions (Fig. 11a) and the Froude numbers (Fig. 11b) obtained on different grids nearly coincide, and themass f lux does not differ from the exact solution in Fig. 12: .

The results also coincide with the reference solution from [2], where the boundary depths were speci-fied as

and the discontinuity was localized at , as in the large system.

, + = . , , = .1 2( 0) ( ) 0 9205217 ( 0) 0 5794783,h x b x h x

, = , = .1 2( 0) ( 0) 0u x u x

( )=−=−

∂= = , = , = ,∂3 in

3const 0 1 2.i

i i ixx

hhu iQx

= ==

∂+ = . , = . , = , = , .∂1 23 3

30 9205217 0 5794783 0 1 2i

x xx

uh b h ix

= 500t

, = ,1 2ij i ( )= = , = ,in const 1 2i ij iQ

=− == . , = .1 13 31 0816731 0 9205217,x xh h

=− == . , = .2 23 30 4311358 0 5794783,x xh h

= .0 48x

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 17: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

730 ELIZAROVA, IVANOV

Fig. 11. Test 4, large system, flow with discontinuity for various N, , , and : (a) layer depth distri-bution and (b) Froude number with schematic bottom topography.

-3 −2 −1 0 1 2 30

0.5

1.0

1.5(a) (b)

b, ξ1, ξ2b, G2

x−3 −2 −1 0 1 2 3

x

N = 200

Ν = 400

0

1

2

3

4

5N = 200N = 400

α = .0 5 β = .0 1 = 500t

Fig. 12. Test 4, f low with discontinuity, f lux distribution for various N, , , and : (a) first layer and(b) second layer.

−3 −2

N = 200: h1u1,

N = 400: h1u1,

j1;

j1Q1

N = 200: h2u2,

N = 400: h2u2,

j2;

j2Q2

−1 0 1 2 30.0916

0.0918

0.0920

0.0922

0.0924

0.0926

0.0928

0.0930 (a) (b)

x−3 −2 −1 0 1 2 3

x

0.0924

0.0926

0.0928

0.0930

0.0932

0.0934

0.0936

0.0938

α = .0 5 β = .0 1 = 500t

Counterflows

This problem differs only in that the f low direction in one layer is opposite to the other:

The initial conditions were specified as before by (61) and (62), but the boundary conditions for the upperlayer were different. Namely, on the right boundary,

(67)

and, on the left, we set the f low drift condition

(68)

( ) ( )= − = . .1 2in in 0 09282893Q Q

( )==

∂= = , = ,∂

22 2 23 in

3const 0x

x

hh u Qx

=− =−

∂ ∂= , = .∂ ∂

2 2

3 30 0

x x

h ux x

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 18: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 731

The boundary conditions for the lower layer were the same as before: (59) and (60) (i.e., only for ).The layer depth distribution in this case perfectly agrees with Fig. 10, so it is not shown. This result

repeats the case of parallel f lows, since the exact solution (58) is satisfied by both formulations (the solu-tion is independent of the f low direction).

It should be noted that the problem of counterflows is unstable with respect to initial data, so the resultmay not converge to the desired solution. Possibly, in solving such problems, we need to take into accountviscosity, which plays an important role in the interaction of counterflows. Additionally, unstable pertur-bations arise under mesh refinement. For this reason, regularizer (57) with coefficient was intro-duced into the scheme in order to reduce the oscillations.

9. EXAMPLE OF USING TWO-LAYER SHALLOW WATER EQUATIONSIN CONSERVATIVE FORM

According to the formulations in [12, 15, 25], the two-layer shallow water equations can be representedas a system of conservation laws, i.e., in conservative form. By using the notation introduced in Section 1,for one-dimensional plane f lows, we can write this system as

(69)

(70)

(71)

(72)

After performing transformations similar those described in Section 2, in the same notation as before,the regularized form of system (69)–(72) is written as

(73)

(74)

(75)

(76)

(77)

(78)

here, , , , , , and are given by formulas (30)–(35), respectively.Inspection of the regularized conservative system shows that the first two equations coincide with (26)

and (27), while the velocity equations are simpler than those in the large system, i.e., (28), (29). Applying

= 1i

γ = .0 1

( )∂ ∂+ =∂ ∂

11 1 0,h hu

t x

( )∂ ∂+ =∂ ∂

22 2 0,h h u

t x

( )⎛ ⎞∂ ∂ ∂+ + + + =⎜ ⎟∂ ∂ ∂⎝ ⎠

21 1

1 2 0,2

u u g h rh bt x x

( )⎛ ⎞∂ ∂ ∂+ + + + = .⎜ ⎟∂ ∂ ∂⎝ ⎠

22 2

1 2 02

u u g h h bt x x

∂ ∂+ =∂ ∂

1 1 0,h jt x

∂ ∂+ =∂ ∂

2 2 0,h jt x

( )�⎛ ⎞∂ ∂Π∂ ∂+ + + + =⎜ ⎟∂ ∂ ∂ ∂⎝ ⎠

21 1 1

1 2 ,2

u u g h rh bt x x x

( )�⎛ ⎞∂ ∂Π∂ ∂+ + + + =⎜ ⎟∂ ∂ ∂ ∂⎝ ⎠

22 2 2

1 2 ,2

u u g h h bt x x x

�∂Π = Π + τ

∂2 2

1 1 21

( )1 ,h urgh x

�∂Π = Π + τ

∂1 1

2 2 12

( )1 ,hugh x

1w 1j 2w 2j Π1 Π2

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 19: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

732 ELIZAROVA, IVANOV

identity transformations, we can show that momentum equations (28) and (29) differ from Eqs. (75) and(76) by the term , where

This term is proportional to and, due to its structure, vanishes for smooth stationary solutions of theoriginal system of equations.

To estimate the effectiveness of system (73)–(78) for numerical simulation, following the approachpresented in Section 3, we constructed a difference scheme and ran it as applied to the problems describedabove. It was shown that system (73)–(78) satisfies the hydrostatic equilibrium conditions. The resultsobtained in Tests 2 and 3 were found to agree well with the reference solutions. However, we failed to sim-ulate the transcritical f low problem (Test 4), i.e., to obtain a discontinuous solution.

It should be noted that the computation times for the regularized system considered in this section aresomewhat less than for system (26)–(35).

Thus, the numerical computations of the test problems performed with the conservative system showthat these two approaches differ little as applied to the tests under study. This conclusion confirms thewell-known fact that, in cases of practical interest, limiting discontinuous solutions based on the noncon-servative shallow water equations differ little from solutions of the conservative equations. An example ofsuch a comparison for the Saint Venant equations for an actual channel can be found in [27].

CONCLUDING REMARKSAs the main result of this work, a new time-explicit difference scheme for the simulation of two-layer

shallow water f lows was constructed, and its performance was tested.The method was found to be stable in the case where the upper layer density is only slightly lower than

that in the lower layer. Such values are typical of oceanic f lows of various salinity and temperature. Exam-ples are the currents in the Strait of Gibraltar and tidal internal waves within it [3, 5]. It was also shownthat the algorithm is applicable to f lows with widely different layer densities and flows with internal dry-bed zones, which suggest that it can be used to simulate tsunami waves generated by an underwater land-slide [5, 28]. The generalizations of the algorithm to two dimensions are straightforward and can bechecked using the tests described in [6, 7, 9].

APPENDIXSmall System

The large system is derived assuming that the velocity and depth of a layer change to take new values and , respectively.The small system, which is a simplified regularizer, takes into account variations in the velocity, but

neglects depth variations:

The regularization of Eqs. (15)–(18) by this method yields the following system, which was describedin [19]:

i ih A

( )⎡ ⎛ ⎞ ⎤∂ τ ∂ ∂= + + +⎜ ⎟⎢ ⎥∂ ∂ ∂⎣ ⎝ ⎠ ⎦

21 1 1 1

1 1 21

( )2 ,2

hu uA g h rh bx h x x

( )⎡ ⎛ ⎞ ⎤∂ τ ∂ ∂= + + + .⎜ ⎟⎢ ⎥∂ ∂ ∂⎣ ⎝ ⎠ ⎦

22 2 2 2

2 1 22

( )22

h u uA g h h bx h x x

τi

*u *h

∂= + τ∂

* .tuu u

∂ + =∂

11div 0,h

tj

∂ + =∂

22div 0,h

tj

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 20: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

REGULARIZED EQUATIONS FOR NUMERICAL SIMULATION OF FLOWS 733

where

here, , is the Navier–Stokes viscosity regularizer (57).The derivation of the equations in the one-dimensional case is described in detail in [26].

ACKNOWLEDGMENTSThis work was supported by the Russian Foundation for Basic Research, project no. 16-01-00048a.

REFERENCES1. F. Bouchut and T. Morales de Luna, “An entropy satisfying scheme for two-layer shallow water equations with

uncoupled treatment,” ESAIM: Math. Model. Numer. Anal. 42 (4), 638–698 (2008).2. R. Abgrall and S. Karni, “Two-layer shallow water system: a relaxation approach,” SIAM J. Sci. Comput. 31 (3),

1603–1627 (2009).3. M. J. Castro, J. Macias, and C. Pares, “A Q-scheme for a class of systems of coupled conservation laws with

source term: Application to a two-layer 1-D shallow water system,” ESAIM: Math. Model. Numer. Anal. 35 (1),107–127 (2001).

4. M. J. Castro, A. Pardo, C. Pares, and E. F. Toro, “On some fast well-balanced first order solvers for noncon-servative systems,” Math. Comput. 79 (271), 1427–1472 (2010).

5. M. J. Castro, J. A. Garcia-Rodriguez, J. M. Gonzalez-Vida, J. Macias, C. Pares, and M. E. Vazquez-Cendon,“Numerical simulation of two-layer shallow water f lows through channels with irregular geometry,” J. Comput.Phys. 195 (1), 202–235 (2004).

6. A. Kurganov and G. Petrova, “Central-upwind schemes for two-layer shallow water equations,” SIAM J. Sci.Comput. 31 (3), 1742–1773 (2009).

7. K. T. Mandli, “A numerical method for the two layer shallow water equations with dry states,” Ocean Model.72, 80–91 (2013).

8. A. Chertock, A. Kurganov, Z. Qu, and T. Wu, “On a three-layer approximation of two-layer shallow water equa-tions,” Math. Model. Anal. 18 (5), 675–693 (2013).

9. S. C. Chen and S. H. Peng, “Two dimensional numerical model of two-layer shallow water equations for con-fluence simulation,” Adv. Water Resources 29, 1608–1617 (2006).

10. V. V. Ostapenko, “Numerical simulation of wave f lows caused by a shoreside landslide,” J. Appl. Mech. Tech.Phys. 40 (4), 647–654 (1999).

11. V. V. Ostapenko, “Method for theoretical estimation of imbalances in nonconservative difference schemes on ashock wave,” Dokl. Akad. Nauk SSSR 295 (2), 292–297 (1987).

12. L. V. Ovsyannikov, “Two-layer shallow water model,” J. Appl Mech. Tech. Phys. 20 (2), 127–135 (1979).13. V. Yu. Lyapidevskii and V. M. Teshukov, Mathematical Models of Long Wave Propagation in an Inhomogeneous

Fluid (Sib. Otd. Ross. Akad. Nauk, Novosibirsk, 2000) [in Russian].14. V. V. Ostapenko, “Complete systems of conservation laws for two-layer shallow water models,” J. Appl. Mech.

Tech. Phys. 40 (5), 796–804 (1999).15. V. V. Ostapenko, “Stable shock waves in two-layer shallow water,” J. Appl. Math. Mech. 65 (1), 89–108 (2001).

( ) ( ) ( )∂ + ⊗ + ∇ + ∇ + = Π∂

21 1 1

1 1 1 2 1div div ,2

h gh gh rh btu

j u

( ) ( ) ( )∂ + ⊗ + ∇ + ∇ + = Π∂

22 2 2

2 2 2 1 2div div ,2

h gh gh h btu

j u

( ) ( )[ ]= τ ⋅ ∇ + ∇ + +1 1 1 1 1 2 ,g h rh bw u u

( )= −1 1 1 1 ,hj u w

( ) ( )[ ]= τ ⋅ ∇ + ∇ + +2 2 2 2 1 2 ,g h h bw u u

( )= −2 2 2 2 ,hj u w

( )Π = Π + ⊗1 1 1 11 ,NS h u w

( )Π = + ⊗Π2 2 2 22 ,NS h u w

( ) , = ,Π 1 2NS i i

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018

Page 21: Regularized Equations for Numerical Simulation of Flows in ...elizarova.imamod.ru/_media/2018cmmp714.pdf · 714 ISSN 0965-5425, Computational Mathematics and Mathematical Physics,

734 ELIZAROVA, IVANOV

16. B. N. Chetverushkin, Kinetically Consistent Schemes in Gas Dynamic (Mosk. Gos. Univ., Moscow, 1999) [inRussian].

17. Yu. V. Sheretov, Continuum Dynamics under Spatiotemporal Averaging (NITs Regulyarnaya i KhaoticheskayaDinamika, Moscow, 2009).

18. T. G. Elizarova, Quasi-Gas Dynamic Equations (Nauchnyi Mir, Moscow, 2007; Springer-Verlag, Berlin, 2009).19. O. V. Bulatov and T. G. Elizarova, “Regularized shallow water equations and an efficient method for numerical

simulation of shallow water f lows,” Comput. Math. Math. Phys. 51 (1), 160–173 (2011).20. O. V. Bulatov and T. G. Elizarova, “Regularized shallow water equations for numerical simulation of f lows with

a moving shoreline,” Comput. Math. Math. Phys. 56 (4), 661–679 (2016).21. O. V. Bulatov, “Analytical and numerical Riemann solutions of the Saint Venant equations for forward- and

backward-facing step f lows,” Comput. Math. Math. Phys. 54 (1), 158–171 (2014).22. Yu. V. Sheretov, Regularized Fluid Dynamic Equations (Tver. Gos. Univ., Tver, 2016) [in Russian].23. A. A. Zlotnik, “On conservative spatial discretizations of the barotropic quasi-gasdynamic system of equations

with a potential body force,” Comput. Math. Math. Phys. 56 (2), 303–319 (2016).24. A. A. Samarskii and Yu. P. Popov, Finite Difference Methods for Problems in Gas Dynamics (Nauka, Moscow,

1975) [in Russian].25. P. E. Karabut and V. V. Ostapenko, “Problem of the decay of a small-amplitude discontinuity in two-layer shal-

low water: First approximation,” J. Appl. Mech. Tech. Phys. 52 (5), 698–688 (2011).26. T. G. Elizarova and A. V. Ivanov, “Quasi-gas dynamic algorithm for the numerical solution of two-layer shallow

water equations,” Preprint No. 691, IPM RAN (Keldysh Institute of Applied Mathematics, Russian Academyof Sciences, Moscow, 2016).

27. M. V. Buntina and V. V. Ostapenko, “TVD scheme for computing open channel wave f lows,” Comput. Math.Math. Phys. 48 (12), 2241–2253 (2008).

28. B. W. Levin and M. A. Nosov, Physics of Tsunamis (Yanus-K, Moscow, 2005; Springer, Berlin, 2008).

Translated by I. Ruzanova

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 58 No. 5 2018


Recommended