Professional Documents
Culture Documents
Contractor 1987
Contractor 1987
Introduction
Fluid transients in pipelines caused by valve operation can the total time of valve closure (tc = nL/a s) is divided into a
be controlled in many ways so as to result in lower maximum number of time stages. At each time stage, the valve can be
pressures in the pipeline. These methods which are capital- operated at any one of m discrete openings T, which range
intensive include the use of air chambers, surge tanks, relief from unity to zero. These m openings are the different states
valves and surge suppressors. Another effective way to control at which the system can be operated. At any given stage and
transients is to operate the valve in a prescribed manner so that state of the system, m values of the pressure in the pipeline
the magnitude of the transient pressures is reduced. This near the valve can be determined using the waterhammer
method is referred to as valve stroking. Numerical procedures equations and the m valve openings at the previous stage. Of
to close a valve in such a way as to limit the maximum pressure these m pressures, a single value has to be selected which gives
to a given value are available and have been verified ex- a minimum pressure rise from the previous stage to the present
perimentally [1-3]. These methods not only limit the max- stage. This procedure is repeated for all other states at this
imum pressure to a given value but also provide uniform flow stage and repeated again for all the remaining stages. At the
conditions in the pipe at the end of valve closure. Such final stage, the value of r is fixed and the final minimization
uniform flow conditions may be desirable and/or necessary in performed. Details of this procedure are given in the following
certain situations. On the other hand, there may be situations, sections. The best way of illustrating this procedure is by ap-
where it is desirable to minimize the maximum pressure in the plying it to a given pipeline system. Such a pipeline system is
pipeline even if there are pressure fluctuations at the end of shown in Fig. 1. This procedure remains basically the same,
valve closure. Thus, the problem in such situations can be when dealing with valve opening or when studying valve
defined as determining the gate-operating policy in a specified closure with constraints.
time period so as to minimize the maximum transient pressure,
with or without constraints. One method of solving this Waterhammer Equations
problem has been suggested by Driels [6]. He has developed a
computer program that minimizes the pressure rise when a Waterhammer in a pipeline is governed by the following
valve is closed in two stages. The two stages represent two suc- partial differential equations of continuity and momentum
cessive linear rates of valve operation to close the valve. A [3]:
simplex search algorithm is used to find the two speeds that dh dv
will minimize the pressure surge. He has shown that substan- - + • =0 (1)
g dx
tial reductions in pressure can be achieved.
Dynamic programming appears to be a viable technique dh dv
among the many optimization techniques available [4, 5]. In + J-V\V\ = 0 (2)
dx dt 2D
the application of dynamic programming to valve stroking,
Using the method of characteristics, this pair of partial dif-
ferential equations is converted to the following two pairs of
Contributed by the Pressure Vessels and Piping Division for publication in the ordinary differential equations:
JOURNAL OF PRESSURE VESSEL TECHNOLOGY. Manuscript received by the g dh dv f , , dx
Pressure Vessels and Piping Division, September 11, 1985; revised manuscript (3)
received April 17, 1986. (C+):— r - + —T- + ^rp\v\ = 0,—— = +a
K
' a dt dt 2D dt
94 / Vol. 109, FEBRUARY 1987 Copyright © 1987 by ASME Transactions of the ASME
-Total
Lit]
Ax = L/10
- L = 4030 f t . (1228 m)
Fig. 1 Pipeline system
1.0
.75
.25
Nomenclature
1.0
.8
.4
.2
4 5
170
Optimal Gate-Closins Policy
1.0
0.8
• 0.6
« •• 0.4
•• 0.2
0.8
•0.6
-0.4
0.2
5 6
Time i n L/a Sees
Fig. 5 Optimal valve closure for pipe with high friction
o.t
-0.6
0.4
0.2
-26
2 3 4 5 6
Time in L/a Sees.
Fig. 6 Optimal, monotonic valve closure for pipe with high friction
0.6
O-0.4
0.2
3 4 5
Time in L/a Sees.
Fig. 7 Optimal gate opening policy JM = 22
to 22, 32, 52, 62 and 82. The maximum pressures for each of straints can also be imposed, e.g., specifying a maximum rate
these cases and the maximum pressures for linear valve closure of valve closure.
in those times are given in Table 1. Finally, an application to gate opening is provided in Fig. 7.
It can be seen that the gate-closing policy obtained from The gate is to be opened in JM =22, and the gate-opening
dynamic programming results in much lower pressures than policy shows that the valve opens from T = 0 to T = 0.38 at J= 1
linear valve closures, especially for short times of closure. For and from 7 = 0.38 to T = 1 . 0 at 7=21. The lowest pressure
long times of closure, the rewards of dynamic programming reached is 89 ft (27.1m). If the valve is opened linearly in the
diminish and the computer costs of dynamic programming same time (JM=22\X the lowest pressure is 67 ft (20.4m). In
escalate rapidly as JM increases. both these cases, substantially steady flow is reached in 6L/a
The results shown in Figs. 3 and 4 indicate that the optimal s. Use of dynamic programming applied to gate opening can
gate-closing policy consists of closing the gate in steps at / = 1, be especially helpful, if water column separation can be avoid-
21 and 41 with the gate remaining more or less constant in be- ed at the valve. In any situation, where water column sepira-
tween those times. This pattern of gate closure is true for sim- tion is likely to occur, a constraint can be imposed limiting the
ple pipe systems with low or moderate frictional resistance. minimum pressure to a predetermined value.
With no frictional resistance both the gate opening T and the
pressure change in steps and remain constant in between the Discussion of Results
steps. If friction increases, the gate-closing policy changes
slightly because of the reflections returned at the valve due to The results of the optimal gate-closure policies described in
frictional effects. When the frictional effects are large, the the previous section can be explained in terms of the physical
gate-closing policy will still involve step movements; however, process of wave propagation. While it may be conjectured that
the valve will need to be opened between these steps changes. the optimal policy would turn out to be one in which the valve
Such a gate-closing policy is shown in Fig. 5, for the case of would have to be closed gradually and continuously, the op-
the Darcy-Weisbach friction factor / = 0.1 and JM= 42. The timal results indicate the opposite. Thus, the lowest maximum
maximum pressure head is equal to 160 ft (48.8m). The gate- pressure is obatined, when the valve closes instantaneously to
closing policy shows the abrupt gate movements at / = 1, 21 some opening r t . This creates a positive pressure surge that
and 41. However, the gate actually has to be opened from travels to the reservoir, gets reflected to a lower pressure and
T = 0.16 to r = 0.40 between J= 2 and / = 20 in order to prevent returns to the valve in 2L/a s. Upon arrival of this low
the reflected pressure waves from increasing the pressure at pressure at the valve, the valve is closed instantaneously to
the valve excessively. While this gate-closing policy is in- another opening T2. The pressure rise due to this closure
teresting, it may not be feasible or practical to operate the gate balances the low pressure of the returning wave, resulting in a
in that manner. When confronted with such a problem, net pressure that is the same as the pressure at the time of the
dynamic programming with one or more constraints can be first closure T{. In between the valve movements, the valve
used to obtain the minimum pressure. In this case, the con- opening remains essentially constant. This pattern of valve
straint can be superimposed, that the gate shall only close closure continues till the valve is completely closed in tc s. For
monotonically. The results of such a run are shown in Fig. 6. the case of frictionless flow, the graphical solution of
It can be seen that the valve closes monotonically and that the waterhammer can be used to obtain TU T2 • • • and hmax
maximum pressure of 165 ft (50.3m) is only slightly higher analytically. When friction is to be taken into account by
than the run without the constraint, 160 ft (48.8m). Other con- lumping its effects at one location, a trial and error procedure