Beruflich Dokumente
Kultur Dokumente
PIPEPHASE 9.6
$SSOLFDWLRQ%ULHIV
March 2013
All rights reserved. No part of this documentation shall be reproduced, stored in a retrieval system, or
transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without the
prior written permission of Invensys Systems, Inc. No copyright or patent liability is assumed with
respect to the use of the information contained herein. Although every precaution has been taken in the
preparation of this documentation, the publisher and the author assume no responsibility for errors or
omissions. Neither is any liability assumed for damages resulting from the use of the information
contained herein.
The information in this documentation is subject to change without notice and does not represent a
commitment on the part of Invensys Systems, Inc. The software described in this documentation is
furnished under a license or nondisclosure agreement. This software may be used or copied only in
accordance with the terms of these agreements.
For comments or suggestions about the product documentation, send an e-mail message to
ProductDocumentationComments@invensys.com.
All terms mentioned in this documentation that are known to be trademarks or service marks have been
appropriately capitalized. Invensys Systems, Inc. cannot attest to the accuracy of this information. Use of
a term in this documentation should not be regarded as affecting the validity of any trademark or service
mark. Invensys, Invensys logo, PIPEPHASE, INPLANT, and SimSci-Esscor are trademarks of Invensys plc, its
subsidiaries and affiliates.
Table of Contents
Introduction
About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v-iii
Example Simulation Features . . . . . . . . . . . . . . . . . . . . . . . . . . . v-iv
ii Table of Contents
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-82
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-82
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-84
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-86
Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-86
Example 13 - Hydrate Analysis for Compositional Fluids . . . . .1-89
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-89
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-89
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-91
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-93
Example 14 - Choke Sizing and MChokes in PIPEPHASE . . . .1-97
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-97
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-97
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-99
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-100
Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-100
Example 15 - The Gilbert Choke Model in PIPEPHASE . . . . .1-103
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-103
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-103
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-105
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-107
Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-107
Example 16 - The New DPDT Device - Can be used to Model
Compressors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-108
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-108
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-108
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-111
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-112
Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-112
Example 17 - Generate a Vertical Flow Performance (VFP) Table to
Represent a Well . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-113
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-113
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-113
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-115
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-117
Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-119
Example 18 - Using the Vertical Flow Performance (VFP) Table to
Represent a Well . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-120
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-120
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-120
iv Table of Contents
Introduction
Introduction
Table 1-1: Features Used in Example (1-10) Simulations
Statement Feature Example Number
1 2 3 4 5 6 7 8 9 10
Individual enthalpy,
density
TRANSPORT System
Component Data Category of Input
LIBID Library components
PETROLEUM Petro components
CHARACTERIZE Property method
PVT Data Category of Input
SET Gravity
Viscosity
Contaminants
Specific heat
LIFTGAS Gravity
GENERATE Property tables
Structure Data Category of Input
SOURCE Set number, pressure/rate
Pressure estimate
Ref. source
Temperature
Quality (steam)
Composition
TBP Assay curve
LIGHTENDS Defined components in
assay
WTEST Well inflow performance
relationship
SINK Rate estimate
Fixed pressure
JUNCTION Pressure estimates
PIPE Length/ID
Elevation change
Heat transfer parameters
Pipe data thickness,
conductivity
Sphere diameter
Introduction
Table 1-1: Features Used in Example (1-10) Simulations
Statement Feature Example Number
1 2 3 4 5 6 7 8 9 10
SENSITIVITY Inflow
Outflow
Single Link
Gas lift
PVT generation
Compositional
Blackoil
Condensate
Liquid
Gas
Steam
Isothermal
Sphering
FCODE Correlations for
flow device
Liquid holdup
corrections
DEFAULT Medium and its
parameters
Flow device
details
Conductivities,
insulation
thickness
SEGMENT Horizontal and
vertical
OUTDIME- Alternative
NSION output
PRINT Output options
Introduction
Statement Feature Example Number
11 12 13 14 15 16 17 18 19 20
LIGHTEND Defined
S components in
assay
WTEST Well inflow
performance
relationship
SINK Rate estimate
Fixed pressure
JUNCTION Pressure
estimates
PIPE Length/ID
Elevation
change
Heat transfer
parameters
Pipe data
thickness,
conductivity
Sphere
diameter
RISER Length/
Elevation
ANNULUS Depth
TUBING Length, depth
Structure Data Category of Input, continued
Detailed heat
transfer
BEND K or KMUL
2-phase flow
model -
Chisholm or
Homogeneous
Non-standard
PUMP Fixed power
CHOKE
COMPRE- Fixed pressure
SSOR
CONTRA- Angle
CTION
COOLER Tout
DPDT Curve
EXIT
ORIFICE
TEE
VALVE
VENTURI- CPCV
METER
EXPANSI- Angle
ON
MANIFOLD
GASLIFT Capacity
calculated
Sizing Data Category of Input
CHANGE Global
Individual
Sensitivity Analysis Data Category of Input
SENSITIVIT Inflow
Y
Outflow
Introduction
Table 1-3: Features Used in Example (21 A & 21B) Simulations
Introduction
Statement Feature Example
Number
21 A 21B
Structure Data Category of Input, continued
Detailed heat transfer
BEND K or KMUL
2-phase flow model -
Chisholm or
Homogeneous
Non-standard
PUMP Fixed power
CHOKE
COMPRESSOR Fixed pressure
CONTRACTION Angle
COOLER Tout
DPDT Curve
EXIT
ENTRANCE
ORIFICE
TEE
VALVE
VENTURIMET CPCV
ER
EXPANSION Angle
COMPLETION Gravel packed
MANIFOLD
Gas Lift Data Category of Input
GASLIFT Capacity calculated
Sizing Data Category of Input
DEVICE All devices
Casestudy Data Category of Input
CHANGE Global
Individual
Sensitivity Analysis Data Category of Input
SENSITIVITY Inflow
Outflow
Simulation Model
In this example (see Figure 1-2), PIPEPHASE is used to simulate
the transfer of solvent from an atmospheric storage tank to an
elevated header tank at a rate of 100 gpm. The pump is rated at 10
HP but its discharge pressure is limited to 30 psig. The user needs to
calculates the pressure drop through the system to ensure that the
pump is adequately sized. Any temperature changes along the
piping can be ignored (i.e. assume isothermal heat transfer).
The inside diameter of the pipe and elbows are 3.068" and 3"
respectively. All elbows are 90 with a friction factor multiplier
(Kmul) of 30. The Kmul for the gate valve is 13.
The solvent is defined as a single-phase liquid and its physical
properties are entered into the Single Phase Liquid PVT Data dialog
box.
1. Fluid Property Data dialog box is opened by selecting PVT
Data from General menu or by clicking the PVT Data icon
.
2. Click Edit in Fluid Property Data dialog box to display Single
Phase Liquid PVT Data dialog box (see Figure 1-3 ).
The gravity is the only mandatory property required but viscosity
and/or specific heat data should always be supplied if available.
Otherwise these properties will be estimated from the gravity.
Case Execution
If alternate output dimensions (SI) are requested in addition to those
used for the input data, select Output Units of Measure from
General menu to specify the output units (see Figure 1-4). When
the simulation is run the resulting output file displays results in both
the original user specified Unit of Measurements (UOMs) and SI.
It is important to note that if the user generates an Excel report, only
the Output UOMs will be displayed. Excel reports unlike the ASCII
Output reports only support a single UOM set. Normally, the UOM
set corresponds to the UOM set defined in the PIPEPHASE
simulation. If the user specifies an Output UOM set, the Excel
report will automatically use the output UOM set and ignore the
original UOM set.
Results
1. Select File/Run.. or click to display Run Simulation and
View Results dialog box. Click Run to solve the network.
Figure 1-5: Run Simulation and View Results Dialog Box
Note: The generation of Excel output reports does take some time
and therefore, users should ensure that their simulation has been
350
300
250
Pressure, KPA
200
150
100
50
0
0 10 20 30 40 50
Distance from Inlet, M
Fluid
Excel report displays results in one set of units only. In this case the
output UOM set.
Simulation Model
In the simulation model, EX2_BLACKOIL-WELL, recent
reservoir data including a Vogel coefficient for the well is provided.
The well tubing is deviated from the vertical and the flow line from
the wellhead increases in elevation by 15m along its length. A 1.0"
choke is placed at the wellhead (See Figure 1-7).
$
$Sensitivity Analysis Data Section
$
GSENSITIVITY ANALYSIS LINK DATA
$
LINK NAME=LINK
NODE NAME=CHK1
FLOW RATE=40, 50, 60, *
70
DESCRIPTION INFLOW= 450 BAR, 400 BAR, *
350 BAR
DESCRIPTION OUTFLOW= 3 1/2 IN DIA, 4 IN DIA, *
4 1/2 IN DIA, 5 IN DIA
INFLOW NAME=RES, *
PRES=450, 400, 350
OUTFLOW NAME=LINE, *
ID=3.5, 4, 4.5, 5
$
Simulation Model
Crude oil is heated before entering refinery distillation columns for
separation into various petroleum products. The user is required to
determine the pressure losses through the network. The user must
also investigates the effect of raising the inlet pressure and of using
larger diameter pipes.
$
ASSAY CHARACTERIZE=LK, CONVERSION=API94, CURVEFIT=IMPR
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=1, NOFR
$
TOLERANCE PRESSURE=1
$
$Thermodynamic Data Section
$
THERMODYNAMIC DATA
$
METHOD SET=SET01, SYSTEM=GS, ENTHALPY=LK, *
DENSITY(V)=LK
$
WATER PROPERTY=Super
$
KVALUE BANK=SimSci
$
$PVT Data Section
$
PVT PROPERTY DATA
$
GENERATE SETNO=1, SOURCE=FEED, TEMP=0, *
DT=30, NT=16, PRES=10, *
DP=40, NP=4, PRINT=LDEN
SET SETNO=1, SET=SET01
$
$Structure Data Section
$
STRUCTURE DATA
$
SOURCE NAME=FEED, IDNAME=FEED, PRIORITY=0, *
SETNO=1, SET=SET01, PRES=114, *
Case Execution
Heat exchanger in the simulation is modeled as a DPDT device,
where the temperature and pressure changes are entered as
functions of the mass flow rates.
Results
Click Run and solve the simulation.Two case studies are performed
after the base case to investigate the effect of the feed pressure and
pipe diameter. Each case study produces a completely separate
output report and a case study summary is generated at the end of
the report (see Figure 1-18).
Simulation Model
An obsolete, cross - country oil pipeline is to be converted to gas
service. A five stage compressor is available and will be installed at
the inlet of the pipeline. The pipeline runs over rough terrain and is
buried 36 inches below the surface. Most of the pipeline has 1.5
inches of insulation with a thermal conductivity of 0.0116 BTU/hr-
ft2-F. However, a portion of the pipeline is not insulated. Even
though the insulation is a liability for gas flow, it would be too
expensive to remove it.
Simulation Model
Wet gas is produced offshore and subsequently transported to the
shore through a 32-inch pipeline. The wet gas passes through a
booster platform where the gas is separated and compressed. The
gas is then re-combined with the condensate and sent to the onshore
destination.
The pipeline is coated with concrete for negative buoyancy and the
heat transfer coefficient for heat loss to the sea-water is estimated at
0.16 BTU/hr-ft2-F. The risers and downcomers are bare and heat
transfer coefficients for heat loss to the water and air are computed
to be 1.60 and 0.25 BTU/hr-ft2-F, respectively.
1.00E+02
1.00E+01
Superficial Liquid Velocity, M/SEC
1.00E+00 A
I
1.00E-01
1.00E-02
0.1 1 10 100 1000
Superficial Gas Velocity, M/SEC
160
140
120
80
60
40
20
0
-200 -150 -100 -50 0 50 100
Temperature, DEG C
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=1
$
TOLERANCE PRESSURE=0.138
$
$Thermodynamic Data Section
$
THERMODYNAMIC DATA
$
METHOD SET=SET01, SYSTEM(VLE)=PRM
$
KVALUE BANK=SimSci
$
$PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, SET=SET01
Case Execution
For single link simulations, PIPEPHASE users can estimate the
slug catcher size by choosing from three statistical slugging models
Brill
Scott
Norris.
These models are not available for network simulations.
The slugging model is specified in the Print Options in the
General menu (see Figure 1-28).
Results
The slug catcher size can be estimated by reviewing the data in the
Slugging Report worksheet of the Excel report (see Figure 1-29).
Simulation Model
A cross-country pipeline, which transports a two-phase natural gas
mixture, is currently operating at maximum capacity. The delivery
pressure at the end of the pipeline will become too low if the flow
rate is increased. Hence additional compression will be required.
sphering or pigging, is to be performed in order to increase the
throughput of the pipeline. Pigs will be launched at the beginning of
the line and at two intermediate points along the line.
The user specifies the diameter and launch position for the sphere in
the Pipe dialog box. The pigging algorithm can simulate multiple
pigs launching for different locations along the pipeline. A pig is
automatically launched from an intermediate site when the previous
sphere reaches it.
Input Data
$General Data Section
$
TITLE PROBLEM=EXAMPLE6, USER=SIMSCI, DATE=10/01/97
$
DESCRIPTION PIPELINE SPHERING EXAMPLE
$
DIMENSION English
$
CALCULATION NETWORK, Compositional, SPHERING
$
DEFAULT IDPIPE=8, IDTUBING=8, IDANNULUS=6.065, *
TAMBIENT=65, UPIPE=0.8, UTUBING=1, *
UANNULUS=1
$
PRINT INPUT=FULL, DEVICE=FULL, PLOT=FULL, *
PROPERTY=FULL, FLASH=FULL, MAP=TAITEL, *
CONNECT=NONE, SUMMARY=BOTH, DATABASE=FULL, *
SIMULATOR=PART, SLUG=BRILL
$
SEGMENT AUTO=OFF, DLHORIZ(FT)=5000, DLVERT(FT)=500, *
DTIM(SEC)=19
$
$Component Data Section
$
COMPONENT DATA
$
LIBID 1, C1 / *
2, C2 / *
3, C3 / *
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=1
$
TOLERANCE PRESSURE=2
$
$Thermodynamic Data Section
$
THERMODYNAMIC DATA
$
METHOD SET=SET01, SYSTEM=SRK
$
WATER PROPERTY=Super
$
KVALUE BANK=SimSci
$
$PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, SET=SET01
$
$Structure Data Section
$
STRUCTURE DATA
$
SOURCE NAME=Q012, IDNAME=Q012, PRIORITY=0, *
PRES=350, TEMP=120, RATE(GV)=0.7667, *
XCORD=0, YCORD=-125, *
COMP(M)=1, 88.61 / 2, 3.15 / 3, 2.69 / *
4, 2.04 / 5, 1.67 / 6, 1.11 / *
7, 0.55 / 8, 0.18
$
SINK NAME=SINK, IDNAME=SINK, PRES(ESTI)=1, *
RATE(ESTI)=1, XCORD=1000, YCORD=-125
$
$
$
LINK NAME=LINK, FROM=Q012, TO=SINK, *
IDNAME=LINK, IDFROM=Q012, IDTO=SINK, *
PRINT
PIPE NAME=Z001, LENGTH=4224, IDSPHERE=8, *
ID=8, U=0.8
PIPE NAME=Z002, LENGTH=6336, ECHG=154, *
U=0.8
PIPE NAME=Z003, LENGTH=8448, ECHG=-69, *
IDSPHERE=8.1, U=0.8
PIPE NAME=Z004, LENGTH=3696, ECHG=100, *
U=0.8
PIPE NAME=Z005, LENGTH=6336, ECHG=120, *
U=0.8
PIPE NAME=Z006, LENGTH=264, ECHG=-10, *
IDSPHERE=12.1, ID=12, U=0.8
PIPE NAME=Z007, LENGTH=2640, ECHG=58, *
ID=12, U=0.8
PIPE NAME=Z008, LENGTH=9504, ECHG=-118, *
ID=12, U=0.8
$
$ End of keyword file...
$
END
Simulation Model
A large amount of separator gas that is available from an oil well
could be used to increase production. The user needs to investigate
the feasibility of injecting the gas for continuous gas-lift. The
reservoir pressure, well-head pressure, formation Gas-Oil ratio and
water cut are known. The injection pressure and gas-lift valve
location are fixed. The user needs to determine the optimum lift gas
injection rate. The well inflow performance coefficient is not
known but test data is available.
The user should select Gas Lift Analysis as the simulation type
(see Figure 1-37). Only the single link model support this
simulation type. The lift gas flows down an annulus surrounding the
production tubing.
Input Data
$General Data Section
$
TITLE PROBLEM=EXAMPLE7, USER=SIMSCI, DATE=10/01/97
$
DESCRIPTION BLACKOIL WELL WITH GAS LIFT
DESCRIPTION Gas in Annulus. Oil in tubing.
DESCRIPTION Well test data used to calculate PI
$
DIMENSION RATE(LV)=BPD
$
CALCULATION GASLIFT, Blackoil
$
DEFAULT IDPIPE=4.026, IDTUBING=4.026, IDANNULUS=6.065, *
ROUGH(IN)=2.4000e-003, TGRAD=1.2
$
PRINT INPUT=FULL, DEVICE=FULL, PLOT=FULL, *
PROPERTY=FULL, FLASH=FULL, MAP=TAITEL, *
CONNECT=NONE, SUMMARY=BOTH, DATABASE=FULL, *
SIMULATOR=PART
$
SEGMENT DLHORIZ(FT)=2000, DLVERT(FT)=1000
$
$PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, GRAV(OIL,API)=28.00001, GRAV(GAS,SPGR)=0.85, *
GRAV(WATER,SPGR)=1.02
LIFTGAS GRAV(GAS,SPGR)=0.82
$
$Structure Data Section
$
STRUCTURE DATA
$
SOURCE NAME=Q001, IDNAME=Q001, PRIORITY=0, *
SETNO=1, PRES=2100, TEMP=182, *
RATE(ESTI)=400, GOR=500, WCUT=5, *
XCORD=0, YCORD=437
WTEST NAME=TUB1, PI , RESP=2100, *
TEMP=109, PRES=142, RATE=400, *
GOR=500, WCUT=5
$
SINK NAME=SINK, IDNAME=SINK, PRES=165, *
RATE(ESTI)=1, XCORD=1060, YCORD=-144
$
$
$
LINK NAME=GASL, PRINT
ANNULUS NAME=ANN1, DEPTH=8500, IDANNULUS=6.336, *
ODTUBE=2.875, U=1.9
$
LINK NAME=PROD, PRINT
TUBING NAME=TUB1, DEPTH=8500, ID=2.441, *
U=1, FCODE=ORK
$
$GAS LIFT Data Section
$
GASLIFT
CAPACITY PRES=950 , TEMP=100 , DEPTH=5900 , *
Case Execution
The hydraulic and heat transfer calculations are carried out at a
number of trial injection rates and the case that maximizes oil
production is selected. These calculations are performed for the
production as well as the injection string.
Results
Click Run and solve the simulation. Results can be reviewed in the
ASCII output report.
Note: In PIPEPHASE 9.3, Excel reports do not support the gas-lift
analysis simulation type.
Simulation Model
The gathering system is comprised of several wells, flow lines and
trunk lines with a loop [C-D-E] in the main trunk line. The field is
divided into four regions - A, I, G and H. All the wells in a region
have the same pressure, temperature and fluid properties. The user
needs to determine the flow distribution and the overall capacity of
the system.
Click the link (A4-A) to display Device Data dialog box (see Figure
1-44). The Beggs and Brill (BB) pressure drop correlation is used
for all flow lines and trunk line calculations. The Hagedorn and
Brown (HB) correlation is used for the wells. The well inflow
performance relationships are modeled using Vogel coefficients.
Case Execution
The pressure drop correlations are used to calculate the flow regime
in the wells and pipelines. In addition PIPEPHASE also uses the
Taitel-Dukler-Barnea flow pattern map to determine the flow
pattern at the exit of each link.
Results
For Link A1-A, it can seen that the flow pattern at the outlet (X)
straddles the boundary between the Annular and Intermittent flow
regimes (see Figure 1-45).
Simulation Model
Rich gas is gathered from several sources and distributed to two
terminals. There are numerous loops and crossovers in the
distribution system. The flows are known for sources 1, 2, 3 and 4.
Also, the pressures are fixed at other sources and terminals. The
user must determine the amount of gas delivered to each terminal as
well as the unknown source flow rates. The conditions in the
network are such that liquid condensate should not form. However,
the user should ensure that this is in fact the case.
All lines are insulated and the gas can be assumed to be isothermal
everywhere. The user can disregard heat transfer between the
distribution network and surrounding environment.
Simulation Model
This is a single link calculation. The fluid is defined as steam in
order to use the stored steam table properties. In this simulation,
steam supply quality is 97% at a pressure of 170 psig and the
maximum expected flow rate is 33,000 lb/hr.
The pipeline is suspended in air and has a layer of insulation. The
ambient conditions and the pipeline and insulation properties are
constant and are defined globally. Only the pipe lengths and
elevation changes are then required in the Link <LINK> Device
Data dialog box.
Click Sizing in the Link <LINK> Device Data dialog box to display
Line Sizing dialog box (see Figure 1-52).
$
$Line Sizing Data Section
$
GSIZE LINK DATA
$
LINK NAME=LINK
DEVICE NAME = ALL
LINE ID = 1.049, 1.61, 2.067, 2.469, 3.068, *
3.548, 4.026, 5.074, 6.065, 7.981, *
10.02, 11.938, 13.124, 15, 16.876, *
18.814, 22.626
$
Case Execution
The required line diameter is determined by running a sizing
calculation. The line will be sized to meet maximum erosional
velocity. If no pipe sizes are defined, PIPEPHASE will select from
the standard schedule 40 sizes.
Results
To run a sizing calculation, the user needs to select Line Sizing as
the configuration type in Run Simulation and View Results dialog
box (see Figure 1-53). Line sizing results can be viewed in the
ASCII output report (see Figure 1-54).
Simulation Model
The simulation model for the above example is shown in Figure
1-55.
Input Data
$General Data Section
$
TITLE PROBLEM=NETWORK, DATE=06/27/02
$
DESCRIPTION Two Blackoil Wells on Gas Lift 12 and 23.
DESCRIPTION Mass based derivatives allow to model
DESCRIPTION Lift Gas source as Blackoil Source with
DESCRIPTION very high GOR
$
DIMENSION RATE(LV)=BPD
$
CALCULATION NETWORK, Blackoil, PRANDTL, *
MASS
$
FCODE TUBING=HB
$
DEFAULT NOMD=4, SCHE= 40, NOMT=3.5, *
SCHT=TB01, IDANNULUS=6.065, TGRAD=1.75, *
AIR, COND=0.015, VISC=0.02, *
DENSITY(SPGR)=1, VELO=10, HAUSEN
$
PRINT INPUT=FULL, DEVICE=FULL, PLOT=FULL, *
PROPERTY=FULL, FLASH=FULL, MAP=TAITEL, *
CONNECT=NONE, ITER, SUMMARY=BOTH, *
DATABASE=FULL, SIMULATOR=PART
$
SEGMENT AUTO=OFF, DLHORIZ(FT)=150, DLVERT(FT)=100, *
MAXSTEPS=50
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, NOLOOP=2, *
STEP=1, MAXITER=40, QDAMP=1000, *
Case Execution
In the General menu, select Calculation Methods and then click
on the Network Data button as shown in Figure 1-56.
Results
With the Mass Based Perturbation option checked, the solver uses
the total mass flow rate basis to perturb the flow rates for all sources
and links. As a result, more accurate derivatives are calculated
resulting in a more stable simulation, which the solver is able to
successfully converge.
Input Data
A link group LINE1 is defined for LINK 1 & 2.
$
LINK NAME=1, FROM=W-12, TO=INJ1, *
IDNAME=1, IDFROM=W-12, IDTO=INJ1, *
SUBLINE=LINE1
IPR NAME=I088, TYPE=PI, *
IVAL=BASIS, 3, *
RVAL=PI, 25.5 / UPTIME,1
TUBING NAME=T082, LENGTH=13560, DEPTH=7005, *
U=1
TUBING NAME=T083, LENGTH=12596, DEPTH=7120, *
U=1
TUBING NAME=T084, LENGTH=10569, DEPTH=7145, *
U=1
TUBING NAME=T085, LENGTH=8596, DEPTH=7139, *
U=1
TUBING NAME=T086, LENGTH=7360, DEPTH=6800, *
U=1
TUBING NAME=T087, LENGTH=6320, DEPTH=6000, *
U=1
$
LINK NAME=2, FROM=INJ1, TO=J1, *
IDNAME=2, IDFROM=INJ1, IDTO=J1, *
SUBLINE=LINE1
TUBING NAME=T090, LENGTH=5687, DEPTH=5456, *
U=1
TUBING NAME=T091, LENGTH=3689, DEPTH=3627, *
U=1
TUBING NAME=T092, LENGTH=2597, DEPTH=2585, *
U=1
TUBING NAME=T093, LENGTH=1505, DEPTH=1500, *
U=1
TUBING NAME=T094, LENGTH=560, DEPTH=560, *
U=1
$
Simulation Model
The simulation is created in a similar manner as any other single
link PIPEPHASE simulation. The pressures are fixed at the source
and sink and the flow rate is calculated by the PIPEPHASE.
Once the simulation has been set up, the user clicks Nodal in the
Link Device Data dialog box.
Here, the user can select the Node around which the Nodal Analysis
will take place. The Node can be any of the devices in the link. In
this case, the well choke has been selected. The next step is to select
a series of flow rates. The performance of the well will be analyzed
at each of these flow rates.
Finally, Inflow and Outflow parameters are selected. For each of
these parameters, a series of values is entered by the user. In this
case, the Reservoir Pressure and ID of the surface pipeline have
been chosen.
$
$Sensitivity Analysis Data Section
$
GSENSITIVITY ANALYSIS LINK DATA
$
LINK NAME=L003
NODE NAME=C008
FLOW RATE=500, 1500, 2500, *
4000, 6000, 7000, *
8000, 9000, 10000, 12000
DESCRIPTION INFLOW= DEPLETED, 3YEARSPRES, *
LOWPRES, CURRENTPRES, *
HIGHPRESS
DESCRIPTION OUTFLOW= 3INCH, 35INCH, *
4INCH, 5INCH, *
6INCH
INFLOW NAME=S001, *
PRES=4000, 4500, 5000, 5500, 6000
OUTFLOW NAME=P009, *
ID=3, 3.5, 4, 5, 6, *
NAME=P010, *
ID=3, 3.5, 4, 5, 6, *
NAME=P011, *
ID=3, 3.5, 4, 5, 6
$
Results
After solving the simulation, click RAS to display PIPEPHASE
Results Access System dialog box. Selects File/New to display the
dialog box as shown below. Select the appropriate RAS database.
The Nodal Analysis results for this particular simulation are found
in L003 - the name of the link in this particular simulation.
After opening the RAS database, the user selects Special Plots. The
Nodal Analysis plot is displayed.
Note: RAS plots can also be generated in Excel.
Simulation Model
Hydrate analysis can only be conducted at a Node. A Node in
PIPEPHASE is defined as a Source, Sink or Junction. There are a
total of four Nodes in this simulation - two sources S001 & S003,
Junction J004 and Sink D002. Therefore, for this network, hydrate
analysis can only be conducted at four points. The user will need to
break up the links and add more junctions if required, to analyze for
hydrates at other points in the network. The simulation model is
shown in Figure 1-63.
For this simulation, the user decides to select S003, J004 & D002.
The hydrates unit in PIPEPHASE also allows the user to simulate
the effect of adding Hydrate inhibitors such as Methanol, Salt, EG,
DEG & TEG.
PIPEPHASE Application Briefs 1-89
Figure 1-64: Hydrate Unit Operation
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, STEP=1
$
TOLERANCE PRESSURE=0.07
$
$Thermodynamic Data Section
$
THERMODYNAMIC DATA
$
METHOD SET=SET01, SYSTEM(VLE)=SRKS, DENSITY(L)=SRKS
$
KVALUE BANK=SimSci
$
$PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, SET=SET01
$
$
LINK NAME=L006, FROM=S001, TO=J004, *
IDNAME=L006, IDFROM=S001, IDTO=J004
PIPE NAME=P015, LENGTH=2594, 2564, *
3598, 2679, 2578, *
ECHG=58, 65, 59, *
78, 93, AIR
SEPARATOR NAME=S016, PERCENT(GAS)=15
$
LINK NAME=L008, FROM=J004, TO=D002, *
IDNAME=L008, IDFROM=J004, IDTO=D002
PIPE NAME=P018, LENGTH=596, 1579, *
1566, 4851, 849, *
ECHG=-59, -54, -89, *
-23, -94, AIR
$
$UNIT OPERATION Data Section
$
UNIT OPERATION DATA
$
HYDRATE UID=H019, NAME=EVALUATE MEOH INJECTION RATES
EVALUATE STREAM=D002, POINTS=30, IPRES=0.14, *
MAXPRES=150, TESTIMATE=-5, INHIB(MEOH)=20, *
30
EVALUATE STREAM=J004, POINTS=30, IPRES=0.14, *
MAXPRES=150, TESTIMATE=-5, INHIB(MEOH)=20, *
30
EVALUATE STREAM=S003, POINTS=30, IPRES=0.5, *
MAXPRES=150, TESTIMATE=-3, INHIB(MEOH)=20, *
30
$
Case Execution
After fully specifying the option in the Hydrate unit, the user can
launch the simulation. Hydrate analysis will be conducted after the
network simulation is solved and the final temperature, pressure
and compositional profiles are calculated.
To view the analysis in Microsoft Excel, the following procedure is
to be followed -
1. Click Run and solve the simulation. The generation of output
reports does take some time and therefore, users should ensure
that their simulation has been solved and converged before gen-
erating complex output reports.
2. Select Print Options under the General menu. Ensure that the
Ability to Generate Excel Database option is set to Full. The
content of the report is controlled from this dialog box. For
example, if you want to have Flow Pattern Maps generated for
each of the links in the simulation, ensure that the option is
highlighted.
Simulation Model
The Simulation Model for this example is shown in Figure 1-70.
This simulates a single blackoil well.
Click on the Choke device to brings up the Choke dialog box (see
Figure 1-72). In addition to specifying the choke diameter and
having the simulator calculate the flow rate through the choke,
PIPEPHASE allows the user to make a number of alternate
specifications. The user can specify either the Upstream or Down
Stream pressure around the Choke.
Input Data
$General Data Section
$
TITLE PROJECT=CHOKESIZING, PROBLEM=EX14, USER=JAB, *
DATE=10/21/02, SITE=BREA
$
DESCRIPTION Use PIPEPHASE to size a choke.
DESCRIPTION Set the pressure upstream of the choke to 1500 psig
DESCRIPTION PIPEPHASE calculates the choke diameter of 0.61"
DESCRIPTION to ensure the upstream pressure spec is met
$
DIMENSION RATE(LV)=BPD
$
CALCULATION NETWORK, Blackoil
$
DEFAULT IDPIPE=4.026, IDTUBING=4.026, IDANNULUS=6.065
$
PRINT INPUT=FULL, DEVICE=PART, PLOT=FULL, *
PROPERTY=FULL, FLASH=FULL, MAP=TAITEL, *
CONNECT=FULL, SUMMARY=BOTH, DATABASE=FULL, *
SIMULATOR=PART
$
SEGMENT AUTO=OFF, DLHORIZ(FT)=2000, DLVERT(FT)=500
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=1
$
TOLERANCE PRESSURE=0.1
$
$PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, GRAV(OIL,API)=35.00001, GRAV(GAS,SPGR)=0.6, *
GRAV(WATER,SPGR)=1.02
LIFTGAS GRAV(GAS,SPGR)=0.65
$
$Structure Data Section
$
STRUCTURE DATA
$
SOURCE NAME=W-35, IDNAME=W-35, PRIORITY=0, *
SETNO=1, PRES=5500, TEMP=120, *
RATE(ESTI)=1000, GOR=100, WCUT=10, *
XCORD=0, YCORD=363
$
SINK NAME=SINK, IDNAME=SINK, PRES=350, *
RATE(ESTI)=1000, XCORD=997, YCORD=-69
$
$
Case Execution
Internally PIPEPHASE uses special logic to solve a well or network
model containing a MChoke. In the case of this simulation model,
PIPEPHASE breaks the link into two parts at the MChoke.
The first link runs from the source to the entrance of the MChoke.
The Source Pressure and Upstream Choke Pressure become the
boundary conditions and PIPEPHASE calculates the corresponding
flow rate. The second link runs from the outlet of the MChoke to
the Sink. The calculated flow rate and the sink pressure become the
boundary conditions for the link and PIPEPHASE calculates the
corresponding pressure at the outlet of the MChoke.
PIPEPHASE in effects creates an internal Sub-Network in order to
solve to the Upstream Pressure specification set by the user. This
allows PIPEPHASE to quickly and stably solve large production
networks contains tens or hundreds of wells.
Results
When generating Excel Reports, users should go to the Print
Options in the General menu and select the Merge Subnetworks
option (see Figure 1-73). This ensures that when the Excel Report
for the simulation is generated, the internal links generated by
PIPEPHASE will remain hidden and the reports doesn't include
references to artificial nodes and links corresponding to the sub-
networks created by the solver.
Examining the Excel Reports users can view the pressure and
temperature profiles created by PIPEPHASE (see Figure 1-74). In
this case PIPEPHASE has calculated a pressure drop of 1,061 psi
across the choke.
Simulation Model
Simulation Model for this example is shown in Figure 1-75.
$
$Sensitivity Analysis Data Section
$
GSENSITIVITY ANALYSIS LINK DATA
$
LINK NAME=LINK
NODE NAME=CHK1
FLOW RATE=40, 50, 60, *
70
DESCRIPTION INFLOW= 450 BAR, 400 BAR, *
350 BAR
DESCRIPTION OUTFLOW= 3 1/2 IN DIA, 4 IN DIA, *
4 1/2 IN DIA, 5 IN DIA
INFLOW NAME=RES, *
PRES=450, 400, 350
OUTFLOW NAME=LINE, *
ID=3.5, 4, 4.5, 5
$
$
$VFP Table Generation Data Section
$
GVFP TABLE GENERATION DATA SECTION
$
LINK NAME=LINK
ACTIVATE=1
COMPLETE=Y
INFLOWOUTFLOW=1
RATE[0]=50.000
RATE[1]=100.000
RATE[2]=150.000
RATE[3]=200.000
RATE[4]=300.000
BHPWHP[0]=400.000
GORCGR[0]=60.000
GORCGR[1]=65.000
GORCGR[2]=70.000
GORCGR[3]=75.000
GORCGR[4]=80.000
GORCGR[5]=85.000
GORCGR[6]=90.000
GORCGR[7]=100.000
WCTWGR[0]=0.000
WCTWGR[1]=2.000
WCTWGR[2]=4.000
WCTWGR[3]=6.000
WCTWGR[4]=8.000
WCTWGR[5]=10.000
WCTWGR[6]=12.000
WCTWGR[7]=14.000
GINJR[0]=0.000
GEND
Results
In PIPEPHASE, users can employ Netopt optimizer to vary the
Gilbert coefficients, to match measures pressure drops across the
choke.
Note: Use online help for details concerning the choke models and
various network solver options available in PIPEPHASE (see
Figure 1-77).
Simulation Model
The Simulation Model for this example is shown in Figure 1-78.
Click DPDT to bring up the DPDT Device dialog box (see Figure
1-80).
Case Execution
The efficiency of a compressor is a function of pressure and flow
rate. By allowing users to enter different curves for different inlet
pressures, they were able to more closely simulate the performance
of an actual compressor. PIPEPHASE uses linear interpolation to
determine the corresponding pressure and temperature change for
inlet pressures lying in-between the specified inlet pressures.
The reasons for using a DPDT device instead of an actual
compressor device include speed and the fact that actual measured
field data can be directly inputted into the simulation model.
Apart from modeling compressors, measured field data provided to
the DPDT device can simulate pumps, booster pumps and wet gas
compressors.
Results
The ability to enter measured field data and have PIPEPHASE use
linear interpolation to calculate the outlet pressure and temperature
means the engineer does not need to calculate efficiencies for the
more rigorous compressor and pump device models.
Simulation Model
In the simulation model, EX17-GENERATE-VFP-TABLES,
PIPEPHASE generates two VFP tables. The performance of well
W-23 is characterized using inflow performance curves. For inflow
performance curves, the user specifies the bottom hole pressure, so
that PIPEPHASE can calculate the wellhead conditions.
The well W-56 uses outflow performance tables to characterize its
performance. In this case, the user specifies the wellhead pressure,
so that PIPEPHASE can calculate the bottom hole conditions.
Simulations to determine the pressure drop in the well can use
either of the two curves.
Input Data
$ General Data Section
$
TITLE PROJECT=VFPTABLES, PROBLEM=EX17, USER=SIMSCI, *
DATE=10/10/02, SITE=BREA
$
DESCRIPTION Generate VFP Tables to represent a link
DESCRIPTION Run this simulation model as a network
DESCRIPTION Then select Generate VFP Table and run again
DESCRIPTION Two VFP tables will be generated and exported to Excel
$
DIMENSION RATE(LV)=BPD
$
CALCULATION NETWORK, Blackoil, PRANDTL
$
DEFAULT NOMD=4, SCHE= 40, NOMT=4, *
SCHT=TB01, IDANNULUS=6.065
$
PRINT INPUT=FULL, DEVICE=FULL, PLOT=FULL, *
PROPERTY=FULL, FLASH=SUMMARY, MAP=TAITEL, *
CONNECT=NONE, SUMMARY=BOTH, DATABASE=FULL, *
SIMULATOR=PART, OPTIMIZER=FULL
$
SEGMENT AUTO=ON, DLHORIZ(FT)=2000, DLVERT(FT)=500
$
$ Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, STEP=1, *
MAXITER=30
$
TOLERANCE PRESSURE=0.1
$
$ PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, GRAV(OIL,API)=30, GRAV(GAS,SPGR)=0.75, *
GRAV(WATER,SPGR)=1.002
LIFTGAS GRAV(GAS,SPGR)=0.8
$
$ Structure Data Section
$
STRUCTURE DATA
$
SOURCE NAME=W-23, IDNAME=W-23, PRIORITY=0, *
SETNO=1, PRES=3499, TEMP=180, *
$
$ VFP Table Generation Data Section
$
GVFP TABLE GENERATION DATA SECTION
$
LINK NAME=L-23
ACTIVATE=1
COMPLETE=Y
INFLOWOUTFLOW=2
RATE[0]=100.000
RATE[1]=1000.000
RATE[2]=2000.000
RATE[3]=3000.000
RATE[4]=4000.000
RATE[5]=5000.000
RATE[6]=6000.000
RATE[7]=7000.000
BHPWHP[0]=500.000
BHPWHP[1]=1000.000
BHPWHP[2]=1500.000
GORCGR[0]=102.000
Case Execution
To generate a VFP table, the user needs to specify the type - either
an Inflow or an Outflow table. In this simulation for well W23, the
user selects the Inflow table. Additionally, the user also has to
decide and enter the number of Flow Rates (Q), Gas/Oil Ratio
(GOR), Gas Injection Rates (QGINJ), Bottom Hole Pressure (BHP)
and Water Cut (WCT) that needs to be included in the table.
Note: For an outflow VFP table, the curve is for Bottom Hole
Pressures versus flow rate parametric changes in Well Head
Pressures.
In this example, the user has selected independent flow rates
ranging from 100 to 7,000 bbl/d and 8 gas injection rates ranging
from 500 to 3,500 MM ft3/d.
Results
After satisfying the conditions specified in steps 1-4, click
button on the main toolbar. Select VFP Table Generation from the
Type drop down list in the Run Simulation and View Results dialog
box and click Run.
PIPEPHASE will automatically run the simulation multiple times in
order to generate data for each of the Flow Rates and Gas Injection
Rates requested by the user. The VFP table will be saved as a
comma delimited Excel file in the same directory as the simulation.
It is automatically named with the corresponding PIPEPHASE
simulation name and the link name represented by the table.
The user can use MS-Excel to examine and modify the contents of
the file.
Simulation Model
In the simulation model, EX18-USING-VFP-TABLES, the user has
modified Example17 so that PIPEPHASE simply reads the VFP
tables created in Example17.
In Figure 1-86: Link <L-12> Device Data, notice that all the
devices have been disabled except for the VFP table and Gas Lift
Valve. By clicking on the VFP device, you will notice that it is
pointing to the VFP table created in Example 17.
Input Data
$ General Data Section
$
TITLE PROJECT=VFPTABLES, PROBLEM=EX18, USER=SIMSCI, *
DATE=10/10/02, SITE=BREA
$
DESCRIPTION This example uses the VFP Tables already generated
DESCRIPTION in EX17.
$
DIMENSION RATE(LV)=BPD
$
CALCULATION NETWORK, Blackoil, PRANDTL
$
DEFAULT NOMD=4, SCHE= 40, NOMT=4, *
SCHT=TB01, IDANNULUS=6.065
$
PRINT INPUT=NONE, DEVICE=PART, PLOT=FULL, *
PROPERTY=FULL, FLASH=SUMMARY, MAP=TAITEL, *
CONNECT=NONE, SUMMARY=BOTH, DATABASE=FULL, *
SIMULATOR=PART, OPTIMIZER=FULL, VFPT=EXCEL
$
SEGMENT AUTO=ON, DLHORIZ(FT)=2000, DLVERT(FT)=500
$
$ Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, STEP=1, *
MAXITER=30
$
TOLERANCE PRESSURE=0.1
$
$ PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, GRAV(OIL,API)=30, GRAV(GAS,SPGR)=0.75, *
GRAV(WATER,SPGR)=1.002
LIFTGAS GRAV(GAS,SPGR)=0.8
$
$ Structure Data Section
$
STRUCTURE DATA
$
Case Execution
The run time for this simulation model is extremely fast as
PIPEPHASE interpolates values directly from the VFP table instead
of rigorously calculating pressure and temperature profiles along
the tubing.
It should be noted that since the VFP table contains data for
different gas injection rates, the effect of the Gas Lift Valve can be
simulated. For this reason, the Gas Lift Valve is active (see Figure
1-87) and is present before the VFP device.
3. Click VFP File in VFP Table Device dialog box to select the
relevant VFP file.
4. Click on Edit VFP Table Databutton to display the VFP
Table Data dialog box (see Figure 1-89).
Results
After satisfying the conditions specified from steps 1-5, click
button on the main toolbar. Select Network from the Type drop
down list in the Run Simulation and View Results dialog box
(Figure 1-91) and click Run.
Simulation Model
In the solved simulation model, EX2_BLACKOIL-WELL, the user
is aware of the Temperature (110-1010C) and Pressure range (400-
25 Bar) over which PVT data is required.
To modify the PVT data, click Generate PVT Table option located
in the Blackoil PVT Data dialog box (Figure 1-93).
The conditions being satisfied, the user can run the simulation.
PIPEPHASE will converge the simulation and also generate the
PVT file, which is saved in the same directory as the PPZIP file. By
default, PIPEPHASE supplies a name employing a convention that
uses the simulation name. However, the user also has the option of
naming the PVT file.
$
$Sensitivity Analysis Data Section
$
GSENSITIVITY ANALYSIS LINK DATA
$
LINK NAME=LINK
NODE NAME=CHK1
FLOW RATE=40, 50, 60, *
70
DESCRIPTION INFLOW= 450 BAR, 400 BAR, *
350 BAR
DESCRIPTION OUTFLOW= 3 1/2 IN DIA, 4 IN DIA, *
4 1/2 IN DIA, 5 IN DIA
INFLOW NAME=RES, *
PRES=450, 400, 350
OUTFLOW NAME=LINE, *
ID=3.5, 4, 4.5, 5
$
2. Click PVT File in the Fluid Property Data dialog box, browse
and select the PVT file.
Note: In PIPEPHASE 9.0, there is no limit to the number of PVT
files that can be used in a given simulation model. The user can add
an additional Property Set for each PVT files used. Hence, a
simulation with thirty wells could have a total of 30 Property Sets,
each Property Set referring to a separate PVT file.
The user can also have a combination of Property Sets, some of
them using the standard Blackoil correlations available in
PIPEPHASE and the others referencing separate PVT files. This
allows the user tremendous flexibility in creating a simulation
model.
Note: If certain properties are missing from a PVT file,
PIPEPHASE will automatically employ default correlations to
generate the properties.
3. click Edit Excel PVT File after selecting the PVT file.
Note: User need to ensure that the data is in the same format as
shown in the Raw Data worksheet, when PVT data are generated
by third party applications in PIPEPHASE.
To view the generated Eclipse File,
1. In the Fluid Property Data dialog box, select Use PVT File to
activate the Eclipse File check box.
5. You can edit the PVT data in the Raw Data worksheet. How-
ever, to save the modifications you must navigate to the Index
worksheet and click Update PVT File. All the other work-
sheets just display the same data available in the Raw Data
worksheet.
Note: You need to ensure that the data you have added is consistent
with the already available data in the Raw Data worksheet.
Simulation Model
The Simulation Model for this example is shown in Figure 1-103.
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, STEP=1
$
TOLERANCE PRESSURE=0.07
$
$Thermodynamic Data Section
$
THERMODYNAMIC DATA
$
METHOD SET=SET01, SYSTEM(VLE)=SRKS, DENSITY(L)=SRKS
$
KVALUE BANK=SimSci
$
$PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, SET=SET01
$
$
LINK NAME=L006, FROM=S001, TO=J004, *
IDNAME=L006, IDFROM=S001, IDTO=J004
PIPE NAME=P015, LENGTH=2594, 2564, *
3598, 2679, 2578, *
ECHG=58, 65, 59, *
78, 93, AIR
SEPARATOR NAME=S016, PERCENT(GAS)=15
$
LINK NAME=L008, FROM=J004, TO=D002, *
IDNAME=L008, IDFROM=J004, IDTO=D002
PIPE NAME=P018, LENGTH=596, 1579, *
1566, 4851, 849, *
ECHG=-59, -54, -89, *
-23, -94, AIR
$
$UNIT OPERATION Data Section
$
UNIT OPERATION DATA
$
HYDRATE UID=H019, NAME=EVALUATE MEOH INJECTION RATES
EVALUATE STREAM=D002, POINTS=30, IPRES=0.14, *
MAXPRES=150, TESTIMATE=-5, INHIB(MEOH)=20, *
30
EVALUATE STREAM=J004, POINTS=30, IPRES=0.14, *
MAXPRES=150, TESTIMATE=-5, INHIB(MEOH)=20, *
30
EVALUATE STREAM=S003, POINTS=30, IPRES=0.5, *
MAXPRES=150, TESTIMATE=-3, INHIB(MEOH)=20, *
30
$
Case Execution
In this simulation, there are a total of four Nodes as indicated below
1. Two sources - S001 & S003 J
2. Junction - J004
3. Sink - D002
Therefore, for this network, Hydrate analysis can only be conducted
at four points. The user will need to break up the links and add more
junctions if it is required to analyze hydrates at other points in the
network.
For this simulation, the user decides to select S003, J004 & D002.
The Hydrates unit in PIPEPHASE also allows the user to simulate
the effect of adding Hydrate inhibitors such as Methanol, Salt, EG,
DEG & TEG.
Results
To view the Hydrate analysis in Microsoft Excel, the following
procedure is to be followed.
1. Select File/Run.. or click to display Run Simulation and
the View Results dialog box. Click Run to solve the network.
Note: The generation of Excel output reports does take some time
and therefore, users should ensure that their simulation has been
solved and converged before generating complex output reports.
2. Select Print Options under General menu to bring up the Print
Options dialog box (see Figure 1-106). Ensure that the Ability
to Generate Excel Database option is set to Full. The content of
the Excel report is controlled from this dialog box. For exam-
ple, if you want to have Flow Pattern Maps generated for each
of the links in the simulation, ensure that the option is high-
lighted in this dialog box.
7. After selecting the options in the Excel Reports dialog box, the
user has to click Run Current Network. In the above case (see
Figure 1-107), it skips running and converging the network
model (it assumes that the user has previously converged the
simulation), creates the Access database, and subsequently cre-
ates the Excel Report.
8. The Excel Report makes extensive use of hyperlinks allowing
the user to easily navigate and find the required information
(see Figure 1-108).
Simulation Model
The network sources are well sources with known reservoir
pressure and IPR.The wells are controlled by well-head chokes,
with set target well head flowing pressure (PWH). This is modeled
by having the choke with specified upstream pressure. The
destination sink pressures are also set. The network solution will
calculate the well flow rate and the choke sizes.
The Simulation Model for this example is shown in Figure 1-110.
Network with
Junction unit
Note: The manifold name and the Slot-id names are concatenated
or combined to generate the corresponding junction and link names
in the keyword input file.
Example: A junction name is generated as follows: "M005" + "I1"
= M005-I1.
The link name is generated by concatenating the manifold-name +
in-Slot-ID + out-Slot-ID. For example M005-I1-O2
Click Optional Pressure Estimate to view Manifold Junction
Pressure Estimates dialog box.
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, STEP=1, *
QDAMP=500, PDAMP=100
$
TOLERANCE PRESSURE=6.895e-003
$
$Thermodynamic Data Section
$
THERMODYNAMIC DATA
$
METHOD SET=SET01, SYSTEM=SRK
$
WATER PROPERTY=Super
$
KVALUE BANK=SimSci
$
$PVT Data Section
$
PVT PROPERTY DATA
$
$
$ Begin Manifold Unit Mapping Information
$
GMANIFOLD
Name=[M005]
In=[4], Out=[3]
Input: name=[ML01] slotname=[I1] nameID=[IJ00]
Input: name=[ML02] slotname=[I2] nameID=[IJ01]
Input: name=[ML03] slotname=[I3] nameID=[IJ02]
Input: name=[ML04] slotname=[I4] nameID=[IJ03]
Output: name=[MD01] slotname=[O1] nameID=[OJ00]
Output: name=[MD02] slotname=[O2] nameID=[OJ01]
Output: name=[MD03] slotname=[O3] nameID=[OJ02]
Row: in=[ML01] out=[MD01] map=[1] pest=[] nameIDValve=[] nameIDLink=[ML00]
Row: in=[ML01] out=[MD02] map=[2] pest=[] nameIDValve=[] nameIDLink=[ML05]
Row: in=[ML01] out=[MD03] map=[1] pest=[] nameIDValve=[] nameIDLink=[ML06]
Row: in=[ML02] out=[MD01] map=[1] pest=[] nameIDValve=[] nameIDLink=[ML07]
Row: in=[ML02] out=[MD02] map=[2] pest=[] nameIDValve=[] nameIDLink=[ML08]
Row: in=[ML02] out=[MD03] map=[1] pest=[] nameIDValve=[] nameIDLink=[ML09]
Row: in=[ML03] out=[MD01] map=[1] pest=[] nameIDValve=[] nameIDLink=[ML10]
Row: in=[ML03] out=[MD02] map=[1] pest=[] nameIDValve=[] nameIDLink=[ML11]
Row: in=[ML03] out=[MD03] map=[2] pest=[] nameIDValve=[] nameIDLink=[ML12]
Row: in=[ML04] out=[MD01] map=[1] pest=[] nameIDValve=[] nameIDLink=[ML13]
Row: in=[ML04] out=[MD02] map=[1] pest=[] nameIDValve=[] nameIDLink=[ML14]
Row: in=[ML04] out=[MD03] map=[2] pest=[] nameIDValve=[] nameIDLink=[ML15]
$
$ End Manifold Unit Mapping Information
$
Case Execution
If there are N incoming streams and M out-flowing streams in a
manifold, then there is M x N manifold links required to represent
the flow in the manifold. Each incoming stream will have M
connecting links, one to each outlet stream.
During normal operation, an incoming stream is directed to only
one outlet stream. All other (M-1) connecting links from an
incoming stream are turned off at any given time. (See grayed out
DEVICE SUMMARY
C
O ------- OUTLET ------ AVG.
LINK DEVI DEVI R INSIDE MEAS ELEV INSITU LIQ
NAME NAME TYPE R DIAM LENGTH CHNG PRESS: TEMP: QUALITY HOLDUP
(MM) (M) (M) (BAR) (F) (FRAC)
---- ---- ---- ---- -------- --------- ------- ------- ------ ------- ------
L211 ***SOURCE*** RATE= 493.42 (TDM) 119.10 150.0 QUAL= 0.55
S211 119.10 150.0
I204 IPR 0.00 0.00 0.00 88.34 150.0 0.00 0.00
T002 TBNG HB 105.53 1000.00 1000.00 70.50 133.2 0.57 0.17
C206 MCHO FN 22.54 0.00 0.00 17.16 88.4 0.00 0.00
P207 PIPE BM 154.10 400.00 0.00 16.00 86.1 0.64 0.07
J211**JUNCTION** PRES= 16.00 (BAR) TEMP= 86.1 (F)
DEVICE SUMMARY
C
O ------- OUTLET ------ AVG.
LINK DEVI DEVI R INSIDE MEAS ELEV INSITU LIQ
NAME NAME TYPE R DIAM LENGTH CHNG PRESS: TEMP: QUALITY HOLDUP
(MM) (M) (M) (BAR) (F) (FRAC)
---- ---- ---- ---- -------- --------- ------- ------- ------ ------- ------
**********************************CONTINUED**************************
L269 **JUNCTION** RATE= 458.24 (TDM) 17.36 88.1 QUAL= 0.64
J213 17.36 88.1
V271 VALV CH 154.10 0.00 0.00 17.36 88.1 0.00 0.00
U202**JUNCTION** PRES= 17.36 (BAR) TEMP= 90.9 (F)
C
O ------- OUTLET ------ AVG.
LINK DEVI DEVI R INSIDE MEAS ELEV INSITU LIQ
NAME NAME TYPE R DIAM LENGTH CHNG PRESS: TEMP: QUALITY HOLDUP
(MM) (M) (M) (BAR) (F) (FRAC)
---- ---- ---- ---- -------- --------- ------- ------- ------ ------- ------
**********************************CONTINUED**************************
ML17 **JUNCTION** RATE= 493.42 (TDM) 16.00 86.1 QUAL= 0.64
IJ00 16.00 86.1
V003 VALV CH 152.00 0.00 0.00 16.00 86.1 0.00 0.00
OJ01**JUNCTION** PRES= 16.00 (BAR) TEMP= 88.4 (F)
Simulation Model
The simulation model described in example 21 A has been used to
explain network utility scenario in PIPEPHASE.
The Simulation Model for this example is shown in Figure 1-117.
Network with
Junction unit
Input Data
$General Data Section
$
TITLE PROJECT=APPBRIEFS, PROBLEM=EXAMPLE-21B, *
DATE=02/14/06
$
DESCRIPTION Use of Network Utilities
$
DIMENSION Metric, TEMPERATURE=F, RATE(W)=TDM, *
RATE(GV)=CMD
$
OUTDIMENSION Petroleum, DENSITY=SPGR, ADD
$
CALCULATION NETWORK, Compositional, PRANDTL, *
DETMANIFOLD
$
FCODE TUBING=HB
$
DEFAULT IDPIPE=102.26035, IDTUBING=102.26035, IDANNULUS=154.05092, *
HAUSEN
$
PRINT INPUT=NONE, DEVICE=FULL, PLOT=FULL, *
PROPERTY=FULL, FLASH=FULL, MAP=TAITEL, *
CONNECT=FULL, MERGESUB, ITER, *
SUMMARY=BOTH, DATABASE=FULL, SIMULATOR=PART
$
SEGMENT AUTO=OFF, DLHORIZ(M)=609.59967, *
DLVERT(M)=152.39992
$
$Component Data Section
$
COMPONENT DATA
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, STEP=1, *
QDAMP=500, PDAMP=100
$
TOLERANCE PRESSURE=6.895e-003
$
$Thermodynamic Data Section
$
THERMODYNAMIC DATA
$
METHOD SET=SET01, SYSTEM=SRK
$
WATER PROPERTY=Super
$
KVALUE BANK=SimSci
$
$PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, SET=SET01
$
$Structure Data Section
$
STRUCTURE DATA
$
SOURCE NAME=MS01, IDNAME=MS01, PRIORITY=0, *
SETNO=1, SET=SET01, PRES=119.1, *
TEMP=150, RATE(ESTI,W)=200, NOCHECK, *
XCORD=5, YCORD=5150, *
COMP(M)=1, 2 / 2, 3 / 3, 68 / *
4, 13.3 / 5, 8 / 6, 2 / *
7, 5 / 8, 0.9 / 9, 1.8 / *
10, 10
$
SOURCE NAME=MS02, IDNAME=MS02, PRIORITY=0, *
SETNO=1, SET=SET01, PRES=119.3, *
TEMP=150, RATE(ESTI,W)=200, NOCHECK, *
XCORD=20, YCORD=5760, *
COMP(M)=1, 2 / 2, 3 / 3, 68 / *
4, 13.3 / 5, 8 / 6, 2 / *
7, 5 / 8, 0.9 / 9, 1.8 / *
10, 10
$
SOURCE NAME=MS03, IDNAME=MS03, PRIORITY=0, *
SETNO=1, SET=SET01, PRES=108.7, *
TEMP=150, RATE(ESTI,W)=120, NOCHECK, *
XCORD=0, YCORD=6425, *
COMP(M)=1, 2 / 2, 3 / 3, 68 / *
4, 13.3 / 5, 8 / 6, 2 / *
7, 5 / 8, 0.9 / 9, 1.8 / *
10, 10
$
SOURCE NAME=MS04, IDNAME=MS04, PRIORITY=0, *
$
$ Begin Manifold Unit Mapping Information
$
GMANIFOLD
Name=[M005]
In=[4], Out=[3]
Input: name=[ML01] slotname=[I1] nameID=[IJ00]
Input: name=[ML02] slotname=[I2] nameID=[IJ01]
Input: name=[ML03] slotname=[I3] nameID=[IJ02]
Here, users can alter source and sink exclude status and edit
Pressure, Flow-rate and Temperature data manually. Click Save &
Close to save and exit to Run Simulation and View Results dialog
box.
Click Run with Action - Remap Network in the Run Simulation
and View Results dialog box.This action will generate and perform
the following automatically, which is transparent to the user:
1. A master-network keyword input file (MNF) from the current
GUI data base is generated (*_MNF.inp). This file turns on all
nodes and links in the network.
2. Overlay the excluded source-sink status and its corresponding
data to generate a updated input keyword file. For example, if
the status of S211 and MS01 is entered 0, in the FluidFlowEdit-
data.xls. GUI, you can observe the corresponding sources have
been disabled in the modified intermediate Pipephase keyword
input file. A inputfile_status.csv file is also created.
PIPEPHASE Application Briefs 1-173
3. Import the new updated keyword file into the GUI effectively
updating the GUI network data with the latest network configu-
ration.
The GUI database has now been updated as per instruction in the
FluidFlowEditData.xls Excel spread sheet.
Simulation Model
This example describes the integration procedure:
The integration can be set up from the following windows in
PIPEPHASE:
Input Data
$
ASSAY CHARACTERIZE=SimSci, MW=SimSci, CONVERSION=API94, *
CURVEFIT=IMPR, FIT=SPLINE
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, NOFR
$
TOLERANCE PRESSURE=0.01
$
RESERVOIR SIMULATOR = GEM, FNAM = GEM_EX22, CONVERGENCE = IPRTABLE, *
MAXITER=10, DTMA=30.000000
$
$Thermodynamic Data Section
$
THERMODYNAMIC DATA
$
METHOD SET=SET01, SYSTEM=PR, DENSITY(L)=SRKS
$
WATER PROPERTY=Super
$
KVALUE BANK=SimSci
$
$PVT Data Section
$
PVT PROPERTY DATA
$
SET SETNO=1, SET=SET01
$
$Structure Data Section
$
STRUCTURE DATA
$
Simulation Model
This example describes the use of the DRA feature in PIPEPHASE.
A 150-mi pipeline with some elevation changes is being considered
for DRA injection.
A F
Annular , 1-55 flow distribution , 1-49
flow pattern , 1-55
flow perturbations , 1-66
B flow regime map , 1-33
fluid phase envelope , 1-30
Beggs-Brill-Moody , 1-11
full , v-iii
Blackoil properties , 1-128
Blackoil Well , 1-9
Brill , 1-37 G
Buried Gas Pipeline , 1-24
buried pipeline , 1-24 Gas Gathering and Distribution System , 1-57
Gas Lift Valve , 1-72
Gaslift Analysis , 1-44
C gathering system , 1-49
Generate PVT Table , 1-126
Calculation Methods , 1-40
Gilbert Choke Model , 1-103
Calculation Segments , 1-63
Global Defaults , 1-25
case study summary , 1-22
gravel-packed , 1-10
Chokes , 1-97
compositional fluid , 1-32
critical flow , 1-103 H
Hagedorn and Brown , 1-50
D heat balances , 1-64
Hydrate analysis , 1-135
Detailed Manifolds , 1-149
hydrate curves , 1-30
discharge pressure , 1-7
hydrate formation , 1-89
distillation columns , 1-18
Hydrate inhibitors , 1-89
DPDT device , 1-22, 1-108, 1-112
Hydrate Unit , 1-89
Dukler-Eaton-Flannigan , 1-58
I
E
Index , 1-133
Edit Excel PVT File , 1-132
Input Data , v-iii
Excel , 1-7
Intermittent flow , 1-55
Excel Report , 1-7
isothermal heat transfer , 1-1
Excel reports , 1-71
67 Index
J non-linear equations , 1-65
L P
PBAL method , 1-65
Line Sizing , 1-70
Pigging , 1-39
Link Summary reports , 1-32
Pipeline Sphering , 1-39
Looped Blackoil Gathering System , 1-49
PPZIP , 1-129
pressure drop , 1-1
M pressure losses , 1-18
Pressure-Volume-Temperature , 1-126
Manifold Print Options , 1-37
Manifold Connections , 1-146 Problem Description , v-iii
Optional Pressure Estimate , 1-147
pump , 1-7
Print Detailed Reports , 1-146
PVT file , 1-132
Mass Based Perturbation , 1-72
Max PVT Table Size , 1-128
maximum erosional velocity , 1-70 R
MBAL method , 1-65
MChoke , 1-99, 1-100 RAS , 1-86
Metric units , 1-29 RAS database , 1-86
Microsoft Access database , 1-7 reference source , 1-50
Multiple Curves , 1-110 Refinery Heat Exchanger Network , 1-18
Reservoir pressure curve , 1-87
Result Access System , 1-16
N
RSA Special Plots , 1-16
Run Current Network , 1-94, 1-141
Netopt optimizer , 1-107
Network , 1-14
Network Change Utilities , 1-159, 1-160 S
Network Convergence Data , 1-19
Network Data button , 1-76 separator pressure , 1-9
Newton-Raphson method , 1-65 Simulation Techniques , v-iii
No Reverse Flow , 1-19 single link calculation , 1-67
Nodal Analysis , 1-15, 1-82 Single Link Example , 1-1
Nodal Analysis plot , 1-86 Sizing , 1-68
Node , 1-89 slug catcher , 1-30
Node Summary reports , 1-32 slugging models , 1-37
TACITE , 1-43
Taitel-Dukler-Barnea , 1-33, 1-55 W
Tubing , 1-114
wells , 1-49
69 Index
PIPEPHASE Application Briefs 70
Invensys Systems, Inc.
26561 Rancho Parkway South
Lake Forest, CA 92630
United States of America
http://iom.invensys.com