Acessibilidade / Reportar erro

Strong Stability Preserving Runge-Kutta Methods Applied to Water Hammer Problem

ABSTRACT

The characteristic method of lines is the most used numerical method applied to the water hammer problem. It transforms a system of partial differential equations involving the independent variables time and space in two ordinary differential equations along the characteristics curves and then solve it numerically. This approach, although showing great stability and quick execution time, creates ∆x-∆t dependency to properly model the phenomenon. In this article we test a different approach, using the method of lines in the usual form, without characteristics curves and then applying strong stability preserving Runge-Kutta Methods aiming to get stability with greater ∆t.

Keywords:
method of characteristic; method of lines; strong stability preserving methods; Water Hammer

1 INTRODUCTION

Pipe networks may have abrupt changes in flow rate due to valves being closed or the action of hydraulic pumps, causing also abrupt pressure variations. This phenomenon is commonly called in literature by ”Water Hammer”. The Water Hammer phenomenon is highly studied in engineering. According 2020 R. Wichowski. Hydraulic Transients Analysis in Pipe Networks by the Method of Characteristics (MOC). Archives of Hydro-Engineering and Environmental Mechanics, 53(3) (2006), 267-291., high variations of hydraulic head in a duct may damage it in the short term. Ducts should de designed with correct diameter, wall size thickness or allow the use of water hammer control devices. We need then to have a good prediction of the pressures the duct will suffer. The equations that model the phenomenon is also used to pre-locate water loss in pipe networks due to local damages in ducts as seen in 88 C.C. Gumier. “Aplicação de Modelo Matemático de Simulação-Otimização na Gestão de Perda de água em Sistemas de Abastecimento”. Ph.D. thesis, Faculdade de Engenharia Civil, Arquitetura e Urbanismo, Universidade Estadual de Campinas, Campinas, SP (2005)..

In this work, we apply strong stability preserving Runge-Kutta methods (SSPRK) 55 S. Gottlieb, D. Ketcheson & C.W. Shu. “Strong Stability Preserving Runge-Kutta and Multistep Time Discretizations”. World Scientific (2011).), (77 S. Gottlieb & C.W. Shu. Total Variation Diminishing Runge-Kutta Schemes. ICASE Report, 201591 (1996). in to a system of partial differential equations modeling the water hammer problem. A simple model of a reservoir connected to a duct and this to a valve that closes abruptly was used (Fig. 1). At the left side of the duct, hydraulic head is kept constant while at the right side, flow rate abruptly goes to 0. Hydraulic head and flow rate is assumed to be known at time t=0, as well as expressions for the boundary conditions. It is then desired to predict the flow rate and the hydraulic head at each point of the duct over time.

Figure 1:
Hydraulic Sistem.

Based on 22 M.H. Chaudry. “Applied Hydraulic Transients”. Litton Educacional Publishing, New York (1979).), (44 J.A. Fox. “Hydraulic Analysis of Unsteady Flow in Pipe Networks”. The Macmillian Press LTD (1977).), (88 C.C. Gumier. “Aplicação de Modelo Matemático de Simulação-Otimização na Gestão de Perda de água em Sistemas de Abastecimento”. Ph.D. thesis, Faculdade de Engenharia Civil, Arquitetura e Urbanismo, Universidade Estadual de Campinas, Campinas, SP (2005).), (1919 V.L. Streeter. Unsteady Flow Calculations by Numerical Methods. Journal of Basic Engineering, (1972), 457-465., the System of Differential Equation 1.1 represent the most common equations used to model the problem. Reference 1414 D.F.G. Santiago, D.H. Paula, F.J. da Silva, D.B. Santos, E. da Conceição Silva, A.F. Antunis, N. da Silva & D.R. Trindade. Modelagem Matemática da Carga Hidráulica e Vazão em Condutos. ForScience, 7(1) (2019). makes a physical deduction for these equations. Wichowski 2020 R. Wichowski. Hydraulic Transients Analysis in Pipe Networks by the Method of Characteristics (MOC). Archives of Hydro-Engineering and Environmental Mechanics, 53(3) (2006), 267-291. work with a general form of these equations, changing the term |Q|Q to |Q|Q m−1 , but we use the simple form.

H t + a 2 g A Q x = 0 Q t + g A H x + f 2 D A Q | Q | = 0 (1.1)

In the System 1.1, H(x, t) is the hydraulic head and Q(x, t) the flow rate in a given position x of the duct at time t. Constant f represents the friction factor, A is the cross-sectional area of the duct, g the gravitational acceleration, D the diameter of the duct and a a constant called pressure velocity. The initial and boundary conditions are described in Section 2.

Currently, the most used numerical method apllied to the problem is the characteristic method of lines, usualy called simply method of characteristics (MOC) 11 M.B. Abbott. “An Introduction to The Method of Characteristics”. Thames and Hudson London (1966).), (44 J.A. Fox. “Hydraulic Analysis of Unsteady Flow in Pipe Networks”. The Macmillian Press LTD (1977).), (1919 V.L. Streeter. Unsteady Flow Calculations by Numerical Methods. Journal of Basic Engineering, (1972), 457-465.), (2020 R. Wichowski. Hydraulic Transients Analysis in Pipe Networks by the Method of Characteristics (MOC). Archives of Hydro-Engineering and Environmental Mechanics, 53(3) (2006), 267-291.. There are several different kind of MOC methods, each one with its particularities and own characteristics curves. In this work we implement a simple form of the method just to comparison. This is detailed in Section 3. The MOC method establish a dependency between temporal ∆t and spatial ∆x stepsizes discretization to properly model the phenomenon. To achieve more freedom in ∆x and ∆t choice, a simple alternative to MOC, proposed in this work, is to use the method of lines (MOL) in the usual form (without the characteristics curves) to transform the partial differential equations in two variables in a system of differential equations in just one variable, and then use a known numerical method to solve it. This is described in Section 4. Trying to get good numerical solutions with greater ∆t stepsizes than in MOC scheme, we choose to adapt Strong Stability Preserving Runge-Kutta Methods. These methods are based on 55 S. Gottlieb, D. Ketcheson & C.W. Shu. “Strong Stability Preserving Runge-Kutta and Multistep Time Discretizations”. World Scientific (2011).), (66 S. Gottlieb , C. Shu & E. Tadmor. Strong Stability Preserving High Order Time Discretization Methods. SIAM Review, 43(1) (2001), 89-112. and it is described in Section 5. Section 6 present SSPRK schemes based on 55 S. Gottlieb, D. Ketcheson & C.W. Shu. “Strong Stability Preserving Runge-Kutta and Multistep Time Discretizations”. World Scientific (2011).), (66 S. Gottlieb , C. Shu & E. Tadmor. Strong Stability Preserving High Order Time Discretization Methods. SIAM Review, 43(1) (2001), 89-112.), (77 S. Gottlieb & C.W. Shu. Total Variation Diminishing Runge-Kutta Schemes. ICASE Report, 201591 (1996).), (1111 D. Ketcheson , S. Gottlieb & C. Macdonald. Strong Stability Preserving Two-step Runge-Kutta Methods. SIAM Journal on Numerical Analysis, 49 (2011).), (1212 S.J. Ruuth. Global Optimization of Explicit Strong-Stability-Preserving Runge-Kutta Methods. Mathematics of Computation, 75(253) (2005), 183-207. and compares MOL and MOC methods. Section 7 concludes the work.

2 INITIAL AND BOUNDARIES CONDITIONS

We made tests for the implemented numerical methods with two examples in literature. For the first example, the initial and boundary conditions were based on an experiment described in Wichowiski’s work 2020 R. Wichowski. Hydraulic Transients Analysis in Pipe Networks by the Method of Characteristics (MOC). Archives of Hydro-Engineering and Environmental Mechanics, 53(3) (2006), 267-291. and also explored in 1414 D.F.G. Santiago, D.H. Paula, F.J. da Silva, D.B. Santos, E. da Conceição Silva, A.F. Antunis, N. da Silva & D.R. Trindade. Modelagem Matemática da Carga Hidráulica e Vazão em Condutos. ForScience, 7(1) (2019).. The length of the duct was set 41 meters (L = 41m), the diameter of the cross section 42 millimeters (D = 0.042m). The pressure velocity was taken as a = 1260m/s. The friction factor was considered f = 0.025 and the gravity acceleration g = 9.81m/s 2. Initial flow rate was Q(x,0)=0.000453014m3/s, over the entire length of the duct as well as the initial hydraulic head was H (x, 0) = 50m. The hydraulic head located on the left side of the duct remains constant at 50m, that is, H (0, t) = 50m for all t. At the right side of the duct, a valve is placed, with fast closing time T c = 0.034s, beginning at time t = 0.16s. This closing time was considered to influence linearly the flow rate on the right side of the duct trough the following equation

Q ( L , t ) = Q 0 if t 0 . 16 Q 0 + Q 0 0 . 16 - t T c if 0 . 16 < t 0 . 16 + T c 0 if t > 0 . 16 + T c . (2.1)

For the second example, based in 1313 M.D. Saikia & A.K. Sarma. Simulation of water hammer flows with unsteady friction factor. ARPN Journal of Engineering and Applied Sciences, 1(4) (2006), 776-788., we consider a duct with lenght L = 12000 ft and cross section diameter D = 2 ft. Pressure velocity was a = 3000 ft/s. Initial head was taken varying linearly from H0 = 600 ft in the beginning of the duct to Hf = 530 ft at the end, close to the valve. The friction fator was f = 0.02. The flow rate at the valve was described with the formula Q(L,t)=CdAvH(L,t), where C d was considered the coefficient of discharge and A v the area of the valve at time t. This area changes linearly from time t = 0 up to completely closed at time t = 4. The initial flow rate was Q(x, 0) = 20.022713 ft 3 /s. The converted gravity acceleration was g = 32.18504 ft/s 2.

3 METHOD OF CHARACTERISTICS - MOC

Fox 44 J.A. Fox. “Hydraulic Analysis of Unsteady Flow in Pipe Networks”. The Macmillian Press LTD (1977). list some advantages of the characteristic method to solve the problem when compared to other methods. The characteristic method, directly applied to System 1.1 works as follows:

Multiply the first equation in System 1.1 by a number λ and add both equations. Take λ = gA/a, to get Equation 3.1.

g A a ( H t + a H x ) + ( Q t + a Q x ) + f 2 D A Q | Q | = 0 . (3.1)

Consider a straight line x(t), with dxdt=a represented in Figure 2. Equation 3.1 may be seen as an equation involving total derivatives

g A a d H d t + d Q d t + f 2 D A Q | Q | = 0 . (3.2)

Figure 2:
Characteristics Lines.

Equation 3.2 is valid on the straight line x(t). Replace then the total derivatives of the hydraulic head and flow rate by simple differences to get the first equation of the Linear System 3.3. In this system, H i,j and Q i,j are, respectively, numerical approximations for the hydraulic head and flow rate values at a point P i,j of the discretized domain. The j index represents time variations while the i index spatial variations along the duct, as shown in Figure 2. The second equation of System 3.3 is obtained analogously, with λ=-gA/a and dxdt=-a. Solving System 3.3, allows us to determine the hydraulic head and flow rate of a point P i,j+1 , indicated by Hi,j+1P and Qi,j+1P, as long as the hydraulic head and flow rate at the points P i−1,j and P i+1,j are known.

H i , j + 1 P - H i - 1 , j + a g A ( Q i , j + 1 P - Q i - 1 , j ) + a f 2 g D A 2 | Q i - 1 , j | Q i - 1 , j Δ t = 0 H i , j + 1 P - H i + 1 , j - a g A ( Q i , j + 1 P - Q i + 1 , j ) - a f 2 g D A 2 | Q i + 1 , j | Q i + 1 , j Δ t = 0 (3.3)

To consider the boundary conditions, note that if we know the hydraulic head in P i,j+1 , P i+1,j , and the flow rate in P i+1,j , we can find out the flow rate in P i,j+1 using only the second equation of System 3.3. If we know the flow rate in P i,j+1 , P i−1,j , and the hydraulic head in P i−1,j , we can find out the head in P i,j+1 using only the first equation of System 3.3.

The Continuous line in Figure 3 represents the graphic of the hydraulic head obtained by MOC related to the first example and trough a discretized scheme with 20 subdivisions of the duct i.e, an amount of points n = 21. We locate the sample point at position x¯ = 30.75m, close to the valve. With this scheme we have ∆x = 2.05m and consequently, to maintain the relationship xt=a, ∆t = 0, 001626984. Changing this relationship changes the problem and obviously also the graphic. In Figure 4 we used n = 81. With correspoding ∆x and ∆t stepsizes parameters. Related to the second example, in Figure 5 we choose ∆x = 600 ft and located the sample point at position x¯ = 9000 ft.

Figure 3:
First Example. Numerical Result. Hydraulic Head at x¯ = 30.75m. ∆x = 2.05m and ∆t = 0.001626984

Figure 4:
First Example. Numerical Result. Hydraulic Head at x¯ = 30.75m. ∆x = 0.5125m and ∆t = 0.000406746

Figure 5:
Second Example. Numerical Result. Hydraulic Head at x¯ = 9000 f t. ∆x = 600 f t and ∆t = 0.2

4 METHOD OF LINES - MOL

The method of lines (MOL), transforms a system of differential equations in two variables, to a system of differential equations in just one variable (t). This occurs by discretizing variable x.

Consider the differential equations in System 1.1. Fix x¯ and use the first two terms of taylor’s series expansion on x for H. We get Equation 4.1.

H x ( x ¯ , t ) H ( x ¯ + Δ x , t ) - H ( x ¯ , t ) Δ x (4.1)

Placing Equation 4.1 in the the second equation of System 1.1, we get Equation 4.2

Q t ( x ¯ , t ) + g A H ( x ¯ + Δ x , t ) - H ( x ¯ , t ) Δ x + f 2 D A Q ( x ¯ , t ) | Q ( x ¯ , t ) | = 0 (4.2)

Analougsly, using the first two terms of the taylor series expansion for Q, with −∆x it follows

Q x ( x ¯ , t ) Q ( x ¯ , t ) - Q ( x ¯ - Δ x , t ) Δ x (4.3)

Replace then in the first equation of System 1.1 and we get Equation 4.4.

H t ( x ¯ , t ) = - a 2 g A Q ( x ¯ , t ) - Q ( x ¯ - Δ x , t ) Δ x (4.4)

Based on boundary conditions, we have initial values of hydraulic head in x=0, H0=H(0,t), and flow rate in x=L, QL(t)=Q(L,t). Making x vary in the discretized points of a partition x0=0,x1,x2,,xn=L, we have the System 4.5. We must discover the following functions: Q(0,t), Q(Δx,t), Q(2Δx,t),, Q((n-1)Δx,t) and H(Δx,t), H(2Δx,t),, H(L,t). That is, a system of differential equations with 2n equations and 2n functions to be discovered.

Q t ( 0 , t ) = - f 2 D A Q ( 0 , t ) | Q ( 0 , t ) | - g A H ( Δ x , t ) - H 0 Δ x Q t ( Δ x , t ) = - f 2 D A Q ( Δ x , t ) | Q ( Δ x , t ) | - g A H ( 2 Δ x , t ) - H ( Δ x , t ) Δ x Q t ( ( n - 1 ) Δ x , t ) = - f 2 D A Q ( ( n - 1 ) Δ x , t ) | Q ( ( n - 1 ) Δ x , t ) | - g A H ( L , t ) - H ( ( n - 1 ) Δ x , t ) Δ x H t ( Δ x , t ) = - a 2 g A Q ( Δ x , t ) - Q ( 0 , t ) Δ x H t ( 2 Δ x , t ) = - a 2 g A Q ( 2 Δ x , t ) - Q ( Δ x , t ) Δ x H t ( L , t ) = - a 2 g A Q L ( t ) - Q ( ( n - 1 ) Δ x , t ) Δ x (4.5)

Take y(t)=Q(0,t)Q(Δx,t)Q((n-1)Δx,t)H(Δx,t)H(2Δx,t)H(L,t), and we get then an initial value problem y' =F(t,y), y(0)=y0 where

y 0 = Q ( 0 , 0 ) Q ( Δ x , 0 ) Q ( ( n - 1 ) Δ x , 0 ) H ( Δ x , 0 ) H ( 2 Δ x , 0 ) H ( L , 0 ) .

We can then choose a numerical method to solve the equation.

5 SSPRK SCHEMES

Numerical methods applied to differential equations involving non smooth solutions often shows problems as spurious oscillations. One way to attack these problems is through strong stability preserving methods (SSP) 66 S. Gottlieb , C. Shu & E. Tadmor. Strong Stability Preserving High Order Time Discretization Methods. SIAM Review, 43(1) (2001), 89-112.), (77 S. Gottlieb & C.W. Shu. Total Variation Diminishing Runge-Kutta Schemes. ICASE Report, 201591 (1996).), (1212 S.J. Ruuth. Global Optimization of Explicit Strong-Stability-Preserving Runge-Kutta Methods. Mathematics of Computation, 75(253) (2005), 183-207.), (1616 C. Shu . Total-Variation-Diminishing Time Discretizations. SIAM J. Sci. Statist. Comput, 9(6) (1988), 1073-1084.), (1818 R.J. Spiteri & S.J. Ruuth . A new Class of Optimal High-Order Strong-Stability-Preserving Time-Stepping Schemes,. SIAM J. Numer. Anal, 40(2) (2002), 469-491.. The concept of SSP methods was introduced for autonomous systems by 33 Chi-Wang Shu & S. Osher. Efficient implementation of essentially non-oscillatory shock-capturing schemes. Journal of Computational Physics, 77(2) (1988), 439-471., but in 1717 M.N. Spijker. Stepsize Conditions for General Monotonicity in Numerical Initial Value Problems. SIAM Journal on Numerical Analysis , 45(3) (2007), 1226-1245. and 99 Z. Horváth, H. Podhaisky & R. Weiner. Strong stability preserving explicit peer methods. Journal of Computational and Applied Mathematics, 296 (2016), 776-788. the concept is generalized for non-autonomous systems. These ones aims to preserve the stability of the forward Euler method but showing high accuracy order. Suppose we have a differential equation y'=F(t,y), and there are Δt¯ such that for all t, yn and ∆t in the range 0ΔtΔt¯ the forward Euler Method satisfies:

| | y + Δ t F ( t , y ) | | | | y | |

then if ytn and ytn+1 are two consecutive steps of a numerical method, we say it is a SSP method if there is a constant C such that for ΔtCΔt¯ we have

y t n + 1 y t n

In case of hypebolic autonomous equations, the constant C is called CFL coefficient or SSP coefficient.

Special kind of SSP methods are the strong stability preserving Runge-kutta methods (SSPRK). These methods are formulated for autonomous equations. In this work, MOL framework is most of time autonomous, being non-autonomous just during valve closing time. We present here a formulation for time dependent equations. Adapted from 55 S. Gottlieb, D. Ketcheson & C.W. Shu. “Strong Stability Preserving Runge-Kutta and Multistep Time Discretizations”. World Scientific (2011)., our SSPRK scheme will be writen in the form

y i = y t n + Δ t j = 1 m a i j F ( t n , y j ) ( 1 i m ) (5.1)

y t n + 1 = y t n + Δ t j = 1 m b j F ( t n , y j ) . (5.2)

where y i represent auxiliary values such that, together with ytn, the next step ytn+1 are calculated. Note that time t n in expressions F(tn,yj) may be generalized, but this work do not make use of this generalization. The equations may also be written in the form

y 0 = y t n (5.3)

y i = j = 0 i - 1 α i j y j + Δ t β i j F ( t n , y j ) ( 1 i m ) (5.4)

y t n + 1 = y m . (5.5)

To consistency purpose, we need j=0i-1αij=1. Furthermore, we will take αij0 i,j. Equations 5.3, 5.4 and 5.5 are called the Shu-Usher representation.

According Equation 5.4, we have

y i = j = 0 i - 1 α i j y j + Δ t β i j F ( t n , y j ) = j = 0 i - 1 α i j y j + Δ t β i j α i j F ( t n , y j ) j = 0 i - 1 α i j y j + Δ t β i j α i j F ( t n , y j ) j = 0 i - 1 α i j y j + Δ t β i j α i j F ( t n , y j ) .

Considering forward Euler stability we have yj+ΔtβijαijF(tn,yj)ytn. if βijαijΔtΔt¯, so yiytn for all i, in particular ym(=ytn+1)ytn. If time step ∆t satisfies ΔtCΔt¯ where C=minαijβij, we have then a SSP method.

The SSPRK schemes will be described trough tables as presented in 1212 S.J. Ruuth. Global Optimization of Explicit Strong-Stability-Preserving Runge-Kutta Methods. Mathematics of Computation, 75(253) (2005), 183-207.. For example, our adapted SSPRK(3, 3) method 55 S. Gottlieb, D. Ketcheson & C.W. Shu. “Strong Stability Preserving Runge-Kutta and Multistep Time Discretizations”. World Scientific (2011).), (1212 S.J. Ruuth. Global Optimization of Explicit Strong-Stability-Preserving Runge-Kutta Methods. Mathematics of Computation, 75(253) (2005), 183-207. is given by

y 0 = y t n y 1 = y 0 + Δ t F ( t n , y 0 ) y 2 = 3 4 y 0 + 1 4 y 1 + 1 4 Δ t F ( t n , y 1 ) y t n + 1 = 1 3 y 0 + 2 3 y 2 + 2 3 Δ t F ( t n , y 2 ) .

The first parameter in the description of the method refers to number of stages used, and the second to the order of the method. This order was deduced for autonomous systems. We will make reference to this order, but note that during valve closing time system is not autonomous and the order of the SSPRK schemes may be lower than specified by the parameters. Our purpose is to get stability with greater ∆t stepsize. The SSPRK(3, 3) scheme may be represented as Table 1.

Table 1:
SSPRK(3, 3).

6 RESULTS

For comparison purpose, considering the first example, we made several tables with MOC scheme and SSPRK’s schemes with different values of hydraulic head for different positions and time. For each time, we get the values of hydraulic head truncating the discrete values of time to the nearest value specified in tables. Tables 2 and 3 shows that MOC scheme has litlle changes related with variations in ∆x stepsize. The graphics for x¯ = 30.75 are presented in Figures 3 and 4 with continuous lines. It was also collected some values of MOC scheme implemented by 2020 R. Wichowski. Hydraulic Transients Analysis in Pipe Networks by the Method of Characteristics (MOC). Archives of Hydro-Engineering and Environmental Mechanics, 53(3) (2006), 267-291. and for an experiment also presented in 2020 R. Wichowski. Hydraulic Transients Analysis in Pipe Networks by the Method of Characteristics (MOC). Archives of Hydro-Engineering and Environmental Mechanics, 53(3) (2006), 267-291. for comparison.

Table 2:
MOC - First Example n = 21, ∆t = 0.001626984.

Table 3:
MOC - First Example n = 81, ∆t = 0.000406746.

We made tests with different SSPRK schemes using method of lines described in section 5. To show the results, although several tests made, we choose only two methods of third order, SSPRK(3, 3) and SSPRK(8, 3) respectively, and two methods of fourth order, SSPRK(5, 4) and SSPRK(10, 4). Some numerical results are presented in Tables 7, 8, 9, 10, 11 and 12. Figures 3 and 4 shows graphics comparing MOC scheme implemented in this work with SSPRK(8,3) for n = 21 and n = 81.

Table 4:
SSPRK(8, 3).

Table 5:
SSPRK(5, 4).

Table 6:
SSPRK(10, 4).

Table 7:
SSPRK(8,3) - First Example. n = 21, ∆t = 0.001626984.

Table 8:
SSPRK(8,3) - First Example. n = 81, ∆t = 0.000406746.

Table 9:
SSPRK(5,4) - First Example. n = 21, ∆t = 0.001626984.

Table 10:
SSPRK(5,4) - First Example. n = 81, ∆t = 0.000406746.

Table 11:
SSPRK(10,4) - First Example. n = 21, ∆t = 0.001626984.

Table 12:
SSPRK(10,4) - First Example. n = 81, ∆t = 0.000406746

Description of coeficients of each SSPRK schemes are presented in Tables 1, 4, 5 and 6.

We also test the SSPRK schemes with another example found in the literature. This one is described in 1313 M.D. Saikia & A.K. Sarma. Simulation of water hammer flows with unsteady friction factor. ARPN Journal of Engineering and Applied Sciences, 1(4) (2006), 776-788.. There, the authors considered a flow rate at the valve that depends also on the hidraulic head Q(L,t)=CdAvH(L,t), then the boundary condition on Q at the end of the valve had to be calculated dinamicaly in both schemes. For MOC case, to calculate Q n,j and H n,j we have to so solve the system formed by the first equation of System 3.3 with i = n and Qn,j=CdAvHn,j. In SSPRK schemes, before calculating H n,j , we just use formula Qn,j=CdAvHn,j. Figure 5 compares SSPRK(5, 4) with n = 21 with MOC. It was also collected some values of the numerical solution in 1313 M.D. Saikia & A.K. Sarma. Simulation of water hammer flows with unsteady friction factor. ARPN Journal of Engineering and Applied Sciences, 1(4) (2006), 776-788. for comparison.

MOC scheme is more stable then SSPRK ones. For some values of ∆t stepsize, SSPRK numerical solutions presents spurious errors and asymptotic behavior. We test then ∆t stepsizes with four digit precision after comma to find, for each SSPRK schemes, the largest ∆t that makes numerical solution to not present asymptotic behavior. We use these values to compare SSPRK schemes and MOC schemes. For the MOC scheme, we used ∆t satisfying the relation ΔxΔt=a. In graphic of Figure 6 we show the relation between these ∆t stepsizes and the number of points n of the spacial discretization. In Graphic of Figure 7, we show the execution time. We use Scilab and a Lenovo ideapad notebook, Intel@ Core i5 − 8265U 1.60GHz ×8 (quad core, two threads each core). The operational system used was Linux ubuntu 19.10

Figure 6:
Comparison between the number of points n and corresponding ∆t for each scheme.

Figure 7:
Comparison between the number of points n and Execution Time, using ∆t of Figure 6.

7 CONCLUSION

The watter hammer problem is largely studied in engineering and mathematics. There are several numerical methods applied in it’s solution. In the past years, works involving applications on the problem usually uses system 1.1 and the methods of characteristics (MOC) to solve it. The MOC method shows great stability, considering different values for ∆x, furthermore, it also shows good execution time. One of the disavantages of the MOC method is that it creates a Δx-Δt dependency that results on lack of choice in the discrete scheme, i.e, if we determine ∆x step, we also determine ∆t step. The goal of this work was to use strong stability preserving runge-kutta schemes (SSPRK) with a formulation of the usual method of lines on System 1.1. On autonomous systems, The SSPRK schemes acts to increase the order of the method maintaining the forward Euler stability. System 4.5 is not autonomous, so the order of the SSPRK schemes may be lower than specified, but still theoretically maintaining SSP stability for a ∆t choice satisfying ΔtCΔt¯, where Δt¯ is an upper limit for stability to the forward euler method, and C is the SSP coefficient. Higher values of C, theoreticaly allows greater ∆t, decreasing then the execution time.

Based on Figures 3, 4 and 5, we conclude that all schemes shows similar hydraulic head amplitudes, i.e, they predict properly pressures the duct will suffer, but SSPRK schemes tend to show considerable difference in phase trough time. This difference seems to decrease for refined spatials discretization. In terms of amplitude prediction, SSPRK schemes also behave weel comparing to the experiment and MOC implementations presented in 2020 R. Wichowski. Hydraulic Transients Analysis in Pipe Networks by the Method of Characteristics (MOC). Archives of Hydro-Engineering and Environmental Mechanics, 53(3) (2006), 267-291. for the first example, and with MOC implementation presented in 1313 M.D. Saikia & A.K. Sarma. Simulation of water hammer flows with unsteady friction factor. ARPN Journal of Engineering and Applied Sciences, 1(4) (2006), 776-788. for the second example.

Graphics of Figure 6, shows a gain in ∆t stepsize with the most part of the tested SSPRK schemes. This gain depends on the order of the SSPRK scheme and on the SSP coefficient C. Although allowing considerably increase of ∆t stepsize, MOC scheme still show less execution time as seen in graphic of Figure 7. To achieve greater ∆t, and consequently less execution time, we may increase the order or increase the constant C but this often increases also the stages necessary for the SSPRK methods, acting in the opposite direction. This is notably noted comparing SSPRK(5, 4) and SSPRK(10, 4). Although SSPRK(10, 4) admit greater ∆t, the difference in execution time is not so big.

To improve the execution time, we still may try other numerical methods apllied on System 4.5 or other SSPRK scheme. We also may consider multistep SSPRK methods 55 S. Gottlieb, D. Ketcheson & C.W. Shu. “Strong Stability Preserving Runge-Kutta and Multistep Time Discretizations”. World Scientific (2011)., different space discretizations schemes 1515 C. Shu . “Differential Quadrature”. Springer-Verlag London Limited (1962). or even downwinding schemes 1010 L. Isherwood, Z. Grant & S. Gottlieb . “Downwinding for Preserving Strong Stability in Explicit Integrating Factor Runge-Kutta Methods” (2018)..

REFERENCES

  • 1
    M.B. Abbott. “An Introduction to The Method of Characteristics”. Thames and Hudson London (1966).
  • 2
    M.H. Chaudry. “Applied Hydraulic Transients”. Litton Educacional Publishing, New York (1979).
  • 3
    Chi-Wang Shu & S. Osher. Efficient implementation of essentially non-oscillatory shock-capturing schemes. Journal of Computational Physics, 77(2) (1988), 439-471.
  • 4
    J.A. Fox. “Hydraulic Analysis of Unsteady Flow in Pipe Networks”. The Macmillian Press LTD (1977).
  • 5
    S. Gottlieb, D. Ketcheson & C.W. Shu. “Strong Stability Preserving Runge-Kutta and Multistep Time Discretizations”. World Scientific (2011).
  • 6
    S. Gottlieb , C. Shu & E. Tadmor. Strong Stability Preserving High Order Time Discretization Methods. SIAM Review, 43(1) (2001), 89-112.
  • 7
    S. Gottlieb & C.W. Shu. Total Variation Diminishing Runge-Kutta Schemes. ICASE Report, 201591 (1996).
  • 8
    C.C. Gumier. “Aplicação de Modelo Matemático de Simulação-Otimização na Gestão de Perda de água em Sistemas de Abastecimento”. Ph.D. thesis, Faculdade de Engenharia Civil, Arquitetura e Urbanismo, Universidade Estadual de Campinas, Campinas, SP (2005).
  • 9
    Z. Horváth, H. Podhaisky & R. Weiner. Strong stability preserving explicit peer methods. Journal of Computational and Applied Mathematics, 296 (2016), 776-788.
  • 10
    L. Isherwood, Z. Grant & S. Gottlieb . “Downwinding for Preserving Strong Stability in Explicit Integrating Factor Runge-Kutta Methods” (2018).
  • 11
    D. Ketcheson , S. Gottlieb & C. Macdonald. Strong Stability Preserving Two-step Runge-Kutta Methods. SIAM Journal on Numerical Analysis, 49 (2011).
  • 12
    S.J. Ruuth. Global Optimization of Explicit Strong-Stability-Preserving Runge-Kutta Methods. Mathematics of Computation, 75(253) (2005), 183-207.
  • 13
    M.D. Saikia & A.K. Sarma. Simulation of water hammer flows with unsteady friction factor. ARPN Journal of Engineering and Applied Sciences, 1(4) (2006), 776-788.
  • 14
    D.F.G. Santiago, D.H. Paula, F.J. da Silva, D.B. Santos, E. da Conceição Silva, A.F. Antunis, N. da Silva & D.R. Trindade. Modelagem Matemática da Carga Hidráulica e Vazão em Condutos. ForScience, 7(1) (2019).
  • 15
    C. Shu . “Differential Quadrature”. Springer-Verlag London Limited (1962).
  • 16
    C. Shu . Total-Variation-Diminishing Time Discretizations. SIAM J. Sci. Statist. Comput, 9(6) (1988), 1073-1084.
  • 17
    M.N. Spijker. Stepsize Conditions for General Monotonicity in Numerical Initial Value Problems. SIAM Journal on Numerical Analysis , 45(3) (2007), 1226-1245.
  • 18
    R.J. Spiteri & S.J. Ruuth . A new Class of Optimal High-Order Strong-Stability-Preserving Time-Stepping Schemes,. SIAM J. Numer. Anal, 40(2) (2002), 469-491.
  • 19
    V.L. Streeter. Unsteady Flow Calculations by Numerical Methods. Journal of Basic Engineering, (1972), 457-465.
  • 20
    R. Wichowski. Hydraulic Transients Analysis in Pipe Networks by the Method of Characteristics (MOC). Archives of Hydro-Engineering and Environmental Mechanics, 53(3) (2006), 267-291.

Publication Dates

  • Publication in this collection
    04 Apr 2022
  • Date of issue
    Jan-Mar 2022

History

  • Received
    06 May 2020
  • Accepted
    23 June 2021
Sociedade Brasileira de Matemática Aplicada e Computacional - SBMAC Rua Maestro João Seppe, nº. 900, 16º. andar - Sala 163, Cep: 13561-120 - SP / São Carlos - Brasil, +55 (16) 3412-9752 - São Carlos - SP - Brazil
E-mail: sbmac@sbmac.org.br