Full text

1 School of Mathematics and Statistics, Qingdao University, Qingdao 266071, China

2The experimental high school of Jimo District, Qingdao, Shandong 266200, PR China

Keywords: Ripa model;source term; oscillation-free discontinuous Galerkin method; well-balanced property; high order accuracy *Corresponding Author: Gang Li, gangli1978@163.com

1. Introduction

Navier-Stokes equation (N-S)[1] is an important research model of hydrodynamics. When the breadth is far greater than the depth in the water flow, the N- S equation can be simplified into shallow water equations (SWEs). Ripa model is modified from the SWEs by introducing the horizontal temperature gradients to better simulate the ocean currents [2-4].

The one-dimensional Ripa model is as follows

( ) 0, 1() ,2 ( ) ( ) 0, tx tx x tx h hu hu hu gh gh B h hu θθ θθ  +=  ++ =−   += (0.1) where ℎ represents the water depth, 𝑥𝑥 denotes the space, 𝑢𝑢 is the water velocity, 𝜃𝜃 denotes the temperature, 𝐵𝐵 is the bottom topography, and 𝑔𝑔 is the gravitational constant. In addition, 21 = 2P gh θ represents the pressure. For the sake of simple expression, we can also rewrite the system (1.1) in vector form ( ) ( , ),txB+=U FU SU (1.2) with 221(, , ), ( ) ( , , ),( , ) (0, ,0).2 xh hu h hu hu g h hu B gh Bθ θθ θ==+=−U FU SU晻? (0.3) Furthermore, the Ripa model (1.1) has the following the-lake-rest steady state 0, constant, constant.u hBθ= = += (0.4) As a typical hyperbolic system with source term, the Ripa model has the property that its nonzero flux gradients can be exactly balanced by the source term. The above property is also called well-balanced property. Unfortunately, we will fail to preserve it through straightforward numerical treatment [5-8] . Thus, people pay great attention on balance laws model and try to design the numerical methods to maintain the well -balanced property. Xing and Shu design a high order finite difference for the shallow water equations. Xing et al. [9] use a new approach of high order well -balanced finite volume WENO schemes and discontinuous Galerkin methods for hyperbolic systems with source terms. Xing [10] designs wellbalanced discontinuous Galerkin methods for the shallow water equations. Xu [11] adopts a well- balanced gas-kinetic scheme for the shallow-water equations and introduces the same scheme to the navier -stokes equations and gas dynamic equations under gravitational fields [12, 13]. As for more details, see the literatures [14-16] and the references therein.

For the Ripa model, such as Touma and Klingenberg [17] develop a well-balanced central finite volume method. Han and Li [17] propose a well-balanced finite difference WENO schemes. Qian et al. [18] apply the flux modification technique to the DG methods. Li et al. [19] apply the hydrostatic reconstruction to the DG methods to obtain the good numerical solutions.

The discontinuous Galerkin (DG) method is very popular for the nonlinear hyperbolic conversation laws, which uses the completely discrete basis functions. It takes advantage of the finite volume methods and finite difference methods, has Abstract: In this paper, we develop a well -balanced oscillation-free discontinuous Galerkin method (OFDG) for the shallow water flow under temperature fields(also called Ripa model), which can maintain the lake-at-rest steady state. Here, we add an extra damping term to the standard discontinuous Galerkin methods (DG) in order to achieve the non- oscillation property instead of any limiters. Besides, the decomposition algorithm is applied to construct the numerical fluxes, and induced a novel source term approximation to preserve the well balanced property. In the end, we demonstrate the rigorous one and two -dimensional numerical experiments of the Ripa model , and verify that the well -balanced OFDG schemes have excellent behavior in maintaining the natural high order accuracy within the smooth solution regions, having non-oscillation in the discontinuous solution regions, and successfully capturing the small perturbations near the steady state solutions.

the high order accuracy, and handle the complex grids easily. Moreover, it can easily be applied to hp-adaptivity and high parallel efficiency. Since the nature of the nonlinear hyperbolic conversation laws, we will face the challenge that numerical solutions will evolve into oscillations even if with the smooth initial values. As a result, the numerical solutions will produce some artificial structures and become less robust and unstable. In the frame of DG methods, using the limiters is a good choice to control the spurious oscillations, such as the slope limiters. These methods firstly identify the bad cells, and then modify the numerical solutions , which may lead to locally over -flatten the shock wave or change the original solutions [20]. The ENO and WENO limiters use a weighted convex combi nation of all subtemplates to construct the numerical flux [9]. They may destroy the DG original compactness. Recently, Liu et al. [21] propose a novel scheme called the oscillationfree discontinuous Galerkin methods (OFDG) for systems of hyperbolic conservation laws to reduce the spurious oscillations. They add a damping term into the existing DG methods, automatically identify the spurious oscillations, and achieve the non -oscillatory property effectively without any artificial parameters. The damping coefficients are defined by computing the characteristic variables which decompose the characteristic Jacobian of flux function. They just have influence near the discontinuities and become tiny in the smooth region. Furthermore, the theoretical analysis verify that this novel method behaves well in the error estimates, super convergence and high order accuracy. In addition, the OFDG

methods successfully extend to the shallow water equations [22], including the one - and two-dimensional still water and

moving water. Du et al. [23] design an oscillation -free bound -preserving discontinuous Galerkin for multicomponent chemically reacting flows. Tao et al. [24] develop an oscillation free local discontinuous Galerkin method for nonlinear degenerate parabolic equations.

In this paper, we design a well -balanced oscillation-free discontinuous Galerkin methods (OFDG) for the Ripa model. The modified damping terms are added to capture the perturbations and control the spurious oscillations. To maintain the lake-at rest steady state, the numerical solution is divided into a sum of the equilibrium part and the residue part. Then, this decomposition algorithm is applied to construct the well -balanced numerical fluxes based on the hydrostatic reconstruction idea [25]. Fortunately, due to the linearization of the source term to the control variables in the Ripa model, we divide the source term into two parts, where the equilibrium part is accurately offset the flux gradient, and the residue one is used to simulate the small perturbations near the steady state. In this paper, the proposed methods are significantly different from the methods in [19, 26].

The paper is organized as follows. We present the well -balanced OFDG methods for one -dimensional Ripa model i n Section 2, and then extend the above schemes to the two- dimensional case in Section 3 Section 4 contains extensive numerical experiments to demonstrate the good behavior of the well -balanced OFDG methods for the one -and twodimensional Ripa models. Some conclusions are given in Section 5.

2. Well-balanced OFDG methods for one-dimensional Ripa model

In this section, we will design high order well- balanced OFDG methods for the one -dimensional Ripa model (1.1), maintaining the lake at rest steady state (1.4).

2.1 Notations

Firstly, we provide some standard notations. The interval [,]I ab= is divided into N subintervals, which are denoted by 11 [, ]j jj I xx −+ = for 1, ,jN= L . The center of each cell is 11 22 1 ()2 j jj x xx −+ = + , and the mesh size is denoted by j jj xx x +− ∆= − , with 1 max jjN xx ≤≤ ∆= ∆ being the maximal mesh size. The piecewise polynomial space k hV is defined as the space of polynomials of degree up to k in each cell jI , that is, { }( ) : | ( ), 1, 2, , . j kk h IjV I vv P I j N=∈=L (2.1) Note that the polynomials in ()k hVIare allowed to have discontinuities across element interfaces. In the context of the OFDG method, hU is able to denote the approximation of any variable U , it belongs to the finite element space k hV .

Moreover, the values of hU can be denoted by 1, 2hj U + + and 1, 2hj U − + at the cell interface 1 2j x + from the right cell 1jI + and the left cell jI .

2.2 Well-balanced OFDG methods

In this section, we will use the hydrostatic reconstruction and decomposition method to construct the well -balanced numerical fluxes and the corresponding source term approximation. According to lake at rest steady state (1.4), we can have the following decomposition at each time step nt , ( ) constant, 0, constant, 1, 2, , .jjjhB u j Nθ+ = = = ∀= L (2.2)

Therefore, we can denote the equilibrium component of the water depth, velocity and temperature as follows: () ( ) (), () 0, () () constant.e ee jh x h B Bx u x x xθθ=+− = = = (2.3) Thus, the reference steady state variables are defined as .(, , ) (,0, )e e ee ee e eeh hu h h hθθ= =U 晻 which may not belong to the polynomial space 3[ ( )]k hVI . Here, we use th e 2L projection P to define the equilibrium numerical variables as follows .ee hh=UUP (2.4) Thus, the numerical solution ( ,( ) ,( ) )hh h hU h hu hθ= • is decomposed into the reference steady state part e hU and the remaining part r hU as follows ,er h hh= +U UU (2.5) where 3[ ( )] .r ek h hh hVI=−∈U UU Following the idea of [23], we construct the semi-discrete well-balanced OFDG method based on the decomposition (2.5) to preserve the steady state (1.4), as follows µ µ 1111 () d () d ( ) ( ) ()( , )d ( )d, j j jj htI lr hxI jjjj k jh rr hh h h hII j x xx x Bx xx σ −+ +−+− − = ⋅ = ⋅−⋅ +⋅ + ⋅− − ⋅∆ ∫ ∫ ∑∫∫ Uv FU v F v F v USU v U U vP l l l (2.6) where the test function 3[]k hV∈v , and hB is the 2L projection of ()Bx into ()k hVI.

Unfortunately, the projection doesn’t maintain the equilibrium state at the boundary of two intervals. Thus, we need to redefine the boundary values 1, 2hj U ± + based on the piecewise polynomial solutions hU . At the lake-at-rest steady state (1.4), we have , 1, 2 ( ) , 0.r j hj h B constant ± + += =U (2.7) So the boundary values of the control variables are redefined as follows

,, 1 1 11, , ,,2 2 22 ,, 1 1 11, , ,,2 2 22 ( ) ,0,(( ) ) , ( ) ,0,(( ) ) , r jjjhj hj hj hj r jjjhj hj hj hj hB B hB B hB B hB B θ θ ∗− ∗ ∗ − + + ++ ∗+ ∗ ∗ − − − −+ =+− +− +  =+− +− +  UU UU • • (2.8) where 1 11, ,,2 22 m a x ( , ) , {1, , } . hj hj hj B BB j N∗ −+ ± ±± = ∀∈ L (2.9) Combining with (2.7), (2.8) and (2.9), it is obvious that ,, 11,,22 , {1, , } , hj hj jN∗+ ∗− ++ = ∀∈UU L (2.10) at the steady state (1.4). Therefore, we can construct the well-balanced numerical fluxes as follows

µ µ *, *, *, 1 11 1 1,2 22 2 2 *, *, *, 1 11 1 1,2 22 2 2 ˆ ,, ˆ ,, l j j j hj j r j j j hj j f f −+ − − + ++ + + −+ + + − −− − −    = +−           = +−        F U U FU FU F U U FU FU (2.11) where we adopt the Lax-Friedrichs flux in this paper

12 1 2 2 1 1ˆ( , ) ( ( ) ( ) ( )),2faa a a a aα= + −−FF (2.12) and max ( )|| x αλ= U and the ()λ U is the eigenvalues of the Jacobian ()′FU. Due to the fact (2.10), it is easily observed that at the steady state (1.4) µ µ 1111,,2222 ,. lr jjhj hj −+ +−+−  = =    F FU F FU (2.13) Based on the decomposition (2.5), we can decompose the integration of the source term in (2.6) and obtain the source term approximation as follows ,, 11 11,,22 22 ( , )d ( , )d ( , )d () d ( )( ) ( )( ) ( ,)d. j jj jj hhI er hh hhII ee e r x hhIIhj j hj j Bx Bx Bx x x x Bx−− ++ ++ −− ⋅ = ⋅+ ⋅ =− ⋅+ ⋅ − ⋅ + ⋅ ∫ ∫∫ ∫∫ SU v SU v SU v FU v FU v FU v SU v (2.14) The last term on the right-hand side of (2.6) is the introduced novel artificial damping term, and the novel damping coefficients ( )0jhσ ≥Ul are constructed as follows

111, 2,3 2( 2 1) ( )( ) max [[ ]] [[ ]] ,21 ! j h xs xss jj x kσ = −+ +∆= ∂ +∂−  U VV l l lll l (2.15) where the 11 1 22 2 [[ ]] ( ) ( ) jj j xx+− ++ + = −vv v denotes the jump of v at 1 2j xx + = . lPl , 0≥l is the standard 2L projection for the vector functions, and defined as follows: for 23[ ( )]jLI∀∈w , we have 3[]hhV∈wPll such that 3( ) d 0, [ ( )] . j h h hjI x PI− ⋅ = ∀∈∫ wwv vPll (2.16) Here, we define hh − =PP. The variables 123(, , )l x xx x∂=∂ ∂ ∂V VVV•ll l are given by 1 ,0l x xh lk−∂ = ∂ ≤≤VR Ul . The variables 1−R is the matrix derived from the characteristic decomposition 11, 2 ()hj − +′ = ΛFU RR , which is defined as follows 2 02 . gh u gh gh gh gh u gh θθθθ θ θθ θ θθθθ θ − +− = − − R (2.17) Herein, Λis the diagonal matrix, and 1 () j + ⋅ stands for the average on 1 2j x + , such as the arithmetic mean or the Roe average.

Proposition 2.1. For the shallow water equations with geometrical source term (1.1), the semi-discrete OFDG methods (2.6), combined with (2.13) and (2.14), are well-balanced for the lake at rest steady state (1.4). Proof. We suppose that the initial data are the lake at rest steady state. It is easy to observe that the well-balanced property holds for the first equation () 0xhu = since 0hu = . We only need to show that the numerical approximations to the flux gradient and source term of the second equation 221()2 xxhu gh gh Bθθ+=− cancel exactly.

By the construction of e hU , we can show that e hU is equivalent to hU and 0r hU = in (2.5). Based on the flux at the lake at rest steady state (1.4), the source term approximation (2.14) becomes µ µ ,, 11 11,,22 22 ( , )d ( ) d ( )( ) ( )( ) ( ) d ( ) ( ). j j j ee e hh xI hj j hj jI lr hxI jjjj Bx x x x xx x −− ++ ++ −− −+ +−+− ⋅ =− ⋅+ ⋅ − ⋅ = − ⋅+⋅ −⋅ ∫∫ ∫ SU v FU v FU v FU v FU v F v F v (2.18) Finally, we only need to show the last term in (2.6) vanishes for the still steady state (1.4). It 0hu = is easy to see when

,hhh B constant constantθ+= = and() 0hhu = , ..ie (constant, 0, constant) e hh= =UU• , ° °(constant,0,constant) e hh= =UU• , we have ° (0, 0, 0) r h =U • , and ° °13.( ) d 0, [ ( )] j rrlk hhhjI x PI−− ⋅ = ∀∈∫ U Uv vP (2.19) Thus, we have the desired well-balanced property for the proposed OFDG methods (2.6).

3. Well-balanced OFDG methods for two-dimensional Ripa model

In this section, we will extend the one-dimensional well-balanced OFDG method (2.6) to the two-dimensional Ripa model, which has the following form

( ) ( ) 0, 1( ) ( ) ( ) , ( , ) , (0, ],2 1() ( ) ( ) ,2 ( ) ( ) ( ) 0, t xy t xy x tx y y t xy h hu hv hu hu g h huv g hB x y t T hv huv hv g h g hB h hu hv θθ θθ θθθ ++=   + + + =− ∈Ω ∈  + ++ =−  ++= (3.1) where v stands for the velocity in the 𝑦𝑦-direction, and the remaining notations are the same as in the one-dimensional model (1.1).

Similarly to the one-dimensional case, the two-dimensional Ripa model (3.1) can admit the following lake at rest steady state: 0, constant, constant.u v hBθ== = += (3.2) For convenience, (3.1) is denoted by the following vector form () () (,),tx y B++ =U F U G U SU (3.3) where (, , , )h hu hv hθ=U • is the control variable, 221() ( , , , )2hu hu g h huv huθθ= +FU • , 221() ( , , , )2hv huv hv g h hvθθ= +GU • are the flux, and ( , ) (0, , , 0)xyB g hB g Bθθ=−−SU • We first assume a regular partition KT of Ω , and for each element ,KKT∈ diam ,K K∆= max K K TKKT∈ ∆= ∆. The two-dimensional piecewise polynomial space is defined as

2( ) { ( ); | ( )},kk hKV w L w PKΩ≡ ∈ Ω ∈ (3.4) where ()kPK denotes the space of polynomials on the element K at most 𝑘𝑘 − 𝑡𝑡ℎ degree. As one-dimensional case, we can define the steady components of the water depth, velocity and temperature as follows: (, ) ( ) (, ), (, ) (, ) 0, (, ) constant,e ee e Kh xy h B Bxy u xy v xy xyθ=+− = = = (3.5) and obtain the reference steady state variables ( , , , ).e eeeehuvhθ=U • Subsequently, we can denote the reference steady numerical variables (, ) ( (, ))ee hhxy xy=UUP based on projection operator hP . Therefore, we can decompose the DG solution hU into a reference equilibrium state e hU and the remaining part r hU as follows (, ) (, ) (, ).er h hhxy xy xy= +U UU (3.6) Similarly to one-dimensional case, we can obtain the feature matrix on the element interface K∂ from the following relation 1 12() () ,hhnn −′′+=ΛFU GU RR (3.7) where the hU denotes the mean average or Roe average, and

12 1 2 12 2 1 121 12 2 1 12 12 1 2 2( ) 2 2 2 ( 1) 4 4 2 ( 1) . 2( ) 4 4 2( ) 2( ) 2 2 gh n u n v n n gh gh n v n u gh n gh n gh n v n u n v n u gh gh n gh n n v n u gh gh n u n v n n gh θθ θ θ θ θ θθ θθ θθ θ θθ θθ θθ θ θθ θ θ θ θ − ++ − − ++− − +−=−+ −+ −+ R (3.8) The jump of the characteristic variables is defined as 1−=V RU. We denote the number of edges of the element K as eN . Due to each element K as the rectangular grid, we have 4eN = in this paper. K∈∂v are the vertices of K . [[ ]] |w v denotes the jump of the function w on the vertex v . Thus, we can define the damping coefficients for two-dimensional Ripa model (3.3) as follows ( ) 14|| ()2(2 1) 1max [[ ]]| ,21 ! K l K Kss l ekN α α σ ≤≤ = ∈∂ ∆+= ∂−  ∑∑ v v Vl l l (3.9) where the multi-index 12(, )α αα= • denote the non-negative index of the length in the below equation 12,ααα= + and xy ααα αα∂=VV.

The proposed OFDG method for (3.3) is to find 4( , ) [ ( )]k hhtV⋅∈ ΩU , which satisfies µ µ( )12 . ( ) dd ( )( ) ( )( )dd () () d (,)dd ()( ) d d , [ ( )] ht hK hhx hhyK KK h h h hh hKK k rr kKh hhhh h hK K xy xy n n s S B xy xy Vσ ∂∂ ∂ − = ⋅ = ⋅+ ⋅ − + ⋅+ ⋅ − − ⋅ ∀∈ Ω∆ ∫∫ ∫∫ ∫ ∫∫ ∑ ∫∫ Uv FUv GUv FU GU v U v U U Uv vP l l l (3.10)

4. Numerical Results

In this section, the three-order accuracy well-balanced OFDG methods are performed on the one- and two-dimensional numerical results ( 2k = in the Section 2 and Section 3). We take the gravitational constant and the CFL number as 1 and 0.18 among all the numerical experiments.

4.1. One-dimensional cases

Firstly, we present numerical results for the one-dimensional Ripa model (1.1).

4.1.1. Testing the well-balanced property

In the first numerical example, we test the well-balanced property, where the initial conditions are taken as follows 10, 0, and 0.1.hB u θ+= = = (4.1) Two bottom topographies are chosen as the smooth bottom

22( 5)5 ,() 5 x Bx e −− = (4.2) and the discontinuous one 4, if4 8,() 0, otherwise. xBx ≤≤=  (4.3) We divide the computational domain [0,10] into200uniform cells and compute the solutions up to 0.5t = , and carry out the computation by single precision and double precision, respectively. The 1L and L∞ errors are proposed for ,h hu and hθ in Tables 1 and 2 for the different two bottom topographies. We can clearly see that the proposed well -balanced OFDG methods can keep the well-balanced properties with the round off error.

Precision 1 errorL errorL∞ h hu hθ h hu hθ Single 2.81 e-07 6.11 e-07 1.62 e-07 5.33 e-07 6.76 e-07 5.28 e-08 Double 1.36 e-17 3.24 e-16 1.42 e-17 6.14 e-16 2.43 e-16 1.59 e-16

Table 1 . 1L and L∞ errors for different precisions for the lake at rest steady state solutions over a smooth bottom topography (4.2) in Section 4.1.1.

Precision 1 errorL errorL∞ h hu hθ h hu hθ Single 3.25 e-07 5.22 e-06 8.89 e-07 7.11 e-07 8.62 e-07 3.38 e-07 Double 1.27 e-16 4.60 e-16 3.67 e-16 7.62 e-16 8.33 e-16 6.65 e-16 Table 2. 1L and L∞ errors for different precisions for the lake at rest steady state solutions over a discontinuous bottom topography (4.3) in Section 4.1.1.

4.1.2 Testing the orders of accuracy

In this section, the third order accuracy is tested for the proposed schemes with the smooth solution. We give the computational domain[0,1] over the following bottom topography and the initial conditions as follows: 2( ) sin ( ), ( ,0) 5 exp(cos(2 )), ( )( ,0) sin(cos(2 )), ( ,0) 0.1.B x x h x x hu x x xπ π πθ==+==The simulations are performed up to 0.1t = with periodic boundary conditions. The numerical solutions are carried out with the monotonically increasing between 25and 800 uniform cells, while the reference solutions are obtained with the finer 6400ones. The 1L errors and orders of accuracy for ,h hu and hθ are listed in Table3. We can gain the expected third-order accuracy clearly in this test case.

N h hu hθ

1 errorL Order 1 errorL Order 1 errorL Order 25 2.35 e-03 1.79 e-03 3.01 e-03 50 3.93 e-04 2.58 2.93 e-04 2.61 5.14 e-04 2.55 100 5.96 e-05 2.72 4.33 e-05 2.76 7.23 e-05 2.83 200 7.83 e-06 2.93 5.64 e-06 2.94 9.35 e-06 2.95 400 9.78 e-07 3.00 7.10 e-07 2.99 1.19 e-06 2.98 800 1.21 e-07 3.01 8.75 e-08 3.02 1.47 e-07 3.01 Table 3. 1L errors and orders of accuracy for the test case in Section 4.1.2.

4.1.3 Riemann problem over a flat bottom

In this section, we evaluate the efficacy of the proposed methods to deal with the contact discontinuity problem by a dam break problem over a flat bottom topography 0B ≡ . (5,0,3), if 0,(,,)(,0) (1,0,5), otherwise. xhu xθ ≤=  The numerical solutions are computed up to 0.2t = with 200cells, which are compared with the reference solutions with 2000cells in Figure 1. It is easy to see that they are in well agreement. In addition, we can note the important results that the contact discontinuity resolved solutions are successfully caught with non-oscillation, and matched perfectly with the results[27].

Figure 1. The numerical solutions of Riemann problem over a flat bottom in section 4.1.3 at 0.2t = . Depth (upper left), temperature (upper right), and pressure (lower).

4.1.4 Dam break over a flat bottom

In order to further study the ability of the proposed methods for dealing with rarefaction wave and shock wave, another dam break problem is investigated over a flat bottom topography ( ( ) 0)Bx ≡ . We set the initial conditions in the domain [ 1,1]− as follows (2,0,1), if| | 0.5,(,,) (1,0,1.5), otherwise. xhuθ ≤=  The numerical results are computed until 0.2t = with 200 cells, which are compared with the reference ones with 2000 cells in Figure 2. We can clearly observe that they are in good agreements, and successfully catch the rarefaction waves and shock wave.

Figure 2. The numerical results of dam break problem over a flat in Section 4.14 at 0.2t = . Depth (upper left), discharge (upper right), temperature (lower left), and pressure (lower right).

4.1.5 Dam break over a rectangular bump

In this section, we extend to investigate the dam break on the non -flat bottom topography for one -dimensional Ripa model (1.1), which is transformed by the shallow water equations problem on a discontinuous waterbed presented in [26]. The bottom topography is as follows 8, if | 300 | 75,() 0, otherwise, xBx −<=  with a rectangular bump. We consider the computation domain[0,600], and set the initial conditions as (20 ( ),0,10), if 300,(,,) (15 ( ),0,5), otherwise. Bx xhu Bxθ −≤= − We carry out the simulation until 12t = , and list the numerical solutions with 400 uniform cells and the reference solutions with 2000ones in Fig ure 3. It is evident that the results are in good agreement and the proposed methods successfully capture sharp discontinuity transitions.

Figure 3. The numerical results of dam break problem over rectangle bump in Section4.15 at 12t = . Surface (upper left), discharge (upper right), temperature (lower left), and pressure (lower right).

4.1.6 Perturbation of a lake at rest problem

In the last one-dimensional example, we inspect the ability to simulate a small perturbation of a lake at rest states in [27]. The non-flat bottom topography is 0.85{cos[10 ( 0.9)] 1}, if 1 0.8, ( ) 1.25{cos[10 ( 0.4)] 1}, if 0.3 0.5, 0, otherwise. xx Bx x x π π + + − ≤ ≤− = − + ≤≤ 

Two piecewise constant steady state is set as (6 ( ),0,4), if 0,( , , )( ) (4 ( ),0,9), otherwise. sss Bx xhu x Bxθ −<= − (4.4) Then we disturb this steady state, and have initial conditions as follows [ 1.5, 1.4]( , , ) ( ,0) ( , , ) ( ) (0.1,0,0) ( ),ssshu x h u x xθθ χ−−= +晻? (4.5) with [ 1.5, 1.4] 1, [ 1.5, 1.4],() 0, elsewhere. xxχ−− ∈− −=  We consider this problem in the computational domain [ 2,2]− with 200cells. The numerical results at time 0.1t = are shown in Fig ure 4. It is evident that the proposed well -balanced OFDG methods can capture perfectly the stationary contact discontinuity despite of the perturbation, and keep the essentially non -oscillatory property. This shows the stability of the resulting methods with respect to the steady state solutions.

Figure 4. Results of the small perturbation of a steady state solution in Section4.1.6 at time 0.1t = . Surface (upper left), discharge (upper right), temperature (lower left), and pressure (left right).

4.2 Two-dimensional cases

In this section, the well-balanced OFDG methods are proposed to some classical problems of the two-dimensional Ripa model (3.1).

4.2.1 Rectangular dam break problem

Firstly, the one-dimensional classical dam break in Section 4.1.4 is extended to the two -dimensional rectangular region [ 1,1] [ 1,1]− ×− over a flat bottom topography (,) 0Bxy ≡ . We define the initial conditions as follows ( ) ( ) 2,0,0,1 , if 0.5 0.5,(,,, )(, ,0) 1,0,0,1.5 , otherwise, xhuv x yθ  − ≤≤= (4.6) And compute the numerical solutions until the time 0.2t = .The three-dimensional numerical results with 100 100× cells are shown in Figure 5. It is clear that two shock waves, two contact waves propagate away from the y -axis, and two rarefaction waves prop agate towards the y -axis. We present the water depths computed with 50 50,100 100××and 200 200× cells along the x -axis in Figure 6, which are in accordance with the one-dimensional reference results of 2000 cells in Section 4.1.4.

Figure 5. The three-dimensional view of the numerical results of the steady state in Section 4.2.1 at time 0.2t = with 100 100× cells. Depth (upper left), temperature (upper right), and pressure (lower).

Figure 6. The water depth h obtained on meshes with 50 50,100 100××and 200 200× cells, respectively in Section 4.2.1 and compared to the solution of the corresponding one -dimensional problem obtained on 2000 cells in Section4.1.4.

4.2.2 The radial dam break over a flat bottom

The subsequent numerical example is a radial dam break problem over a flat bottom topography ( ( , ) 0)Bxy ≡ in the computational domain[ 1,1] [ 1,1]− ×− . We set the initial conditions as follows

22(2, 0, 0,1), if 0.25,(,,, )(, ,0) (1,0,0,1.5), otherwise. xyhuv x yθ  +<= 

The solutions are computed until 0.15t = with 200 200× cells, and the numerical results are showed in Fig ure 7. Due to the big difference in the water depth and the temperature inside and outside of the dam, the flows rapidly diffuse toward the outside, and bring about a circular rarefaction in the center of the domain. We demonstrate the cross sections of the water height along the diagonal line yx= and y -axis 0x = with 50 50,100 100,××and 200 200× 0cells in Figure 8 and Figure 9, respectively. The numerical results are well agreement with those in the literature [28].

Figure 7. The three -dimensional views of the numerical results of the radical dam break over the flat bottom in Section 4.2.2 at time 0.15t = with 200 200× cells. Surface (upper left), temperature (upper right), and pressure (lower).

Figure 8. Scatter plot of the cross sections of the water depth at time 0.15t = along the diagonal line yx= obtained on 50 50,100 100××and 200 200× cells in Section 4.2.2.

Figure 9. Scatter plot of the cross sections of the water depth at time 0.15t = along the y -axis 0x = obtained on ,50 50,100 100××and 200 200× cells in Section 4.2.2.

4.2.3 The small perturbation of a steady state on the uneven bottom

In the last numerical example, we consider a steady state, and then add a small disturbed water height to test the ability of the proposed well -balanced OFDG methods in capturing the small perturbation. The computational domain is [ 1,1] [ 1,1]− ×− , and the uneven bottom consists of two Gaussian shaped humps as follows

0.5exp( 100(( 0.5) ( 0.5) )), if 0,(,) 0.6exp( 100(( 0.5) ( 0.5) )), otherwise. xy xBxy xy  − + ++ <= − − +− (4.7) The steady state is considered as follows

( ) 2243,0,0, , if 0.25,3( ,,,)(,,0) 2, 0, 0,3 , otherwise, xyh Buv x yθ +<+=  (4.8) and the numerical solutions are computed until 0.12t = with 200 200× cells. From the three -dimensional numerical

results in Figure 10, we can clearly see that the well balanced OFDG scheme can exactly preserve the steady state.

Subsequently, we add a perturbation of the steady state (4.8) as follows

( ) 22 22 43 0.1,0,0, , if 0.01 0.09,3 4( , , , )( , ,0) 3,0,0, , if 0.09 0.25 or 0.01,3 2, 0, 0,3 , otherwise, xy hBuv xy xy xyθ + <+<  + = <+ < +<   

and compute the three-dimensional numerical solutions results until 0.15t = with 200 200× cells. The numerical results are showed in Fig ure 11. There are no spurious numerical oscillations, which verify that the present well-balanced OFDG methods can successfully capture the small perturbation of the steady state solutions.

Figure 10. The three -dimensional view of the numerical results of the steady state in Section 4.2.3 at time 0.12t = with 200 200× cells. Surface (upper left), bottom (upper right), temperature (lower left), and pressure (lower right).

Figure 11. The three-dimensional view of the numerical results of the small perturbation of a steady state solution in Section 4.2.3 at time 0.15t = with 200 200× cells. From left to right: surface, temperature and pressure.

Conclusions

In this paper, we apply the well -balanced OFDG methods to solve the Ripa model, which can maintain the flux gradient and source term exactly balanced at the steady state. An extra damping term is added to the standard DG

methods, which can control the spurious oscillation well. Moreover, a decomposition algorithm is combined with

hydrostatic reconstruction modification technique to construct the well -balanced numerical fluxes and the novel source term approximation. We give the rigorous theoretic analysis and extensive one - and two-dimensional numerical results to demonstrate that the proposed well -balanced OFDG methods can preserve the well-balanced property, have high order accuracy for the smooth solutions, exhibit good performance for both continuous and discontinuous solutions, and successfully capture the small perturbation at the lake rest state.

Conflict and interest

The authors confirm that this article content has no conflict of interest.

Acknowledgements

This work is supported by the Natural Science Foundation of China through Grants No. 72171126, and the Natural Science Foundation of Shandong Province through Grants Nos. ZR2021MA072 and ZR2023MA012.

Figures

Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure
Article figure