• Non ci sono risultati.

3. The Shallow Water Equations with porosity (Part I): a well-balanced scheme

4.6. Extension to 2D SWEs

4.6.1. Eigenstructure analysis

The augmented 2D SWEs with porosity in Equation (4.1) can be rewritten in the following form:

πœ•π”

πœ•π‘‘ +πœ•π…(𝐔)

πœ•π‘₯ +πœ•π†(𝐔)

πœ•π‘¦ + π‡πœ•π”

πœ•π‘₯+ πŠπœ•π”

πœ•π‘¦= 0 (4.71)

where the vector U of the conserved variables, the vectors F(U) and G(U) of the fluxes in x and y directions, respectively, and the matrixes H and K of the non-conservative fluxes due to the porosity variation in x and y directions, are defined as:

𝐔 = [ πœ™β„Ž πœ™π‘’β„Ž πœ™π‘£β„Ž πœ™

] 𝐅(𝐔) =

[

πœ™π‘’β„Ž πœ™π‘’2β„Ž +1

2π‘”πœ™β„Ž2 πœ™π‘’π‘£β„Ž

0 ]

𝐆(𝐔) = [

πœ™π‘£β„Ž πœ™π‘’π‘£β„Ž πœ™π‘£2β„Ž +1

2π‘”πœ™β„Ž2

0 ] (4.72)

𝐇 = βˆ’1 2π‘”β„Ž2[

0 0 0 0 0 0 0 0 0

01 0 0 0 00

] 𝐊 = βˆ’1

2π‘”β„Ž2[

0 0 0 0 0 0 0 0 0

00 0 0 0 01 ]

Focusing on the x-direction and following the Generalized Roe approach illustrated in Section 4.3 the eigenvalues are:

πœ†Μƒ1= 𝑒̃ βˆ’ βˆšπ‘”β„ŽΜƒ πœ†Μƒ2= 0 πœ†Μƒ3= 𝑒̃ πœ†Μƒ4= 𝑒̃ + βˆšπ‘”β„ŽΜƒ (4.73) and the corresponding right eigenvectors result:

𝐑̃1= [

1 𝑒̃ βˆ’ βˆšπ‘”β„ŽΜƒ

𝑣̃0 ]

𝐑̃2=

[

π‘Ž24βˆ’1 2π‘”β„ŽΜƒ2 0 𝑣̃ (π‘Ž24βˆ’1

2π‘”β„ŽΜƒ2) 𝑒̃2βˆ’ π‘”β„ŽΜƒ ]

𝐑̃3= [ 0 01 0

] 𝐑̃4= [

1 𝑒̃ + βˆšπ‘”β„ŽΜƒ

𝑣̃0 ] (4.74)

where the term a24 is defined, analogously to the a23 term for the 1D scheme (Eq.

4.30), as:

π‘Ž24 = βˆ’1

2𝑔|πœ™πΏβˆ’ πœ™π‘…|

πœ™π‘…βˆ’ πœ™πΏ |β„Žπ‘—|β„Žπ‘— where {β„Žπ‘—= βˆ’β„ŽπΏ if πœ™πΏβ‰₯ πœ™π‘…

β„Žπ‘—= β„Žπ‘… if πœ™πΏ< πœ™π‘… (4.75)

The Roe averages β„ŽΜƒ, 𝑒̃ are defined according to Equation (4.31) and 𝑣̃ is calculated as:

𝑣̃ =βˆšπœ™πΏβ„ŽπΏπ‘£πΏ+ βˆšπœ™π‘…β„Žπ‘…π‘£π‘…

βˆšπœ™πΏβ„ŽπΏ+ βˆšπœ™π‘…β„Žπ‘…

(4.76)

The vector of the conserved variable differences Ξ΄ is evaluated as:

𝛅 = [ 𝛿1 𝛿2

𝛿3

𝛿4 ] = [

πœ™π‘…β„Žπ‘…βˆ’ πœ™πΏβ„ŽπΏ πœ™π‘…π‘’π‘…β„Žπ‘…βˆ’ πœ™πΏπ‘’πΏβ„ŽπΏ

πœ™π‘…π‘£π‘…β„Žπ‘…βˆ’ πœ™πΏπ‘£πΏβ„ŽπΏ

πœ™π‘…βˆ’ πœ™πΏ

] (4.77)

and finally the wave strengths result:

𝛼̃1= βˆ’ πœ†Μƒ4

πœ†Μƒ1βˆ’ πœ†Μƒ4𝛿1+ 1

πœ†Μƒ1βˆ’ πœ†Μƒ4𝛿2+ 2π‘Ž24βˆ’ π‘”β„ŽΜƒ2

2πœ†Μƒ1(πœ†Μƒ1βˆ’ πœ†Μƒ4)𝛿4 (4.78)

𝛼̃2= 1

πœ†Μƒ1πœ†Μƒ4𝛿4 (4.79)

𝛼̃3= βˆ’π‘£Μƒπ›Ώ1+ 𝛿3 (4.80)

𝛼̃4= πœ†Μƒ1

πœ†Μƒ1βˆ’ πœ†Μƒ4𝛿1βˆ’ 1

πœ†Μƒ1βˆ’ πœ†Μƒ4𝛿2βˆ’ 2π‘Ž24βˆ’ π‘”β„ŽΜƒ2

2πœ†Μƒ4(πœ†Μƒ1βˆ’ πœ†Μƒ4)𝛿4 (4.81)

Adopting the same procedure for the y-direction, the eigenvalues result:

πœ†Μƒ1= 𝑣̃ βˆ’ βˆšπ‘”β„ŽΜƒ πœ†Μƒ2= 0 πœ†Μƒ3= 𝑣̃ πœ†Μƒ4= 𝑣̃ + βˆšπ‘”β„ŽΜƒ (4.82) and the corresponding right eigenvectors read:

𝐑̃1= [

1𝑒̃

𝑣̃ βˆ’ βˆšπ‘”β„ŽΜƒ

0 ]

𝐑̃2=

[

π‘Ž24βˆ’1 2π‘”β„ŽΜƒ2 𝑒̃ (π‘Ž24βˆ’1

2π‘”β„ŽΜƒ2) 0

𝑣̃2βˆ’ π‘”β„ŽΜƒ ]

𝐑̃3= [ 01 00

] 𝐑̃4= [

1𝑒̃

𝑣̃ + βˆšπ‘”β„ŽΜƒ

0 ]

(4.83)

Assuming the vector of the conserved variable differences Ξ΄ as in Equation (4.77), the wave strengths result:

𝛼̃1= βˆ’ πœ†Μƒ4

πœ†Μƒ1βˆ’ πœ†Μƒ4𝛿1+ 1

πœ†Μƒ1βˆ’ πœ†Μƒ4𝛿3+ 2π‘Ž24βˆ’ π‘”β„ŽΜƒ2

2πœ†Μƒ1(πœ†Μƒ1βˆ’ πœ†Μƒ4)𝛿4 (4.84)

𝛼̃2= 1

πœ†Μƒ1πœ†Μƒ4𝛿4 (4.85)

𝛼̃3= βˆ’π‘’Μƒπ›Ώ1+ 𝛿2 (4.86)

𝛼̃4= πœ†Μƒ1

πœ†Μƒ1βˆ’ πœ†Μƒ4

𝛿1βˆ’ 1 πœ†Μƒ1βˆ’ πœ†Μƒ4

𝛿3βˆ’ 2π‘Ž24βˆ’ π‘”β„ŽΜƒ2

2πœ†Μƒ4(πœ†Μƒ1βˆ’ πœ†Μƒ4)𝛿4 (4.87)

The 2D augmented SWE system with porosity is characterized by real and distinct eigenvalues, and thus the system is still hyperbolic. Moreover, the characteristic fields Ξ»1

and Ξ»4 are genuinely non-linear, while the characteristic fields Ξ»2 and Ξ»3 are linearly degenerate. Consequently, the waves that can develop from the eigenvalues Ξ»1 and Ξ»4 can be shocks or rarefactions, while the wave associated with the eigenvalue Ξ»2 is a contact wave and the one related to eigenvalue Ξ»3 is a shear wave.

4.6.2. 2D Approximate Riemann Solver

The 2D numerical model adopts a Cartesian mesh with grid size Ξ”x and Ξ”y, along x and y directions, respectively, and the first order approximation explicit finite volume formula for updating the conserved variables from time tn to tn+1 states:

𝐔𝑖,𝑗𝑛+1= 𝐔𝑖,𝑗𝑛 βˆ’Ξ”π‘‘ Ξ”π‘₯[𝐅𝑖+1

2,π‘—βˆ’ π…π‘–βˆ’1 2,𝑗] βˆ’Ξ”π‘‘

Ξ”y[𝐆𝑖,𝑗+1

2βˆ’ 𝐆𝑖,π‘—βˆ’1

2] (4.88)

where i and j are the cell center coordinates in x and y directions.

According to Equation (4.88), the numerical fluxes F and G can be calculated separately, distinguishing between x and y directions: therefore, the 2D model can be seen as the combination of two 1D models, one in the x-direction and the other in the y-direction. On that basis, the procedure for the computation of numerical fluxes F is illustrated for the x-axis: the same method can then be adopted for fluxes G in the y-axis.

For a given Riemann problem with two initial states UL(hL,uL,vL,Ο•L) and UR(hR,uR,vR,Ο•R), the Roe solver determines the averaged eigenvalues (πœ†Μƒ1, πœ†Μƒ2, πœ†Μƒ3, πœ†Μƒ4), eigenvectors (𝐑̃1, 𝐑̃2, 𝐑̃3, 𝐑̃4) and wave strengths (𝛼̃1, 𝛼̃2, 𝛼̃3, 𝛼̃4).

According to the eigenvalue signs, four different configurations may occur (Figure 4.12): subcritical with positive πœ†Μƒ3 (a), subcritical with negative πœ†Μƒ3 (b), supercritical with positive velocities (c), and supercritical with negative velocities (d).

(a) (b) (c) (d)

Figure 4.12. 2D eigenvalue configurations: subcritical with positive πœ†Μƒ3 (a), subcritical with negative πœ†Μƒ3 (b), supercritical with positive (c) and negative (d) velocities.

The identification of the wave configuration is necessary in order to calculate the approximate intermediate states 𝐔̃1, 𝐔̃2 and 𝐔̃3 to be used in the entropy fix procedure.

However, due to the fact that the splitting in the entropy fix concerns eigenvalues πœ†Μƒ1 or πœ†Μƒ4, and the procedure is illustrated for the x-direction, only the u velocity is involved.

Moreover, the tangential velocity v changes across the πœ†Μƒ3 contact wave, but remains constant across the waves associated with the eigenvalues πœ†Μƒ1, πœ†Μƒ2 and πœ†Μƒ4, therefore it is easily evaluated separately from the other physical quantities. Furthermore, the variables h and u do not change across the πœ†Μƒ3 contact wave. This means that, with reference to Figure 4.12, (1D) states [β„ŽΜƒ2, 𝑒̃2] and [β„ŽΜƒ3, 𝑒̃3] in (a) and (c), [β„ŽΜƒ1, 𝑒̃1] and [β„ŽΜƒ2, 𝑒̃2] in (b) and (d)coincide. Therefore, the four configurations reduce to the three cases already presented for the 1D approach (see Figure 4.2), and the intermediate states can be calculated following exactly the same procedure described in Section 4.3.

A similar procedure can be followed for the y-direction considering v instead of u.

Finally, the positive and negative split eigenvalues, together with the averaged wave strengths and eigenvectors, are used to compute the fluxes 𝐅𝑖+1

2,𝑗, π…π‘–βˆ’1

2,𝑗, 𝐆𝑖,𝑗+1

2, 𝐆𝑖,π‘—βˆ’1

2 as follows:

π…π‘–βˆ’1

2,𝑗= βˆ‘ [(πœ†π‘)π‘–βˆ’1 2,𝑗]+

π‘š

𝑝=1

(𝛼̃𝑝)π‘–βˆ’1

2,𝑗(𝐑̃𝑝)π‘–βˆ’1

2,𝑗 (4.89)

𝐅𝑖+1

2,𝑗= βˆ’ βˆ‘ [(πœ†π‘)𝑖+1 2,𝑗]βˆ’

π‘š

𝑝=1

(𝛼̃𝑝)𝑖+1

2,𝑗(𝐑̃𝑝)𝑖+1

2,𝑗 (4.90)

𝐆𝑖,π‘—βˆ’1

2= βˆ‘ [(πœ†π‘)𝑖,π‘—βˆ’1 2]+

π‘š

𝑝=1

(𝛼̃𝑝)𝑖,π‘—βˆ’1

2(𝐑̃𝑝)𝑖,π‘—βˆ’1

2 (4.91)

𝐆𝑖,𝑗+1

2= βˆ’ βˆ‘ [(πœ†π‘)𝑖,𝑗+1 2]βˆ’

π‘š

𝑝=1

(𝛼̃𝑝)𝑖,𝑗+1

2(𝐑̃𝑝)𝑖,𝑗+1

2 (4.92)

which are then substituted in Equation (4.88) in order to update the solution.

4.7. 2D numerical tests

In order to validate the 2D numerical model with wave configurations similar to those illustrated in Section 4.5, a selection of circular Riemann problems is here presented.

In Section 3.5 it has been demonstrated that due to the radial symmetry and the choice of a proper porosity field, the 2D SWEs with variable porosity πœ™ are equivalent to the 1D SWEs with porosity πœ™π‘(π‘Ÿ). The adoption of a generic function πœ™π‘(π‘Ÿ) allows obtaining the reference solution of a 2D test case, by solving the 1D system (3.51) on a very fine mesh (Aureli et al., 2008). Whereas, the adoption of a porosity field defined according to Equation (3.50) and shown in Figure 4.13, allows obtaining the reference solution by means of the Exact 1D Riemann Solver described in Section 4.4.

The simulations were performed setting the gravitational acceleration as g = 9.81 m/s2 and assuming the Courant number for the time step computation as Cr = 0.8. The horizontal and frictionless domains were discretized with cell sizes Ξ”x = Ξ”y = 0.05 m.

The circular tests were modeled considering a dam with radius r = 120 m, which separates the internal initial state Uint from the external state Uext until its instantaneous collapse at time t = 0 s. The porosity field adopted for all the simulations is shown in Figure 4.13: it

gradually decreases according to Equation (3.50), and a discontinuity of 0.2 is introduced at r = 120 m.

Figure 4.13. Porosity field of the 2D radial tests.

The initial conditions of the 2D test cases are summarized in Table 4.2.

Table 4.2. Initial conditions for the radial test cases.

Test case ID hint (m) uint (m/s) hext (m) uext (m/s)

RDS radial 8 0 3 0

RDR radial 8 -4 6 0

SDS radial 4 4 1.5 -1.5

RRDR radial 6 -18 15 0

SDRS radial 4 7 1 7

The numerical solutions of the circular Riemann problems, along y = x line, are compared in terms of water depth and velocity with the exact solutions of the corresponding 1D scheme. A very good agreement between the numerical and the reference solution is obtained for the non-transonic test cases: RDS radial (Figure 4.14), RDR radial (Figure 4.15), and SDS radial (Figure 4.16).

(a) (b)

Figure 4.14. RDS radial test: water depth (a) and velocity (b) comparison between reference and numerical solutions at time 1 s.

(a) (b)

Figure 4.15. RDR radial test: water depth (a) and velocity (b) comparison between reference and numerical solutions at time 1 s.

(a) (b)

Figure 4.16. SDS radial test case: water depth (a) and velocity (b) comparison between reference and numerical solutions at time 1 s.

The numerical solution favorably approximates the reference one, also in the presence of transonic waves, as shown for the RRDR radial (Figure 4.17) and SDRS radial (Figure 4.18) test cases.

(a) (b)

Figure 4.17. RRDR radial test case: water depth (a) and velocity (b) comparison between reference and numerical solutions at time 1 s.

(a) (b)

Figure 4.18. SDRS radial test case: water depth (a) and velocity (b) comparison between reference and numerical solutions at time 1 s.

Documenti correlati