Professional Documents
Culture Documents
Schlumberger Proprietary: No
Disclaimer: The user defined plugin described in this documentation was developed independently
based on the published PIPESIM plugin architecture (see “plugins” topic in PIPESIM User Guide). Plugins
may be used to add functionality to PIPESIM not presently available in the commercial release and/or to
prototype functionality that may eventually be added natively to PIPESIM. As such, the plugin described
here has not undergone the same level of rigorous testing performed on the commercial PIPESIM
software and should therefore be considered Beta quality (i.e. not officially supported). Feedback to the
author is encouraged.
Contents:
How to Register
How to Use
Technical Description
References
Troubleshooting
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
How to Register
Note: when sharing models with other users, they must first register the same plugin.
How to Use
Once registered, you may insert a valve/fitting into the surface network schematic by dragging from the
Insert Tab as shown below:
You will see the fitting in the network schematic and may edit its properties by double-clicking on the
object.
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
All other properties have default values shown in blue which you should edit to reflect the actual fitting
data. It should be noted that the specifications are fixed and some items may not be relevant for the
method or fitting type selected. These situations are explained in the property descriptions in the table
below.
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
Equivalent length Specify the number of pipe diameters such that the pressure loss is
computed, using the appropriate single phase or multiphase
procedures, to be equal to that for a horizontal section of pipe with a
specified roughness and a length equal to the product of the specified
multiplier and diameter. The specified value will be used if the
Equivalent Length Method is selected and ignored otherwise.
Running Simulations:
If a Valve or Fitting is defined, it will be used in all PIPESIM simulation tasks. Certain tasks (PT Profile,
Nodal Analysis and System Analysis) allow you to select any fitting property as a sensitivity variable.
Results:
A number of calculated results are provided as output. Detailed results are listed under the Node
(equipment) results. For single branch operations (System Analysis, PT Profile, Nodal Analysis) these
may be plotted as well on System Plots.
To view detailed results of the valve/fitting, from the Node/Branch or Profile results tab (Network
Simulation) or the System Results or Profile tab (PT profile, Nodal Analysis, System Analysis), filter on
“User Equipment” and select the row as shown below:
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
Technical Description
Pressure losses occurring across valves and fittings may be modeled using several approaches.
Generally, fitting losses are minor compared to pressure losses occurring in pipelines, however, for cases
such as piping systems, the combined effects of fitting losses may be substantial.
The pressure drop across the fitting according to the following equation:
𝐾𝑉𝑚2 𝜌𝑚 (1.1)
∆𝑃 = 𝑃2 − 𝑃1 = −
2𝑔𝑐
Where,
(1.2)
𝑉𝑚 = 𝑉𝑠𝑙 + 𝑉𝑠𝑔
(1.3)
𝜌𝑚 = 𝜌𝑙 𝐻𝑙 + 𝜌𝑔 (1 − 𝐻𝑙 )
And,
This equation is used for all four methods described below, with the only difference being in the way the
K value is calculated – specifically 𝐾𝑓 . The K value itself is comprised of 3 terms:
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
The first term in the K equation, Kf, represents the friction due to the shape of the pipe fitting and is the
only term that differs between methods. Kf may optionally be user specified – to do this, select any
method (except equivalent length) and enter a Kf value. The second term is the resistance due to
sudden contraction through any constriction in the fitting and the third term is the resistance due to
sudden expansion after a restriction.
A valve coefficient may be specified as an alternative to Kf. The valve coefficient, Cv, is defined as:
890.9𝑑14 (1.6)
𝐶𝑣 = √
𝐾𝑓
The valve coefficient Cv is defined as the flow rate of 60°F water (in gpm) which can be passed by a valve
with a pressure differential of 1 psi where the minor diameter is in inches.
The Beta term represents the ratio of contraction – that is the minor diameter divided by the major
diameter. If the major diameter is not specified, the nominal diameter of the fitting is used.
Note: For reducers and expanders, the Hooper and Darby methods are expressed differently – refer to
tables below.
Where 𝑓𝑡 is the turbulent friction factor calculated using the Crane1 method. T lists various L/D values
used for different valves and fittings based on this approach.
This approach does not distinguish between laminar and turbulent flow that may occur in the equivalent
pipe length and also does not properly account for the exact scaling of valves and fittings.
Crane Method
The Crane method uses a more rigorous approach to calculate K values based on geometric parameters
associated with valves and fittings. However, this method assumes turbulent flow and does not reflect
any Reynolds number dependence.
(1.8)
𝐾𝑓 = 𝐾𝑐 𝑓𝑡
The full set of equations used to calculate these K values are given in Crane Technical paper 4101.
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
Hooper 2K Method
The Hooper 2K Method may also be used for calculating pressure losses across valves and fittings. This
method addresses two of the shortcomings of the Crane method in that it accounts for the Reynold’s
number and partially adjusts for scaling effects. For this method, the resistance coefficient is calculated
using the equation,
𝐾1 1 (1.9)
𝐾𝑓 = + 𝐾2 [1 + ]
𝑅𝑒 𝐷
Where,
𝐷
( ) 𝑉𝑀 𝜌𝑁𝑆 (1.10)
𝑅𝑒 = 12
𝜇𝑀
And,
𝐾𝑓 = resistance coefficient
𝐾1 = Hooper K1 parameter
𝐾2 = Hooper K2 parameter
𝐷 = pipe inside diameter (inch)
𝑉𝑀 = Fluid mixture velocity (ft/s)
𝜌𝑁𝑆 = Fluid mixture density (lbm/ft3 )
𝜇𝑀 = mixture viscosity (lb/ft-s)
𝑅𝑒 = mixture Reynolds number
Vm is defined by equation (1.2) and 𝜌𝑁𝑆 is defined using equation (1.3). The downstream pressure P2
can then be computed using equation (1.1).
Darby 3K Method
The Darby 3K method is generally considered to be the more advanced method and is recommended.
This method is essentially an extension of the Hooper 2K method to better account for scaling effects.
𝐾𝑚 𝐾𝑑 (1.11)
𝐾𝑓 = + 𝐾𝑖 [1 + 0.3 ]
𝑅𝑒 𝐷
Where,
𝐾𝑓 = resistance coefficient
𝐾𝑚 = Darby Km parameter
𝐾𝑖 = Darby Ki parameter
𝐾𝑑 = Darby Kd parameter
𝐷 = pipe inside diameter (inch)
𝑅𝑒 = mixture Reynolds number (eqn. 1.9)
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
E
Length Crane Hooper Hooper Darby Darby Darby expansion contraction
Reducer: Sudden/Sharp 0 0.5 0.6 0.48 1.92 0.6 1.6 0 see A-4 below
Reducer: Concentric: 60 deg Taper 0 0.5 0.6 0.48 1.92 0.6 1.6 0 see A-4 below
Reducer: Eccentric: 45 deg Taper 0 0.5 0.6 0.48 1.92 0.6 1.6 0 see A-5 below
Expander: Sudden/Sharp 0 0.5 2 0.8 3.2 5.2 2.6 see A-6 below 1
Expander: Concentric: 60 deg Taper 0 0.5 2 0.8 3.2 5.2 2.6 see A-6 below 1
Expander: Eccentric: 45 deg Taper 0 0.5 2 0.8 3.2 5.2 2.6 see A-7 below 1
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
𝜃
𝑖𝑓 𝜃 < 45°: 𝑏 = 2.6 sin ( )
A-2 2 same same
𝑒𝑙𝑠𝑒: 𝑏 = 1
𝜃
A-3 𝑏 = sin ( ) same same
2
10
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
Hooper 2K Darby 3K
𝑅𝑒 ≤ 2500: 𝑅𝑒 ≤ 2500:
160 1 4 𝜃 160 1 4 𝜃
𝐾 = [(2𝐾1 + ( )) (( ) − 1)] √sin ( ) 𝐾 = [(2𝐾𝑖 + ( )) (( ) − 1)] √sin ( )
𝑅𝑒 𝛽 2 𝑅𝑒 𝛽 2
B-1 𝑅𝑒 > 2500: 𝑅𝑒 > 2500:
1 2 1 2 𝜃 1 2 𝜃
𝐾 = (𝐾1 + 𝐾2 ) ( ) (( ) − 1) √sin ( ) 𝐾 = (𝐾𝑖 + 𝐾𝑚 ) ( ) √sin ( )
𝛽 𝛽 2 𝛽 2
𝑅𝑒 ≤ 2500: 𝑅𝑒 ≤ 2500:
4
160 1 𝜃 160 1 4 𝜃
𝐾 = [(2𝐾1 + ( )) (( ) − 1)] 1.6 (sin ( )) 𝐾 = [𝐾𝑑 (2𝐾𝑖 + ( )) (( ) − 1)] (sin ( ))
𝑅𝑒 𝛽 2 𝑅𝑒 𝛽 2
B-2 𝑅𝑒 > 2500: 𝑅𝑒 > 2500:
1 2 1 2 𝜃 1 2 𝜃
𝐾 = (𝐾1 + 𝐾2 ) ( ) (( ) − 1) 1.6 (sin ( )) 𝐾 = 𝐾𝑑 (𝐾𝑖 + 𝐾𝑚 ) ( ) (sin ( ))
𝛽 𝛽 2 𝛽 2
𝑅𝑒 ≤ 4000: 𝑅𝑒 ≤ 4000:
4
1 𝐾 = 𝐾𝑖 (1 − 𝛽 4 )
𝐾 = 𝐾1 (1 − ( ) ) 𝑅𝑒 > 4000:
𝛽
B-3 𝑅𝑒 > 4000:
2 𝐾 = (1 + 𝐾𝑚 )(1 − 𝛽 2 )2
1 2
𝐾 = (1 + 𝐾2 ) (1 − ( ) )
𝛽
𝑅𝑒 ≤ 4000: 𝑅𝑒 ≤ 4000:
1 4 𝜃
𝐾 = 𝐾1 (1 − ( ) ) 𝐾 = 𝐾𝑖 (1 − 𝛽 4 ) (sin ( ))
𝛽 2
𝑅𝑒 > 4000:
B-4 𝑅𝑒 > 4000:
2
1 2 𝜃
𝐾 = (1 + 𝐾2 ) (1 − ( ) ) 𝐾 = 𝐾𝑑 (1 − 𝐾𝑚 )𝛽4 (sin ( ))
𝛽 2
Table B: Expansion/Contraction resistance coefficient formulas for Hooper & Darby methods
11
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
The approach PIPESIM uses for sudden expansions and contraction is described as follows.
When a change in pipe diameter occurs, the junction between the non-matching diameters are assumed
to be straight-edged, and to cause pressure reduction due to turbulence effects. This approach is based
on the method described by Perry5.
𝐾𝑉𝑚2 𝜌𝑚 (1.12)
∆𝑃 =
144 ∗ 2𝑔𝑐
Where for expansions,
𝑎1 2 (1.13)
𝐾 = (1 − )
𝑎2
Notes:
1. Eqn. 1.13 is fitted to a straight line from data in Perry and is very close to Crane1 equation 2-10
2. The calculation is skipped for Reynolds numbers of less than 2000
The results of this calculation are only reported in the output file if the pressure loss exceeds a specified
limit. By default this limit is 10 psi, however this can be changed by entering the following single branch
keyword in the Simulation Settings > Advanced menu:
OPTIONS SECLIM = X
Where X is the threshold (in psi units) below which SEC losses are not reported. When SEC losses are
reported, they appear in the output file as shown in this example:
12
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
Note: By default the engine output file is not shown. To display the engine output file, go to Workspace
> Options > Advanced and select the option to “Show Engine Output Files”.
13
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
References
1. Crane Co.: "Flow of fluids through valves, fittings and pipe", Crane Technical Paper No. 410, New
York, 1988.
2. Hooper, W. B.: “The Two-K Method Predicts Heat Losses in Pipe Fittings”, Chemical Engineering.
88, 17, p. 97-100, August 24, 1981.
3. Darby, R. “Correlate Pressure Drops through Fittings”, Chemical Engineering, Pg. 101-104, July,
1999.
4. Darby, R. “Chemical Engineering Fluid Mechanics”, Second Edition, Taylor and Francis, 2001.
5. Perry, R. H., Green, D.W.: “Perry’s Chemical Engineering Handbook”, 7th ed., McGraw-Hill, 1997.
14
Schlumberger-Private
PIPESIM User Defined Plugin Documentation: Valves and Fittings
Troubleshooting
Solution:
1. Right-click on the PIPESIM Desktop icon or its listing from the Start Menu and select
“Properties”.
2. From the “Compatibility” tab, select the check box “Run this program as administrator”.
3. Select “Apply”
• C:\ProgramData\Schlumberger\Production
• C:\Program Files\Schlumberger
Issue: On occasion (after copying/pasting a valve/fitting) the properties are not visible:
15
Schlumberger-Private