Академический Документы
Профессиональный Документы
Культура Документы
1
User’s Guide
PIPEPHASE 9.1 User’s Guide The software described in this guide is furnished under a written
agreement and may be used only in accordance with the terms
and conditions of the license agreement under which you
obtained it.. The technical documentation is being delivered to
you AS IS and Invensys Systems, Inc. makes no warranty as to
its accuracy or use. Any use of the technical documentation or
the information contained therein is at the risk of the user.
Documentation may include technical or other inaccuracies or
typographical errors. Invensys Systems, Inc. reserves the right
to make changes without prior notice.
Copyright Notice © 2006 Invensys Systems, Inc. All rights reserved. No part of
the material protected by this copyright may be reproduced or
utilized in any form or by any means, electronic or mechanical,
including photocopying, recording, broadcasting, or by any
information storage and retrieval system, without permission in
writing from Invensys Systems, Inc.
Trademarks PIPEPHASE, NETOPT, and Invensys SIMSCI-ESSCOR are trade-
marks of Invensys plc, its subsidiaries and affiliates.
TACITE is a trademark of Institut Français du Petrole (IFP).
OLGAS 1.1, OLGAS TWO-PHASE, and OLGAS THREE-PHASE are
trademarks of SCANDPOWER A/S.
Windows 98, Windows ME, Windows NT, Windows 2000, Win-
dows XP, Windows 2003, and MS-DOS are trademarks of
Microsoft Corporation.
Compaq Visual Fortran is a trademark of Compaq Computer Cor-
poration.
Adobe, Acrobat, Exchange and Reader are trademarks of Adobe
Systems, Inc.
All other products may be trademarks of their respective owners.
Introduction
About This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
About PIPEPHASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
About SIMSCI - ESSCOR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vi
Where to find additional help . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vi
Online Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vi
Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vi
Other Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Chapter 2 Tutorial
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Problem Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Building the Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
Entering Optimization Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-20
Specifying Print Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-28
Running the Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-29
Viewing and Plotting Results . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-30
Using the RAS to Plot Results. . . . . . . . . . . . . . . . . . . . . . . . . . . 2-31
Generate and View Excel Report. . . . . . . . . . . . . . . . . . . . . . . . . 2-33
Including Operating Costs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-34
iv Contents
Introduction
About PIPEPHASE
PIPEPHASE is a simulation program which predicts steady-state
pressure, temperature, and liquid holdup profiles in wells, flow-
lines, gathering systems, and other linear or network configurations
of pipes, wells, pumps, compressors, separators, and other facilities.
The fluid types that PIPEPHASE can handle include liquid, gas,
steam, and multiphase mixtures of gas and liquid.
Several special capabilities have also been designed into PIPEP-
HASE including well analysis with inflow performance; gas lift
analysis; pipeline sphering; and sensitivity (nodal) analysis. These
additions extend the range of the PIPEPHASE application so that
the full range of pipeline and piping network problems can be
solved.
Online Help
PIPEPHASE comes with online Help, a comprehensive online ref-
erence tool that accesses information quickly. In Help, commands,
features, and data fields are explained in easy steps. Answers are
available instantly, online, while you work. You can access the elec-
tronic contents for Help by selecting Help/Contents from the menu
bar. Context-sensitive help is accessed using the F1 key or the
What’s This? button by placing the cursor in the area in question.
vi
Other Documentation
The table below outlines the other existing PIPEPHASE documen-
tation available in a hardcopy form.
Starting PIPEPHASE
If you do not see a PIPEPHASE 9.1 icon in a SIMSCI group
window or in your Program Manager window, see the
troubleshooting section in the PIPEPHASE Installation Guide.
To start PIPEPHASE:
➤ Double-click on the PIPEPHASE 9.1 icon.
The main PIPEPHASE window appears.
To learn how to build a network, enter data, and run and optimize a
simulation, see Chapter 2, Tutorial.
Exiting PIPEPHASE
To exit PIPEPHASE, do one of the following:
➤ Choose Exit on the File menu <Alt+F,X>
➤ Double-click on the Control-menu box in the upper left hand
corner of the PIPEPHASE main window <Alt+F4>.
➤ Click on the control-menu box in the top left hand corner of the
PIPEPHASE main window or use <Alt+Space>.
➤ Select the Move option from the menu.
To provide... See...
Descriptive text You can further describe the problem using up to Simulation
four lines of 60 characters each. This description Description
appears once at the top of each page.
If you are using the Case Study facility, you may add Simulation
one line of description for each case study. You will Description
find further details about case studies later in this
chapter.
If you are using the Nodal Analysis facility, you may Simulation
add two lines of description, one for inflow and one Description
for outflow. You will find further details about nodal
analysis later in this chapter.
Input data You may use PIPEPHASE just to check your input Run Simulation
checking syntax and topology and not to perform any and View
calculations. Results
Units of Measurement
Defaults
You may use components not found in the SIMSCI library. You
must input all the necessary data for thermodynamic and transport
properties. If you need help in determining data for such
components, you may use SIMSCI’s DATAPREP program.
To specify... See...
Library All fixed property data may be accessed from ➱ Component Data,
components the SIMSCI databank. All you need to do is Library Component
supply the name of the component. Data
You may override the SIMSCI constant ➱ Component Data,
properties for any or all of the components. Edit Library
Component
You may override the SIMSCI variable SIMSCI Component
(temperature-dependent) properties for any or and Thermodynamic
all of the components. Data Input Manual
Non-library If you want to use a component that is not in ➱ SIMSCI Component
components the SIMSCI Bank, you must supply its name and Thermodynamic
and all the required properties. Data Input Manual
Petroleum Pseudocomponents
Assay Curve
Transport Properties
Gas
Gas Condensate
Blackoil
Sources
A source is a point at which fluid enters the piping system. You
define a source by supplying parameters such as composition,
temperature, pressure, and flowrate. You can have more than one
source in a network.
Compositional Sources
To specify... See...
Defined You must define the total flowrate and ➱ Compositional Source
components composition of the source stream. Components
can be either from the PIPEPHASE component
library or defined as pseudocomponents.
Assay data A source fluid may be defined by an assay ➱ Compositional Source
curve. You can combine library components
and/or petroleum pseudocomponents with an
assay curve by supplying a lightend analysis.
Viscosity To override the internally generated fluid ➱ Compositional Source
data viscosity data, you may specify a viscosity
curve in the PVT data section.
Similar To reduce redundant data entry, you may refer ➱ Compositional Source
sources to a predefined source. Parameters may be
specified to override the parameters that are
different.
To specify... See...
Steam You must define the pressure and quality of a ➱ Steam Source
sources saturated steam source. The temperature must
be specified only if the steam is superheated
(Quality=100%) or subcooled (Quality=0%).
Gas, liquid, One or more sets of fluid property data are ➱ Blackoil Source
blackoil or defined in the PVT data section. You must
condensate assign a unique set number to each data set.
sources Each source must be referred to the appropriate
data set number.
Well In-flow You may specify the IPR of a well source for a ➱ Link Device Data,
Performance single link with gas, liquid, blackoil or Inflow Performance
condensate. The IPR Model is treated as a Relationship, IPR-
device and is available from the Link window. Advanced Options
You may also supply well test data.
Similar If one source is the same as or similar to ➱ Reference Source
sources another, you may refer it to the other source.
PIPEPHASE will copy all the data from one
source to the other. You may then override the
parameters that are different.
Single links
A single link has one source, one sink, and no junctions. There are
three variables:
■ The source flowrate (which is also the sink flowrate),
■ The source pressure, and
■ The sink pressure.
You must specify two of these, and PIPEPHASE will calculate the
third.
To specify... See...
Sources You must have only one source. ➱ Source
Sinks If the source pressure and rate are known, a sink ➱ Sink, Source
pressure and rate need not be defined.
Links You do not need to specify the flowrate or pressure drop ➱ Link Device Data
in a link; all you need to define are the pipes, fittings, and
equipment. Enter the link device data in the sequence in
which the fluid flows through them. You can have any
combination of pipes, fittings, and process equipment
items, in any order.
A network generally has more than one link and one or more
junctions. The variables are the pressure and flowrate at each source
and sink. You specify the values of the variables that are known,
and PIPEPHASE will calculate the unknowns. In order not to
under- or over-specify the system, simple rules must be followed in
constructing the problem:
■ You must specify a number of knowns equal to the total num-
ber of sources and sinks.
■ You must specify at least one pressure.
■ If any source or sink flowrate is an unknown, you must supply
an estimate.
■ If you do not know a pressure at a source, sink, or junction, you
do not need to supply an estimate. You may specify estimates
to speed up convergence.
To specify... See...
Sources and You must have at least one source and at least one ➱ Source, Sink
sinks sink.
Junctions You must have a junction at the point where two or ➱ Junction
more links meet. If your network is complex, you
may speed up the solution by supplying estimates
for the junction pressures.
Links You must supply a unique name for each link. If your ➱ Link Device Data
network is complex, you may speed up the solution
by supplying estimates for flowrates through each
link.
Steam PIPEPHASE can model preferential splitting at Tee ➱ Junction
networks junctions in pure distribution networks. These
junctions can have only two outgoing and one
incoming link.
Subnetworks PIPEPHASE has a number of devices that invoke a ➱ Mcompressor,
special algorithm. You may specify the inlet Mchoke
conditions; PIPEPHASE breaks the flowsheet at the Mregulator
inlet and solves the resulting subnetworks
simultaneously and sizes the device.
l = fluid density
q = volumetric flux
d = equivalent diameter
(= actual diameter in the case of pipes, risers and tubing)
To specify... See...
Completion You may define a completion as being gravel ➱ Gravel Packed
packed (Jones) or open perforated (McLeod). Completion,
Open Perforated
Completion
Dual You may model dual completions, both ➱ Link Data
Completion concentric and parallel.
To specify... See...
Bend, PIPEPHASE uses the generalized pressure drop equation ➱ Bend,
Tee,Valve with a resistance coefficient. For bends, tees, and valves, Tee,
you can either supply the resistance coefficient directly Valve
or supply an equivalent length and have PIPEPHASE
calculate the resistance coefficient as a function of the
friction factor.
Entrance For entrances and exits you can supply the resistance ➱ Entrance,
Exit coefficient or use the default value. Exit
Contraction, For contractions, expansions, nozzles, orifices, and ➱ Nozzle,
Expansion, Venturimeters, you can supply the resistance coefficient Expansion,
Nozzle, or use the value that PIPEPHASE calculates from its Venturi,
Orifice, built-in correlations. These correlations relate the Contraction,
Venturi resistance coefficient to the Reynolds number and Orifice
specific fitting parameters such as orifice diameter,
Venturi throat diameter, contraction and expansion
angles, and nozzle diameter. For gas flow in nozzles,
orifices, and Venturimeters, the specific heat ratio is also
used in the calculation of the resistance coefficient.
Choke The pressure drop for a choke is calculated by the orifice ➱ Choke
method for a single-phase fluid or by the Fortunati Mchoke
method for a two-phase fluid. You can supply a
discharge coefficient or use the default value. MCHOKE,
a variant of CHOKE which introduces a discontinuity into
a network, uses the Fortunati model only.
Check Valve A valve that permits flow in one direction only. You can ➱ Check
supply a resistance coefficient or use the default value.
Two-phase The pressure drops for fittings are corrected for two- ➱ Bend, Exit,
correction phase flow by using either the Homogeneous flow model Entrance,
in fittings or the Chisholm model. If you do not make a selection, Valve, Tee,
PIPEPHASE will use the default method. You may supply Contraction,
values for the Chisholm parameters. Expansion,
Nozzle,
orifice,
Venturi
where:
Q = rate of heat transfer per unit length
U = overall heat transfer coefficient
A = outside surface area per unit length
DT = temperature difference between bulk fluid and outside medium
For a pipe surrounded by soil, water, or air, you define the medium
properties (and velocity of water or air). For a buried pipe, you enter
the buried depth.
For tubings you enter data that describe the properties of the annuli
and casings between the outside of the tubing and the inside of the
hole.
To specify... See...
Pipes and You may specify an overall coefficient or the ➱ Global Defaults
Tubing properties of the surrounding medium. You can Pipe Tubing
supply these values globally for all devices or for
individual devices. You also supply the ambient
temperature or geothermal gradient.
Sphering or Pigging
PIPEPHASE’s sphering calculations predict the quantity of liquid
formed when a multiphase fluid flows in a pipeline and determine
the size of the liquid slug that is pushed out when the pipe is pigged.
Sphering calculations can only be carried out for single links. The
launching station is at the inlet of a pipe. You may have
intermediate launching stations; a sphere is launched from a pipe
when the previous sphere(s) reach the inlet of that pipe.
To specify... See...
Calculation type You must specify that you want to do a sphering ➱ Network
simulation. Calculation
Methods
Fluid type The fluid must be compositional and both gas and ➱ Simulation
liquid should be present to obtain realistic results. Definition
Time Increments You may override the default time step used in the ➱ Network
McDonald-Baker successive steady-state calculation Calculation
method. Methods
Structure Data You may have only PIPE devices. You identify a pipe ➱ Pipe
with a launching station by specifying a sphere
diameter for the pipe. The first launching station
must be in the first pipe of the link.
Ground Level
Tubing
IPR
Reservoir
Ground Level
Tubing
IPR
Subsurface junction Reservoir
Tubing
IPR
Reservoir
You may have more than one well in a PIPEPHASE run. The wells
may all use one reservoir. In this case, information for the reservoir
data is entered in one IPR and accessed from other IPRs using the
GROUP name.
Multiple Completions
Ground Level
Tubing
Reservoir
IPR1 IPR2 IPR3
Subsurface junctions
Ground Level
Tubing
Length of well
You may change one parameter in the entire problem using a global
command. You do this by supplying the type of parameter you want
to change, its old value, and the new value. Only those specified
parameters with that old value will then be changed.
The items to which this type of change can be applied are identified
in Table 4-46, Chapter 4, Input Reference.
Nodal Analysis
Nodal Analysis allows you to study the overall performance of
wells, pipelines and other single link systems as a function of input
parameters and flowrates. The results are summarized in tabular
and graphical form. You can also study combinations of inflow and
outflow parameters using the multiple combination nodal analysis
option.
Nodal Analysis is performed on a single link.
Dividing the Link
You first divide your single link into two sections, separated by a
Solution Node. The section upstream of the Solution Node is called
the Inflow section and would typically be the tubing of a well. The
section downstream of the Solution Node is called the Outflow
section and would typically be the flowline from the wellhead to a
surface separator. The Solution Node, in this case, would be the
well-head node.
If you locate the Solution Node actually at the source or the sink,
then there will be only an Outflow or Inflow section respectively.
Introduction
This chapter presents the step-by-step procedure required for the
optimization of an off-line pipeline design. In the first part of this
tutorial, you will look at the optimal design based only on capital
cost considerations. Then, you will include the operating costs over
the lifetime of the pipeline (10 years) and examine the effect the
operating costs have on the overall design strategy.
Problem Description
In this simulation, a pipeline is designed to deliver gas at a rate of
1200 MMSCFD at a minimum pressure of 900 psi from two
offshore fields. Table 2-1 and Table 2-2 provide additional process
details including piping and compressor capital expenditures.
Table 2-1: Process Conditions
Offshore Field A
Distance from processing plant, miles 200
Wellhead pressure, psi 2000
Offshore Field B
Distance from field A, miles 180
Wellhead pressure, psi 2000
2-2 Tutorial
Figure 2-1: Tutorial Problem
Tip:By using the toolbar icons, you reduce the number of mouse
actions required for a selection. For example, you can click the
toolbar button to create a new simulation.
PIPEPHASE will now automatically take you through Simulation
Setup Wizard .
2-4 Tutorial
Figure 2-4: Select Simulation Type
2-6 Tutorial
➤ Enter a specific gravity of 0.69 in the Gas Gravity field and the
following composition of contaminants:
Component Mole %
Nitrogen 1.32
Carbon dioxide 0.98
Hydrogen sulfide 0.56
Component Mole %
Nitrogen 1.11
Carbon dioxide 0.88
Hydrogen sulfide 0.24
2-8 Tutorial
Figure 2-11: Fluid Property Data
Figure 2-12: Note to give information about the colors used in the GUI.
2-10 Tutorial
After leaving the Simulation Definition window, you will want to
check Input Dimensions . From the the toolbar select General/Input
Units of Measurement. This will bring up the Input Dimensions
window shown in Figure 2-15.
➤ For this problem, the flowrate basis will be Gas Volume units
of MM ft3 /day.
➤ Use the Pipe Length drop-down list box to change the default
units to miles (mi) as shown in Figure 2-15
2-12 Tutorial
To connect two nodes:
➤ Click on a source or junction (“From” node) with the left
mouse button. A red square will appear on the node, and the
border of the node will turn green to indicate that the node has
been selected.
➤ Next, click inside the square with the left mouse button and,
while holding the mouse button down, drag the cursor to
another junction or sink (“To” node).
Once a square has been selected and the cursor begins to move, all
of the connection squares in the available junction and sink nodes
will turn blue indicating a valid location to which you can connect
the link.
For this simulation, you must connect S001 to J004, S002 to J004,
followed by J004 to D003. The flow diagram should now show the
structure shown in Figure 2-17.
The next step is to enter the data for each of the sources and sinks.
2-14 Tutorial
➤ Enter the following information:
2-16 Tutorial
Figure 2-20: Link <L001> Device Data Window
2-18 Tutorial
➤ Click OK to return to the Link <L002> Device Data window.
➤ Next, you must add a compressor to this link by clicking the
compressor button on the device palette. This automatically
adds this new device after the currently selected device (i.e., the
pipe E002) and brings up the Compressor data entry window
for device E003.
➤ Enter the data given in Table 2-4 for the compressor device
E003 on link L002. The completed Compressor window should
appear as shown in Figure 2-22.
Tip:To copy or delete a device previously added to a link, highlight
that device, then click on the COPY then PASTE or DELETE
buttons on the left palette in the Link Device Data window.
2-20 Tutorial
Figure 2-24: Network Optimization Window
➤ Repeat for the other three objective parameters using the data
in Table 2-6 .
Tip:For the Compressor objective parameters, select Set Power
from the Parameters drop-down list box in the Define Objective
Parameter window.
➤ The completed Network Optimization Objective Parameters
window is shown in Figure 2-26.
2-22 Tutorial
Figure 2-26: Network Optimization Objective Parameters Window
2-24 Tutorial
Figure 2-28: Network Optimization Data Window
2-26 Tutorial
Figure 2-30: Optimization Options Window
Note: You must turn off the input reprint, select that all device
details be printed (the FULL option), and generate a database.
➤ By default,Ability to Generate Excel Database is set to FULL.
➤ Select the NONE option from the Input Reprint drop-down list
box.
➤ Select the FULL option from the Device Detail drop-down list
box. The completed Print Options window should appear as
shown in Figure 2-32.
2-28 Tutorial
➤ Select the File/Save menu option to save the simulation data
entered so far.
Now you are ready to run your simulation.
2-30 Tutorial
Table 2-9 summarizes the optimal solution for this simulation.
Table 2-9: Optimized Solution Results
Minimum Capital Cost $7,796 MM
Pipe, E002 ID 24”
Pipe, E004 ID 32.9474”
Compressor, E003 Power 18366.76 hP
Compressor, E005 Power 15949.10 hP
Source, S001 Flowrate 570.6906 MMCFD
Source, S002 Flowrate 629.3094 MMCFD
➤ Click the View button to view the plot shown in Figure 2-37.
2-32 Tutorial
Figure 2-37: RAS Plot
2-34 Tutorial
First, change the objective function to include these new costs and
rerun the optimization.
➤ Click the button on the toolbar or select the General/
Optimization Data menu option. This brings up the Network
Optimization Data window.
➤ Click the Objective Parameters button to bring up the Network
Optimization Objective Parameters window.
➤ Highlight the Compressor E005 Available Power parameter,
then click the Edit button.
➤ Change the value of the Correlation Coefficient from
4.660e-003 to 6.600e-004 as shown in Figure 2-39.
The results of these two runs show that by taking the operating costs
into consideration:
■ Smaller compressors on both sections of pipeline are needed.
■ For an increased capital expenditure of $222MM in laying
down slightly larger pipes on Link L003, operating costs over
the lifetime of the pipeline are reduced nearly 65% from $389.9
MM to $137.3 MM.
■ Overall costs are reduced 0.3% from $7,964 MM to $7,933
MM.
2-36 Tutorial
Index
A N
D O
Index I-2