Abstract

Water hammer on transient flow of hydrogen-natural gas mixture in a horizontal pipeline is analysed to determine the relationship between pressure waves and different modes of closing and opening of valves. Four types of laws applicable to closing valve, namely, instantaneous, linear, concave, and convex laws, are considered. These closure laws describe the speed variation of the hydrogen-natural gas mixture as the valve is closing. The numerical solution is obtained using the reduced order modelling technique. The results show that changes in the pressure wave profile and amplitude depend on the type of closing laws, valve closure times, and the number of polygonal segments in the closing function. The pressure wave profile varies from square to triangular and trapezoidal shape depending on the type of closing laws, while the amplitude of pressure waves reduces as the closing time is reduced and the numbers of polygonal segments are increased. The instantaneous and convex closing laws give rise to minimum and maximum pressure, respectively.

1. Introduction

Most analysis of flow in pipelines and networks has assumed the flow to be at steady state conditions. This means that the flow does not change with time at any location in the pipeline system. With the assumption of uniform flow, the analysis becomes simpler and solutions are easy to obtain. Study on transient condition is important because pipeline flows are frequently in unsteady state due to the sudden opening and closing of valves. All transient flows are transitions, whether in long or short duration. Transient flow can be defined as the flow fluctuation when the velocity and pressure of a fluid or gas flow change over time due to changes in the system. Relating specifically to pressure, they are sometimes called dynamic pressure changes or pressure transients.

It is not feasible to prevent pressure transient when operating a piping system, but this situation can be controlled. The main causes of transient flow conditions are closing or opening of valves in the piping system, switching off the power supply, or a power failure and/or equipment failure. The sudden closure of a control valve, stopping of a pump, and variation of discharge due to pipeline rupture lead to excess pressure in a pipeline [1]. Wood et al. [2] stated that the pressure transient results from an abrupt change in the flow velocity and can be caused by main breaks, sudden changes in demand, or uncontrolled pump starting.

When velocities in a pipe system change so rapidly that the elastic properties of the pipe and the liquid or gas must be examined in an analysis, we have a hydraulic transient commonly known as water hammer. Water hammer is a kind of transient phenomenon that occurs when rapid valve closure suddenly blocks the flow in pipelines. It depends on the fluid compressibility where there are sudden changes in pressure. Understanding water hammer is very important in order to prevent excessive pressure buildup in pipelines which cause pipeline damage [3].

Pressure change in pipelines depends on gas velocity, valve closure time [4], and arrangement of the closing valve. Maximum pressure can occur during valve closure or at the end of the closure operation. Therefore, short times during valve closure are important in reducing the maximum pressure, especially in emergency conditions. Unfortunately, this pressure transient is difficult to control because this damage is not always visible until long after the event. Therefore, valves are always installed in the pipeline to control the gas flow when damage occurs.

According to Provenzano et al. [5], there are four methods which can be used to modify the action of the valve (closure law), most commonly referred to as convex, concave, linear, and instantaneous closing law. These types of closing valve laws represent a mathematical function that describes the speed variation of the flow as it is closing. These types of valve closure depend on the rate at which valves can be closed. The valve closure rate plays an important role in controlling the water hammer phenomenon [1].

Valve closure times are also a source of risk when we analyse the water hammer phenomenon. Thus, some efforts have been expended to optimize the time closure of control valves, taking into account several kinds of restrictions. Ghidaoui et al. [6] presented a general history and introduction of the water hammer phenomenon. They stated that the problem of water hammer was first studied by Menabrea [7]. Michaud [8] examined the use of air chambers and safety valves for controlling water hammer. In the early 19th century, some researchers attempted to develop expressions relating to pressure and velocity changes in a pipe.

Afshar et al. [1] developed a closing rule curve for valves in pipelines to control the water hammer impact. They predicted the pressure increase and pipe discharge for a valve closing scenario in fluid flow. The effect of different parameters such as velocity, viscosity, and compressibility of the pressure was investigated by Charles [9]. Fouzi and Ali [10] studied the effects of water hammer in hydraulic systems. Mansuri et al. [11] also studied the sensitivity of some hydraulic parameters to water hammer problem. These four types of closure laws have been considered mostly in fluids involving water but have not yet been applied in hydrogen-natural gas mixture.

Elaoud and Hadj-Taïeb [12] studied the transient flow in hydrogen-natural gas mixture. Studies on such problems are important because hydrogen is usually transported in the same pipeline as natural gas to reduce transportation cost and hydrogen is often stored together with natural gas to enhance its storage capability. However, they seemed to have considered only the linear closing valve to determine the relationship between the mass ratio of mixture and pressure.

According to Fouzi and Ali [10], analytical solutions are not possible in the field of those who study the hydraulic transient. Allievi [13] developed classical solutions for both analytical and graphical approaches. Streeter [14] developed a numerical model by using a constant value of the turbulent friction factor. Wiggert and Sundquist [15] solved the pipeline transients using fixed grids projecting the characteristics from outside the fundamental grid size. Watt et al. [16] provided a solution for rise of pressure by the method of characteristics, but transient friction has not been considered. Chaudhry and Hussaini [17] solved the water hammer equations by MacCormack, Lambda, and Gabutti explicit finite difference schemes. Pezzinga [18] and Elaoud and Hadj-Taïeb [12] worked to evaluate the transient flow resistance by the method of characteristics.

Various numerical models including the Method of Characteristics (MOC) and Finite Difference Method (FDM) have been presented by different investigators to obtain the transient pressure and discharge in water hammer situations. However, these methods are time consuming, especially for gas network analysis. More accurate results and lower computational costs are needed for the simulation of gas network analysis. Behbahani-Nejad and Shekari [19, 20] proposed a Reduced Order Model (ROM) approach to achieve an efficient computational scheme for natural gas transient pipe flows. ROM gave lower computational cost and reduced time for computation. ROM was recently used in the analysis of unsteady flows [21]. Agaie and Amin [22] used the ROM technique to study the effect of water hammer on transportation of hydrogen-natural mixture. They validated the Provenzano et al. [5] problems to verify the accuracy of ROM.

In the present study, the water hammer phenomenon will be solved by using this ROM on transient flow of hydrogen-natural gas mixture. Our main objective is to determine the relationship between the pressure waves of hydrogen-natural gas mixture with different modes of closing and opening of valves, most commonly referred to as convex, concave, linear, and instantaneous closing law. To verify our objective, the water hammer on transient flow of hydrogen-natural gas is analysed based on the types of closing laws, closure valve times, and the number of polygonal segments in the closing function.

2. Mathematical Formulation

The mathematical models used to describe unsteady flows of hydrogen-natural gas mixture in horizontal pipelines are presented in the following.

2.1. Governing Equation

From the principle of conservation of mass and momentum laws, the governing equations for the transportation of hydrogen-natural gas mixture in pipelines are given by where is defined as density, is vector velocity, is gas velocity, is pressure, is shear force, and is the net body force per unit mass.

For a one-dimensional flow, the continuity and momentum equation under isothermal conditions can be written aswhere is the shear force in the -direction and is the net body force per unit mass.

Using the hydraulic mean diameter , the perimeter of the pipe can be defined as . The shear force may be expressed in terms of the pipe friction coefficient , which can then be expressed as

Substituting (4) into (3), the one-dimensional momentum equation in horizontal pipelines becomes

According to Chaczykowski [23], the form of friction factor , where , is only used in the United Kingdom. This friction factor is called the Fanning friction factor which is defined as the ratio of the pipeline wall shear stress to the roughness of the pipe. When this Fanning friction factor is applied, the momentum equation in (5) can also be expressed as

The form of the friction term in (6) is more frequently used in America and Europe. However, to ensure that the frictional force shall always act opposite to the direction of motion, the momentum equation is written as

2.2. Equation of State

For the isothermal flow in a pipeline, the gas properties can be assumed to be uniform or constant over any cross section in a pipeline. It is known that the static pressure may be assumed to be constant over a cross section of the pipeline. Isothermal flow means that the gas remains at the same temperature while flowing in a pipeline [24]. The equation of state for gas, which is commonly used in the gas industry, is given bywhere is the compressibility factor, is the specific gas constant, and is the constant temperature.

Usually the compressibility factor is assumed to be constant too [20]. Then, the relation between the equation of state with celerity pressure wave is given by

The momentum equation (7) becomes written in terms of the celerity pressure wave:

Therefore, the continuity equation (2) and momentum equation (10) will be used in transient analysis of isothermal hydrogen-natural gas mixture in horizontal pipeline.

2.3. Closing Valve Law Equation

The closing valve law is a mathematical function that describes the speed variation of the gas flow as it is closing [5]. The derivative of (9) is taken and the subscript denotes the condition of constant entropy given by

From (11), the relation of pressure and density to function of and can be written as Substituting (12a) and (12b) into (2) and (10) yields

In many cases on closing valve in pipes, the friction factor is negligible because the value is very small. Differentiating equations (13a) and (13b) with respect to and , respectively, gives

Substituting (14a) and (14b) into one-dimensional wave equation gives the continuity and momentum equation which described the pattern of closing valve function as

2.4. Hydrogen-Natural Gas Mixture Equation

For hydrogen-natural gas mixture, the hydrogen mass ratio will be used in determining the mixture density, where the mass ratio of the mixture is described aswhere and are defined as the mass of natural gas and hydrogen, respectively.

The density of hydrogen and natural gas can be defined aswhere and are initial density of hydrogen and natural gas, respectively, is transient pressure, and is permanent pressure.

The expression of the average density of the mixture is defined according to the mass ratio, . The density of the hydrogen-natural gas mixture then can be written as

From (11), the celerity pressure wave of compressible gas flow can be expressed based on the hydrogen mass ratio. By taking the derivative of (18) with respect to , the celerity pressure wave (11) can be written as

2.5. Closing Valve Function

Provenzano et al. [5] proposed the following closing function: where is the closing time, , and is the gas speed at the end of the closing valve.

The closing time () is stepped by a number of polygonal segments in closing function denoted by given bywhere .

Equation (20b) allows finding the speed values at each of the stepped times .

2.6. Boundary Conditions

The boundary conditions at the initial point, , are given by where , , and are defined as pressure, density, and velocity at the inlet pipeline, respectively.

The boundary conditions at the end point arewhere and are defined as mass flux and pressure at the outlet pipeline, respectively.

2.7. Initial Conditions

The initial conditions at are

3. Numerical Solution

To solve numerically the governing equations (2) and (10), Reduced Order Model (ROM) is used. The ROM is an efficient method to solve the transient hydrogen-natural gas mixture in a gas pipeline because of smaller number of errors and reduced time consumption and computational cost.

3.1. Transformation of Flux Vector Form

The governing equations (2) and (10) can be written in the flux vector form:where

3.2. Discretization of Implicit Steger Warming Flux Vector Splitting Scheme

To construct ROM, Implicit Steger Warming Flux Vector Splitting Scheme (FSM) will be applied. Finite Difference Method (FDM) will be used to discretize equation (23) and to obtain FSM scheme. By using this FSM, the eigenvalue problem will be constructed from (23). The resulting FSM scheme can be written as

3.3. Form of Eigenvalues Problem

To perform the eigenanalysis and construct ROM, it is necessary to linearize the finite difference equation in (25) [19]. The linearization can be achieved by assuming steady state in which stability perturbation is used to obtain the transient solution at each nodal point.

For linearization, the flow field variables at each time step are given bywhere represents the corresponding steady-state values and represents perturbation values.

Substituting (26) into (25) yields

Equation (27) can be simplified in the form of eigenvalue problem:where and is defined as a vector consisting of the imposed values by the boundary conditions and represents the matrix.

3.4. Construction of Reduced Order Model

To construct the ROM technique, the zero eigenvalue in the eigensystem of matrix is required. For zero forcing function , we need to consider the homogeneous part of (28) by settingwhere is defined as eigenvalues, is eigenvector, and .

Then, the diagonal matrix which contains the eigenvalues and eigenvector can be written asIn general, (30) can be written aswhere represents the diagonal matrix of eigenvalue at each time step and is the matrix with column representing the right eigenvector.

On the other hand, the left eigenvectors satisfy the following relation:where is the matrix with rows that represent the left eigenvector.

If the eigenvectors are suitably normalized, they satisfy the following orthogonality conditions:

3.5. Eigenmode Analysis

For analysis of eigenmode based on time, (29) reduces the gas flow behavior to the sum of individual nodes:Equation (34) can be written in general form aswhere is the vector of normal node coordinate.

Substituting (33) and (28) and then multiplying by give a set of uncoupled equations for the nodal coordinates :

Since the orthogonality conditions are satisfied, the eigenmode can be retained to construct ROM using (36).

4. Results and Discussion

Before analyzing the effect of different types of closing valve, the simple case of fluid (water) flow will be validated according to Provenzano et al. [5] problem. In the present study, ROM is used as numerical method to solve the governing equations (2) and (10). This current method is used to validate the results.

Figure 1 shows the results from the current method compared to those obtained by an analytical method. The results obtained using ROM are in good agreement with those of the analytical solution. The effect of water hammer is observed at pressure oscillation at different types of closing laws as plotted in Figure 1.

4.1. Effect of Different Types of Closing Valve: Case Study 1

Four different types of closing valve laws are used to test the accuracy of the solution in case of transient flow of hydrogen-natural gas mixture occurring in the pipeline.

A single horizontal pipeline composed of a compressor pumping the mixture through an iron pipe and characterized by a section of a pipeline system of  m length and  m in diameter is illustrated in Figure 2. A rapid closure valve (RCV) is placed at the downstream end, whereas the automatic closure valve (ACV) is placed at the immediate discharged side of the compressor to avoid destruction of the compressor [12].

Two parameters are used to characterize the dynamic response of the valves which are the reaction time and actuation time. The reaction time is defined as the time taken to start the valve actuation after sensing a pressure perturbation, while the actuation time is the time interval between the initial and the final positions of the valve. The actuation time is only considered for the RCV side.

Four types of closing valve laws which are classified into instantaneous, concave, linear, and convex are considered. Figure 3 shows the closing function corresponding to the different types of closing valve with different mass ratio of hydrogen-natural gas mixture. The exponent in (20a) determines the closing curve function as follows: instantaneous closing; concave closing; linear closing; convex closing.

For instantaneous closing valve, the gas flow speed changes instantly to zero. The speed of gas flow is reduced uniformly during the whole closing time when the linear closing valve is applied. Concave closing valve demonstrates rapid decrease of the speed flow at initial closing time and then a slow reduction for most of the time, whereas convex closing valve features a low decrease of the speed flow during the early closing time which increases with time.

Figure 4 shows plots of the numerically obtained results for the pressure wave distribution as a function of time for different values of the hydrogen mass ratio . The numerical results clearly show the interaction of the pressure wave generated by the types of closing valve. The results of the numerical simulation, plotted in Figure 4, show that the pressure wave oscillation is repeated every 7 s for each type of closing law.

For instantaneous closing law, the maximum pressure wave for hydrogen is 20.06 bar; for hydrogen-mixture (67%), the maximum pressure wave is 20.05 bar; for hydrogen-mixture (33%), the maximum pressure wave is 20.03 bar; and for natural gas, the maximum pressure wave is 20.01 bar. From these numerical results, the transient pressure wave of hydrogen and hydrogen-natural gas mixture are much higher compared to natural gas. For concave, convex, and linear closing valves, hydrogen has a maximum value of pressure wave compared to natural gas. Instant closing valve produces the minimum values of pressure waves compared to concave, convex, and linear closing valve.

Figure 4 gives information on the pressure wave profile as a function of the closing valve. The shape of pressure wave changes from square to trapezoidal for instantaneous closing law. For concave closing law (), the pressure wave shape changes to trapezoidal. When the value of increases () the pressure wave shape is changed to triangular. For linear closing law, the pressure wave presented a strictly triangular form. For convex closing law (), the pressure wave changes from triangular towards the trapezoidal shape and becomes pulse when (). This pulse wave is a kind of nonsinusoidal wave form that is similar to a square wave but does not have the symmetrical shape associated with a perfect square wave. However, increasing the values of will increase the computation time and pressure wave.

4.2. Effect of Closing Times: Case Study 2

In case study 2, the effects of the pressure change can be demonstrated by varying the valve closure times [25]. Two tests of different valve closure times are considered. Table 1 summarizes these closure times.

Figure 5 shows the effects of different valve closing times on the transient pressure wave for hydrogen-natural gas mixture (33%). Four different valves are considered for the purpose of simulating the results. The numerical results clearly show the interaction of the pressure wave generated by RCV with the closure time of ACV [12]. From the results plotted in Figure 5, the maximum value of the pressure wave is 20.02 bar for Test 1, which is reached 0.25 s after the valve closed instantly. This higher pressure may be lowered by reducing the closure time which is represented by Test 2.

In this case, the maximum value of the pressure wave is reduced to the value of 20.01 bar, which is reached in 2.25 s after the valve is closed. For convex valve, the maximum value of pressure wave for Test 1 is 20.24 bar, reached in 3.00 s after the valve closed, and the maximum value of pressure wave for Test 2 is reduced to 20.22 bar, which is reached 1.00 s after the valve is closed.

However, for concave and linear closing valve, decreasing the valve closing time shows an increasing pressure wave [25]. For concave valve, the maximum value of pressure wave of Test 1 and Test 2 is 20.03 bar and 20.05 bar, which reached 6.00 s and 2.25 s, respectively. For linear valve, the maximum value of pressure wave of Test 1 is 20.08 bar at 0.05 s and 20.09 bar at 2.25 s for Test 2. From the numerical results, increasing the values of will increase the pressure wave for both closing times. Closing the valve instantly takes less time to reduce the pressure compared to the convex closing law that takes more time to reduce the pressure.

4.3. Effect of Number of Polygonal Segments in the Closing Function: Case Study 3

For case study 3, the effect of number of polygonal segments in the closing function has been evaluated at different types of closing valves. Three different polygonal segments denoted by () have been tested to describe the profile and amplitude of pressure waves at 33% of hydrogen-natural gas mixture.

Figure 6 shows the closing valve function and its different polygonal segments. From Figure 6, the patterns of pressure wave of hydrogen-natural gas mixture remain the same for different number of segments at each type of closing law.

Increasing the number of segments can reduce the pressure wave of hydrogen-natural gas mixture. For concave valve, the minimum pressure wave at is 19.95 bar, compared to , where the minimum pressure wave is 20.00 bar. The minimum pressure wave of linear valve is 19.89 bar and 20.00 bar at and , respectively.

According to Provenzano et al. [5], the closing valve model gets better as more segments are included in the polygonal approach. Increasing values of polygonal segments also reduces the time to reach a minimum value of the pressure wave. From the results, plotted in Figure 6, the minimum time taken to reach the minimum pressure of hydrogen-natural gas mixture is 0.61 s at (instantaneous closing valve) compared to 1.10 s at for convex closing valve.

5. Conclusion

The relationship between the pressure waves of hydrogen-natural gas mixture with the different types of closing valve laws is determined based on the type of closing laws, closure times, and the polygonal segments of the closing function. The different closing laws are analysed based on the different mass ratio of hydrogen-natural gas mixture using the reduced order modelling technique. The transient pressure wave increases as the mass ratio of hydrogen is increased for each type of closing law.

The instantaneous closing law () gives the square form of the pressure wave. For concave closing law (), the pressure wave shape changes from trapezoidal to triangular when increases. For linear closing law (), the pressure wave is strictly in a triangular form. For convex closing valve (), the pressure wave changes from triangular towards trapezoidal shape. Increasing the value of increases the pressure wave and the time needed for computation. It is found that the instantaneous closing law gives rise to minimum pressure.

The relationship between the pressure waves of hydrogen-natural gas mixture (at 33% of hydrogen content) with various closure times and different number of polygonal segments is also determined. The numerical results show the interaction of the transient pressure wave with the closure time generated by RCV and ACV. Reducing the closure time for both RCV and ACV reduces the transient pressure wave. Closing the valve instantly takes the least time to reduce the pressure wave while the convex closing law takes the longest time to do so.

Increasing the values of polygonal segments denoted by reduces the pressure wave and time to reach the minimum value. The instantaneous closing law gives lowest pressure while the convex closing law produces the maximum pressure wave when the valve is closing. Thus, to ensure the attainment of minimum pressure within a short time, the instantaneous closing valve must be considered.

It must be noted that to reduce the effects of water hammer phenomenon, devices and procedures such as valve movement, surge tanks, and increased pipeline diameter could be considered to mitigate both high and low pressure and to reduce potential surge pressure [11, 25].

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgment

Financial support provided by Vot 00M25 and Vot 01G31, Research University Grant Scheme, Universiti Teknologi Malaysia, is gratefully acknowledged.