Professional Documents
Culture Documents
Tutorial: Valve Closure and Transient Pressure Wave (Part 1)
Tutorial: Valve Closure and Transient Pressure Wave (Part 1)
Tutorial: Valve Closure and Transient Pressure Wave (Part 1)
Tutorial
Valve closure and transient
pressure wave (part 1)
1.1. Introduction
This basic gas-hammer simulation is intended to demonstrate a number of the different
options in BOSfluids® regarding pressure wave analysis. These options are used and
discussed to help the user understand the program and the basic physical phenomena of
pressure waves and interaction with boundary types.
The system shown in Figure 1 will be used to demonstrate the analysis of pressure waves in
a pipe with diameter variations. The system consists of a gate valve and three sections of
piping, of which the mid-section is of a larger diameter. In the gas-filled system, pressure
waves are created after the rapid closure of the valve.
In this first part of the tutorial the model is build, analyzed and the results are discussed. For
information on the basic inputs of the BOSfluids interface, please refer to the Get Started
tutorial.
20 ft
6” 20 ft
Valve
10” 20 ft
6”
Figure 1 | Model of the piping system used to illustrate pressure waves due to pipe diameter variations
Length
Element Type Parameters
(inch)
5 – 10 15 Pipe Diameter = 6”, Thickness = 0.280”
Diameter = 6”, Valve Bore = 2.93”,
10 – 12 9 Valve
Discharge Coefficient = 0.5
12 – 18 192 Pipe Diameter = 6”, Thickness = 0.280”
For the steady state analysis, the valve position will be fully open. Set the valve opening
position to 100%.
During the transient analysis, the valve will almost instantly close, with a closing time of
5ms. Set the Valve Actions of the valve to be initially 100% open and fully closed at t = 0.005
seconds, as seen in Figure 2.
Figure 3 | Standing wave patterns for various end type boundary conditions
At open ends the pressure is fixed at a single, or controlled value, and the velocity (or flow
rate) is adjusted by the solution of the flow equations to satisfy the continuity and energy
equations. These boundary conditions are typically found at the entrance to large volumes,
i.e. tanks or pressure vessels.
At closed ends the velocity (or flow rate) is fixed at a single, or controlled value, and the
pressure is adjusted by the solution of the flow equations to satisfy the continuity and
energy equations. These boundary conditions are typically found at end caps, pistons,
closed valves, or the discharges of positive displacement machines.
The type of end modeled in BOSfluids depends on the type of boundary condition specified
at the node. By default BOSfluids assumes that each pipe end, if not explicitly defined to be
otherwise, contains an end cap, i.e. is a dead end. If the end of a particular system is not a
closed end, but rather opens into a larger container or to the atmosphere, the user should
place a boundary condition at that end node. Fixed pressure boundary conditions simulate
an “open end” and allow high pressure waves to pass. Fixed flow boundary conditions
simulate a “closed end” for the pressure waves and reflect pressure waves that encroach
upon it, with the velocity remaining constant at all times.
In actual systems, fixed flow boundary conditions are usually only dealt with in letdown-
stations where sonic conditions exist at the pressure let down valve, and at the discharge of
positive displacement machines. Fixed pressure boundary conditions are more common,
and exist at the entrances and exits of vessels, and at the entrances and exits of centrifugal
equipment.
In steady state simulations, a fixed flow boundary condition is often used to determine the
steady state pressure drop required to maintain a certain flow rate. Once the pressure drop
to support the flow rate is determined, the fixed flow boundary condition is replaced with a
fixed head (pressure) boundary condition to more accurately simulate the open ended
condition at the source, (or discharge).
This is demonstrated by the following example. The heat exchanger in Figure 4 discharges a
hot liquid through the cutoff valve and into the process tower. If the process experiences
overheating problems the cutoff valve is closed in 0.5 seconds. This is a rapid closure and we
want to investigate the system for a possible water hammer event. The steady state flow
discharge from the heat exchanger is at 150 psi and 0.3 ft3/s. We know the elevation
difference between 5 and 45, but there will also be some friction losses. How can the system
be modeled?
Both the nodes 5 and 45 exist at open ends on the piping system and should be modeled as
fixed pressure boundary conditions. We only know the flow rate and the pressure at one
node however.
In this case, BOSfluids can be used to find exactly the pressure at the opposite node to
support the design flow rate. This is important because the velocity is proportional to the
flow rate and the water hammer pressure rise is proportional to the velocity. The procedure
could be as follows: Run a steady state analysis first with a fixed pressure boundary
condition of 150 psi at node 5, and a fixed flow boundary condition of 0.3 ft 3/s at node 45.
The steady state solution will calculate exactly what pressure will exist at node 45 to support
the 0.3 ft3/s flow. This pressure will then be used in a transient analysis of the system. This
will ensure a proper simulation of the boundary conditions as open ends when a transient
valve closure occurs.
In our model, both the inlet and outlet pressures are specified. In the sub-tab BCs & Nodes of
the Piping tab define the following boundary conditions for Node 5 and 40.
Next the fluid type is specified. For the predefined fluid types the fluid properties will
include a temperature dependency. When entering user defined fluid properties, the
program will assume these are constant.
For the current example, a User Defined fluid property is selected. The transported fluid in
the piping system is a gas, so the fluid type is set to Gas, with the properties as shown in
Figure 6.
Note that the calculated speed of sound is overridden since the speed of sound is explicitly
specified. If not specified it is calculated from the mean pressure and specific heat ratio.
The “used” speed of sound as found in the results may differ slightly from the specified
speed of sound, since small adjustments might be necessary during the calculation to
establish the correct grid for the characteristic equations. This can be controlled by adjusting
the Wave Speed Tolerance in the Analysis settings screen.
1) There are not too many points on the curve. We’d probably like a few more data
points.
2) The total simulation time is 0.14 seconds. At a sound speed of 1200 feet per second,
and a total length of 60 feet, a wave travels from one end to the other and back again
in: 2·L/c = 2·60/1200 = 0.1 seconds. BOSfluids produced results for a total simulation
time that is 40% longer than the wave travel time. If the output from this calculation
was to be used in a pipe stress program it is usually desirable to produce at least five
peaks of the lowest resonance. In this case that would mean extending the time to 0.5
seconds.
To improve the results, return to the analysis settings, Scenarios Analysis. The total
Simulation Time is found under Transient settings. If left unspecified BOSfluids will
automatically choose a simulation time based on the transient actions specified in the
problem, the length of the system and lowest occurring frequencies (if specified). In general
the simulation time is sufficient, but the user is encouraged to always check the results if all
of the expected transient effects are within the reported time frame. In this case due to the
rapid closure of the valve (time required for the transient actions is very short) and the
limited length of the piping system, the simulation time is relatively short. Increase the
simulation time to 0.2 seconds, see Figure 8.
The time step during the transient analysis is usually very short. To reduce the amount of
output data, BOSfluids only reports at a multiple of this internally used time step. The
options for the output data are found under Output settings. The Output Interval can be
specified and also the start and end time of the output data can be specified to further
reduce the amount of output data when necessary. Specify the output interval to be 1 ms
(=0.001 s), see Figure 8.
In this simulation report it can be seen that the internally used calculation time step is 0.4 ms
and the requested output time step is 1 ms. This means every 3 time steps data is reported to
the results file so the effective output time step is 1.2 ms.
When the pressure plot at node 18 is again produced it looks much better, see Figure 10.
Several pressure peaks are seen. The first pressure wave increases the pressure, due to the
valve closure. The second (negative) pressure peak is produced by the initial pressure wave
reflecting at the diameter change at node 30. The third pressure peak is from the pressure
wave reflecting at the boundary condition at node 40 and decreases the pressure at node 18.
From Figure 10 it can be seen that the time between the first pass of the pressure wave and
the reflection from the boundary condition is 0.084 - 0.019 = 0.065 seconds. The distance
covered by the pressure wave is twice the distance between node 18 and node 40 (= 84 ft).
With the specified wave speed of 1200 ft/s, the theoretical time to cover 84 ft is 84/1200 = 0.07
seconds, so this agrees with the results from the simulation.
Figure 11 | Description of the different type of wave interaction occurring in the pipeline
To compare the results at multiple nodes in the same plot, a node group needs to be created.
Node groups can be made in the BCs & Nodes tab. Select All in the Node Groups list, and
select 18, 22, and 32 while holding the ctrl button in the Nodes list. Click the create group
icon . Click the add group button + and create a new node group called Node 18, 22 and 32.
Without running the simulation return to the Results tab. At the 2-D Output, select Node
Group Node 18, 22 and 32. Select the Main scenario and Pressure from the data set and plot
the results, see Figure 12.
Figure 12 | Comparison of pressure waves in 6” and 10” pipeline at node 18, 22 and 32
The diameter of the pipe has a significant effect on the line pressure, as can be seen by
comparing the pressure wave at nodes 18 and 22 in Figure 12. These nodes are four feet
apart, but have different diameters. Node 18 is in the 6” pipe section and node 22 is in the
10” pipe section. Compare these with node 32 which is in the 6” pipe section just
downstream of the diameter change from 10” to 6”.
The pressure peaks are smaller in the larger diameter system. The pressure waves
originating from the valve closure increase the local pressure, while pressure waves
reflecting information from the fixed pressure boundary condition decrease the local
pressure. Eventually the pressure downstream of the valve will reach a steady state pressure
of 23 psi.
4. CONCLUDING REMARKS
This example demonstrates the interaction of pressure waves reflecting from diameter
changes and open and closed end boundary conditions. It is important the user develops an
intuitive feel for how a physical system behaves, so the results of a simulation can be
compared to what would be physically expected. By adjusting the output interval and
simulation time it can be confirmed that the transient behaviour is properly captured in the
output. It is also wise to make it common practice to check the prescribed values, like the
pressure at the boundary conditions and the valve opening transient.