SimSci-Esscor®

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.

© 2013 by Invensys Systems, Inc. All rights reserved.

Invensys Systems, Inc.
26561 Rancho Parkway South
Lake Forest, CA 92630 U.S.A.
(949) 727-3200
http://www.simsci-esscor.com/

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

Chapter 1 PIPEPHASE EXAMPLE
Example 1 - Liquid - Pump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-1
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-1
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-1
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-4
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-5
Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-6
Example 2 -Blackoil Well . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-9
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-9
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-9
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-12
Case Execution and Results . . . . . . . . . . . . . . . . . . . . . . . . .1-14
Nodal Analysis Calculations . . . . . . . . . . . . . . . . . . . . . . . . .1-15
Example 3 - Distillation Curve . . . . . . . . . . . . . . . . . . . . . . . . . .1-18
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-18
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-18
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-20
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-22
Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-22
Example 4 - Gas Pipeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-24
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-24
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-24
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-28
Case Execution and Results . . . . . . . . . . . . . . . . . . . . . . . . .1-29
Example 5 - Compositional Sub Sea Riser . . . . . . . . . . . . . . . . .1-30
Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-30
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-30
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-35
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-37
Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-37
Example 6 - Pigging Pipeline . . . . . . . . . . . . . . . . . . . . . . . . . . .1-39

PIPEPHASE Application Briefs i

Simulation Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-39
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-39
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-41
Case Execution and Results . . . . . . . . . . . . . . . . . . . . . . . . . 1-43
Example 7 - Well Test Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-44
Simulation Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-44
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-44
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-47
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-48
Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-48
Example 8 - Blackoil Gathering Network . . . . . . . . . . . . . . . . . 1-49
Simulation Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-49
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-49
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-51
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-55
Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-55
Example 9 - Gas Condensate Network . . . . . . . . . . . . . . . . . . . . 1-57
Simulation Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-57
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-57
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-59
Case Execution - Calculation Segment. . . . . . . . . . . . . . . . . 1-63
Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-66
Example 10 - Steam Line Sizing . . . . . . . . . . . . . . . . . . . . . . . . . 1-67
Simulation Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-67
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-67
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-69
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-70
Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-70
Example 11 - Gas - Lift Manifold . . . . . . . . . . . . . . . . . . . . . . . . 1-72
Simulation Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-72
Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-72
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-73
Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-76
Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-77
Example 11A - Link Groups for Subsurface Junctions . . . . . . . . 1-78
Simulation Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-78
Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-78
Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-79
Example 12 - Nodal Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-82

ii Table of Contents

. . . . . . .1-97 Simulation Objective. . . . . . . . . . . . . Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-86 Example 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Choke Sizing and MChokes in PIPEPHASE . . . . . . . . .1-119 Example 18 . . . . . . . . . . .Hydrate Analysis for Compositional Fluids . . . .1-108 Input Data . . . . . . . . . . . . . . . . . . . . .1-113 Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-82 Simulation Model . . . . . .1-113 Simulation Objective. . . . . . . . . . . . . . . . .1-112 Example 17 . . . . . .1-89 Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .The Gilbert Choke Model in PIPEPHASE . . . . . . . . . . . . .1-120 Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-117 Results . . . . . . . . . . .1-91 Case Execution . . . . . . . . . . . . . . .1-105 Case Execution . . . . . . . . . . . . .1-99 Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-84 Case Execution . . . . . . .1-82 Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-103 Simulation Objective. . . . . . . . . . . . . . . . . . . . . . .1-97 Input Data . . . . . . . . . . . . . . . . .1-107 Results . . . . .1-93 Example 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Using the Vertical Flow Performance (VFP) Table to Represent a Well . . . . . . . . . . . . . . . . .1-108 Simulation Model . . . . . . . . .1-103 Simulation Model . . . . . .Generate a Vertical Flow Performance (VFP) Table to Represent a Well . . . . . . . 1-111 Case Execution . . . . . . . .1-100 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-115 Case Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-97 Simulation Model . . . . . . . . . . . . . . .1-107 Example 16 . . . . . . . .1-86 Results .1-120 Simulation Objective. . .1-103 Input Data . . . . . . . . . . . . . . . . . . . .1-112 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-113 Simulation Model . . . . . . . . .1-120 PIPEPHASE Application Briefs iii . . . . . . . . . . . . . . . .1-108 Simulation Objective. . . . . .1-89 Simulation Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-100 Example 15 . . . . .Can be used to Model Compressors. . . . . . . . . . . . . . . . . . . . . . . . . . .1-89 Input Data .The New DPDT Device . . . . .

. . . . . . . . . . . . . . . . . . . 1-147 Simulation Objective . . . . . . . . . . 1-193 Results and Discussion . . . . . . . . . . . . . . . .Generating Output Reports in Excel . . . . . . . . . . . . . . . . . . . . . . . . . . 1-159 Results & Discussion . . . . . . Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-163 Simulation Objective . . . . . . . . . . . . . . . . . . . . . . . . . . 1-176 Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-147 Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-176 Simulation Objective . . . . . . . . 1-163 Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-164 Results & Discussion . . . . . . . . . . . . . . . . . . . 1-192 Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-140 Case Execution . . 1-142 Example 21A . . . . . . . . . . . . . . . . . . . . 1-147 Simulation Model . . . .Generate PVT Data using PIPEPHASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-121 Case Execution . . . . . . . 1-126 Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Network Change Utilities. . 1-182 Example 23 – Long pipeline using a Drag Reduction Agent . . . 1-124 Example 19 . . . . . . . . .PIPEPHASE-GEM Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-192 Simulation Objective . . . . . . . . . . 1-132 Example 20 . . . . . . . . . . . 1-122 Results. . . . . . . . . . . . . . . . . . . . . . . . 1-194 iv Table of Contents . . . . . . . . 1-192 Simulation Model . . . . . . . . 1-153 Case Execution . . . . . . . 1-126 Simulation Objective . . . . 1-179 Results & Discussion . . . . . . . . . . . . . . . . . . . . 1-171 Example 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-163 Simulation Model . . . . . . . . . . . . . . . . . . . . . . . 1-138 Simulation Objective . . . . . . . . . . . 1-142 Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-138 Input Data . . . . . . . . . . . . . . . . 1-176 Input Data . . . . . . . . . . . . . . . . 1-138 Simulation Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-130 Case Execution and Results . . . . . . . . . . . . . . . . 1-126 Simulation Model . . . . . . . . . . . . . .Manifold Junction Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-160 Example 21B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

■ Results .This section describes how the example is translated into the PIPEPHASE input data. the full excel output reports are not presented here. This is where to look if you are looking for an example which contains a specific feature. the link and node summaries are shown along with selected reports which are particularly relevant to the simulation goals given in the Simulation Objective. ■ Simulation Model . Netopt. ■ Input Data .The user is urged to read and become familiar with the Pipephase.This section describes how the example is executed keeping the goals specified in the simulation objective. PIPEPHASE Application Briefs iii . Introduction About this Manual This manual contains examples of the use of PIPEPHASE and illustrates many of the features of the program. Tacite User’s manual and obtain adequate training before attempting to these examples. as well as presenting some of the important problem parameters.For clarity. Each example is comprised of five sections: ■ Simulation Objective . ■ Case Execution . Instead. The manual then details the example simulations.The full keyword input data file is listed in this section. It is not possible to include every program option in the examples and a list of the features which appear in each example is given in an easy-to-read tabular format in Table 1-1. Table 1-2 and Table 1-3.This section outlines the goals of the simulation.

insulation • • thickness SEGMENT Horizontal and vertical • • • • • • • OUTDIMENSION Alternative output • • PRINT Output options • • • • • • • • Plot • Methods Data Category of Input SOLUTION Pbalance method • • • No flow reversals • TOLERANCE Convergence tolerance • THERMO System • • Introduction .Example Simulation Features Table 1-1: Features Used in Example (1-10) Simulations Statement Feature Example Number 1 2 3 4 5 6 7 8 9 10 General Data Category of Input Pipeline • • • • • • • • • Well • • • CALCULATION Network • • • 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.

• conductivity Sphere diameter • PIPEPHASE Application Briefs v . pressure/rate • • • • • • • • • • Pressure estimate • Ref. • 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. 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. 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.

• 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 Introduction . continued Detailed heat transfer • BEND K or KMUL • • 2-phase flow model .Table 1-1: Features Used in Example (1-10) Simulations Statement Feature Example Number 1 2 3 4 5 6 7 8 9 10 RISER Length/Elevation • ANNULUS Depth • TUBING Length. depth • • • Structure Data Category of Input.

• • • • insulation thickness SEGMENT Horizontal and • • • • • • • • • • vertical OUTDIME. 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 • Table 1-2: Features Used in Example (11 -20) Simulations Statement Feature Example Number 11 12 13 14 15 16 17 18 19 20 General Data Category of Input Pipeline • • Well • • • • CALCULA. Alternative • NSION output PRINT Output options • • • • • • • • • PIPEPHASE Application Briefs vii . Network • • • • • • • • TION 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.

source Temperature • • • • • • • • • • Quality (steam) Composition TBP Assay curve Introduction .Statement Feature Example Number 11 12 13 14 15 16 17 18 19 20 Plot • • • • • • • • • Methods Data Category of Input SOLUTION Pbalance • • • • • • • • • • method No flow reversals TOLERAN. density TRANSPOR System T Component Data Category of Input LIBID Library • • components PETROLEU Petro M components CHARACTE Property RIZE 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. Convergence • • • • • • • • • • CE tolerance THERMO System • • Individual • enthalpy.

Fixed pressure SSOR CONTRA. Angle CTION COOLER Tout DPDT Curve • EXIT PIPEPHASE Application Briefs ix . depth • • • • • • Structure Data Category of Input. 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. continued Detailed heat • transfer BEND K or KMUL 2-phase flow model - Chisholm or Homogeneous Non-standard PUMP Fixed power CHOKE • • • • • COMPRE.

Angle ON COMPLE .Statement Feature Example Number 11 12 13 14 15 16 17 18 19 20 ENTRAN- CE ORIFICE TEE VALVE VENTURI. Gravel packed • • TION 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 SENSITIVIT Inflow • • • Y Outflow Introduction . CPCV METER EXPANSI.

insulation thickness SEGMENT Horizontal and vertical OUTDIMENSION Alternative output • • PRINT Output options • • Plot • • Methods Data Category of Input SOLUTION Pbalance method • • No flow reversals TOLERANCE Convergence tolerance • • THERMO System • • Individual enthalpy. density TRANSPORT System • • PIPEPHASE Application Briefs xi . Table 1-3: Features Used in Example (21 A & 21B) Simulations Statement Feature Example Number 21 A 21B General Data Category of Input Pipeline • • Well • • CALCULATION Network • • 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.

Statement Feature Example
Number
21 A 21B
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
RISER Length/Elevation
ANNULUS Depth
TUBING Length, depth • •

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

PIPEPHASE Application Briefs xiii

Introduction

Chapter 1 PIPEPHASE EXAMPLE

Example 1 - Liquid - Pump
Simulation Model
In this simulation, PIPEPHASE calculates the pressure drop
through the system to ensure that the pump is adequately sized.

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).

Figure 1-1: Liquid - Pump

PIPEPHASE Application Briefs 1-1

1-2 PIPEPHASE EXAMPLE . The Kmul for the gate valve is 13.Pump The inside diameter of the pipe and elbows are 3. 2.068" and 3" respectively. The gravity is the only mandatory property required but viscosity and/or specific heat data should always be supplied if available. All elbows are 90º with a friction factor multiplier (Kmul) of 30. The solvent is defined as a single-phase liquid and its physical properties are entered into the Single Phase Liquid PVT Data dialog box. Click Edit in Fluid Property Data dialog box to display Single Phase Liquid PVT Data dialog box (see Figure 1-3 ). Fluid Property Data dialog box is opened by selecting PVT Data from General menu or by clicking the PVT Data icon . Otherwise these properties will be estimated from the gravity. 1. Figure 1-2: Schematic representation of Liquid .

Figure 1-3: Single Phase Liquid PVT Data Dialog Box PIPEPHASE Application Briefs 1-3 .

DLHORIZ(FT)=2000. PLOT=FULL. XCORD=1000. DATABASE=FULL. * RATE(ESTI)=1. FLASH=FULL.2. * VISC=32. * 0. IDPIPE=3. 0. 0. * IDNAME=LINK. IDANNULUS=6. 0. IDTUBING=4. * PROPERTY=FULL. RATE(LV)=GPM $ OUTDIMENSION SI.068. LENGTH=30.015. CONINS=0. IDIN=3. PRES=0. ID=3.068. HOUTSIDE=0.015. DATE=10/01/97 $ DESCRIPTION PUMP LIQUID SOLVENT FROM A STOCK TANK TO A HEADER TANK $ DIMENSION English. * EFF=90 PIPE NAME=PIP1. 0. 0.246 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=FEED. LENGTH=4. CP=0. GRAV(LIQUID. THKINS=0. FLOWAL=1 $ TOLERANCE PRESSURE=2 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE1. * 1-4 PIPEPHASE EXAMPLE . DEVICE=PART. ID=3. * ISOTHERMAL PUMP NAME=PMP1.015. HRADIANT=0 $ PRINT INPUT=FULL.026. * SIMULATOR=PART $ SEGMENT AUTO=ON.062. IDNAME=FEED. PRES(ESTI)=1. PRES(MAX)=30.525. * 0. XCORD=0. API)=46. Liquid $ FCODE PIPE=HW $ DEFAULT IDPIPE=4. IDFROM=FEED. TEMP=104. POWER=4. * CONNECT=NONE. PRESSURE=PSIG.015. YCORD=-125 $ SINK NAME=SINK. * PRINT ENTRANCE NAME=EN1 . * SETNO=1.395/ 122. MAP=TAITEL.068 PIPE NAME=PIP0.1.065. TO=SINK.026. * CONPIPE=29. 0. YCORD=-125 $ $ $ LINK NAME=LINK. DLVERT(FT)=500 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. KMUL=30.068. * ISOTHERMAL VALVE NAME=GAT1. IDTO=SINK. IDOUT=3. IDNAME=SINK. ADD $ CALCULATION NETWORK. PRIORITY=0. USER=SIMSCI. * KMUL=13 BEND NAME=BEN1. FROM=FEED. ID=3. * RATE=100. * HINSIDE=0. 0. * THKPIPE=0. SUMMARY=BOTH. 0.015.

ID=3. It is important to note that if the user generates an Excel report. ID=3. ID=3. only the Output UOMs will be displayed. KMUL=30. ISOTHERMAL BEND NAME=BEN4. select Output Units of Measure from General menu to specify the output units (see Figure 1-4). Excel reports unlike the ASCII Output reports only support a single UOM set.068 $ $ End of keyword file. ECHG=30. $ END Case Execution If alternate output dimensions (SI) are requested in addition to those used for the input data. * ROUGH(REL)=4. ROUGH(REL)=4.068.. IDPIPE=3.471e-004 PIPE NAME=PIP3.471e-004 PIPE NAME=PIP2. Normally.068. the UOM set corresponds to the UOM set defined in the PIPEPHASE simulation. ECHG=10.068. KMUL=30.. * ID=3. LENGTH=10. the Excel report will automatically use the output UOM set and ignore the original UOM set. * ISOTHERMAL BEND NAME=BEN3.471e-004 PIPE NAME=PIP4. If the user specifies an Output UOM set. ID=3. * ROUGH(REL)=4. LENGTH=70. KMUL=30. * ID=3. When the simulation is run the resulting output file displays results in both the original user specified Unit of Measurements (UOMs) and SI. LENGTH=30. PIPEPHASE Application Briefs 1-5 . * ROUGH(REL)=4. ISOTHERMAL BEND NAME=BEN2.471e-004 EXIT NAME=EX1 .

Figure 1-5: Run Simulation and View Results Dialog Box Note: The generation of Excel output reports does take some time and therefore. Figure 1-4: Output Units of Measurement Dialog Box Results 1. Click Run to solve the network. or click to display Run Simulation and View Results dialog box.. Select File/Run. users should ensure that their simulation has been 1-6 PIPEPHASE EXAMPLE .

After selecting the options in the Excel Reports dialog box. the user also needs to select Run Options located at the top right.Creates a Microsoft Access database with all the data to be displayed in the Excel Reports. which means that the pump is adequate for the intended application. solved and converged before generating complex output reports. 4. it skips running and converging the network model (it assumes that the user has previously converged the simulation). The user must select this option to generate an Excel Report.Simply runs and solves the simulation. ■ Create Excel Report .Creates a detailed Excel Report. and subsequently creates the Excel Report. The Links Reports in partic- ular can take several minutes to generate. Click Excel present in the top right-hand corner of this dialog box. everything is selected. The output report shows that the discharge pressure from the pipe is 15 psig or 205 kPa. By default.hand corner of the dialog box (see Figure 1-5). 3. In the above case. ■ Create Database . 5. the user has to click Run Current Network. In the Excel Reports dialog box. This displays the Excel Reports dialog box. creates the Access database. PIPEPHASE Application Briefs 1-7 . The user can select the reports that are to be displayed in Excel. The user should judiciously select the reports to be displayed as large simulation models contain numerous nodes and links. ■ Run Simulation . 2.

KPA 200 150 100 50 0 0 10 20 30 40 50 Distance from Inlet. Figure 1-6: Excel Output Surface Pressure Plot for Link LINK . M Fluid Excel report displays results in one set of units only.Base Case 350 300 250 Pressure. In this case the output UOM set. 1-8 PIPEPHASE EXAMPLE .

In addition to determining the production rate. EX2_BLACKOIL-WELL. EX2_BLACKOIL-WELL. the user is asked to determine the degradation in performance as the reservoir pressure declines and to investigate the effect of increasing the flow line diameter. recent reservoir data including a Vogel coefficient for the well is provided. Simulation Model In the simulation model. A 1. the user needs to determine the production rate for an oil well with a separator pressure of 25 Bar.0" choke is placed at the wellhead (See Figure 1-7). Figure 1-7: Blackoil Well PIPEPHASE Application Briefs 1-9 . The well tubing is deviated from the vertical and the flow line from the wellhead increases in elevation by 15m along its length.Example 2 -Blackoil Well Simulation Objective In this simulation.

1-10 PIPEPHASE EXAMPLE . Figure 1-8: Schematic Representation of Blackoil Well The well completion is gravel-packed with data as shown in Figure 1-9. The annulus between this metal sheet and the outer casing contains gas. The user must consider the heat transfer throughout the well bore and the flow line as shown in Figure 1-10. Figure 1-9: Gravel Packed Completion Dialog Box The well tubing is surrounded by a layer of insulation held in place by a metal sheet.

PIPEPHASE Application Briefs 1-11 . and Water Cut are defined. The default permeability is suitable for this gravel size. The fluid is modeled as a Blackoil where the Gravity. The Hagedorn-Brown (HB) pressure drop correlation is selected for the tubing device and the Beggs-Brill- Moody (BBM) correlation is used to calculate the pressure drop in the flow line. The inflow performance relationship is modeled using the Vogel IPR model. The SOURCE node temperature and pressure correspond to the reservoir conditions. An estimate for the flow rate is also supplied. The pressure boundary is fixed at each end and the flow rate is estimated.e. which is 45mm. 105mm - 60mm). Gas/Oil Ratio. Figure 1-10: Tubing Detailed Heat transfer Data The well is simulated as a single link. The tunnel length for the COMPLETION is the difference between the screen and the borehole radii (i.

FLOWAL=1 $ TOLERANCE PRESSURE=6. TYPE=VOGEL. SHOTS=25. 100 / VOGCON. LENGTH=1250. U=4. * SIMULATOR=PART $ SEGMENT AUTO=OFF. GRAV(GAS. IDNAME=RES. * XCORD=0. TO=SEPR.882 CHOKE NAME=CHK1.05099 $ PRINT INPUT=FULL. GRAV(OIL. 1-12 PIPEPHASE EXAMPLE . ECHG=15. IDANNULUS=154. IDTO=SEPR. 1 / * UPTIME. ID=1 PIPE NAME=LINE.873.SPGR)=0. YCORD=-125 $ SINK NAME=SEPR. * PRINT IPR NAME=IPR .5.1 COMPLETION NAME=Z001.. PLOT=FULL.1 / OPEN. Blackoil $ FCODE TUBING=HB $ DEFAULT IDPIPE=102. TUNNEL=45. DEVICE=FULL. TEMP=110. FN.882 $ $ End of keyword file. PRES=400.SPGR)=1. WCUT=5. Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE2. * PROPERTY=FULL. FROM=RES. RATE(LV)=CMHR.SPGR)=0. IDFROM=RES. DATE=10/01/97 $ DESCRIPTION BLACKOIL WELL SENSITIVITY ANALYSIS $ DIMENSION Metric. * RVAL=QMAX.26. FLASH=FULL. * IVAL=BASIS. MAP=TAITEL. NHOR=10. * ID=3. * ID=3. DEPTH=1710. PRES=25. ADD $ CALCULATION NETWORK. USER=SIMSCI.895e-003 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. * PERFD=10. ROUGH(IN)=0. LENGTH=1830. IDTUBING=102.2 / VOGEXP. * SETNO=1. * RATE(ESTI)=1. LENGTH=M. LENGTH=10 TUBING NAME=TUB1. * IDNAME=LINK. GOR=320.18. SUMMARY=BOTH. * DENSITY=SPGR $ OUTDIMENSION Metric. NVER=10 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. 2. * RATE(ESTI)=50. * CONNECT=NONE. * GRAV(WATER.. 0. IDNAME=SEPR. PRIORITY=0.26. JONES.71.IN. DATABASE=FULL. U=4.05 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=RES. YCORD=-125 $ $ $ LINK NAME=LINK.876. XCORD=1000.

350 OUTFLOW NAME=LINE. 4 IN DIA. 400 BAR. 4. * 4 1/2 IN DIA. 5 IN DIA INFLOW NAME=RES.5. * 70 DESCRIPTION INFLOW= 450 BAR. * PRES=450. * ID=3. $ END $ $Sensitivity Analysis Data Section $ GSENSITIVITY ANALYSIS LINK DATA $ LINK NAME=LINK NODE NAME=CHK1 FLOW RATE=40. 60.5. * 350 BAR DESCRIPTION OUTFLOW= 3 1/2 IN DIA. 50. 5 $ END GUI DATA PIPEPHASE Application Briefs 1-13 . 4. 400.

Select Network as the simulation Type and click the Run but- ton. The results are displayed in the Link worksheet and appear as shown in Figure 1-11. select Excel from the drop- down list in the Report menu. 4. To view the results in MS-Excel.Click the Excel button to dis- play the results. The simulation solves and converges successfully. Case Execution and Results To generate and view the calculated Pressure and Temperature profiles for the well bore: 1. To view the results in MS-Excel. The Run Simulation and View Results dialog box. 2. Click on the main toolbar. Figure 1-11: Well Pressure and Temperatures for Link 1-14 PIPEPHASE EXAMPLE . 3.

The wellhead choke is to be specified as the NODE. 4. Flow rates at the choke will be reported for the combinations of pressure and diameter. The Run Simulation and View Results dialog box as shown in Figure 1-13. The expected range of flow rates in the study is between 40 & 70 m3/h. Nodal Analysis Calculations To study the flow rates at different reservoir pressures and flow line diameter perform a Nodal Analysis. 1. Figure 1-12: Nodal Analysis Parameters 2. Enter the details in the Nodal Analysis Parameters dialog box as shown in Figure 1-12 - Nodal Analysis Parameters. Click on the main toolbar. 4". PIPEPHASE Application Briefs 1-15 . Click on the Nodal button to display the Nodal Analysis dialog box.5" and 5".5". Double click on the link to display the Link <LINK> Device Data dialog box. The reservoir pressure is investigated between 300 and 450 bar with flow line diameters of 3.

Click File/New and load the Nodal plot stored in the same loca- tion as the simulation. Enter the details and click the View Plot button. 5. 4. 6. Figure 1-13: Run Simulation and View Results 3. Click Special Plots button in the PIPEPHASE Result Access System window to display the RSA Special Plots dialog box. by clicking on the General menu in PIPEPHASE Result Access System window and selecting Setup options. Select Nodal Analysis as the simulation Type and click the Run button. To analyze the results. 1-16 PIPEPHASE EXAMPLE . click the RAS button to display the PIPEPHASE Result Access System window. 7. The Nodal Analysis simulation converges successfully. The RAS Nodal plots can be generated in Excel (see Figure 1-14).

Figure 1-14: Nodal Analysis of Pressure PIPEPHASE Application Briefs 1-17 .

Distillation Curve Simulation Objective In this simulation. The user is required to determine the pressure losses through the network. Figure 1-15: Distillation Curve Figure 1-16: Schematic representation of Distillation Curve 1-18 PIPEPHASE EXAMPLE . The user must also investigates the effect of raising the inlet pressure and of using larger diameter pipes. PIPEPHASE determines the pressure losses through the network and also investigates the effect of raising the inlet pressure and of using larger diameter pipes in the network Simulation Model Crude oil is heated before entering refinery distillation columns for separation into various petroleum products.Example 3 .

This is a compositional network model. Since the direction of flow
must be from left to right, the No Reverse Flow option can be
specified in the Network Convergence Data dialog box (see Figure
1-17 ).

Figure 1-17: Network Convergence Data Dialog Box

The crude oil is defined using a TBP (True Boiling Point)
distillation curve and an average API gravity. PIPEPHASE
automatically characterizes the oil by generating a number of
petroleum fractions with associated physical properties. Lightend
components are defined in addition to the crude oil distillation
curve, all properties for which are stored in internal component
databanks. Grayson-Streed K-values are used with Lee-Kesler
enthalpies and vapor density. Liquid density is calculated using the
API method.

PIPEPHASE Application Briefs 1-19

Input Data
$General Data Section
$
TITLE PROBLEM=EXAMPLE3, USER=SIMSCI, DATE=10/01/97
$
DESCRIPTION CRUDE OIL HEAT EXCHANGER NETWORK
$
DIMENSION RATE(LV)=BPH
$
CALCULATION NETWORK, Compositional
$
DEFAULT IDPIPE=4.026, IDTUBING=4.026, IDANNULUS=6.065
$
PRINT INPUT=FULL, DEVICE=FULL, PLOT=FULL, *
PROPERTY=FULL, FLASH=FULL, MAP=TAITEL, *
CONNECT=NONE, SUMMARY=BOTH, DATABASE=FULL, *
SIMULATOR=PART
$
SEGMENT AUTO=ON, DLHORIZ(FT)=2000, DLVERT(FT)=500
$
$Component Data Section
$
COMPONENT DATA
$
LIBID 1, C2 / *
2, C3 / *
3, IC4 / *
4, NC4 / *
5, IC5 / *
6, NC5 , BANK=PROCESS, SIMSCI
$
PHASE VL=1,6

$
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, *

1-20 PIPEPHASE EXAMPLE

TEMP=60, RATE(W)=1.5000e+006, ASSAY=LV, *
XCORD=0, YCORD=245
TBP DATA=3, 97 / 5, 149 / 10, 208 / *
20, 330 / 30, 459 / 40, 590 / *
50, 690 / 60, 770 / 70, 865 / *
80, 980 / 100, 1100
API AVG=31
LIGHTENDS PERCENT(LV)=3, NORMALIZE, *
COMPOSITION(LV)=1, 0.1 / 2, 0.2 / 3, 0.3 / *
4, 0.7 / 5, 0.5 / 6, 1.2
$
SINK NAME=PROD, IDNAME=PROD, PRES(ESTI)=1, *
RATE(ESTI)=1.500e+006, XCORD=1210, YCORD=55
$
JUNCTION NAME=J1, IDNAME=J1, XCORD=455, *
YCORD=185
JUNCTION NAME=J2, IDNAME=J2, XCORD=665, *
YCORD=235
$
$
LINK NAME=1, FROM=FEED, TO=J1, *
IDNAME=1, IDFROM=FEED, IDTO=J1, *
PRINT
PIPE NAME=Z001, LENGTH=20, ID=12, *
U=1
TEE NAME=Z002, IDPIPE=12, KMUL=20, *
ROUGH(REL)=1.000e-004
PIPE NAME=Z003, LENGTH=20, ID=10, *
U=1
DPDT NAME=E1, *
CURVE=5.0000e+005, -10, 50 / 1.5000e+006, -5, 40
PIPE NAME=Z005, LENGTH=20, ID=12, *
U=1
VENTURI NAME=Z006, IDPIPE=12, IDTHROAT=9.5, *
CPCV=1.45
CONTRACTION NAME=Z007, IDIN=12, IDOUT=10, *
ANGLE=135
PIPE NAME=Z008, LENGTH=5, ID=10, *
U=1
$
LINK NAME=2, FROM=J1, TO=J2, *
IDNAME=2, IDFROM=J1, IDTO=J2, *
PRINT
PIPE NAME=Z009, LENGTH=10, ID=10, *
U=1
BEND NAME=Z010, ID=10, KMUL=60, *
ROUGH(REL)=4.471e-004
PIPE NAME=Z011, LENGTH=40, ID=10, *
U=1
DPDT NAME=E2, *
CURVE=5.0000e+005, -10, 50 / 1.5000e+006, -5, 40
PIPE NAME=Z013, LENGTH=20, ID=10, *
U=1
ORIFICE NAME=Z014, Thick, IDPIPE=10, *
IDORIFICE=6
PIPE NAME=Z015, LENGTH=20, ID=10, *
U=1
BEND NAME=Z016, ID=10, KMUL=60, *
ROUGH(REL)=4.471e-004, HOMOGENEOUS
PIPE NAME=Z017, LENGTH=10, ID=10, *
U=1
$
LINK NAME=3, FROM=J1, TO=J2, *
IDNAME=3, IDFROM=J1, IDTO=J2, *
PRINT
PIPE NAME=Z018, LENGTH=10, ID=10, *
U=1
BEND NAME=Z019, ID=10, NONSTANDARD, *
ANGLE=60, RADIUS=30, KMUL=50, *
ROUGH(REL)=4.471e-004
PIPE NAME=Z020, LENGTH=40, ID=10, *
U=1

PIPEPHASE Application Briefs 1-21

DPDT NAME=E3, *
CURVE=5.0000e+005, -15, 40 / 1.5000e+006, -7, 35
PIPE NAME=Z022, LENGTH=40, ID=10, *
U=1
BEND NAME=Z023, ID=10, KMUL=60, *
ROUGH(REL)=4.471e-004, LAMBDA=1.1, C2=4
PIPE NAME=Z024, LENGTH=10, ID=10, *
U=1
$
LINK NAME=4, FROM=J2, TO=PROD, *
IDNAME=4, IDFROM=J2, IDTO=PROD, *
PRINT
PIPE NAME=Z025, LENGTH=5, ID=10, *
U=1
EXPANSION NAME=Z026, IDIN=10, IDOUT=12, *
ANGLE=135
PIPE NAME=Z027, LENGTH=40, ID=12, *
U=1
DPDT NAME=E4, *
CURVE=5.0000e+005, -10, 50 / 1.5000e+006, -5, 40
PIPE NAME=Z029, LENGTH=40, ID=12, *
U=1
$
$Case Study Data Section
$
CASE STUDY DATA
DESCRIPTION CASE STUDY 1
PARAMETER CCLASS=SOUR, CNAME=FEED , VARI=PRESSURE , *
Value=125

CASE STUDY DATA
DESCRIPTION CASE STUDY 2
PARAMETER CCLASS=SOUR, CNAME=FEED , VARI=PRESSURE , *
Value=114

PARAMETER CCLASS=PIPE , CNAME=GFROM, VARI=PIPE ID , *
Value=10

PARAMETER CCLASS=PIPE , CNAME=GNETWORK, VARI=PIPE ID , *
Value=12
$ End of keyword file...
$
END

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).

1-22 PIPEPHASE EXAMPLE

Figure 1-18: Node Summary PIPEPHASE Application Briefs 1-23 .

The pipeline runs over rough terrain and is buried 36 inches below the surface.country oil pipeline is to be converted to gas service. a portion of the pipeline is not insulated.5 inches of insulation with a thermal conductivity of 0.e. Figure 1-19: Gas Pipeline Figure 1-20: Schematic Representation of Example . soil) using built in correlations to determine the buried pipeline heat transfer coefficients. Even though the insulation is a liability for gas flow. it would be too expensive to remove it.Gas Pipeline 1-24 PIPEPHASE EXAMPLE . Simulation Model An obsolete.Example 4 . However. A five stage compressor is available and will be installed at the inlet of the pipeline. PIPEPHASE computes the heat loss to the surroundings (i.0116 BTU/hr- ft2-F.Gas Pipeline Simulation Objective In this simulation. cross . Most of the pipeline has 1.

The outlet temperature of the cooler is defined subject to the maximum design duty. soil) using built in correlations to determine the buried pipeline heat transfer coefficients. User can select Global Defaults from the General menu or click the Global Defaults icon . The thermal conductivities of the insulation and soil are also set as default values (see Figure 1-21). PIPEPHASE Application Briefs 1-25 . it will be set to the maximum value and the temperature will be higher than the specified value. A simple single-phase GAS fluid model is used to characterize the fluid. Figure 1-21: Pipe Heat Transfer Defaults Dialog Box The compressor has a power and efficiency specification. the most commonly used pipeline diameter. Line and route specifications are shown on the following page.e. The user must establish the rate of gas which can be delivered at a pressure of 600 psig. If the required duty exceeds this value. PIPEPHASE computes the heat loss to the surroundings (i. The required delivery pressure is specified as a fixed sink pressure boundary condition. To minimize the amount of input data. pipeline thickness and insulation thickness are set as global defaults. The maximum allowable operating pressure for the pipeline must also be checked for the new service.

0.376 1020 0.81 29.5 8 10.312 -260 0.5 7 11.5 10 16.6 29.1 29.376 -1570 0.25 587 0. The pipeline route and size data are shown in Table 1-1 below.375 1.469 1.4 29.5 29.375 1.375 1.25 -70 0.4 29.25 -230 0.25 160 0.5 19 42.062 681 0.9 29.7 29.5 16 5.5 18 10.375 1.5 4 0.375 1.9 29.5 3 4.5 2 1.5 17 16.375 - 11 25.5 6 5.8 29.5 14 0.375 1. 1-26 PIPEPHASE EXAMPLE .4 29.5 Pipeline profiles can be displayed by clicking View Profile (see Figure 1-22) in the Link Device Data dialog box.375 1.8 29.375 - 12 2.0 .376 150 0.375 1.500 1.7 29.78 29.25 -220 0.349 1.02 29.375 1. 0.79 26.376 1041 0.15 .312 1.376 400 0.8 29.0 0.376 -30 0.376 -170 0.375 1.5 5 1.375 1.376 -2220 0.7 29.5 15 14.376 0. Table 1-1: Pipeline Data Section Length Pipe ID Elevation Pipe Insulation (Miles) (in) Increase Thickness Thickness (ft) (in) (in) 1 15.375 1.3 29.376 1600 0.5 9 10.375 - 13 21.

Figure 1-22: Link Profile Window PIPEPHASE Application Briefs 1-27 .

0116.015.3. * SETNO=1.7998. * SOIL. * 0. HRADIANT=0. 0. DLVERT(FT)=500 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE.5.20117. DEVICE=FULL. LENGTH=83424. IDNAME=S1. IDFROM=S1.7. HOUTSIDE=0. Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE4. FROM=S1. IDTUBING=29. * HINSIDE=0. THKPIPE=0. 0.93.376. * CONT=0. YCORD=-125 $ SINK NAME=SINK. SOIL PIPE NAME=Z004.375.015. * ID=29. THKINS=1. Gas $ DEFAULT IDPIPE=29. 0. DATE=10/01/97 $ DESCRIPTION BURIED CROSS COUNTRY GAS PIPELINE $ DIMENSION RATE(GV)=CFD $ OUTDIMENSION Metric. 100. * PROPERTY=FULL.015. * 0. PRES=375.312 1-28 PIPEPHASE EXAMPLE . * RATE(ESTI)=1. * CONPIPE=29. ADD $ CALCULATION NETWORK. MAP=TAITEL. 100. * IDNAME=LINK. PLOT=FULL. PRIORITY=0.25. 100. * 100. USER=SIMSCI. * ROUGH(IN)=6. SUMMARY=BOTH. IDNAME=SINK. FLASH=FULL. XCORD=1000. LENGTH=25291. SOIL PIPE NAME=Z005. CONINS=0. DATABASE=FULL. TOUT=100. 0. * CONNECT=NONE. BDTOP=36 $ PRINT INPUT=FULL. * ID=29. 0. LENGTH=9556.0000e-004. ECHG=1041. * THKPIPE=0. * SIMULATOR=PART $ SEGMENT AUTO=OFF. FLOWAL=1 $ TOLERANCE PRESSURE=2 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. 0. TEMP=97. DUTY(MAX)=500 PIPE NAME=Z003. COND=0. YCORD=-125 $ $ $ LINK NAME=LINK. TO=SINK. CPRATIO=1.065. * SOIL. * RATE(ESTI)=500.25. IDTO=SINK. ECHG=587. POWER=27000 COOLER NAME=Z002. ECHG=160. EQUALPR.376. * PRINT MCOMPRESSOR NAME=Z001. TAMBIENT=50. STAGES=5.2. 0 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=S1. PRES=600. DLHORIZ(FT)=1000.015. GRAV(SPGR)=0. 0. * ADEFF=76. IDANNULUS=6. XCORD=0.

015 PIPE NAME=Z013. * SOIL PIPE NAME=Z008. SOIL. * SOIL PIPE NAME=Z019. LENGTH=1.344 PIPE NAME=Z016. LENGTH=31152. LENGTH=77616.0116.0116. ECHG=0.15. 0.015 PIPE NAME=Z014. CONINS=0. 0. * 0. * ID=29. 0. CONINS=0. ECHG=0. LENGTH=2.015. ECHG=681.59961. THKINS=0. LENGTH=54912. LENGTH=8976. SOIL PIPE NAME=Z012.015. 0. ECHG=-220. * SOIL PIPE NAME=Z009.312. 0. THKPIPE=0.150e+005. Note: Excel reports can only use a single UOM set. LENGTH=1. 0. * 0. ECHG=-170. THKPIPE=0. * 0. * SOIL PIPE NAME=Z011. 0.469 PIPE NAME=Z007. * 0. ECHG=1020. * ID=29. 0. LENGTH=10665. 0. SOIL. ECHG=-260. LENGTH=59664. ECHG=-30. * 0. * ID=29. * SOIL PIPE NAME=Z018. LENGTH=88176. ECHG=150. ECHG=-230. SOIL. * ID=29. * 0. * SOIL PIPE NAME=Z020.25. LENGTH=30624. 0.015.346e+005. ECHG=-1570.015 PIPE NAME=Z015.25. LENGTH=54912. ECHG=400. THKINS=0. * ID=29. CONINS=0. PIPE NAME=Z006.5 PIPE NAME=Z017. SOIL. SOIL. LENGTH=3168.015. ECHG=1600.015. THKPIPE=0. * 0.. then the Excel Reports will display all results in metric units.25. ECHG=0. * 0.015. 0.0116. THKINS=0..062. * ID=29.015. $ END Case Execution and Results If metric units are selected as the output UOM. * 0.015. ECHG=-70. PIPEPHASE Application Briefs 1-29 . * SOIL PIPE NAME=Z021. 0. * SOIL $ $ End of keyword file. 0. LENGTH=54912.223e+005. LENGTH=4224. ECHG=-2220. * SOIL PIPE NAME=Z010. SOIL.015. 0. LENGTH=89232. 0. * ID=29.

the user is required to: 1.Example 5 . Simulation Model Wet gas is produced offshore and subsequently transported to the shore through a 32-inch pipeline. Figure 1-23: Compositional Sub Sea Riser 1-30 PIPEPHASE EXAMPLE . 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. Determine the onshore slug catcher size.25 BTU/hr-ft2-F. and the total liquid holdup. EX5_COMPOSITIONAL-SUBSEA-RISER. the user must calculate the onshore fluid temperature. Assuming that the average seabed temperature is 10ºC. pressure. The wet gas passes through a booster platform where the gas is separated and compressed.Compositional Sub Sea Riser Simulation Objective In the simulation.16 BTU/hr-ft2-F. respectively. The gas is then re-combined with the condensate and sent to the onshore destination. The risers and downcomers are bare and heat transfer coefficients for heat loss to the water and air are computed to be 1. 2. liquid and vapor rate.60 and 0. To do this. the user must determine if hydrate will form in the line. Generate a fluid phase envelope and hydrate curves.

Compostional Sub Sea Riser Table 1-2: Pipe Details Section Length (m) Rise (m) Notes 1 10 -10 Downcomer in air 2 155 -155 Downcomer in water 3 38000 -177 Main line 4 39000 22 5 30400 35 6 4400 11 7 2600 -21 8 24000 25 9 9300 -15 10 3600 13 11 4100 -18 12 12800 25 13 8700 -26 14 11500 191 15 200 160 Riser to booster platform 16 10 10 Riser in air 17 10 -10 Downcomer in air 18 160 -150 Downcomer in water 19 17000 -184 20 5500 27 21 24900 -26 22 7700 31 23 49100 -9 PIPEPHASE Application Briefs 1-31 . Figure 1-24: Schematic Representation of Example .

It is important to differentiate between the two.6 m3/hr at the sink whereas. A single link simulation is used to determine the outlet pressure corresponding to the survey rate of 1. ■ Compositional runs provide flash reports at the inlet and outlet of the pipeline. All the required condensate properties are computed by PIPEPHASE from the supplied values of molecular weight and specific gravity. under standard conditions.000 metric tons of production with an inlet pressure of 143 bar. The link summary reports values at actual conditions. These reports show a detailed breakdown of gas and condensate compositions and associated properties. 1-32 PIPEPHASE EXAMPLE . no liquid exists. ■ The node summary reports values at standard conditions (see Figure 1-25). The Soave-Redlich-Kwong (SRK) equation of state is used to compute the liquid-vapor phase splits. The temperature profile for the pipeline is also computed via a heat balance over each calculation segment. Table 1-2: Pipe Details Section Length (m) Rise (m) Notes 24 900 6 25 19700 -10 26 6100 31 27 12600 -16 28 8700 18 29 3000 -19 30 15400 66 31 4600 42 32 20000 203 Shore The compositional fluid is modeled using library components with a petroleum pseudo-component to represent the heavy condensate. In this case the Link Summary reports an actual condensate flow rate of 88.

Figure 1-26: Flow Regime Map Flow Regime Map for LINK . M/SEC The temperature and pressure profiles for the pipeline can be viewed in the output report. The last vertical pipes are shown to be in annular flow. There is significant cooling of the gas in the initial downcomer.00E+00 A I 1. PIPEPHASE Application Briefs 1-33 .00E-01 X W 1. This is reflected in the phase diagram for the fluid (see Figure 1-27).1 1 10 100 1000 Superficial Gas Velocity. M/SEC 1. The results indicate single-phase and stratified flow through most of the pipeline.00E-02 0. Figure 1-25: Node and Link Summary Report ■ The Taitel-Dukler-Barnea flow regime map (see Figure 1-26) is used to accurately predict the flow pattern.Base CaseOutlet 1.00E+01 Superficial Liquid Velocity.00E+02 D 1. Initially a single-phase fluid as the temperature and pressure drop the fluid become two-phase as liquid condensate drops out of the gas. The traverse traces the temperature and pressure profile of the pipeline across the phase envelope.

DEG C Fluid Critical Point Water Saturation Fluid Traverse 1-34 PIPEPHASE EXAMPLE . Figure 1-27: Phase Envelope Map Phase Envelope for LINK .Base Case 160 140 120 Pressure. BAR 100 80 60 40 20 0 -200 -150 -100 -50 0 50 100 Temperature.

IC5 / * 10.70001. * THKPIPE=19.05. UTUBING=3432.0223. SYSTEM(VLE)=PRM $ KVALUE BANK=SimSci $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1.12 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. PLOT=FULL. VISC=1.0223. IDANNULUS=354. C3 / * 7. ROUGH(MM)=0. DENSITY=SPGR $ CALCULATION NETWORK. C1 / * 5. IDTUBING=300. SET=SET01 PIPEPHASE Application Briefs 1-35 .2383. UANNULUS=3432. * PROPERTY=FULL.1432. THKINS=45. 0. NC4 / * 9. * CONPIPE=43. Compositional $ DEFAULT IDPIPE=774.056. SLUG=BRILL $ SEGMENT AUTO=OFF. MAP=TAITEL. NC5 / * 11.05099. USER=SIMSCI. VELO=5 $ PRINT INPUT=FULL.44645. * 0.6694. * HINSIDE=0. HRADIANT=0. TAMBIENT=10. IC4 / * 8. * 0. FLOWAL=1 $ TOLERANCE PRESSURE=0. C2 / * 6.138 $ $Thermodynamic Data Section $ THERMODYNAMIC DATA $ METHOD SET=SET01. * ODTUBE=325. * SIMULATOR=PART. DEVICE=FULL. * WATER. NC6 / * 12. 0. 0. N2 / * 3. SUMMARY=BOTH. NC7 .211. DATABASE=FULL. SIMSCI $ PHASE VL=1.72. * DENSITY(SPGR)=1. COND=0.15734. DLHORIZ(M)=1500.0223. DLVERT(M)=100 $ $Component Data Section $ COMPONENT DATA $ LIBID 1. BANK=PROCESS.6694. HOUTSIDE=0. H2O / * 2. 0. CONINS=7.0223. FLASH=FULL. 0. 0. Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE5. * UPIPE=549. * CONNECT=NONE. CO2 / * 4. DATE=10/01/97 $ DESCRIPTION OFFSHORE GAS AND CONDENSATE PIPELINE $ DIMENSION Metric.

LENGTH=4600. 2.18 / 5. IPRES=40.19 / 3. ECHG=6 PIPE NAME=Z025.08 / 2. ECHG=-26 PIPE NAME=Z022. ECHG=18 PIPE NAME=Z029. * COMP(M)=1. PERCENT(COND)=100 COMPRESSOR NAME=C002. * U=549.7675 PIPE NAME=Z002. LENGTH=10. 0. LENGTH=24900. ECHG=31 PIPE NAME=Z023. LENGTH=8700. LENGTH=20000. ECHG=66 PIPE NAME=Z031. ECHG=191 PIPE NAME=Z015. ECHG=-177 PIPE NAME=Z004. LENGTH=6100.0000e+006. LENGTH=11500. * TEMP=47. ECHG=13 PIPE NAME=Z011. ECHG=10. 0. * IDNAME=LINK. ECHG=22. 2.29 / * 10. * U=1124. NAME=HYDRATE EVALUATION EVALUATE STREAM=SINK. LENGTH=24000. ECHG=42 PIPE NAME=Z032. * SETNO=1.7675 PIPE NAME=Z018. LENGTH=160. 0. ECHG=27 PIPE NAME=Z021. * PRINT PIPE NAME=Z001. LENGTH=900. ECHG=-10. ECHG=-15 PIPE NAME=Z010. LENGTH=12600.93 / 6.9121 PIPE NAME=Z019. ECHG=203 $ $UNIT OPERATION Data Section $ UNIT OPERATION DATA $ HYDRATE UID=H001. LENGTH=15400. PRIORITY=0. 0. ECHG=-18 PIPE NAME=Z012.0978 PIPE NAME=Z005. LENGTH=5500. LENGTH=38000. ECHG=31 PIPE NAME=Z027. COND PIPE NAME=Z017. 0. LENGTH=3600. PERCENT(WATER)=100. FROM=1. * U=175. TESTIMATE=50. * RATE(ESTI)=1.2 / 11.55 $ SINK NAME=SINK. INHIB(MEOH)=10 1-36 PIPEPHASE EXAMPLE . LENGTH=200. PRES=120. IDTO=SINK. 0. LENGTH=155. ECHG=-155. EFF=85 INJECTION NAME=I003. 4. FROM=S001. LENGTH=17000. LENGTH=49100. IDNAME=1. ECHG=-10. ECHG=-150. YCORD=-125 $ $ $ LINK NAME=LINK.54 / 8.9121 PIPE NAME=Z003. POINTS=30. ECHG=-35 PIPE NAME=Z006. * U=1124.7675 SEPARATOR NAME=S001. LENGTH=4100.69 / 9. ECHG=-9 PIPE NAME=Z024. ECHG=11 PIPE NAME=Z007. $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=1. ECHG=160. * MAXPRES=160. LENGTH=8700. ECHG=-16 PIPE NAME=Z028. RATE(W)=1.07 / * 4. LENGTH=10. LENGTH=30400. ECHG=25 PIPE NAME=Z013. 0. 0. * U=175. 87. LENGTH=3000. ECHG=-21 PIPE NAME=Z008. ECHG=-10 PIPE NAME=Z026. XCORD=0. PRES(ESTI)=40. PRES=143. XCORD=1000. LENGTH=39000. ECHG=-26 PIPE NAME=Z014. LENGTH=9300. TO=SINK. LENGTH=12800. IDFROM=1. * U=175. ECHG=-19 PIPE NAME=Z030. ECHG=25 PIPE NAME=Z009.98 / * 7. ECHG=-184 PIPE NAME=Z020. LENGTH=7700. * YCORD=-125. * U=1124. SET=SET01. LENGTH=4400. LENGTH=2600. LENGTH=10.3 / 12. LENGTH=19700.9121 PIPE NAME=Z016. IDNAME=SINK.000e+006.

Figure 1-28: Print Options Dialog Box 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). The slugging model is specified in the Print Options in the General menu (see Figure 1-28). 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.. $ $ End of keyword file.. $ END Case Execution For single link simulations. PIPEPHASE Application Briefs 1-37 .

Figure 1-29: Slugging Report 1-38 PIPEPHASE EXAMPLE . This is multiplied by the cross sectional area of the pipeline to determine the volume of the slug. In this case the mean slug length is calculated to be approximately 600 m.

Figure 1-30: Pigging Pipeline Figure 1-31: Schematic representation of Example .Example 6 .Pigging Pipeline PIPEPHASE Application Briefs 1-39 .Pigging Pipeline Simulation Objective In this simulation. Hence additional compression will be required. the Sphering or Pigging feature is used 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 delivery pressure at the end of the pipeline will become too low if the flow rate is increased. is to be performed in order to increase the throughput of the pipeline. sphering or pigging. which transports a two-phase natural gas mixture. Simulation Model A cross-country pipeline. is currently operating at maximum capacity.

and clicking the Sphering Analysis radio button (see Figure 1-32).this defines the rate for successive steady state sphering calculations. The user also needs to supply a time increment . defined petroleum components as the heavy ends. It is important that an appropriate time interval is selected in order to ensure that pipeline transients are adequately simulated. Pigging or sphering calculations can only be specified for single link simulations. The source has compositional fluid with two. which will be removed from the pipeline in order to size the slug catcher. 1-40 PIPEPHASE EXAMPLE . 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. Figure 1-32: Network Calculation Methods Dialog Box The user specifies the diameter and launch position for the sphere in the Pipe dialog box. The user must determine the quantity of liquid. The user activates the pigging calculations by selecting Calculation Methods from the General menu. The SRK equation of state and petroleum transport properties are selected as suitable for simulating the behavior of the natural gas mixture. The Cavett 1980 method is specified for characterizing the petro components.

UTUBING=1. In addition to activating the pigging calculations in the Network Calculation dialog box (see Figure 1-32). FLASH=FULL. * PROPERTY=FULL. DATABASE=FULL. PLOT=FULL. the user must also specify the size and location of the pig in the Pipe device dialog box (see Figure 1-33). UPIPE=0. three Pigs are launched at the beginning of pipes Z001. DLHORIZ(FT)=5000. IDANNULUS=6.8.065. DLVERT(FT)=500. SUMMARY=BOTH. C1 / * 2. Compositional. Figure 1-33: Pipe Dialog Box Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE6. In this case. Z003 and Z006 respectively . * CONNECT=NONE. * DTIM(SEC)=19 $ $Component Data Section $ COMPONENT DATA $ LIBID 1. C2 / * 3.each with different diameters. DEVICE=FULL. USER=SIMSCI. C3 / * PIPEPHASE Application Briefs 1-41 . * UANNULUS=1 $ PRINT INPUT=FULL. IDTUBING=8. SPHERING $ DEFAULT IDPIPE=8. * TAMBIENT=65. MAP=TAITEL. SLUG=BRILL $ SEGMENT AUTO=OFF. DATE=10/01/97 $ DESCRIPTION PIPELINE SPHERING EXAMPLE $ DIMENSION English $ CALCULATION NETWORK. * SIMULATOR=PART.

8 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. SET=SET01 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=Q012.8 $ $ End of keyword file. * RATE(ESTI)=1. 350. BANK=PROCESS. * XCORD=0. ECHG=120.8 PIPE NAME=Z005. 0. LENGTH=3696. 88.. * ID=12. * U=0.18 $ SINK NAME=SINK.15 / 3.8 PIPE NAME=Z007. 45. LENGTH=2640. IDSPHERE=8. U=0. * ID=8.11 / * 7.04 / 5. FROM=Q012. IDNAME=Q012. ECHG=-118. ECHG=100. FLOWAL=1 $ TOLERANCE PRESSURE=2 $ $Thermodynamic Data Section $ THERMODYNAMIC DATA $ METHOD SET=SET01. 2. NC5 / * 6.8 PIPE NAME=Z002. NC4 / * 5. . 1. PETRO2.000.000. ECHG=-10. 480.55 / 8. 38. 1. TEMP=120.69 / * 4. SIMSCI PETRO(API) 7. IDNAME=SINK. ECHG=-69.8 PIPE NAME=Z003. NC6 . 3. ECHG=58. ECHG=154. 4. * U=0. U=0. PRES(ESTI)=1. * COMP(M)=1. 2. 0. YCORD=-125 $ $ $ LINK NAME=LINK. U=0. LENGTH=8448. $ END 1-42 PIPEPHASE EXAMPLE . U=0. ID=12..61 / 2. * PRES=350. PETRO1. XCORD=1000.000 / * 8. YCORD=-125. * IDSPHERE=12.8 PIPE NAME=Z006.1.8 PIPE NAME=Z004. LENGTH=4224. LENGTH=264. TO=SINK.000 $ PHASE VL=1.8 PIPE NAME=Z008. U=0. RATE(GV)=0. SYSTEM=SRK $ WATER PROPERTY=Super $ KVALUE BANK=SimSci $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. LENGTH=6336.7667.1. * U=0. * PRINT PIPE NAME=Z001. * ID=12. IDFROM=Q012. LENGTH=9504. * IDSPHERE=8. LENGTH=6336. IDTO=SINK.67 / 6. . PRIORITY=0. * IDNAME=LINK.

Case Execution and Results The results of the pigging analysis can be reviewed in the basic output or in the Excel report (see Figure 1-34). Figure 1-34: Sphering Report PIPEPHASE Application Briefs 1-43 . Note: The pigging model in PIPEPHASE is a steady state model. A fully transient pigging model is available in TACITE.

PIPEPHASE determines the optimum lift gas injection rate to increase the production of an oil well. The reservoir pressure. Figure 1-35: Well Test Data 1-44 PIPEPHASE EXAMPLE . The user needs to investigate the feasibility of injecting the gas for continuous gas-lift. formation Gas-Oil ratio and water cut are known.Example 7 . The well inflow performance coefficient is not known but test data is available. The injection pressure and gas-lift valve location are fixed. well-head pressure.Well Test Data Simulation Objective In this simulation. The user needs to determine the optimum lift gas injection rate. Simulation Model A large amount of separator gas that is available from an oil well could be used to increase production.

The lift gas flows down an annulus surrounding the production tubing. Figure 1-36: Schematic Representation of Well Test Data The user should select Gas Lift Analysis as the simulation type (see Figure 1-37). Only the single link model support this simulation type. PIPEPHASE Application Briefs 1-45 . Figure 1-37: Simulation Definition Dialog Box Source and Well Test Data needs to be entered as shown in the Figure 1-38.

Figure 1-38: Blackoil Well Test Data Dialog Box The injection depth is specified in the Injection Performance dialog box (see Figure 1-39). found in the Gas Lift Options in the Special Features menu. Figure 1-39: Injection Performance Dialog Box 1-46 PIPEPHASE EXAMPLE .

DATE=10/01/97 $ DESCRIPTION BLACKOIL WELL WITH GAS LIFT DESCRIPTION Gas in Annulus. DEPTH=8500.2 $ PRINT INPUT=FULL. YCORD=437 WTEST NAME=TUB1. * RATE(ESTI)=400. * PROPERTY=FULL.02 LIFTGAS GRAV(GAS. GRAV(GAS. * ODTUBE=2. Well test conditions can be referred to the outlet of any flow device in the well or flow line string.API)=28. In this case they are at the wellhead.SPGR)=1. PLOT=FULL. U=1. Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE7. RESP=2100.026. * RATE(ESTI)=1. TEMP=182.82 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=Q001. TGRAD=1. * XCORD=0. * CONNECT=NONE.065. IDANNULUS=6. DEVICE=FULL. FCODE=ORK $ $GAS LIFT Data Section $ GASLIFT CAPACITY PRES=950 . RATE=400. GOR=500. DEPTH=5900 .4000e-003. WCUT=5 $ SINK NAME=SINK.875.SPGR)=0. IDANNULUS=6. PRIORITY=0. ID=2. Oil in tubing. FLASH=FULL. PIPEPHASE makes a preliminary pass using the well test data to determine the inflow Performance coefficient (PI) before it makes the individual injection rate calculations.9 $ LINK NAME=PROD.336. TEMP=100 . DEPTH=8500. PRINT TUBING NAME=TUB1. DESCRIPTION Well test data used to calculate PI $ DIMENSION RATE(LV)=BPD $ CALCULATION GASLIFT. * GRAV(WATER. PI . IDNAME=Q001. SUMMARY=BOTH. * GOR=500. PRES=165. IDTUBING=4. * SETNO=1. IDNAME=SINK. PRES=2100.026. * ROUGH(IN)=2. DATABASE=FULL. * TEMP=109. * PIPEPHASE Application Briefs 1-47 . DLVERT(FT)=1000 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. PRES=142. PRINT ANNULUS NAME=ANN1.441. GRAV(OIL. MAP=TAITEL. * U=1. USER=SIMSCI.85.SPGR)=0.00001. XCORD=1060. WCUT=5. * SIMULATOR=PART $ SEGMENT DLHORIZ(FT)=2000. Blackoil $ DEFAULT IDPIPE=4. YCORD=-144 $ $ $ LINK NAME=GASL.

000e-003 / 0. RATE=1. Note: In PIPEPHASE 9. Results can be reviewed in the ASCII output report.3..4 / * 0. $ END 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.6 / 0. Figure 1-40: Output Report 1-48 PIPEPHASE EXAMPLE . Excel reports do not support the gas-lift analysis simulation type.2 / 0.8 / 1 / 2 / * 3 / 4 $End of GAS LIFT Data Section $ $ End of keyword file. Results Click Run and solve the simulation..

Example 8 . temperature and fluid properties. I.Blackoil Gathering Network Simulation Objective This simulation determines the flow distribution and the overall capacity of the system. flow lines and trunk lines with a loop [C-D-E] in the main trunk line. Figure 1-41: Blackoil Gathering Network Figure 1-42: Schematic Representation of Blackoil Gathering Network PIPEPHASE Application Briefs 1-49 . All the wells in a region have the same pressure. The user needs to determine the flow distribution and the overall capacity of the system. Simulation Model The gathering system is comprised of several wells.A. G and H. The field is divided into four regions .

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. The wells in each area have the same properties and conditions. Figure 1-44: Inflow Performance Relationship Dialog Box 1-50 PIPEPHASE EXAMPLE . Figure 1-43: Blackoil Source Click the link (A4-A) to display Device Data dialog box (see Figure 1-44). The reference source facility can be used to simplify the input data for the Source nodes (see Figure 1-43).

SPGR)=1. * RATE(ESTI)=4547. GRAV(OIL. GOR=650. IDNAME=I1.9. UANNULUS=1 $ PRINT INPUT=FULL. * XCORD=475. PRES=2500. PRES=2100.06 SET SETNO=3.596 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. HALVINGS=1 $ TOLERANCE PRESSURE=0. * XCORD=1899. * RATE(ESTI)=7171. WCUT=5.75. GOR=650. * GRAV(WATER. * SETNO=1. PRIORITY=0. PRES=2000. TUBING=HB $ DEFAULT IDPIPE=10. * TAMBIENT=120.SPGR)=1. * SETNO=1. DEVICE=FULL. DATABASE=FULL.5977. * XCORD=245. * RATE(ESTI)=4807.API)=26. * UTUBING=1. GOR=650. * PROPERTY=FULL. GRAV(GAS.6284.API)=30. PLOT=FULL. TEMP=220.95. YCORD=-101 $ SOURCE NAME=H1.SPGR)=0. IDNAME=H1.85. GRAV(GAS. TEMP=240. PRIORITY=0. * GRAV(WATER. TEMP=260. IDNAME=A1. YCORD=660 $ SOURCE NAME=I1. WCUT=5. * RATE(ESTI)=5054. * SETNO=2. WCUT=5. GRAV(OIL. * MAXITER=50.SPGR)=0. USER=SIMSCI. WCUT=5. GOR=650.06 SET SETNO=2. PRIORITY=0. PRES=2400. * SETNO=3. PRIORITY=0. IDANNULUS=6. STEP=1. IDNAME=G1. UPIPE=1.065. TGRAD=2.SPGR)=0. DATE=10/01/97 $ DESCRIPTION BLACKOIL LOOPED GATHERING NETWORK $ DIMENSION RATE(LV)=BPD $ CALCULATION NETWORK. MAP=TAITEL. * CONNECT=NONE. GRAV(OIL. FLOWAL=2. GRAV(GAS. FLASH=FULL. DLVERT(FT)=500 $ LIMITS PRES(MIN)=-14. IDTUBING=3.SPGR)=1. * XCORD=1875. SUMMARY=BOTH. YCORD=640 $ PIPEPHASE Application Briefs 1-51 . Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE8.5415. TEMP=220. * GRAV(WATER.API)=33. Blackoil $ FCODE PIPE=BB.476. DLHORIZ(FT)=2000.1 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. QDAMP=5000.06 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=A1. * SIMULATOR=PART $ SEGMENT AUTO=OFF. YCORD=-264 $ SOURCE NAME=G1.

IDFROM=A1. YCORD=963 $ SOURCE NAME=I2. XCORD=81. * YCORD=304 JUNCTION NAME=C. PRINT 1-52 PIPEPHASE EXAMPLE . IDNAME=A4. IDTO=A. FROM=A1. * REFSOURCE=G1. IDNAME=G. XCORD=1630. XCORD=1475.1 TUBING NAME=Z002.476. * RATE(ESTI)=6928. IDNAME=D. * YCORD=290 JUNCTION NAME=H. PRINT PIPE NAME=Z016. PRIORITY=0. * WCUT=0. PRIORITY=0. PRES=100. TO=A.35156. PRIORITY=0. * YCORD=649 JUNCTION NAME=I. FROM=A2. YCORD=395 $ SOURCE NAME=G4. * REFSOURCE=I1. XCORD=22. IDNAME=A2. * REFSOURCE=G1. IDNAME=H. * IVAL=BASIS. YCORD=216 $ SOURCE NAME=A4. XCORD=1770. 0. * YCORD=443 JUNCTION NAME=D. ECHG=-100. XCORD=694. PRINT IPR NAME=IPR1.2366. IDNAME=I. * REFSOURCE=H1. PRIORITY=0. XCORD=1116. * REFSOURCE=A1. XCORD=550. XCORD=1410. IDNAME=A5. * IDNAME=A-B. IDNAME=H3. IDNAME=G3. XCORD=0. * REFSOURCE=A1. IDNAME=E. * RATE(ESTI)=35323. PRIORITY=0. XCORD=848. FROM=A. XCORD=1753. IDNAME=A. * ID=19. LENGTH=1000. IDNAME=I2. * IDNAME=A1-A. IDNAME=C. PRIORITY=0.98486. * RATE(ESTI)=75662. LENGTH=70000. PRIORITY=0. YCORD=-245 $ JUNCTION NAME=A. XCORD=1970. DEPTH=5000. IDNAME=G4.44922. YCORD=453 $ SOURCE NAME=A5. IDFROM=A2. * REFSOURCE=A1. IDTO=B. XCORD=1102. 1 / * UPTIME. * YCORD=518 $ $ LINK NAME=A-B. * RVAL=QMAX. * REFSOURCE=A1. XCORD=1468.62842. * YCORD=153 JUNCTION NAME=G. * IDNAME=A2-A. 2. GOR=0. TYPE=VOGEL. 18400 / VOGCON. IDTO=A. IDFROM=A. U=1 $ LINK NAME=A2-A. * REFSOURCE=G1. ECHG=0. * RATE(ESTI)=7171. IDNAME=H2. IDNAME=F. IDNAME=A3. PRIORITY=0. IDNAME=G2. SOURCE NAME=A2. YCORD=-38 $ SOURCE NAME=A3. U=1 PIPE NAME=Z003. YCORD=-245 $ SOURCE NAME=H2. XCORD=1940. * REFSOURCE=H1. XCORD=823. PRIORITY=0. TO=B. XCORD=191. * YCORD=243 JUNCTION NAME=B. YCORD=130 $ SOURCE NAME=G3. * YCORD=448 JUNCTION NAME=E. YCORD=867 $ SOURCE NAME=H3.1 / OPEN. RATE(ESTI)=2453. IDNAME=B. YCORD=618 $ SOURCE NAME=G2. * ID=3. YCORD=810 $ SINK NAME=F. TO=A.2 / VOGEXP. XCORD=1372. PRIORITY=0. U=1 $ LINK NAME=A1-A.

* ID=23.2 / VOGEXP. IDTO=C. 0. 0. FROM=B. * ID=3. 18000 / VOGCON.100e+005. PRINT PIPEPHASE Application Briefs 1-53 .96875. PRINT PIPE NAME=Z044. U=1 $ LINK NAME=C-E. IDTO=F. LENGTH=5000. ECHG=300. * IDNAME=E-F. IDFROM=C. * U=1 PIPE NAME=Z006. IDFROM=D. * ID=3.35156. FROM=A5. IDFROM=A5. LENGTH=5500. * ID=3. ECHG=0. TO=A. LENGTH=800. * U=1 $ LINK NAME=C-D. * ID=23. 1 / * UPTIME. DEPTH=4950.2 / VOGEXP.1 / OPEN. * RVAL=QMAX. FROM=D. U=1 $ LINK NAME=B-C. ECHG=0.1 TUBING NAME=Z008. LENGTH=1100. * IVAL=BASIS. IDTO=A. U=1 $ LINK NAME=E-F.19727. 2. PRINT PIPE NAME=Z022. 1 / * UPTIME. ECHG=-5. LENGTH=5440. IDTO=A. IDTO=E. U=1 $ LINK NAME=A4-A.2 / VOGEXP. * RATE(ESTI)=38321. TYPE=VOGEL. IDTO=D. * RATE(ESTI)=37340. * RVAL=QMAX. LENGTH=1. PRINT IPR NAME=IPR5. 0.476. U=1 $ LINK NAME=D-E. FROM=E. * U=1 PIPE NAME=Z009. 2. U=1 $ LINK NAME=A3-A. TYPE=VOGEL. IDFROM=B. * ID=3.1 / OPEN. IDFROM=A3. FROM=A4. LENGTH=3000. IDFROM=C. 1 / * UPTIME. TO=A. LENGTH=1. IDFROM=A4. * IDNAME=A4-A.476. * IDNAME=A5-A.1 TUBING NAME=Z014.1 / OPEN. LENGTH=850. TYPE=VOGEL. PRINT IPR NAME=IPR4. * RATE(ESTI)=7284. * ID=23. TO=D. IDTO=A. FROM=C. TO=F. ECHG=5. * RATE(ESTI)=6926. * IDNAME=C-D. PRINT IPR NAME=IPR3. DEPTH=5300. PRINT PIPE NAME=Z033. * IVAL=BASIS. FROM=C. * IDNAME=B-C. ECHG=200. * U=1 PIPE NAME=Z015. * IVAL=BASIS. 19000 / VOGCON. * RATE(ESTI)=7012. IDTO=E. DEPTH=5200.1 TUBING NAME=Z005. DEPTH=5100.80273.476.150e+005. * RATE(ESTI)=75662. IDFROM=E. * RATE(ESTI)=20707. U=1 $ LINK NAME=A5-A. 2. ID=19. * U=1 PIPE NAME=Z012. 1 / * UPTIME.01465. IPR NAME=IPR2. LENGTH=5500.34766.1 / OPEN.476. 18100 / VOGCON. 0. ECHG=100. TYPE=VOGEL. 17500 / VOGCON. * RVAL=QMAX.2 / VOGEXP. LENGTH=500.01758. TO=C. * IDNAME=D-E. PRINT PIPE NAME=Z043. * IDNAME=C-E. FROM=A3. * IVAL=BASIS. TO=A. * RVAL=QMAX. TO=E. * IDNAME=A3-A. TO=E. LENGTH=15000.1 TUBING NAME=Z011.39063. 2. * RATE(ESTI)=45254.

PRINT TUBING NAME=Z029. LENGTH=7100.23657. TO=G. * RATE(ESTI)=2453. U=1 $ LINK NAME=G4-G.441. * ID=2. * RATE(ESTI)=4656. * ID=4. LENGTH=16000. IDFROM=H.75391. IDTO=C. LENGTH=1. TO=H. LENGTH=8900. * IDNAME=G4-G. * ID=2.992. IDTO=G. IDTO=G. DEPTH=7550. ECHG=-5. * ID=2. LENGTH=1000. IDFROM=G4.5415. * IDNAME=G3-G. * U=1 $ LINK NAME=G2-G.400e+005. * ID=4. LENGTH=33000. FROM=G. ID=4. * RATE(ESTI)=4807. LENGTH=4500. TO=G. * IDNAME=H-C. * IDNAME=H3-H. FROM=G3. TO=D. LENGTH=9000.441. PRINT TUBING NAME=Z034. U=1 $ LINK NAME=G3-G. * ID=2. IDFROM=H1. U=1 $ LINK NAME=G-D. U=1 $ LINK NAME=H1-H. IDTO=D. * ID=4. * RATE(ESTI)=13774. LENGTH=6900.441. ECHG=-50.82227.25. U=1 1-54 PIPEPHASE EXAMPLE . IDTO=G. * RATE(ESTI)=4547. PRINT TUBING NAME=Z036. ECHG=-5. FROM=H3.13477. * RATE(ESTI)=16633. * IDNAME=G1-G. LENGTH=500. IDFROM=G. DEPTH=6000.441. U=1 TUBING NAME=Z027. FROM=H. U=1 PIPE NAME=Z028. IDFROM=H2. DEPTH=7400. DEPTH=5900.59766. DEPTH=6000. PRINT TUBING NAME=Z026. * ID=15. * RATE(ESTI)=4570. * IDNAME=H2-H. LENGTH=7050. FROM=H2. FROM=G4. LENGTH=750. U=1 PIPE NAME=Z037. U=1 PIPE NAME=Z035. U=1 $ LINK NAME=H-C. DEPTH=6200. * IDNAME=G-D. IDTO=G. * ID=2. ECHG=-5. * IDNAME=H1-H. TO=C. FROM=G1. ECHG=-550. U=1 PIPE NAME=Z041. U=1 PIPE NAME=Z025. IDTO=H. PRINT TUBING NAME=Z040. FROM=H1. LENGTH=1000. DEPTH=4000. IDFROM=G1. U=1 TUBING NAME=Z024. IDFROM=G3. * ID=2. * ID=2.441. U=1 PIPE NAME=Z039. PRINT PIPE NAME=Z032. * RATE(ESTI)=4764. PRINT PIPE NAME=Z042. DEPTH=7500. LENGTH=9100. IDFROM=G2. TO=G.441. * ID=4. TO=H.992.441.4707. TO=G. TO=H. IDTO=H. LENGTH=4500. PRINT TUBING NAME=Z038. IDFROM=H3. * ID=2. * ID=12. ECHG=0. * U=1 $ LINK NAME=H2-H. LENGTH=500. DEPTH=4100. LENGTH=7000. PRINT TUBING NAME=Z023. PIPE NAME=Z045. FROM=G2. U=1 $ LINK NAME=G1-G. U=1 $ LINK NAME=H3-H.19336. ECHG=-100. IDTO=H. * ID=29. ID=4. LENGTH=600.28027. * RATE(ESTI)=4608. * IDNAME=G2-G. * ID=2.

DEPTH=5000.. * IDNAME=I1-I. TO=B. 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). LENGTH=500. PIPEPHASE Application Briefs 1-55 . FROM=I. Results For Link A1-A. * ID=4.75. $ END Case Execution The pressure drop correlations are used to calculate the flow regime in the wells and pipelines. PRINT TUBING NAME=Z019. * ID=2. IDTO=B. DEPTH=3900. ECHG=10.89844. * ID=2. DEPTH=5200. LENGTH=650. * RATE(ESTI)=4876. U=1 $ LINK NAME=I1-I.. TUBING NAME=Z030. TO=I. PRINT PIPE NAME=Z021. ECHG=5. PRINT TUBING NAME=Z017. In addition PIPEPHASE also uses the Taitel-Dukler-Barnea flow pattern map to determine the flow pattern at the exit of each link. * ID=4. * ID=2. U=1 $ LINK NAME=I2-I. IDFROM=I2. * RATE(ESTI)=9930. LENGTH=6100. LENGTH=6000. LENGTH=4300. * RATE(ESTI)=5054. IDFROM=I1. IDTO=I. FROM=I2. LENGTH=650.992.441. * ID=4. * IDNAME=I2-I. * ID=10. U=1 PIPE NAME=Z020. IDTO=I. U=1 PIPE NAME=Z031.441. LENGTH=3000. FROM=I1. TO=I. ECHG=-100. * IDNAME=I-B.14844. U=1 PIPE NAME=Z018. U=1 $ $ End of keyword file. ECHG=0. IDFROM=I. U=1 $ LINK NAME=I-B.

Figure 1-45: Flow Regime Map 1-56 PIPEPHASE EXAMPLE .

2. There are numerous loops and crossovers in the distribution system.Condensate-Network PIPEPHASE Application Briefs 1-57 . However. Simulation Model Rich gas is gathered from several sources and distributed to two terminals. The flows are known for sources 1. The user must determine the amount of gas delivered to each terminal as well as the unknown source flow rates.Gas Condensate Network Simulation Objective In the simulation. Also. The conditions in the network are such that liquid condensate should not form. The user can disregard heat transfer between the distribution network and surrounding environment. PIPEPHASE determine the amount of gas delivered to each terminal as well as the unknown source flow rates. 3 and 4. Figure 1-46: Gas. The conditions in the network are such that liquid condensate should not form. the pressures are fixed at other sources and terminals.Example 9 . All lines are insulated and the gas can be assumed to be isothermal everywhere. the user should ensure that this is in fact the case.

Network In order to check for condensation. Figure 1-48: Gas Condensate PVT Data Dialog Box 1-58 PIPEPHASE EXAMPLE . The pressure drop calculations are performed using the Dukler-Eaton-Flannigan correlation. the fluid is modeled as a gas condensate system with gravity data supplied for both the gas and condensate phases (see Figure 1-48). Figure 1-47: Schematic Representation of Gas .Condensate .

YCORD=60 $ SOURCE NAME=3.065 $ PRINT INPUT=FULL. GRAV(COND. DLHORIZ(MI)=0. IDANNULUS=6. * PROPERTY=FULL. TEMP=85. * XCORD=1905. CGR=0. YCORD=620 PIPEPHASE Application Briefs 1-59 . TEMP=85. IDNAME=2.IN. PRIORITY=0. * XCORD=580. Condensate $ FCODE PIPE=MOODY $ DEFAULT IDPIPE=4. IDNAME=6. YCORD=-610 $ SOURCE NAME=4. PRIORITY=0. LENGTH=MI. SUMMARY=BOTH. USER=SIMSCI. PLOT=FULL. WGR=0. PRIORITY=0. PRES=240. TEMP=85. MAP=TAITEL. * RATE(ESTI)=4. IDTUBING=4. TEMP=85. * CONNECT=NONE.095 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. * GRAV(WATER. * SIMULATOR=PART $ SEGMENT AUTO=OFF. * SETNO=1. * XCORD=0. * RATE=85.189. IDNAME=4. TEMP=85.802. WGR=0.026. * SETNO=1. * RATE=150. WGR=0. PRIORITY=0.SPGR)=0. DATE=03/04/99 $ DESCRIPTION GAS GATHERING AND DISTRIBUTION SYSTEM $ DIMENSION RATE(GV)=CFD. WGR=0.SPGR)=0. FLOWAL=3. * RATE=150. * SETNO=1. CGR=0. PRES(ESTI)=269. MAXITER=40 $ TOLERANCE PRESSURE=0. IDNAME=5. * XCORD=1915. WGR=0. PRES(ESTI)=263. * SETNO=1.026. YCORD=305 $ SOURCE NAME=6. GRAV(GAS.708. * RATE(ESTI)=4. * XCORD=1215. IDNAME=3. PRES(ESTI)=259. FLASH=FULL. YCORD=310 $ SOURCE NAME=2. DLVERT(MI)=0. WGR=0.SPGR)=1 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=1. PRES=250. PRIORITY=0. CGR=0. DATABASE=FULL. CGR=0. IDNAME=1. TEMP=85.1 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. DEVICE=FULL. Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE9. DENSITY=SPGR $ CALCULATION NETWORK. PRES(ESTI)=280. * RATE=50. * SETNO=1. * SETNO=1. * XCORD=0. CGR=0. YCORD=-580 $ SOURCE NAME=5. CGR=0. PRIORITY=0.

* ISOTHERMAL $ LINK NAME=2A-B. CGR=0. IDNAME=J2. * XCORD=715. IDNAME=J5. * ISOTHERMAL $ LINK NAME=1B-A. IDNAME=J3. * XCORD=880. ID=8. ID=22.568. * XCORD=1450. * XCORD=1580. * XCORD=1550. LENGTH=0. PRES(ESTI)= 234. YCORD=-360 JUNCTION NAME=J4. IDNAME=D. YCORD=565 JUNCTION NAME=I. * XCORD=720. IDTO=J1.75. $ SOURCE NAME=7. * XCORD=900. YCORD=330 JUNCTION NAME=B. * RATE(ESTI)=135. PRES(ESTI)= 252. PRIORITY=0. PRES(ESTI)= 246. YCORD=650 $ $ LINK NAME=1-J1. * IDNAME=1A-A. TEMP=85. IDNAME=H. IDTO=J2. PRES(ESTI)= 246. IDNAME=I. YCORD=15 $ JUNCTION NAME=A. * XCORD=1075. FROM=J1. LENGTH=1. IDNAME=J1. * XCORD=885. PRES=200. TO=J1.75. IDFROM=J2. XCORD=160. IDNAME=G. * XCORD=420. IDTO=A. * IDNAME=1B-A.000e-003. YCORD=395 JUNCTION NAME=H. IDNAME=B. IDFROM=J1. * SETNO=1. TO=J2. * XCORD=1440. * XCORD=415. * ISOTHERMAL $ LINK NAME=2-J2. * XCORD=1305. IDNAME=F. WGR=0. ID=10. * PRINT 1-60 PIPEPHASE EXAMPLE . TO=A. ID=22. YCORD=105 JUNCTION NAME=G. IDFROM=2.5. YCORD=260 JUNCTION NAME=G1. LENGTH=0. YCORD=80 JUNCTION NAME=C. * XCORD=345. * XCORD=1325. YCORD=-150 JUNCTION NAME=E. * PRINT PIPE NAME=Z002. * IDNAME=1-J1. * PRINT PIPE NAME=Z008. PRES(ESTI)= 246. YCORD=330 JUNCTION NAME=J2. IDFROM=J1. YCORD=485 JUNCTION NAME=J1. FROM=J2. PRES(ESTI)= 246. YCORD=-60 JUNCTION NAME=J5. FROM=1. PRES(ESTI)= 235. XCORD=1910. YCORD=330 JUNCTION NAME=J6. IDNAME=E. IDNAME=10. IDNAME=A. * IDNAME=2A-B. PRES(ESTI)= 246. * XCORD=1160. IDNAME=11. PRES=200. YCORD=700 $ SINK NAME=10. FROM=2. YCORD=-100 JUNCTION NAME=D. IDNAME=C. LENGTH=1. * XCORD=1250. * ISOTHERMAL $ LINK NAME=1A-A. YCORD=-180 JUNCTION NAME=F. IDNAME=J6. PRES(ESTI)= 246. IDNAME=7.125. YCORD=-330 SINK NAME=11. * RATE(ESTI)=4. IDTO=A. IDNAME=J4. * PRINT PIPE NAME=Z009. TO=B. PRES=250.25. PRES(ESTI)= 259. PRES(ESTI)= 246. PRES(ESTI)= 229. * IDNAME=2-J2. YCORD=80 JUNCTION NAME=J3. * RATE(ESTI)=312. PRES(ESTI)= 258. FROM=J1. * PRINT PIPE NAME=Z001. PRES(ESTI)= 248. IDTO=B. IDNAME=G1. PRES(ESTI)= 246. IDFROM=1. PRES(ESTI)= 232. TO=A.000e-003.

* ISOTHERMAL $ LINK NAME=3A-D. ID=12. IDTO=B. LENGTH=1.5.189. TO=F. IDFROM=J2. * ISOTHERMAL $ LINK NAME=2C-B. IDTO=D. * PRINT PIPE NAME=Z014. FROM=J2.125.25. FROM=6. * PRINT PIPE NAME=Z011. IDFROM=J4. * IDNAME=4-F. TO=J3. FROM=J4. * ISOTHERMAL $ LINK NAME=5-J5.75. LENGTH=0. * ISOTHERMAL $ LINK NAME=3-J3. ID=8. FROM=J5. LENGTH=1.136. IDTO=B. LENGTH=1. TO=D. PIPE NAME=Z010. ID=12. IDFROM=J3.000e-003. * PRINT PIPE NAME=Z004. * PRINT PIPE NAME=Z005. LENGTH=1. TO=D. * PRINT PIPE NAME=Z012. FROM=J4. * IDNAME=6-J6. ID=22. ID=22.25. * IDNAME=5-J5. IDFROM=J4.227. * PRINT PIPEPHASE Application Briefs 1-61 . FROM=J5. IDFROM=J5. LENGTH=0. TO=B. * ISOTHERMAL $ LINK NAME=4-J4. * ISOTHERMAL $ LINK NAME=2B-B. IDFROM=3.000e-003. * ISOTHERMAL $ LINK NAME=6-J6. LENGTH=1. * IDNAME=2B-B. * PRINT PIPE NAME=Z016. TO=E. * IDNAME=5B-G.000e-003. * IDNAME=2C-B. * ISOTHERMAL $ LINK NAME=4-E.5. IDFROM=J5. ID=22. LENGTH=1. IDTO=J5. FROM=4. TO=J5. * ISOTHERMAL $ LINK NAME=4-F. * ISOTHERMAL $ LINK NAME=5A-G. ID=12. TO=J6. ID=8. * PRINT PIPE NAME=Z020. * IDNAME=4-E. ID=8. IDTO=F. IDTO=J6. IDFROM=6. * PRINT PIPE NAME=Z019. * IDNAME=3A-D.136. IDFROM=J2.125. LENGTH=1. * IDNAME=3B-D. IDTO=G. * PRINT PIPE NAME=Z017. TO=G. ID=8. LENGTH=1. FROM=5. TO=G.25. LENGTH=1. ID=12. * IDNAME=3-J3. * ISOTHERMAL $ LINK NAME=3B-D. FROM=J3. * IDNAME=5A-G. * ISOTHERMAL $ LINK NAME=5B-G. IDFROM=J3. IDFROM=5.25. IDTO=J3. FROM=J2. IDTO=D.75. IDTO=J4.75. ID=10. IDTO=E.125. IDFROM=4. TO=B. TO=J4. * PRINT PIPE NAME=Z015. * PRINT PIPE NAME=Z003.125.25. * IDNAME=4-J4. LENGTH=1. IDTO=G. FROM=3. FROM=J3.

379.25. ID=15. FROM=J6. * IDNAME=D-C. FROM=D.75. ID=22. LENGTH=1. IDFROM=B.000e-003. * ISOTHERMAL $ LINK NAME=E-F. ID=8. LENGTH=0. * PRINT PIPE NAME=Z037. LENGTH=0. * IDNAME=D-E. TO=11.125. * ISOTHERMAL $ LINK NAME=C-10. * IDNAME=6A-H. * ISOTHERMAL $ LINK NAME=D-E.125.25. * IDNAME=C-10. * 1-62 PIPEPHASE EXAMPLE . IDTO=H. TO=F. FROM=J6. * PRINT PIPE NAME=Z021. IDFROM=D. * PRINT PIPE NAME=Z022. IDTO=F. * ISOTHERMAL $ LINK NAME=A-G. * ISOTHERMAL $ LINK NAME=D-F. LENGTH=2. * IDNAME=B-C. LENGTH=0. TO=E. LENGTH=0.25. * IDNAME=E-F. ID=12. * PRINT PIPE NAME=Z040. IDTO=F. * ISOTHERMAL $ LINK NAME=B-A. LENGTH=8.25. TO=H.25. ID=12. IDTO=E. IDFROM=E. IDFROM=J6. * ISOTHERMAL PIPE NAME=Z038. ID=12. IDFROM=C. ID=8. ID=22. * IDNAME=D-F. LENGTH=0. FROM=E. FROM=D. * PRINT PIPE NAME=Z023. IDTO=C. * IDNAME=A-G.189.125. TO=I. LENGTH=1. IDTO=C.25. FROM=7. FROM=B. TO=10.5.75. * ISOTHERMAL $ LINK NAME=6A-H. IDFROM=A. IDFROM=7. ID=13. IDFROM=D. IDTO=G. * PRINT PIPE NAME=Z034. LENGTH=6. ID=8. IDTO=H. FROM=D. ID=15. * ISOTHERMAL $ LINK NAME=7-I. IDTO=A. PIPE NAME=Z006. IDTO=10.25. * PRINT PIPE NAME=Z029. * IDNAME=B-A. IDTO=I. TO=C. LENGTH=2. ID=12. IDFROM=J6. LENGTH=1. IDFROM=B. TO=C. * IDNAME=6B-H. TO=H. * PRINT PIPE NAME=Z039.379. ID=12. * IDNAME=7-I. FROM=C. IDFROM=D. * PRINT PIPE NAME=Z028. * ISOTHERMAL $ LINK NAME=6B-H. * PRINT PIPE NAME=Z026. * ISOTHERMAL $ LINK NAME=B-C.25. * PRINT PIPE NAME=Z013. TO=A. FROM=F. FROM=A. * ISOTHERMAL $ LINK NAME=F-11.5.398. TO=F. FROM=B. TO=G. * ISOTHERMAL $ LINK NAME=D-C. LENGTH=3.

LENGTH=3. FROM=I. PIPEPHASE Application Briefs 1-63 . LENGTH=1. TO=A. * IDNAME=H-G.25. LENGTH=4.25. ID=12. IDTO=C.Calculation Segment In PIPEPHASE for the purpose of calculations all flow devices- pipes. * PRINT PIPE NAME=Z031. LENGTH=1. IDTO=H. IDTO=G1.25. * ISOTHERMAL $ $ End of keyword file. FROM=I. * PRINT PIPE NAME=Z025. LENGTH=10. IDTO=11. ID=10. IDFROM=I. * PRINT PIPE NAME=Z024. * IDNAME=H-G1..75. * ISOTHERMAL $ LINK NAME=G1-G. TO=G1. LENGTH=10. risers. TO=F.25. * PRINT PIPE NAME=Z027. IDFROM=G1. TO=A. TO=G. FROM=I. * IDNAME=G-F.75. ID=22. * IDNAME=G-C. * PRINT PIPE NAME=Z035. IDFROM=G.25. * ISOTHERMAL $ LINK NAME=G-F. * IDNAME=I-H. ID=20. IDFROM=G. * ISOTHERMAL $ LINK NAME=H-G. $ END Case Execution . ID=12. * IDNAME=G1-G. FROM=H. IDFROM=F. * PRINT PIPE NAME=Z033. * ISOTHERMAL PIPE NAME=Z036. * PRINT PIPE NAME=Z030. IDFROM=I.5. TO=C. * IDNAME=IB-A. IDTO=A. IDTO=G. ID=15. IDNAME=F-11. FROM=G. IDFROM=H. FROM=H.25. IDFROM=H. ID=12.25. LENGTH=3. LENGTH=1. IDTO=A. * IDNAME=IA-A. * ISOTHERMAL $ LINK NAME=IA-A. IDTO=G1. ID=12. These divisions are called Calculation Segments and are where a majority of the pressure drop and heat transfer calculations take place. * PRINT PIPE NAME=Z032. FROM=G1. * ISOTHERMAL $ LINK NAME=G-C. LENGTH=1.. * PRINT PIPE NAME=Z018. * ISOTHERMAL $ LINK NAME=H-G1. * ISOTHERMAL $ LINK NAME=I-H. IDTO=F. ID=22.75. LENGTH=1. TO=H. ID=10. FROM=G. * ISOTHERMAL $ LINK NAME=IB-A. IDFROM=I. tubing and annuli are divided into a number of segments. TO=G1.

These calculated conditions become the known conditions for the next segment. If the next device is not a flow device but a piece of equipment such as a pump. Solution progresses sequentially until the end of the flow device is reached. the equations yield the outlet pressure and temperature. The calculation segment pressure drop and temperature change equations are the core of PIPEPHASE's calculation capability. the equipment characteristic equations are solved in the same way as the calculation segment equations. If both end conditions are known. different procedures are used. If there is another flow device connected serially to the first.. the calculation segments are strung together and the solution procedure is a marching algorithm. The heat and momentum balance equations are solved for this first segment and the conditions at the other end are found. the equations can be manipulated to give the fluid flowrate(s). as in a single-link problem. the system is a network. 1-64 PIPEPHASE EXAMPLE . The momentum and heat balances for the segment allow prediction of its inlet and outlet pressures and temperatures. calculation progresses through this device in the same way as the first. For long flow devices.e. If the inlet pressure and temperature for the segment are known. If a junction is reached i. Calculation begins at the end of the flow device with known conditions.

The flows are balanced at all nodes and the pressures calculated at any node must be the same independent of the calculation path (link calculation sequence). PIPEPHASE Application Briefs 1-65 . Since links are connected via common nodes. The derivatives are calculated numerically. A network link calculation is similar to a single-link calculation. Network Calculations The network equations are formulated based on a modification of Kirchoffs two laws for flow of fluids in a network: ■ The sum of the mass flows in a junction is zero. Iterate till convergence within tolerance is reached on the flow imbalance errors. This is called MBAL method in PIPEPHASE. Iterate till convergence within tolerance is reached on the node pressure residuals. the behavior of one link directly affects all connected links. There are two main methods in PIPEPHASE to set up the simultaneous equations: 1. When the network problem is set up correctly. The network model contains nodes and link performance models.the number of unknown flows and pressures are equal to the number of independent equations. The error vector consists of the flow balance errors. it is essential to solve the equations simultaneously. set the link flow (so that Kirchoff's first law is honored) and calculate the link pressure drops and check if Kirchoff's second law is honored at each node. these equations are square . The first method is as follows : ➤ Set the node pressures (so it honors Kirchoffs second law) ➤ Calculate the link flows and check if Kirchoff's first law is honored. 2. Note: MBAL method is only available in PIPEPHASE for the single phase fluid models. The Iterative Newton-Raphson method is used to simultaneously solve the non-linear equations. Hence. This is called PBAL method in PIPE- PHASE. The node pressure errors make up the residual error vector in the equations. In the second method. ■ The sum of the pressure drops around any loop is zero.

Figure 1-49: Network Calculation Methods Dialog Box Oftentimes. Results To reduce the size of the network problem in PBAL. numerical derivative of the link outlet pressure with respect to link inlet pressure and link flow rate are calculated using small link inlet- pressure and link flow perturbations. 1-66 PIPEPHASE EXAMPLE . These segments called Spurs are identified and set aside until the remainder of the network calculation has converged. if the rms error of the pressure-error vector begins to diverge a step. The amount of required damping really depends on the network flow performance characteristics. In PBAL. The user can specify a constant damping factor (SCALE keyword) or can limit the change in flow rate (QDAMP) and/or pressure change (PDAMP) in the Newton vector without changing the direction of the Newton vector. an algorithm identifies segments of the network that does not require an iterative simultaneous solution. These spur links are then solved by a simple forward pressure drop calculation after the main network solution has converged. intelligent damping as well as user definable damping parameters to stabilize the convergence path. taking a full Newton step can cause divergence instead of convergence. In these sub-iterations. no derivatives are calculated. To overcome such problems. PIPEPHASE has some inbuilt. As a part of the Jacobian matrix element calculations. the halving algorithm is used to dampen (reduce) the Newton-Raphson step.

Only the pipe lengths and elevation changes are then required in the Link <LINK> Device Data dialog box.Steam Line Sizing Simulation Objective A steam line has been designed with an 8-inch nominal diameter. Simulation Model This is a single link calculation. The fluid is defined as steam in order to use the stored steam table properties. 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.Example 10 . Figure 1-50: Steam Line Sizing PIPEPHASE Application Briefs 1-67 . The projected maximum steam flow and the source conditions are now know and the user needs to verify that the diameter is correct. In this simulation.

Figure 1-52: Line Sizing 1-68 PIPEPHASE EXAMPLE . Figure 1-51: Schematic Representation of Steam Line Sizing Click Sizing in the Link <LINK> Device Data dialog box to display Line Sizing dialog box (see Figure 1-52).

* AIR PIPE NAME=Z002. PLOT=FULL.065. PALMER=0. IDFROM=STM. * AIR. DATE=10/01/97 $ DESCRIPTION STEAM LINE SIZING CALCULATION $ DIMENSION TEMPERATURE=C. LENGTH=10. SLUG=BRILL $ SEGMENT AUTO=OFF. HRADIANT=0. PRES=170. * PROPERTY=FULL. ECHG=10. VISC=0. ECHG=0. 0. 0. TO=SINK. ECHG=0. * CONPIPE=28.015. FLOWAL=1 $ TOLERANCE PRESSURE=0.015. GRAV(WATER. RATE=33000. THKINS=2. * TUBING=BBM. XCORD=1000. VELO=15 $ PRINT INPUT=FULL.924.02.685 $ DEFAULT IDPIPE=8. * ANNULUS=BBM.SPGR)=1 CORRELATION WPROP=Super $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=STM.015. Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE10. * THKPIPE=0. * SIMULATOR=PART. RATE(W)=LBHR $ CALCULATION NETWORK. XCORD=0. IDANNULUS=6.5. * DENSITY(SPGR)=1. * HINSIDE=0.685. * 0. SUMMARY=BOTH. Steam $ FCODE PIPE=BBM. PALMER=0. TAMBIENT=60.0000e-003. CONINS=0. FLASH=FULL. IDTO=SINK. DLVERT(FT)=500 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE.9. 0. 0. * AIR PIPE NAME=Z003. 0.015. ECHG=-5. * AIR PIPE NAME=Z004. 0. MAP=TAITEL. * SETNO=1. LENGTH=5. PRES(ESTI)=1. * ROUGH(IN)=3. * QUALITY=97.1 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. PRIORITY=0. DLHORIZ(FT)=2000. IDNAME=SINK. 0. LENGTH=30. FROM=STM. * PRINT PIPE NAME=Z001. 0. COND=0. DATABASE=FULL. YCORD=-125 $ $ $ LINK NAME=LINK. DEVICE=FULL. 0. YCORD=-125 $ SINK NAME=SINK. * IDNAME=LINK.015. * RATE(ESTI)=1. IDNAME=STM. LENGTH=100.625. * CONNECT=NONE.7. * PIPEPHASE Application Briefs 1-69 . HOUTSIDE=0.924.02. USER=SIMSCI. * 0. PALMER=0. IDTUBING=8.

* AIR PIPE NAME=Z007. 16. Line sizing results can be viewed in the ASCII output report (see Figure 1-54).548. 2. 1. * AIR PIPE NAME=Z006. Results To run a sizing calculation.61. 2. ECHG=-15. * 18. * 3.938. LENGTH=105. If no pipe sizes are defined. ECHG=0.067. 22. 6.068. the user needs to select Line Sizing as the configuration type in Run Simulation and View Results dialog box (see Figure 1-53).626 $ END GUI DATA Case Execution The required line diameter is determined by running a sizing calculation.124. The line will be sized to meet maximum erosional velocity. 4..026. * 10. * AIR $ $ End of keyword file. 15. 1-70 PIPEPHASE EXAMPLE . 13. 7.876..074.981.814. AIR PIPE NAME=Z005.469.049. $ END $ $Line Sizing Data Section $ GSIZE LINK DATA $ LINK NAME=LINK DEVICE NAME = ALL LINE ID = 1. LENGTH=15. LENGTH=20.02. 11. 3.065. ECHG=20. 5. PIPEPHASE will select from the standard schedule 40 sizes.

the Excel reports do not support the display of line sizing calculations.3. Figure 1-54: Out Report PIPEPHASE Application Briefs 1-71 . Figure 1-53: Run Simulation and View Results Dialog Box Note: In PIPEHASE 9.

A workaround is to define the GAS source as having a negligible flow rate (5 bbl/d) and a considerable Gas/Oil Ratio (400. a Gas Lift Valve is employed. which has Blackoil and single-phase gas fluids. Simulation Model The simulation model for the above example is shown in Figure 1-55. the GAS source may be defined as a Blackoil source.000 ft3/ bbl). To overcome this problem the Mass Based Perturbation feature option can be used (see Figure 1-57).Lift Manifold Simulation Objective A network simulation is created which attempts to model two gas- lifted wells. Here. Therefore. the Jacobian derivative calculations become inaccurate.Gas . Normally. However. However. for material balance calculations. This means that the user cannot create a simulation. To accomplish this. small changes in oil volume rates result in significant variations in the total mass. for a large number of gas streams. So. 1-72 PIPEPHASE EXAMPLE . the solver uses the standard Blackoil volume flow rates as a basis for the Newton method. As a result. This effectively turns the source node into a gas source. in PIPEPHASE. the user wants to model the gas injection manifold in addition to the actual wells. in PIPEPHASE it is not possible to mix fluid types. the user has added an extra source node called GAS.Example 11 .

SUMMARY=BOTH. FLASH=FULL. NOLOOP=2. Figure 1-55: Gas. PLOT=FULL. DATE=06/27/02 $ DESCRIPTION Two Blackoil Wells on Gas Lift 12 and 23.5. NOMT=3. VISC=0.Manifold Model Input Data $General Data Section $ TITLE PROBLEM=NETWORK. COND=0.02. Blackoil. IDANNULUS=6. * DATABASE=FULL. FLOWAL=2. * STEP=1.015. * CONNECT=NONE. MAP=TAITEL. * MASS $ FCODE TUBING=HB $ DEFAULT NOMD=4. MAXITER=40. * AIR.065. * DENSITY(SPGR)=1. * SCHT=TB01. ITER. DLHORIZ(FT)=150. DEVICE=FULL. SIMULATOR=PART $ SEGMENT AUTO=OFF.75.Lift . SCHE= 40. 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. HAUSEN $ PRINT INPUT=FULL. TGRAD=1. QDAMP=1000. VELO=10. DLVERT(FT)=100. * PROPERTY=FULL. PRANDTL. * MAXSTEPS=50 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. * PIPEPHASE Application Briefs 1-73 .

* RATE=5. PDAMP=100 $ TOLERANCE PRESSURE=0. 25. PRES(ESTI)=2900. PRES=4400. IDNAME=W-23.25 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1.SPGR)=0. * IVAL=BASIS. IDNAME=GAS. TROCK=161. XCORD=1053. TO=INJ1. PRIORITY=0. * 0. IDFROM=W-12. LENGTH=2909. DEPTH=1683. * RATE(ESTI)=20000. YCORD=932 JUNCTION NAME=J-12.73 SET SETNO=2.5 / UPTIME. GOR=190. * YCORD=420 JUNCTION NAME=J1. * U=1 TUBING NAME=T083. IDNAME=J-M. DEPTH=544. * YCORD=34 JUNCTION NAME=J-M. GOR=4.SPGR)=1 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=GAS. IDNAME=INJ2.79. * U=1 TUBING NAME=T085. FROM=W-12.API)=64.SPGR)=0. 1. LENGTH=4882. GRAV(OIL. XCORD=657. * RATE(ESTI)=10000. WCUT=8. GRAV(GAS. * SETNO=1. * U=1 TUBING NAME=T087. YCORD=1385 $ SINK NAME=SINK. YCORD=965 JUNCTION NAME=INJ2. * XCORD=235. WCUT=5. XCORD=1088. TROCK=161. IDNAME=J2. * XCORD=1705. LENGTH=1673. IDNAME=J1. * XCORD=1275.API)=183.67256. IDNAME=SINK. PRIORITY=0. TEMP=120. IDNAME=J-GA.3. * RVAL=PI.1 TUBING NAME=T082. XCORD=1679. IDNAME=W-12. * U=1 TUBING NAME=T086. IDNAME=INJ1. * YCORD=394 JUNCTION NAME=J-23. * YCORD=439 JUNCTION NAME=J-GAS. * XCORD=0. IDNAME=J-23. WCUT=0. * U=1 TUBING NAME=T084. YCORD=-125 $ SOURCE NAME=W-12. * SETNO=1. GRAV(GAS. IDTO=INJ1 IPR NAME=I088. * IDNAME=1. DEPTH=1344. PRES=500. DEPTH=1689. IDNAME=J-12. 3. * RATE(ESTI)=10000. DEPTH=1549. TEMP=172.SPGR)=1. LENGTH=6909. YCORD=246 $ JUNCTION NAME=INJ1. * SETNO=2. * GRAV(WATER. YCORD=1339 $ SOURCE NAME=W-23. XCORD=866. LENGTH=7873. * YCORD=653 $ $ LINK NAME=1. * GRAV(WATER. GRAV(OIL. PRIORITY=0. TEMP=169. GOR=210. * U=1 $ 1-74 PIPEPHASE EXAMPLE .000e+005. XCORD=216.4. DEPTH=1664. PRES=4205.89. * YCORD=651 JUNCTION NAME=J2. * XCORD=424. TYPE=PI.023. CONT=2. XCORD=848.60739. LENGTH=633.

SCHED= 40. * U=1 TUBING NAME=T091. DEPTH=3403. * IDNAME=GAS1. * 125. * 4556. 1257. DEPTH=560. SCHED= 40. * U=1 TUBING NAME=T092. 3599. * 2487. LENGTH=3546. * 2569. * 0. * 0. LENGTH=634. DEPTH=1500. 2564. IDFROM=J1. 0. * 189. IDTO=J-12. LENGTH=5050. DEPTH=4650. * INJECT PIPE NAME=P121. LENGTH=2310. * IDNAME=2. * IDNAME=3. 5789. * CONINS=0. * U=1 TUBING NAME=T100. IDTO=J2 TUBING NAME=T102. FROM=J2. 125. DEPTH=5000. * WATER. LENGTH=1256. IDTO=J-M PIPE NAME=P063. NOMD=2. 2567. FROM=J-GAS.015. 0. FROM=INJ2. IDTO=J-M PIPE NAME=P065. 598. 189. IDTO=J1 TUBING NAME=T090. * IDNAME=GAS-. IDFROM=GAS. * 2155. LENGTH=1500. 0. IDFROM=W-23. LENGTH=3010. IDFROM=INJ1. * U=1 TUBING NAME=T099. IDTO=INJ2 TUBING NAME=T096.015. DEPTH=3627. * 1478. 2564.02. * U=1 TUBING NAME=T094. NOMD=2. 124. IDFROM=INJ2. * U=1 TUBING NAME=T104. * U=1 $ LINK NAME=GAS-W12. * 256. 359. LENGTH=2597.015 $ LINK NAME=GAS-W23. TO=J-M. FROM=J1.35. LENGTH=1505. DEPTH=4683. 214. DEPTH=2290. LINK NAME=2. * U=1 TUBING NAME=T098. 0. ECHG=356. 0.015. ECHG=86. LENGTH=7546. * INJECT PIPE NAME=P119. * U=1 TUBING NAME=T093. TO=INJ2. THKINS=0. 1254. DEPTH=2585. * 2568. * U=1 $ LINK NAME=6. IDFROM=J-GA. TO=J2. LENGTH=1256. 247. * 124. DEPTH=4652. LENGTH=560. DEPTH=1500. * IDNAME=6. 0. * PIPEPHASE Application Briefs 1-75 . LENGTH=5687. FROM=INJ1. IDFROM=J2. * U=1 TUBING NAME=T097. * U=1 TUBING NAME=T103. TO=J1. 78. 125. ECHG=54. FROM=GAS. FROM=W-23. 2365. * U=1 $ LINK NAME=3. LENGTH=3689. LENGTH=8510. TO=J-23. * 236. TO=J-GAS. * IDNAME=4. * IDNAME=5. LENGTH=789. DEPTH=5456. DEPTH=3000. * AIR $ LINK NAME=GAS1. FROM=J-GAS. TO=J-M. ECHG=36. IDTO=J-GA. LENGTH=5519. * AIR $ LINK NAME=5. * 123. 1259. TO=J-12. AIR $ LINK NAME=4.

25 $ LINK NAME=INJ-W12.. PRES=9999 ANNULUS NAME=A123. IDFROM=J-12. * ODTUBE=4. AIR $ LINK NAME=INJ-W23. DEPTH=3000. * IDNAME=INJ-. * INJECT PIPE NAME=P130. * ODTUBE=4. * ODTUBE=4.339. * ODTUBE=4. 4575. LENGTH=5687. 667. DEPTH=1500. * ODTUBE=4. LENGTH=3102. 3256. * IDNAME=LAST. select Calculation Methods and then click on the Network Data button as shown in Figure 1-56.339. LENGTH=1500. ID=0. * INJECT REGULATOR NAME=R138. PRES=9999 ANNULUS NAME=A132. * -568. PERKINS. 236. U=1 CHOKE NAME=C002. IDFROM=J-M.339. LENGTH=3689. LENGTH=560.339. TO=SINK. TO=INJ2.25 $ LINK NAME=LAST.. 257. IDTO=J-23. 2457. AIR $ $ End of keyword file.339. 1-76 PIPEPHASE EXAMPLE . FROM=J-M. U=1 ANNULUS NAME=A127. * IDNAME=INJ3. IDTO=INJ1. LENGTH=2597. SCHED= 40. U=1 ANNULUS NAME=A133. ID=0. * 2478. ECHG=-598. PERCENT(GAS)=10 PIPE NAME=P067. * ODTUBE=4.339. DEPTH=1500. U=1 ANNULUS NAME=A134. ECHG=125. * ODTUBE=4. * ODTUBE=4. DEPTH=5000. TO=INJ1. * INJECT REGULATOR NAME=R139.339. DEPTH=5456. * NOMD=2. IDFROM=J-23. U=1 ANNULUS NAME=A124. U=1 ANNULUS NAME=A126.339. LENGTH=1505. 2568. U=1 ANNULUS NAME=A125. DEPTH=560. * 256. FROM=J-12. * 2314. IDTO=INJ2. DEPTH=2585. LENGTH=4578. FROM=J-23. * 256. IDFROM=J-GA. 645. U=1 CHOKE NAME=C003. DEPTH=3627. 2698. IDTO=SINK SEPARATOR NAME=S068. -541. * 6589. IDNAME=GAS2. PERKINS. LENGTH=1257. $ END Case Execution In the General menu. LENGTH=5200.

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. Figure 1-57: Network Convergence Data Results With the Mass Based Perturbation option checked. Check the Mass Based Perturbation option. PIPEPHASE Application Briefs 1-77 . Figure 1-56: Network Calculation Methods This displays the Network Convergence Data dialog box as shown in Figure 1-57.

Input Data A link group LINE1 is defined for LINK 1 & 2. DEPTH=6000. 25. LENGTH=1505. LENGTH=10569.Example 11A . IDTO=J1. LENGTH=3689. TO=INJ1. * U=1 $ LINK NAME=2. FROM=INJ1. DEPTH=7139. LENGTH=8596. IDTO=INJ1. DEPTH=7005. LENGTH=560. * U=1 TUBING NAME=T086. * IDNAME=2. LENGTH=13560. DEPTH=6800. LENGTH=5687. * U=1 TUBING NAME=T093. * U=1 TUBING NAME=T085. DEPTH=3627. DEPTH=1500. IDFROM=INJ1. LENGTH=7360. * U=1 TUBING NAME=T094. * U=1 TUBING NAME=T084.5 / UPTIME. TYPE=PI. * SUBLINE=LINE1 IPR NAME=I088. DEPTH=560. DEPTH=2585. * U=1 $ 1-78 PIPEPHASE EXAMPLE . DEPTH=5456. DEPTH=7120.Link Groups for Subsurface Junctions Simulation Objective The basic objective of this simulation is to illustrate Link Groups in PIPEPHASE using Example 11A. * IVAL=BASIS. 3. LENGTH=6320. LENGTH=12596. * U=1 TUBING NAME=T083. * U=1 TUBING NAME=T092. * RVAL=PI. LENGTH=2597. IDFROM=W-12. * U=1 TUBING NAME=T087. TO=J1. DEPTH=7145.1 TUBING NAME=T082. $ LINK NAME=1. * U=1 TUBING NAME=T091. FROM=W-12. * SUBLINE=LINE1 TUBING NAME=T090. * IDNAME=1.

Results With the Link Group LINE1. a combined report of the LINKS 1 and 2 is obtained. BASE CASE LINK "LINE" DEVICE DETAIL REPORT PIPEPHASE Application Briefs 1-79 .

8 3973.7 7007.1 3993.7 172.2 0007 13425.5 00013 13309.0 172.7 7048.000 172.1 0003 13502.4 3992.000 172.7 00019 13193.000 172.1 3983.0 PI = 25.0 1.0 1.8 7039.0 1.000 172. 1-80 PIPEPHASE EXAMPLE .000 172.7 172.2 0005 13463.7 172.3 3989.9 3987.0 1.0 T082 0000 3.0 1.0 1.9 172.1 4400. the Link Group is not showed in the output report.000 172.0 172.000 172.0 1.0 0001 13540.0 1.6 172.1 0004 13482.8 7023.0 7021.0 172.000 172.6 00017 13232.0 1.6 172.2 3975.7 3981.3 3978.000 172.5 7025.0 1.8 172.000 172.6 3988.9 172.0 0002 13521. TEMP AND DIAM.2 172.4 7009.000 172.0 172.0 1.8 If the option "Reduced Output with Link Group" is checked.000 172.1 172.3 0009 13386.0 1.6 7032.2 7012.4 00012 13328.5 3985.0 1.2 7028.4 00010 13367.000 172.4 3982.6 00015 13270.000 172.8 172.6 00016 13251.8 172.9 3976.2 7044.9 7030.2 3986.000 172.0 3990.8 172.2 172.6 7016.6 172.0 3980.000 172.5 172.000 172.7 3991.0 7046.2 0006 13444. LENGTH O ELEV (PSIG) TEM FACT (F) TYPE (IN) FROM CHNG P (F) (BTU/ INLET (FT) HRFT2F ) I088 0000 13560.1 3993.068 13560.6 3977.5 00014 13290.0 1.0 1.000 172.0 1.3 7018.0 O 7005.000 172.4 00011 13347.0 1.4 172.8 3984.0 I 7005.4 7035.3 0008 13405.0 1.5 3974.1 7037.0 1. Table 1-3: Link "Line" Device Detail Report PRESSURE AND TEMPERATURE REPORT DEVICE SEGM NO INSID MWD I TVD CALC CAL OVERA AMB NAME E OR & OR PRES C LL U.0 I 7005.7 00018 13213.4 172.5 7041.3 172.9 7014.5000 (IPR) 13560.

PIPEPHASE Application Briefs 1-81 .

Figure 1-58: Well Nodal Analysis Once the simulation has been set up. The pressures are fixed at the source and sink and the flow rate is calculated by the PIPEPHASE. the user clicks Nodal in the Link Device Data dialog box. 1-82 PIPEPHASE EXAMPLE .Nodal Analysis Simulation Model In this simulation the user attempts to carry out a Nodal Analysis on a single well.Example 12 . Simulation Model The simulation is created in a similar manner as any other single link PIPEPHASE simulation.

the user can select the Node around which the Nodal Analysis will take place. Inflow and Outflow parameters are selected. For each of these parameters. the well choke has been selected. In this case. Finally. the Reservoir Pressure and ID of the surface pipeline have been chosen. The performance of the well will be analyzed at each of these flow rates. The Node can be any of the devices in the link. PIPEPHASE Application Briefs 1-83 . In this case. Figure 1-59: Nodal Analysis Dialog Box Here. The next step is to select a series of flow rates. a series of values is entered by the user.

00001. * SIMULATOR=PART. * 0 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=S001. FLOWAL=1 $ TOLERANCE PRESSURE=0. IDFROM=S001. * MEDIUM=1.79. FLASH=FULL. * RVAL=PI.95. * CONCAS=25. DLVERT(FT)=500 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. GRAV(OIL. SCHED=TB01. VFPT=EXCEL. * TIME=360. * CONNECT=NONE. * SETNO=1. YCORD=-414 $ SINK NAME=D002. 5. PLOT=FULL. * CONANN=0. * PROPERTY=FULL. * XCORD=0. SLUG=BRILL $ SEGMENT AUTO=ON. Input Data $General Data Section $ TITLE PROJECT=NODAL. FROM=S001. 0. PRANDTL $ DEFAULT IDPIPE=4. 0.875. SUMMARY=BOTH. TYPE=PI. PRES=100. GRAV(GAS. 0. 0.96. IDTO=D002 IPR NAME=I005. * GRAV(WATER. GOR=450. DESCRIPTION This is a blackoil model. $ DIMENSION RATE(LV)=BPD $ CALCULATION NETWORK.01875. * HAUSEN $ PRINT INPUT=FULL. DIFFUSIVITY=0. 0. * ODTUBING=3.5. IDNAME=D002.SPGR)=1. TEMP=180. PRIORITY=0. 12 / UPTIME. Blackoil. WCUT=3. 25.1. * RATE(ESTI)=6000. * IVAL=BASIS.026.API)=31. YCORD=-414 $ $ $ LINK NAME=L003.026. LENGTH=8500. * IDCASING=5. 3.95. * ODCASING=5.065.25.65. TO=D002. DATABASE=FULL. * BETANN=1. DEPTH=6500.410e-003. 0. USER=SIMSCI.1 TUBING NAME=T006. PRES=5400. DEVICE=FULL.SPGR)=0.1 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. * RATE(ESTI)=1. DATE=04/03/02 $ DESCRIPTION Nodal Analysis of a production well. IDTUBING=4. HOLEID=8. CONT=0. IDNAME=S001. * IDNAME=L003. * 1-84 PIPEPHASE EXAMPLE . * EMIS=0.83. * CPAN=0. DLHORIZ(FT)=2000. * NOMD=2.5. TGRAD=1.01. * EMOS=0. XCORD=795. IDANNULUS=6. MAP=TAITEL.

LENGTH=459. * BETANN=1. 0. 0. 3YEARSPRES. 5. 35INCH. ECHG=36. 5000. * NAME=P011. * LOWPRES. * ODCASING=5. 0. * TAMB=60 PIPE NAME=P010.410e-003. * IDCASING=5. 0. * MEDIUM=1. 6000. 0. 5500. 25. VISANN=0. * NOMD=2. 5INCH.5 PIPE NAME=P009. * BDTOP=36. 1500. SCHED=TB01.5. * 4000. 10000.01875.95. * 6INCH INFLOW NAME=S001. ID=1.9632e-004. TAMB=54 $ $ End of keyword file. 4. 3. * VELANN=0.5. 12000 DESCRIPTION INFLOW= DEPLETED. * ID=3. 5. 0. SOIL. * ODTUBING=3.. 4. DEPTH=3000. * VISANN=0. LENGTH=15000. * CPAN=0.1. SCHED= 40.. 5. TGRAD=1. * ID=3. ECHG=7. 5. 3. FN. * DENANN(LBFT3)=8. * EMOS=0. * CONCAS=25. * HIGHPRESS DESCRIPTION OUTFLOW= 3INCH.5. 0. HOLEID=7. 6. LENGTH=300. CURRENTPRES. SCHED= 40. 9000.875. * NAME=P010. LENGTH=3570. 0. * CONANN=0. 7000. 3. AIR. * EMIS=0. SCHED= 40. 0. 6 $ END GUI DATA PIPEPHASE Application Briefs 1-85 . 2500. DIFFUSIVITY=0. * CONEARTH=1 TUBING NAME=T007. $ END $ $Sensitivity Analysis Data Section $ GSENSITIVITY ANALYSIS LINK DATA $ LINK NAME=L003 NODE NAME=C008 FLOW RATE=500. 6. * CONEARTH=1 CHOKE NAME=C008. * NOMD=6.96. * NOMD=6. AIR. * NOMD=6. 4. * ID=3. * TIME=300. 0. * 4INCH.0223. * PRES=4000.25.0223. ECHG=5.5. 0. * DENANN(LBFT3)=8. * VELANN=0. * TAMB=60 PIPE NAME=P011. 4500.95.9632e-004. * 8000. 6000 OUTFLOW NAME=P009.

Selects File/New to display the dialog box as shown below. Select the appropriate RAS database. 1-86 PIPEPHASE EXAMPLE . To launch a Nodal Analysis run in PIPEPHASE the user need to select Nodal Analysis as the Simulation Type in the Run Simulation and Vew Results dialog box as shown in Figure 1-60. The Nodal Analysis results for this particular simulation are found in L003 . Figure 1-60: Nodal Analysis Results After solving the simulation.the name of the link in this particular simulation. Case Execution The Nodal Analysis calculations in PIPEPHASE will vary all the flow rates and the parameters selected and solve the well model multiple times in order to generate a Nodal Analysis plot. click RAS to display PIPEPHASE Results Access System dialog box.

Note: RAS plots can also be generated in Excel. in the plot (Figure 1-62). For example. Under these conditions.000 psig] Reservoir pressure curve. Figure 1-61: RAS Database After opening the RAS database. The Nodal Analysis plot is displayed. PIPEPHASE Application Briefs 1-87 . we have highlighted the intersection of the 3" pipeline curve with a High Pressure. Nodal Analysis Plot The intersection points of the curves represent actual operating conditions for the well.700 bbl/day with an upstream choke pressure of approx 2. we can expect to produce 6.000 psig (pressure is always the inlet of the device selected as the node . the user selects Special Plots. [6. the well choke).in this case.

Figure 1-62: Nodal Analysis of Pressure 1-88 PIPEPHASE EXAMPLE .

EG. Salt. hydrate analysis can only be conducted at four points. Junction J004 and Sink D002. PIPEPHASE Application Briefs 1-89 . to analyze for hydrates at other points in the network. For compositional simulation.two sources S001 & S003. There are a total of four Nodes in this simulation . for this network.Hydrate Analysis for Compositional Fluids Simulation Objective In this simulation. The simulation model is shown in Figure 1-63. A Node in PIPEPHASE is defined as a Source. the user decides to select S003. the user has the option of adding a Hydrate Unit to analyze the potential of hydrate formation in the network.Example 13 . The user will need to break up the links and add more junctions if required. The hydrates unit in PIPEPHASE also allows the user to simulate the effect of adding Hydrate inhibitors such as Methanol. Simulation Model Hydrate analysis can only be conducted at a Node.Network-Hydrates For this simulation. J004 & D002. Sink or Junction. DEG & TEG. Figure 1-63: Compositional. Therefore. a simple composition network model has been created.

1-90 PIPEPHASE EXAMPLE . Figure 1-65: Define Hydrate Calculation Users can also simulate the effects of a hydrate inhibitor such as Methanol. Figure 1-64: Hydrate Unit Operation Users can conduct hydrate analysis at any node in a compositional network as shown in Figure 1-64. Users are required to enter a temperature or pressure range over which they would like to determine the potential for forming hydrates.

USER=SIMSCI.9. PROBLEM=NETWORK. SIMSCI $ PHASE VL=1. STEP=1 $ TOLERANCE PRESSURE=0. MAP=TAITEL.05092. PRANDTL $ FCODE PIPE=TACITE $ DEFAULT NOMD=8. BANK=PROCESS. Input Data $General Data Section $ TITLE PROJECT=HYDRATEEVAL. NC10 . NC6 / * 9.59967. CO2 / * 2. $ DIMENSION Metric. VELO=16. FLASH=FULL.02. SUMMARY=BOTH. * IDANNULUS=154.39992 $ $Component Data Section $ COMPONENT DATA $ LIBID 1. SET=SET01 $ PIPEPHASE Application Briefs 1-91 . DUTY=KJHR $ CALCULATION NETWORK. DENSITY(L)=SRKS $ KVALUE BANK=SimSci $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. NC5 / * 8. * DLVERT(M)=152. * CONNECT=FULL. DLHORIZ(M)=609. HAUSEN $ PRINT INPUT=FULL. * DATE=06/20/02. IDTUBING=102.07 $ $Thermodynamic Data Section $ THERMODYNAMIC DATA $ METHOD SET=SET01. C3 / * 5.02232. NC7 / * 10. TAMBIENT=15. SCHE= 40. C2 / * 4.09344. * SIMULATOR=PART $ SEGMENT AUTO=ON. * DENSITY(SPGR)=1. PLOT=FULL. SITE=BREA $ DESCRIPTION Simple Compositional Network DESCRIPTION Evaluate Temperature and Pressure Profiles DESCRIPTION Generate Phase Envelopes in Excel via RAS DESCRIPTION Superimpose Hydrate Curves with different MEOH concs. VISC=0.26035. IC4 / * 6. C1 / * 3. Compositional. SYSTEM(VLE)=SRKS. FLOWAL=2. * PROPERTY=FULL. DEVICE=FULL. DATABASE=FULL. COND=0. NC4 / * 7. * AIR.10 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE.

500e+005. 124.5 / 8. 0. * 34.5 / * 10. * XCORD=0. 59 / 3. NAME=EVALUATE MEOH INJECTION RATES EVALUATE STREAM=D002.14. * RATE(ESTI)=1. -94. 0. 15 / 5.5 $ SINK NAME=D002. FROM=S001. RATE(ESTI. LENGTH=234. IDNAME=S003. * IDNAME=L006. AIR SEPARATOR NAME=S013. 21 / * 4. * PRES=126. IDNAME=S001. XCORD=465. FROM=J004. IPRES=0. LENGTH=156. 65. POINTS=30. * COMP(M)=1. $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=S001. 1 / 2.99 / 2. IPRES=0. 2679. PERCENT(GAS)=15 $ LINK NAME=L008. TESTIMATE=-5. * 78.W)=96000. IDTO=J004 PIPE NAME=P012. 59. 1. YCORD=664 $ JUNCTION NAME=J004. IDTO=J004 PIPE NAME=P015.75 / 9. PRES=80. 0. 0. 2578. FROM=S003. 1. IPRES=0.W)=56000. 2564. LENGTH=596. * YCORD=759 $ $ LINK NAME=L005. AIR $ $UNIT OPERATION Data Section $ UNIT OPERATION DATA $ HYDRATE UID=H019. TO=J004. PRIORITY=0.5 $ SOURCE NAME=S003. * MAXPRES=150. IDTO=D002 PIPE NAME=P018. * XCORD=245. IDNAME=J004. * ECHG=58. * MAXPRES=150. 1 / * 7. * ECHG=9. * COMPONENT=100 / 0 / 0 / * 0 / 0 / 0 / * 0 / 0 / 0 / * 0 $ $ LINK NAME=L006. 93. 1579. -54. * ECHG=-59. 0. AIR PIPE NAME=P011. 4567. * 6789.11 / 6. POINTS=30. 52 / 5.25 / * 10. * 3598. 1549. 0. -89. TESTIMATE=-5. * -23. INHIB(MEOH)=20. IDFROM=S003. 45. 4851. POINTS=30. IDFROM=J004. INHIB(MEOH)=20. TESTIMATE=-3. IDNAME=D002. TEMP=62. LENGTH=2594. 0. IDFROM=S001.4 / * 7. 0. * 1566. AIR SEPARATOR NAME=S016. YCORD=979. TEMP=59. 849. 98.75 / 8. 1235. RATE(ESTI. PRIORITY=0. INHIB(MEOH)=20.5. TO=D002. XCORD=1005.25 / 6. 0. * 30 EVALUATE STREAM=J004. 2. * MAXPRES=150. * 30 $ 1-92 PIPEPHASE EXAMPLE . * IDNAME=L005. 21 / * 4. * COMP(M)=1. * IDNAME=L008. YCORD=399.14. TO=J004. 20 / 3. * PRES=129.5 / 9. * 30 EVALUATE STREAM=S003.

Select Print Options under the General menu. $ End of keyword file. if you want to have Flow Pattern Maps generated for each of the links in the simulation. The generation of output reports does take some time and therefore. the following procedure is to be followed - 1. users should ensure that their simulation has been solved and converged before gen- erating complex output reports. For example. ensure that the option is highlighted. Ensure that the Ability to Generate Excel Database option is set to Full. Hydrate analysis will be conducted after the network simulation is solved and the final temperature. the user can launch the simulation. To view the analysis in Microsoft Excel.. Click Run and solve the simulation. The content of the report is controlled from this dialog box.. Figure 1-66: Print Options PIPEPHASE Application Briefs 1-93 . 2. $ END Case Execution After fully specifying the option in the Hydrate unit. pressure and compositional profiles are calculated.

The user should judiciously select the reports to be displayed. In the case above. The user also needs to select Run Options located at the top right-hand corner of the dialog box. it skips running and converging the network model (it assumes the user has previously converged the simulation). 5. The Links Reports in particular can take several min- utes to generate. the user can choose the reports that need to be displayed in Excel. 1-94 PIPEPHASE EXAMPLE . Create Database creates a Microsoft Access database with all the data to be displayed in the Excel Reports. Click Excel located at the top right-hand corner of the dialog box. the Create Excel Report creates a detailed Excel Report. Finally. the user clicks Run Current Network. Click Run. This option must be selected if the user wishes to generate an Excel Report. Figure 1-67: Run Simulation and View Results 7. 6. 3. By default. espe- cially for large simulation models that contain numerous nodes and links. This brings up the Excel Reports dialog box. After selecting the various options in the Excel Reports dialog box. creates the Access database and subsequently the Excel Report. all the options are selected. Run Simulation simply runs and solves the simulation. 4. In this dialog.

Figure 1-68: Excel Report 9. PIPEPHASE Application Briefs 1-95 . In this case. J004 & D002. Click L008 to review a detailed report for the link terminating at the network Sink D002. we wish to review the hydrate analysis at Nodes S003. The Excel Report makes extensive use of hyperlinks allowing the user to easily navigate through the report and find the infor- mation that is desired. 8.

By using PIPEPHASE. 11. The right curve simulates the hydrate curve without the presence of any methanol. engineers can evaluate flow assur- ance strategies to minimize the risk of forming hydrates in wells and production networks. The left curve shows the hydrate curve with 30 wt% methanol. According to this curve. Three hydrate curves are shown. The mid- dle curve simulates the hydrate curve with 20 wt% Methanol.the pressure and temperature profile described by the fluid as it passes through the pipeline. without the presence of an inhibitor. Clearly. The green link represents the traverse for the link . the fluid starts as a single phase gas and ends up in the two- phase region of the phase envelope at the terminus. it is thermodynamically possible to form hydrates at the network sink. The Phase envelope generated by PIPEPHASE is for fluid composition present in the final link. Figure 1-69: Phase Envelope 10. 12. 1-96 PIPEPHASE EXAMPLE .

M004.Choke Sizing and MChokes in PIPEPHASE Simulation Objective The Choke device in PIPEPHASE can be used to model a well or surface choke. PIPEPHASE Application Briefs 1-97 . This simulates a single blackoil well. The well contains a gas lift valve and a choke.L -90 to bring up the Device Data dialog box (see Figure 1-71). double click the link . Figure 1-70: Sizing and Chokes In this simulation. Chokes are used to control the rate of production of fluid from a well and are essential components for controlling and managing field production.Example 14 . Simulation Model The Simulation Model for this example is shown in Figure 1-70.

PIPEPHASE allows the user to make a number of alternate specifications. Figure 1-72: Device Data Dialog Box 1-98 PIPEPHASE EXAMPLE . In addition to specifying the choke diameter and having the simulator calculate the flow rate through the choke. Figure 1-71: Device Data Dialog Box Click on the Choke device to brings up the Choke dialog box (see Figure 1-72). The user can specify either the Upstream or Down Stream pressure around the Choke.

DLHORIZ(FT)=2000. Blackoil $ DEFAULT IDPIPE=4. * SIMULATOR=PART $ SEGMENT AUTO=OFF. GOR=100. PIPEPHASE will in turn calculate the corresponding flow rate and choke diameter. SITE=BREA $ DESCRIPTION Use PIPEPHASE to size a choke. * CONNECT=FULL. FLASH=FULL. DEVICE=PART.026. FLOWAL=1 $ TOLERANCE PRESSURE=0. * SETNO=1.065 $ PRINT INPUT=FULL. XCORD=997. Invoking Upstream or Downstream Pressure specification transforms the Choke device into a MChoke. PLOT=FULL. PRES=5500. WCUT=10. * XCORD=0. IDNAME=W-35. GRAV(OIL. PRES=350. Very often users prefer to specify the Upstream Pressure as this can be more easily measured. IDTUBING=4. * GRAV(WATER.1 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. YCORD=-69 $ $ PIPEPHASE Application Briefs 1-99 .6. DLVERT(FT)=500 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE.API)=35.61" DESCRIPTION to ensure the upstream pressure spec is met $ DIMENSION RATE(LV)=BPD $ CALCULATION NETWORK. PRIORITY=0. DESCRIPTION Set the pressure upstream of the choke to 1500 psig DESCRIPTION PIPEPHASE calculates the choke diameter of 0. IDNAME=SINK. TEMP=120.65 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=W-35. * RATE(ESTI)=1000. * DATE=10/21/02. GRAV(GAS. PROBLEM=EX14. YCORD=363 $ SINK NAME=SINK.02 LIFTGAS GRAV(GAS. The actual Choke diameter can be difficult to ascertain as erosion can very often mean that the actual diameter no longer corresponds to the setting. SUMMARY=BOTH.g. * RATE(ESTI)=1000. (e. DATABASE=FULL. IDANNULUS=6. * PROPERTY=FULL. Input Data $General Data Section $ TITLE PROJECT=CHOKESIZING.00001. a choke setting of 34/64 might in fact corresponding to a choke opening of 38/64). USER=JAB. MAP=TAITEL.SPGR)=0.SPGR)=1.SPGR)=0.026.

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. U=1 GLVALVE NAME=G002. * ID=2. users should go to the Print Options in the General menu and select the Merge Subnetworks option (see Figure 1-73). This allows PIPEPHASE to quickly and stably solve large production networks contains tens or hundreds of wells.. The Source Pressure and Upstream Choke Pressure become the boundary conditions and PIPEPHASE calculates the corresponding flow rate. DEPTH=8525. 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. 2678. RATE=1. In the case of this simulation model. This ensures that when the Excel Report for the simulation is generated. IDTO=SINK TUBING NAME=T001. ECHG=56. PUPS=1500 PIPE NAME=P005. 21. * IDNAME=L-90. PIPEPHASE breaks the link into two parts at the MChoke. LENGTH=500. TO=SINK. LENGTH=10000. LENGTH=7000. U=1 MCHOKE NAME=M004. 1-100 PIPEPHASE EXAMPLE . FROM=W-35. Results When generating Excel Reports. DEPTH=5820. The first link runs from the source to the entrance of the MChoke. $ LINK NAME=L-90. The second link runs from the outlet of the MChoke to the Sink. IDFROM=W-35.. ID=6. * ID=2. * 2978.5 TUBING NAME=T003.441. U=1 $ $ End of keyword file. * 268. PIPEPHASE in effects creates an internal Sub-Network in order to solve to the Upstream Pressure specification set by the user. $ END Case Execution Internally PIPEPHASE uses special logic to solve a well or network model containing a MChoke.441.

In this case PIPEPHASE has calculated a pressure drop of 1.061 psi across the choke. Figure 1-73: Print Options Dialog Box Examining the Excel Reports users can view the pressure and temperature profiles created by PIPEPHASE (see Figure 1-74). PIPEPHASE Application Briefs 1-101 .

Figure 1-74: Pressure and Temperature Profile 1-102 PIPEPHASE EXAMPLE .

select Calculate Pressure Drop from the drop down list (see Figure 1-76). CHK1. UEDA and Perkins Models. Under Choke Specification. the Gilbert Choke Model cannot model sub- critical flow through the choke. Figure 1-75: Gilbert Choke Model In this simulation. Unlike the Fortunati. The well contains a choke.Example 15 . PIPEPHASE Application Briefs 1-103 . Simulation Model Simulation Model for this example is shown in Figure 1-75. It is important to note that the Gilbert Choke Model assumes critical flow.The Gilbert Choke Model in PIPEPHASE Simulation Objective This example illustrates availability of the Gilbert Family of Choke Models in PIPEPHASE. double click the LINK to bring up the Device Data dialog box. Click Choke to bring up the Choke dialog box (see Figure 1-76).

Figure 1-76: Choke Dialog Box 1-104 PIPEPHASE EXAMPLE .

* DATE=10/01/97. WCUT=5. PRES=25. GOR=320.2 / VOGEXP. SLUG=BRILL $ SEGMENT AUTO=OFF. GRAV(OIL. IDFROM=RES. GRAV(GAS. * ID=8. YCORD=-125 $ $ $ LINK NAME=LINK.882 PIPEPHASE Application Briefs 1-105 . USER=SIMSCI. IDNAME=RES. * RVAL=QMAX. * XCORD=0. LENGTH=1250. LENGTH=1830.882 CHOKE NAME=CHK1. SUMMARY=BOTH.05 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=RES. ID=1 PIPE NAME=LINE. * RATE(ESTI)=50. SITE=BREA $ DESCRIPTION This single well model employs the Gilbert choke model to DESCRIPTION calculate the pressure drop. FROM=RES.SPGR)=0. ADD $ CALCULATION NETWORK. SHOTS=25. Input Data $General Data Section $ TITLE PROJECT=GILBERT. MAP=TAITEL. PLOT=FULL. NVER=10 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. ROUGH(IN)=0. FLASH=FULL. PRES=400. MAXITER=30 $ TOLERANCE PRESSURE=6. $ DIMENSION Metric. LENGTH=10 TUBING NAME=TUB1. PROBLEM=EX15. YCORD=-125 $ SINK NAME=SEPR.26. 0. Blackoil $ FCODE TUBING=HB $ DEFAULT IDPIPE=102. NHOR=10.71. GILBERT. FLOWAL=1. * PRINT IPR NAME=IPR . DEVICE=FULL. XCORD=1000. 1 / * UPTIME. DATABASE=FULL.26. DEPTH=1710.SPGR)=1. * PERFD=10.895e-003 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. * IDNAME=LINK.18. * DENSITY=SPGR $ OUTDIMENSION Metric. 3.IN. RATE(LV)=CMHR. IDTO=SEPR. JONES.05099 $ PRINT INPUT=FULL. PRIORITY=0. * SIMULATOR=PART. * CONNECT=NONE. TUNNEL=45.1 COMPLETION NAME=Z001. IDNAME=SEPR. IDANNULUS=154. * ID=3. 10000 / VOGCON. ECHG=15. * RATE(ESTI)=1. TO=SEPR. * IVAL=BASIS.876. * SETNO=1. TEMP=110. * PROPERTY=FULL.1 / OPEN.SPGR)=0. U=4.873. U=4. * GRAV(WATER. LENGTH=M. IDTUBING=102. TYPE=VOGEL.

5 IN DIA INFLOW NAME=RES.000 GORCGR[5]=85.000 GORCGR[4]=80.000 GINJR[0]=0. 4. * PRES=450.000 GEND END GUI DATA 1-106 PIPEPHASE EXAMPLE ..000 GORCGR[6]=90. 50.000 WCTWGR[7]=14.000 WCTWGR[5]=10. * 70 DESCRIPTION INFLOW= 450 BAR. 400.000 GORCGR[0]=60.000 WCTWGR[1]=2. * 350 BAR DESCRIPTION OUTFLOW= 3 1/2 IN DIA.000 WCTWGR[4]=8.000 WCTWGR[2]=4. 400 BAR.000 WCTWGR[0]=0. 4. * 4 1/2 IN DIA. 60.000 RATE[2]=150.000 GORCGR[2]=70.000 WCTWGR[6]=12.000 RATE[4]=300. $ $ End of keyword file.000 RATE[1]=100.000 BHPWHP[0]=400.000 RATE[3]=200. $ END $ $Sensitivity Analysis Data Section $ GSENSITIVITY ANALYSIS LINK DATA $ LINK NAME=LINK NODE NAME=CHK1 FLOW RATE=40. * ID=3. 5 $ $ $VFP Table Generation Data Section $ GVFP TABLE GENERATION DATA SECTION $ LINK NAME=LINK ACTIVATE=1 COMPLETE=Y INFLOWOUTFLOW=1 RATE[0]=50.. 4 IN DIA.000 GORCGR[1]=65. 350 OUTFLOW NAME=LINE.000 GORCGR[3]=75.000 WCTWGR[3]=6.5.5.000 GORCGR[7]=100.

users can employ Netopt optimizer to vary the Gilbert coefficients. Figure 1-77: PIPEHASE Online Help PIPEPHASE Application Briefs 1-107 . Note: Use online help for details concerning the choke models and various network solver options available in PIPEPHASE (see Figure 1-77). Case Execution One advantage of the Gilbert Choke Model is the fact that engineers can add coefficients to their own coefficients in order to tune the choke model so that it matches the measured behavior of actual chokes in the field. to match measures pressure drops across the choke. Results In PIPEPHASE.

the DPDT device was upgraded to allow the user to enter multiple curves at a fixed inlet or outlet pressure to the device. it has a measurable effect on the pressure and temperature profile for the link.Compressor In this simulation. Until then.Can be used to Model Compressors Simulation Objective In PIPEPHASE 8. Traditionally.0. double click the link L1 to bring up the Device Data dialog box (see Figure 1-79). 1-108 PIPEPHASE EXAMPLE .Example 16 . Simulation Model The Simulation Model for this example is shown in Figure 1-78.as . If there is something in the well or pipeline that cannot be rigorously modeled by PIPEPHASE. the DPDT device was employed to simulate a blackbox. the user could only add a single curve of pressure and temperature drop versus flow rate. It is observed that DPDT (D001) is one of the devices found in link L1.The New DPDT Device . and is a function of flow rate. Figure 1-78: DPPT . Instead of modeling it rigorously. This was done to allow users to simulate the behavior of a compressor. the engineer can simply enters a single curve of flow rate versus pressure drop and temperature drop.

Figure 1-79: Device Data Dialog Box Click DPDT to bring up the DPDT Device dialog box (see Figure 1-80). Figure 1-80: DPDT Device Dialog Box. PIPEPHASE Application Briefs 1-109 .

to bring up the General Spread Sheet . Follow the same procedure for the remaining pressure curves. Select or Enter data as shown in Figure 1-80.. Figure 1-81: General Spread Sheet .DPDT: Pressure 1 Curve dialog. Check Multiple Curves as indicated in the above figure to make the Multiple Curves group box available for data entry.DPDT: Pressure 1 Curve 1-110 PIPEPHASE EXAMPLE . Enter data as indicated in Figure 1-81. Click Pressure 1 Curve.

4 / * 25.97 / 20.63.27 / 20. 26. 115. 6.64 / * 25. * PROPERTY=FULL. POUTCRV=125.33. PRIORITY=0. 95.7.78. * RATE(ESTI)=20.02 / 100. DATABASE=FULL. 88. U=1 DPDT NAME=D001.9. 196. 26. 43. PRES=400. DEVICE=PART. 44. IDANNULUS=6. 32. LENGTH=500. 97. USER=SIMSCI.11. 26.65. PROBLEM=EX16. 145. PLOT=FULL.43.21 / 100. 27. * IDNAME=L1. SITE=BREA $ DESCRIPTION Enhancements to the DPDT device allow users to DESCRIPTION enter multiple curves for pressure and temperature at DESCRIPTION fixed inlet or outlet pressures.19. * NOMD=8.29.58.026. Input Data $General Data Section $ TITLE PROJECT=DPDTDEVICE.89 / * 15.64999. QDAMP=1.58 / 10. 6. * 300. * CRV1=5.13 / 20.53 / 100. FLOWAL=1. IDNAME=SINK. 42. 57. HALVINGS=0 $ TOLERANCE PRESSURE=0. 33. DLHORIZ(FT)=2000. SCHED= 40. IDFROM=GAS-. PRES(ESTI)=100.1 $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. YCORD=193 $ SINK NAME=SINK. 42. SUMMARY=BOTH.82 PIPEPHASE Application Briefs 1-111 . 31. * CRV3=5. GRAV(SPGR)=0. XCORD=0.39.42. * RATE=22. 63. * SIMULATOR=PART $ SEGMENT AUTO=OFF. XCORD=1048. 200.57.43 / 10. 65. 32. * CRV2=5.26 / 20.66. 125. 123.14 / * 15. 33.88. 42.64.61.73. MAP=TAITEL.85999.02 / 10. 6. * DATE=10/21/02. 62. NOFR. 122. 53. TEMP=95. Gas $ DEFAULT IDPIPE=4. ECHG=10.3 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=GAS-SOURCE.35 / * 25.82 / 100.22 / * 15.47. FROM=GAS-SOURCE. 64. 124. 26. TO=SINK.17999. * SETNO=1. 64.26. 297.065 $ PRINT INPUT=FULL. 17.79 / * 15. 14. IDNAME=GAS-.28999. 131.83 / * 25. 110.026. CPRATIO=1. This enable one to enter DESCRIPTION operating curves for compressors/expanders/pumps $ DIMENSION RATE(GV)=CFD $ CALCULATION NETWORK. 7. * MAXITER=20.31 / 10. 76. YCORD=-126 $ $ $ LINK NAME=L1. 250. 450.491. 6. * CRV4=5. 63. IDTUBING=4.42. 168. DLVERT(FT)=500 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. FLASH=FULL. IDTO=SINK PIPE NAME=P001. 25. * CONNECT=NONE.89. 81.

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. they were able to more closely simulate the performance of an actual compressor. * NOMD=6. 1-112 PIPEPHASE EXAMPLE .. U=1 $ $ End of keyword file. booster pumps and wet gas compressors.. PIPE NAME=P002. By allowing users to enter different curves for different inlet pressures. $ END Case Execution The efficiency of a compressor is a function of pressure and flow rate. SCHED= 40. 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. measured field data provided to the DPDT device can simulate pumps. ECHG=-5. LENGTH=500. PIPEPHASE uses linear interpolation to determine the corresponding pressure and temperature change for inlet pressures lying in-between the specified inlet pressures. Apart from modeling compressors.

In this case. The main reasons for using VFP tables are calculation speed (it is a lot faster for PIPEPHASE to linearly interpolate a table instead of rigorously solving a detailed well model) and also for their ability to incorporate results for third party well simulators in a PIPEPHASE network model. so that PIPEPHASE can calculate the wellhead conditions. EX17-GENERATE-VFP-TABLES. Simulation Model In the simulation model. For inflow performance curves. Simulations to determine the pressure drop in the well can use either of the two curves. apart from modeling a well rigorously. so that PIPEPHASE can calculate the bottom hole conditions.Generate a Vertical Flow Performance (VFP) Table to Represent a Well Simulation Objective PIPEPHASE. the user specifies the wellhead pressure. It provides details of properties such as flowing Well Head Pressure. PIPEPHASE Application Briefs 1-113 . The performance of well W-23 is characterized using inflow performance curves. The well W-56 uses outflow performance tables to characterize its performance. the user specifies the bottom hole pressure. Well Head Temperature and Gas Oil Ratio for different Flow and Gas Injection rates. has also the ability to generate a Vertical Flow Performance (VFP) table. PIPEPHASE generates two VFP tables. A VFP table can be read to determine the performance of a well. Example 17 .

In addition. a VFP device is added to each of the links (L-12 and L- 23) representing the wells. Tubing and Gas Lift Valves. The devices required to simulate the behavior of the well are IPR devices. Figure 1-83: Link <L-12> Device Data Dialog Box 1-114 PIPEPHASE EXAMPLE . Figure 1-82: GENERATE-VFP-TABLES The PIPEPHASE Network Model is set up in exactly the same way as every other Network Model.

API)=30. Tubing E009 and Pipe E003) will be incorporated into the data generated in the VFP table. PRIORITY=0. Note: The VFP device in Figure 1-83: Link <L-12> Device Data is inactive.SPGR)=0. PRES=3499. IDNAME=W-23. 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. PROBLEM=EX17. PRANDTL $ DEFAULT NOMD=4.002 LIFTGAS GRAV(GAS. NOMT=4. GRAV(GAS. To use the VFP table for a network simulation. MAP=TAITEL. To exclude Pipe E003 for the VFP table generation. * SIMULATOR=PART. GRAV(OIL. Gas Lift Valve E011. IDANNULUS=6. PLOT=FULL. * MAXITER=30 $ TOLERANCE PRESSURE=0.1 $ $ PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. * DATE=10/10/02. Tubing E001. DEVICE=FULL. the GLVALVE needs to be active and must physically occur before the active VFP device. the user is advised to deactivate all the devices whose effects were included in the VFP table except for the Gas Lift Valve. SCHE= 40. All the active devices (IPR E012. FLOWAL=2. deactivate the device when the table is being generated. For further details. If the gas lift rate was a parameter in the VFP curve. TEMP=180. Input Data $ General Data Section $ TITLE PROJECT=VFPTABLES. see Example18. FLASH=SUMMARY. SUMMARY=BOTH. DLHORIZ(FT)=2000.75. USER=SIMSCI.8 $ $ Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=W-23.065 $ PRINT INPUT=FULL. * SETNO=1. * PIPEPHASE Application Briefs 1-115 . OPTIMIZER=FULL $ SEGMENT AUTO=ON.SPGR)=1.SPGR)=0. * SCHT=TB01. DLVERT(FT)=500 $ $ Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. STEP=1. * CONNECT=NONE. DATABASE=FULL. * GRAV(WATER. Blackoil. * PROPERTY=FULL.

TO=J-4. * XCORD=694...000 1-116 PIPEPHASE EXAMPLE . TO=J-4. DEPTH=6445. LENGTH=8111.1 / OPEN. * RVAL=PI.000 BHPWHP[1]=1000. * U=1 $D~IPR NAME=V001. TEMP=181. IDNAME=SINK. MODEL=31 PIPE NAME=E003. TYPE=PI. U=1 $ LINK NAME=L-23. IDNAME=W-56. YCORD=669 $ SINK NAME=SINK. 3.5 / UPTIME. XCORD=1254. IDFROM=W-56. 20.1 / OPEN.1 TUBING NAME=E001. FROM=W-56. IDTO=J-4 IPR NAME=E012.000 RATE[6]=6000. IDTO=SINK PIPE NAME=E007. DEPTH=8111. IDNAME=J-4. YCORD=-5 $ JUNCTION NAME=J-4. FROM=W-23.5 TUBING NAME=E008. LENGTH=231. GOR=102.000 RATE[3]=3000. * RATE(ESTI)=10000. * RATE(ESTI)=6000. RATE(ESTI)=6000. * IVAL=BASIS. PRIORITY=0. GOR=108. PRES=750. DEPTH=8010.000 GORCGR[0]=102. RATE=1.1 / UPTIME. IDFROM=J-4. * IDNAME=L-3. YCORD=652 $ SOURCE NAME=W-56. * RVAL=PI. LENGTH=103. * IDNAME=L-12. 3. PRES=3505.000 RATE[1]=1000. YCORD=180 $ $ LINK NAME=L-12. LENGTH=8010. DEPTH=6810.1 TUBING NAME=E004. * U=1 $D~IPR NAME=V002. IDTO=J-4 IPR NAME=E013.000 RATE[2]=2000. PRES(ESTI)= 1000.000 RATE[7]=7000. IDFROM=W-23.000 BHPWHP[2]=1500.000 RATE[5]=5000. RATE=1. FROM=J-4. 25. * U=1 GLVALVE NAME=E011. * U=1 GLVALVE NAME=E010.000 RATE[4]=4000. LENGTH=6445. MODEL=31 PIPE NAME=E006. * IVAL=BASIS. * U=1 $ $ End of keyword file. TO=SINK.5 TUBING NAME=E009. * IDNAME=L-23.5. LENGTH=4500. $ END $ $ VFP Table Generation Data Section $ GVFP TABLE GENERATION DATA SECTION $ LINK NAME=L-23 ACTIVATE=1 COMPLETE=Y INFLOWOUTFLOW=2 RATE[0]=100. * XCORD=396. ECHG=15. WCUT=0. WCUT=10. TYPE=PI.000 BHPWHP[0]=500. * SETNO=1. * XCORD=0. LENGTH=6810. U=1 $ LINK NAME=L-3.

000 RATE[3]=3000.500 GEND END GUI DATA Case Execution To generate a VFP table. In this example. In this simulation for well W23.000 GINJR[6]=3.500 GEND $ $ VFP Table Generation Data Section $ GVFP TABLE GENERATION DATA SECTION $ LINK NAME=L-12 ACTIVATE=1 COMPLETE=Y INFLOWOUTFLOW=1 RATE[0]=100. the user needs to specify the type .000 GINJR[2]=1.500 MM ft3/d.either an Inflow or an Outflow table.000 GORCGR[0]=108.500 GINJR[1]=1.000 GINJR[2]=1. Gas Injection Rates (QGINJ). Bottom Hole Pressure (BHP) and Water Cut (WCT) that needs to be included in the table. the user selects the Inflow table. the user also has to decide and enter the number of Flow Rates (Q).000 WCTWGR[0]=0. the user has selected independent flow rates ranging from 100 to 7.000 RATE[1]=1000.000 GINJR[4]=2.000 RATE[7]=7000. Gas/Oil Ratio (GOR). the curve is for Bottom Hole Pressures versus flow rate parametric changes in Well Head Pressures.000 RATE[6]=6000.500 GINJR[0]=0.000 GINJR[4]=2.000 RATE[2]=2000. Note: For an outflow VFP table. PIPEPHASE Application Briefs 1-117 .500 GINJR[3]=2.000 GINJR[0]=0.500 GINJR[5]=3.000 RATE[5]=5000.000 bbl/d and 8 gas injection rates ranging from 500 to 3.000 BHPWHP[0]=3500.500 GINJR[3]=2.500 GINJR[1]=1.500 GINJR[5]=3.000 GINJR[6]=3. Additionally.000 RATE[4]=4000. WCTWGR[0]=10.

Note: Users need to check Activate and/or Edit VFP Data in VFP Table Table Generation dialog box to generate a VFP table. Activate the device as shown in Figure 1-84. Click on the individual properties button in the Black Oil Data grid (Figure 1-85) and enter the details as indicated in the VFP Table Generation Data . either Inflow or Out- flow from the drop-down list.Rates (Q). Figure 1-85: General Spread Sheet . Specify the type of performance curve. Figure 1-84: VFP Table Generation 2.VFP Table Data 1-118 PIPEPHASE EXAMPLE . 3. Click VFP Tables in Link Device Data dialog box to view VFP Table Generation dialog box. 1.

PIPEPHASE Application Briefs 1-119 . Click Delete Row to delete a row in the general spread sheet. click button on the main toolbar. 4. 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 user can use MS-Excel to examine and modify the contents of the file. Results After satisfying the conditions specified in steps 1-4. It is automatically named with the corresponding PIPEPHASE simulation name and the link name represented by the table. Click Insert/Append Row to introduce a new row. The VFP table will be saved as a comma delimited Excel file in the same directory as the simulation.

EX18-USING-VFP-TABLES. Simulation Model In the simulation model. notice that all the devices have been disabled except for the VFP table and Gas Lift Valve. Figure 1-86: USING-VFP-TABLES In Figure 1-86: Link <L-12> Device Data. 1-120 PIPEPHASE EXAMPLE . the user has modified Example17 so that PIPEPHASE simply reads the VFP tables created in Example17.Example 18 . VFP tables can be particularly effective in boosting the performance of large network simulations containing a number of wells. you will notice that it is pointing to the VFP table created in Example 17.Using the Vertical Flow Performance (VFP) Table to Represent a Well Simulation Objective Using the VFP table to represent a well in PIPEPHASE makes it easy and fast to interpolate data in the table instead of rigorously calculating and solving a detailed well model. By clicking on the VFP device.

* DATE=10/10/02. Figure 1-87: Link <L-12> Device Data Dialog Box Input Data $ General Data Section $ TITLE PROJECT=VFPTABLES. SUMMARY=BOTH. $ DIMENSION RATE(LV)=BPD $ CALCULATION NETWORK. NOMT=4. OPTIMIZER=FULL. VFPT=EXCEL $ SEGMENT AUTO=ON. DLVERT(FT)=500 $ $ Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. PLOT=FULL. USER=SIMSCI. Blackoil. * MAXITER=30 $ TOLERANCE PRESSURE=0. * CONNECT=NONE.1 $ $ PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. GRAV(GAS. DEVICE=PART. FLASH=SUMMARY. IDANNULUS=6.API)=30. SITE=BREA $ DESCRIPTION This example uses the VFP Tables already generated DESCRIPTION in EX17. * SCHT=TB01. DATABASE=FULL. DLHORIZ(FT)=2000. GRAV(OIL.75.SPGR)=0. MAP=TAITEL. SCHE= 40. * GRAV(WATER. PRANDTL $ DEFAULT NOMD=4. FLOWAL=2.065 $ PRINT INPUT=NONE.8 $ $ Structure Data Section $ STRUCTURE DATA $ PIPEPHASE Application Briefs 1-121 . * PROPERTY=FULL. STEP=1.002 LIFTGAS GRAV(GAS. PROBLEM=EX18.SPGR)=1.SPGR)=0. * SIMULATOR=PART.

. * SETNO=1. IDFROM=W-56. * $D~ U=1 GLVALVE NAME=E010. PRIORITY=0.1 / OPEN. MODEL=31 $D~PIPE NAME=E006. TEMP=181. FROM=W-56.. PRES(ESTI)= 1000. 25. TEMP=180.583 $D~IPR NAME=E012. RATE=1. PRES=750. IDNAME=W-56. IDFROM=J-4. IDTO=SINK PIPE NAME=E007. IDNAME=W-23.242. LENGTH=8010.1 / UPTIME. * RATE(ESTI)=10000.5 / UPTIME. LENGTH=231. GOR=102.5 $D~TUBING NAME=E008. 1-122 PIPEPHASE EXAMPLE . * IDNAME=L-23. LENGTH=8111. U=1 $ LINK NAME=L-23. YCORD=180 $ $ LINK NAME=L-12. PRIORITY=0. * RATE(ESTI)=6000. * U=1 $ $ End of keyword file. WCUT=10. TYPE=PI. YCORD=669 $ SINK NAME=SINK.5.1 / OPEN. IDTO=J-4. FROM=J-4. IDNAME=J-4. It should be noted that since the VFP table contains data for different gas injection rates.451. * XCORD=0. LENGTH=6445. IDNAME=SINK. DEPTH=6810. DEPTH=8111. * IDNAME=L-3. * $D~ IVAL=BASIS. WCUT=0. YCOR=325. YCORD=-5 $ JUNCTION NAME=J-4. FROM=W-23. 3. IDFROM=W-23. IDTO=J-4 $D~IPR NAME=E013. MODEL=31 $D~PIPE NAME=E003. LENGTH=103. $ END 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. 3. * $D~ U=1 IPR NAME=V002. For this reason. TO=J-4. XCORD=1254. * XCOR=331. RATE=1. the Gas Lift Valve is active (see Figure 1-87) and is present before the VFP device.5 $D~TUBING NAME=E009.1 $D~TUBING NAME=E001. ECHG=15. DEPTH=8010. LENGTH=6810. * $D~ RVAL=PI. the effect of the Gas Lift Valve can be simulated. PRES=3505.151. * $D~ RVAL=PI. TO=J-4. SOURCE NAME=W-23. * IDNAME=L-12. * XCORD=694. PRES=3499. U=1 $ LINK NAME=L-3. * XCORD=396. TO=SINK. TYPE=PI. 20. * SETNO=1. DEPTH=6445. LENGTH=4500.1 $D~TUBING NAME=E004. YCORD=652 $ SOURCE NAME=W-56. GOR=108. * $D~ U=1 IPR NAME=V001. * $D~ IVAL=BASIS. * $D~ U=1 GLVALVE NAME=E011. * RATE(ESTI)=6000.

Enter VFP Table Dimensions and click Edit VFP Table Data to enter the data. Click VFP File in VFP Table Device dialog box to select the relevant VFP file. Figure 1-89: VFP Table Data Dialog Box PIPEPHASE Application Briefs 1-123 . Activate the VFP device shown in Figure 1-87. Click on Edit VFP Table Data…button to display the VFP Table Data dialog box (see Figure 1-89). Note: Users can create a new VFP Table by clicking on the Create New VFP Table button. 4. 1. 2. Click on the VFP device to display the VFP Table Device dialog box (see Figure 1-88). Figure 1-88: VFP Table Dialog Box 3.

5.Rates (Q) Dialog Box Results After satisfying the conditions specified from steps 1-5. 1-124 PIPEPHASE EXAMPLE . Click on the individual properties button in the Edit Values grid to view/edit the VFP table data (see Figure 1-84). Figure 1-90: VFP Table Data . Select Network from the Type drop down list in the Run Simulation and View Results dialog box (Figure 1-91) and click Run. click button on the main toolbar.

If the user attempts to solve the model at flow rates that exceed the values stored in the table. PIPEPHASE Application Briefs 1-125 . the results generated by PIPEPHASE could be erroneous. Figure 1-91: Run Simulation and View Results The validity of the solution generated while employing VFP tables depends entirely on the range of data present in the tables. PIPEPHASE linearly extrapolates the tabular values using the last two data points in the table.

Simulation Model In the solved simulation model. the user's ability to generate Pressure-Volume-Temperature (PVT) files has been greatly expanded. the user is aware of the Temperature (110-1010C) and Pressure range (400- 25 Bar) over which PVT data is required. EX2_BLACKOIL-WELL. Example 19 . In this simulation model. 1-126 PIPEPHASE EXAMPLE . Figure 1-92: PVT-GENERATION To modify the PVT data.Generate PVT Data using PIPEPHASE Simulation Objective In the latest version of PIPEPHASE. click Generate PVT Table option located in the Blackoil PVT Data dialog box (Figure 1-93). EX2_BLACKOIL-WELL has been modified to generate a PVT file when the simulation is launched.

EX19_PVT-GENERATION. the user can enter an appropriate range for pressure and temperature (Figure 1-94) over which Blackoil properties will be generated. Note: The temperature and pressure values entered should satisfy the ranges specified in Example 2. Figure 1-94: Generate Blackoil PVT Table PIPEPHASE Application Briefs 1-127 . Figure 1-93: Blackoil PVT Data Dialog Box In this simulation model.

Note: If the user is using an external PVT file. the default value remains unchanged and in addition to the initial six. The user can also select the Blackoil properties to be calculated by PIPEPHASE. By default. SGOR. Figure 1-95: General Spread Sheet . the user has selected all the 18 properties to be calculated (Figure 1-95). In this example. OILG. VISO. CO). all twelve optional properties have been selected. GASG. 1-128 PIPEPHASE EXAMPLE . Therefore. the first six properties are ALWAYS selected and calculated. the default values of Temperature and Pressure points need to be changed to 31 & 40 respectively (Figure 1-96). the user needs to verify default values in the Max PVT Table Size (Figure 1-96) sufficiently large to be able to generate the requested PVT file. In this simulation model. The other twelve properties are optional. it MUST contain data for the first six properties (FVFO. Therefore. a maximum of 10 PVT files can be calculated in a single simulation. a single PVT file is considered for calculation. a total of 40 pressure points (10 to 400 Bar in increments of 10 Bar) and a total of 31 temperature points (90 to 120ºC in increments of 1ºC) have been added. EX19_PVT-GENERATION. By default. Hence.PVT Table Property Selections Before running the simulation. However. the default Number of Additional Properties can remain unchanged at 12 (Figure 1-96).

PIPEPHASE will converge the simulation and also generate the PVT file. However. PIPEPHASE Application Briefs 1-129 . Figure 1-96: PVT Table Dimensions The conditions being satisfied. the user also has the option of naming the PVT file. the user can run the simulation. By default. PIPEPHASE supplies a name employing a convention that uses the simulation name. which is saved in the same directory as the PPZIP file.

94. 91. 80. * 280. * 220. * 70. 118. * CONNECT=NONE. * 310. 360. 110.IN. 120. 180. SUMMARY=BOTH. 210. 100.1 / STOG. 260.1 / CPO . 117. NVER=10 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. 112. * 104. 230.1 / ZFAC. * PROPERTY=FULL. PVTFILE=EX19-PVT-GENERATION. IDTUBING=102.10 / PRES. DATABASE=FULL. 290.1 1-130 PIPEPHASE EXAMPLE .895e-003 $ $PVT Data Section $ PVT PROPERTY DATA $ DIME MAXDIME=TABL. SLUG=BRILL $ SEGMENT AUTO=OFF. * 340. * 190. * 116. 30. 330. DATE=10/01/97 $ DESCRIPTION BLACKOIL WELL SENSITIVITY ANALYSIS $ DIMENSION Metric.1 / * CW .12 SET SETNO=1.1 / * SGWR. DEVICE=FULL. 20. 300. 114. * 40. 108. 270. * 250. 320. * 98. 106.1 / * CPW . * 110.26.SPGR)=0. 115. 150. Input Data $General Data Section $ TITLE PROBLEM=EXAMPLE2. * 92. * PVEC=10. * 100.876.71. * 113. * SIMULATOR=PART.1 / VISG. 140. 120. USER=SIMSCI. * 107. * GRAV(WATER. FLOWAL=1 $ TOLERANCE PRESSURE=6. 200.SPGR)=1. FLASH=FULL. LENGTH=M. 50. * 400. 90.40 / VARI. 97.1 / CPG . 96. 350. 60. * 370. MAP=TAITEL. GRAV(OIL. 93. RATE(LV)=CMHR. 170. * 119. 109. 240. 380. * 95. * 160. 390. GRAV(GAS.SPGR)=0.1 / VISW.1 / STWG.1 / * STOW. PLOT=FULL. TYPE=2.05099 $ PRINT INPUT=FULL. 102. 105. ADD $ CALCULATION NETWORK. * 101.40 / TEMP. NHOR=10. * PRVEC = FVFW. IDANNULUS=154. TVEC=90. * DENSITY=SPGR $ OUTDIMENSION Metric. PVTRUN. 111. * 130.05 GENERATE SETNO=1. 99. Blackoil $ FCODE TUBING=HB $ DEFAULT IDPIPE=102.26. 103.

18. FN.882 CHOKE NAME=CHK1. YCORD=-131 $ SINK NAME=SEPR. PRES=25. * PRINT. TUNNEL=45. * ID=3. * PERFD=10.-81.199. 350 OUTFLOW NAME=LINE. 50. 60. * 350 BAR DESCRIPTION OUTFLOW= 3 1/2 IN DIA. U=4. DEPTH=1710.-80 IPR NAME=IPR . TO=SEPR. IDNAME=SEPR. $ END $ $Sensitivity Analysis Data Section $ GSENSITIVITY ANALYSIS LINK DATA $ LINK NAME=LINK NODE NAME=CHK1 FLOW RATE=40. TEMP=110. * RATE(ESTI)=50. TYPE=VOGEL. YCORD=-124 $ $ $ LINK NAME=LINK.5. * ID=3. 5 IN DIA INFLOW NAME=RES.. IDNAME=RES. 100 / VOGCON. * PRES=450. JONES. XCOR=468. SHOTS=25. XCORD=572. * IVAL=BASIS. * RATE(ESTI)=1.5. * 4 1/2 IN DIA. ID=1 PIPE NAME=LINE.2 / VOGEXP. 400. LENGTH=1830. 400 BAR. 2. 4.. LENGTH=10 TUBING NAME=TUB1.882 $ $ End of keyword file. LENGTH=1250. PRIORITY=0.312. * 70 DESCRIPTION INFLOW= 450 BAR. IDFROM=RES. ECHG=15. 5 $ END GUI DATA PIPEPHASE Application Briefs 1-131 . GOR=320. WCUT=5. * XCORD=-53. YCOR=-74. * ID=3. 0. IDTO=SEPR. * IDNAME=LINK. 1 / * UPTIME. * RVAL=QMAX.873. * SETNO=1. 4 IN DIA. PRES=400.1 COMPLETION NAME=Z001. FROM=RES. U=4. 4. $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=RES.5. ROUGH(IN)=0.1 / OPEN.

Hence. This allows the user tremendous flexibility in creating a simulation model. a simulation with thirty wells could have a total of 30 Property Sets. Note: If certain properties are missing from a PVT file. browse and select the PVT file. The user can activate the Use PVT File option in the Fluid Property Data dialog box. Case Execution and Results To view the generated PVT file.0. click Edit Excel PVT File after selecting the PVT file. Click PVT File in the Fluid Property Data dialog box. each Property Set referring to a separate PVT file. PIPEPHASE will automatically employ default correlations to generate the properties. there is no limit to the number of PVT files that can be used in a given simulation model. 3. 1. The user can add an additional Property Set for each PVT files used. Figure 1-97: Fluid Property Data 2. some of them using the standard Blackoil correlations available in PIPEPHASE and the others referencing separate PVT files. The user can also have a combination of Property Sets. Note: In PIPEPHASE 9. 1-132 PIPEPHASE EXAMPLE .

PIPEPHASE Application Briefs 1-133 . Figure 1-98: Fluid Property Data Dialog Box The PVT data is displayed in MS-Excel. 4. All the other worksheets simply display the data present in the Raw Data worksheet. However. The user can edit the PVT data in the Raw Data worksheet. to save the modifications. the user must navigate to the Index worksheet (Figure 1-99) and click Update PVT File.

In the Fluid Property Data dialog box. Figure 1-99: PipephasePVTTable.xls 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. select Use PVT File to activate the Eclipse File check box. To view the generated Eclipse File. 1. 1-134 PIPEPHASE EXAMPLE .

PIPEPHASE Application Briefs 1-135 . 3. Search and select the required PVT file (*.pvt). Figure 1-100: Fluid Property Data Dialog Box 2. Select Use PVT File and click PVT File.

Click Edit File. Figure 1-101: .Search Window 4. The PVT data is displayed in the Microsoft Excel application. 1-136 PIPEPHASE EXAMPLE .

PIPEPHASE Application Briefs 1-137 . Figure 1-102: PVT Table in MS Excel 5. 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. You can edit the PVT data 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. How- ever.

Generating Output Reports in Excel Simulation Objective In this simulation. double click Hydrate Unit (H019) to bring up the Hydrate Unit Operation dialog box (see Figure 1-104). Hydrate analysis can only be conducted at a "Node". which in PIPEPHASE is defined as a Source.Example 20 . a small composition network model has been created. Figure 1-103: Compositional Network Hydrates Model In this simulation. the user has the option to add a Hydrate Unit to analyze the potential of hydrate formation in the network. based on EX13. 1-138 PIPEPHASE EXAMPLE . Sink or Junction. For compositional simulation. Simulation Model The Simulation Model for this example is shown in Figure 1-103.

Users are required to enter a temperature or pressure range across which they would like to determine the potential for forming hydrates. PIPEPHASE Application Briefs 1-139 . the user can launch the simulation. Hydrate analysis will be conducted after the network simulation has been solved and the final temperature. After fully specifying the option in the Hydrate unit. Figure 1-104: Hydrate Unit Operation Click Edit button located in Hydrate Unit Operation dialog box to display the Define Hydrate Calculation dialog box (see Figure 1-105). Users can conduct hydrate analysis at any node in a compositional network. pressure and compositional profiles have been calculated. Figure 1-105: Define Hydrate Calculation Operation Users can also simulate the effects of a hydrate inhibitor such as Methanol.

NC10 . C3 / * 5. DENSITY(L)=SRKS $ KVALUE BANK=SimSci $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1.02. * AIR. * CONNECT=FULL. IDTUBING=102. PLOT=FULL. FLOWAL=2. SIMSCI $ PHASE VL=1. DATABASE=FULL. SCHE= 40. NC5 / * 8. Input Data $General Data Section $ TITLE PROJECT=HYDRATEEVAL. FLASH=FULL. SUMMARY=BOTH. C1 / * 3. MAP=TAITEL.10 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. * DENSITY(SPGR)=1.59967. SET=SET01 $ 1-140 PIPEPHASE EXAMPLE . C2 / * 4. PROBLEM=NETWORK. VELO=16. IC4 / * 6. Compositional. * IDANNULUS=154. VISC=0. STEP=1 $ TOLERANCE PRESSURE=0. USER=SIMSCI. COND=0. CO2 / * 2. * DATE=06/20/02. BANK=PROCESS. DUTY=KJHR $ CALCULATION NETWORK.07 $ $Thermodynamic Data Section $ THERMODYNAMIC DATA $ METHOD SET=SET01.26035. DEVICE=FULL. $ DIMENSION Metric.39992 $ $Component Data Section $ COMPONENT DATA $ LIBID 1.05092. * PROPERTY=FULL. * DLVERT(M)=152.9. SITE=BREA $ DESCRIPTION Simple Compositional Network DESCRIPTION Evaluate Temperature and Pressure Profiles DESCRIPTION Generate Phase Envelopes in Excel via RAS DESCRIPTION Superimpose Hydrate Curves with different MEOH concs.02232. HAUSEN $ PRINT INPUT=FULL. DLHORIZ(M)=609. * SIMULATOR=PART $ SEGMENT AUTO=ON. NC7 / * 10. NC4 / * 7.09344. SYSTEM(VLE)=SRKS. TAMBIENT=15. PRANDTL $ FCODE PIPE=TACITE $ DEFAULT NOMD=8. NC6 / * 9.

TO=J004. * 78. * PRES=126. XCORD=-514. * COMPONENT=100 / 0 / 0 / * 0 / 0 / 0 / * 0 / 0 / 0 / * 0 $ $ LINK NAME=L006. * MAXPRES=150. YCORD=-198. * ECHG=9.75 / 9. LENGTH=156. 1. TESTIMATE=-3. -89. 1579. 1235. * IDNAME=L006. 0. 0. 93. IDFROM=S001. * MAXPRES=150. * -23. TO=J004. 2679. POINTS=30.75 / 8. PRIORITY=0. 0. * MAXPRES=150. POINTS=30. IPRES=0. * 30 EVALUATE STREAM=S003. 65. POINTS=30. 59. YCORD=267. 2578. $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=S001. IDTO=D002 PIPE NAME=P018.25 / 6.11 / 6. 52 / 5. RATE(ESTI. IPRES=0. * IDNAME=L008. TESTIMATE=-5. AIR $ $UNIT OPERATION Data Section $ UNIT OPERATION DATA $ HYDRATE UID=H019.25 / * 10. 1 / * 7. -94. TEMP=59.500e+005. YCORD=31 $ JUNCTION NAME=J004. PRIORITY=0. * RATE(ESTI)=1. 15 / 5. FROM=S003.99 / 2. 1 / 2. INHIB(MEOH)=20. 0. FROM=J004. IDTO=J004 PIPE NAME=P012. 2564. LENGTH=234. IDNAME=S003. AIR SEPARATOR NAME=S016. * 34. * 1566. * ECHG=-59. TO=D002. * PRES=129. 20 / 3. IDFROM=J004. PERCENT(GAS)=15 $ LINK NAME=L008. * 30 $ PIPEPHASE Application Briefs 1-141 . XCORD=28. 59 / 3. RATE(ESTI. 2. 0. IDNAME=S001. 1. * XCORD=-976. NAME=EVALUATE MEOH INJECTION RATES EVALUATE STREAM=D002. TESTIMATE=-5. FROM=S001. * ECHG=58. 0. IDFROM=S003. * COMP(M)=1. * YCORD=47 $ $ LINK NAME=L005.4 / * 7.5 $ SOURCE NAME=S003.14. 0. -54. 849. 45. IDTO=J004 PIPE NAME=P015. 4851. * 6789. IDNAME=D002. * 30 EVALUATE STREAM=J004. IDNAME=J004. 124. AIR SEPARATOR NAME=S013.W)=56000. * IDNAME=L005.W)=96000. 4567. LENGTH=2594. 1549.14.5 / * 10. TEMP=62. PRES=80. 21 / * 4.5 / 9. AIR PIPE NAME=P011. 0.5 $ SINK NAME=D002. * COMP(M)=1. INHIB(MEOH)=20. 21 / * 4.5. 0. 98. IPRES=0. * XCORD=-979. * 3598.5 / 8. LENGTH=596. INHIB(MEOH)=20.

1.J004 3. users should ensure that their simulation has been solved and converged before generating complex output reports. 2.. 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. Sink . for this network. The content of the Excel report is controlled from this dialog box. Select Print Options under General menu to bring up the Print Options dialog box (see Figure 1-106).. Click Run to solve the network. Two sources . EG. J004 & D002. if you want to have Flow Pattern Maps generated for each of the links in the simulation. 1-142 PIPEPHASE EXAMPLE . Hydrate analysis can only be conducted at four points. Ensure that the Ability to Generate Excel Database option is set to Full. $ End of keyword file. the following procedure is to be followed. the user decides to select S003.D002 Therefore. For this simulation. Results To view the Hydrate analysis in Microsoft Excel. ensure that the option is high- lighted in this dialog box. For exam- ple.. The Hydrates unit in PIPEPHASE also allows the user to simulate the effect of adding Hydrate inhibitors such as Methanol. DEG & TEG. Select File/Run.S001 & S003 J 2. there are a total of four Nodes as indicated below 1. $ END Case Execution In this simulation. Note: The generation of Excel output reports does take some time and therefore. Salt. Junction . or click to display Run Simulation and the View Results dialog box.

the user also needs to select Run Options located at the top right. The user should judiciously select the reports to be displayed as large simulation models contain numerous nodes and links. ■ Create Database . ■ Run Simulation . The Links Reports in partic- ular can take several minutes to generate.Simply runs and solves the simulation. or click to bring up the Run Simulation and View Results dialog box. 4. Select File/Run.Creates a Microsoft Access database with all the data to be displayed in the Excel Reports. Figure 1-106: Print Options Dialog Box 3. 6.Creates a detailed Excel Report. By default. PIPEPHASE Application Briefs 1-143 . everything is selected. This displays the Excel Reports dialog box.hand corner of the dialog box (see Figure 1-107). Click Excel present in the top right-hand corner of this dialog box.. The user can select the reports that are to be displayed in Excel. 5. In the Excel Reports dialog box. The user must select this option to generate an Excel Report. ■ Create Excel Report .

and subsequently cre- ates the Excel Report. After selecting the options in the Excel Reports dialog box. The Excel Report makes extensive use of hyperlinks allowing the user to easily navigate and find the required information (see Figure 1-108). creates the Access database. the user has to click Run Current Network. it skips running and converging the network model (it assumes that the user has previously converged the simulation). 8.Excel Reports 7. In the above case (see Figure 1-107). Figure 1-107: Run Simulation and View Results . 1-144 PIPEPHASE EXAMPLE .

J004 & D002. D002 (see Figure 1-109). click L008 to review a detailed report of the link terminating at the network sink. To review the Hydrate Analysis at Nodes S003. Figure 1-108: Excel Report 9. PIPEPHASE Application Briefs 1-145 .

the fluid starts as a single phase gas and ends up in the two- phase region of the phase envelope at the terminus. The above curve depicts the formation of hydrates at the network sink. The curve to the left shows the hydrate curve with 30 wt% methanol (see graph legends for details). The green line represents the traverse of the link . which is thermodynamically possible in the absence of an inhibitor. The Phase Envelope generated by PIPEPHASE is for fluid composition present in the final link.the pressure and temperature profile described by the fluid as it passes through the pipeline. engineers can evaluate flow assurance strategies to minimize the risk of forming hydrates in wells and production networks. 11. Three Hydrate curves are shown. Using PIPEPHASE. 1-146 PIPEPHASE EXAMPLE . Figure 1-109: Phase Envelope Excel Chart for L008 10. The one to the right simulates the hydrate curve without the presence of any methanol. Clearly. The middle curve simulates the hydrate curve with 20 wt% Metha- nol.

The basic objective of this simulation is to illustrate the use of Manifold Junction unit in PIPEPHASE. Simulation Model The network sources are well sources with known reservoir pressure and IPR. The destination sink pressures are also set. Manifolds are used to gather or receive flow from multiple source points (such as wells) and to direct them to any one of several possible destinations. gas.Example 21A . with set target well head flowing pressure (PWH). This is modeled by having the choke with specified upstream pressure.Manifold Junction Unit Simulation Objective Production manifolds are a common feature encountered in oil.The wells are controlled by well-head chokes. The Simulation Model for this example is shown in Figure 1-110. and condensate fields. Figure 1-110: Simulation Model Network with Junction unit Network with New Manifold Junction Unit PIPEPHASE Application Briefs 1-147 . The network solution will calculate the well flow rate and the choke sizes.

Build the flowsheet as shown above. 1-148 PIPEPHASE EXAMPLE . The upper network was designed in a traditional way with a set of nodes and links to represent the manifold flow. Double-click the manifold unit to view the below mentioned dialog box. Figure 1-111: Manifold dialog box Specify the valve diameter and K-multiplier. draw a link from each of the upstream nodes (source) and connect it to the manifold junction (just like connecting to a junction). The bottom network was designed using the new Manifold junction unit. two identical networks were configured in one problem. In this example. Similarly. Usage of Manifold unit (lower network) will now help the users to remove the clutter and effectively manage the manifold connections through Manifold junction dialog box. connect the manifold unit to each of its downstream nodes (sink). The manifold connectivity is specified in the Manifold unit dialog box. For the network with manifold junction. The figure indicates setting up the network in a traditional way can cause significant clutter and cumbersome to change and manage the junction connectivity. This valve will be placed in each of the manifold links in the keyword input file.

Users can still proceed by clicking OK with the entered connection settings. Allowable input options and their significance are explained in the dialog box. If you have two active connections for an incoming stream. if you want the manifold link calculations to be printed in the output file. These wells can be activated sometime in the future by changing the grid value from 0 to 1 or 2 respectively. This is because. the slot IDs are automatically generated. Users can change the Slot ID names using a maximum of 3 alpha-numeric characters. Figure 1-112: Manifold Connections Each incoming and outflowing stream is connected to a manifold inlet and outlet slot respectively as shown in the above figure. when using Network Utilities in a real-time environment. the following warning message will pop up. Note: The grid value '0' is useful. PIPEPHASE Application Briefs 1-149 . during normal manifold operations. Note: Check Print Detailed Reports for Manifold Links. This permanently deactivates the connections that are currently unavailable for on/off status manipulation. By default. you do not have more than one active connection for a given incoming connection. A typical scenario would be a set of new wells that are being included in the model but are not drilled/operational in the field at present. Click Manifold Connections to view Manifold Connection dialog box.

The link name is generated by concatenating the manifold-name + in-Slot-ID + out-Slot-ID. Otherwise. PIPEPHASE will use the pressure initial estimate generator to estimate the manifold junction pressures. Figure 1-113: Warning 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. 1-150 PIPEPHASE EXAMPLE . Figure 1-114: Manifold Junction Pressure Estimates The data entry on this dialog box is optional. For example M005-I1-O2 Click Optional Pressure Estimate to view Manifold Junction Pressure Estimates dialog box. If no data is entered. Example: A junction name is generated as follows: "M005" + "I1" = M005-I1. pressure estimates entered will be used to calculate the junction pressures. Click Optional Valve Names to view Manifold Valve Names dialog box.

If the manifold links has a low pressure drop. Select General/Calculation Methods.to view Network Calcuation Methods dialog box. Figure 1-115: Manifold Valve Names If no data is entered. However. the network utilities may use an external status file(s) based on valve status. This is possible only if the incoming stream is directed to only one outflowing stream in the manifold. the unique valve name may change from run to run if any network-link contents or status are changed. Note: For real time or on-line PIPEPHASE applications. it is possible in principle to eliminate these internal low-pressure drop manifold links at calculation time without changing the final network solution. Then it is essential to have a unique and static/constant valve name for the network utilities to work properly. PIPEPHASE Application Briefs 1-151 .. Refer example 21 B for detailed explanation on Network Change Utilites. So it is advised that the valve name should be specified for real-time application users. PIPEPHASE will generate a unique name at run time.

Figure 1-116: Network Calculation Methods For example. Using this option may improve the stability of the network convergence and eliminate unnecessary link calculations. This option can be invoked by clearing the Detailed Manifolds check box in the Network Calculation Methods dialog box. 1-152 PIPEPHASE EXAMPLE . Eliminating these low-pressure-drop links will not change the final solution. Link ML01 and manifold Link M005-I1-O2 is used to connect source MS01 to Junction M005-O2. in the manifold-junction-network. link M005-I1-O2 is removed and link ML01 is made to connect MS01 to M005-O2 thus eliminating link M005-I1- O2 and the junction M005-I1. At calculation time.

* DATE=02/14/06 $ DESCRIPTION Network with manifold $ DIMENSION Metric. Compositional. FLASH=FULL. PRANDTL. 198. PLOT=FULL. SIMSCI PETRO(KGM3) 10. N2 / * 2. IC4 / * 7.05092. MERGESUB. C2 / * 5. Input Data $General Data Section $ TITLE PROJECT=APPBRIEFS. IDTUBING=102. SIMULATOR=PART $ SEGMENT AUTO=OFF. * DETMANIFOLD $ FCODE TUBING=HB $ DEFAULT IDPIPE=102. DENSITY=SPGR. C3 / * 6. 800.26035.26035. * SUMMARY=BOTH. CO2 / * 3. SYSTEM=SRK $ WATER PROPERTY=Super $ KVALUE BANK=SimSci $ $PVT Data Section $ PVT PROPERTY DATA $ PIPEPHASE Application Briefs 1-153 .895e-003 $ $Thermodynamic Data Section $ THERMODYNAMIC DATA $ METHOD SET=SET01. DEVICE=FULL. BANK=PROCESS. . DLHORIZ(M)=609. MAP=TAITEL. PDAMP=100 $ TOLERANCE PRESSURE=6. C1 / * 4. ADD $ CALCULATION NETWORK. * CONNECT=FULL. * DLVERT(M)=152. STEP=1. * RATE(GV)=CMD $ OUTDIMENSION Petroleum.10 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE.250.39992 $ $Component Data Section $ COMPONENT DATA $ LIBID 1. NC4 / * 8. PROBLEM=EXAMPLE-21A. DATABASE=FULL. * HAUSEN $ PRINT INPUT=NONE. RATE(W)=TDM. ITER. IDANNULUS=154. FLOWAL=2. C6PLUS. TEMPERATURE=F. IC5 / * 9. NC5 .890 $ PHASE VL=1. * PROPERTY=FULL.59967. * QDAMP=500.

0.W)=200. 5 / 8. * XCORD=190. 5 / 8.1. PRES=119. 2 / 2.8 / * 10. IDNAME=MS03. 1. 1. 2 / * 7. SET=SET01 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=MS01.W)=173.3 / 5.3. 3 / 3. * SETNO=1. RATE(ESTI. NOCHECK. 2 / 2. * COMP(M)=1.W)=200. * SETNO=1. 2 / 2. 68 / * 4.W)=200.9 / 9. RATE(ESTI. 2 / 2. SET=SET01. 13. * XCORD=640. * XCORD=265. * XCORD=5. 2 / * 7. 8 / 6. YCORD=3600. 1. PRES=98. 3 / 3. 8 / 6. SET SETNO=1. 10 $ SOURCE NAME=S213. IDNAME=MS01. YCORD=6425. 0. * COMP(M)=1. 8 / 6. * COMP(M)=1.3 / 5. * COMP(M)=1. PRIORITY=0.7. 1. 2 / * 7.8 / * 10. 5 / 8. * SETNO=1. 2 / 2. 10 $ SOURCE NAME=S214.9 / 9. 3 / 3. PRIORITY=0. 13. * TEMP=150. SET=SET01. NOCHECK. RATE(ESTI. 68 / * 4.8 / * 10. * SETNO=1.W)=200.9 / 9.52. NOCHECK. * XCORD=0. 68 / * 4. 2 / * 7. 0. PRIORITY=0. 68 / * 4. * TEMP=150. 3 / 3. 13. 2 / * 7. * TEMP=150. * TEMP=150. PRIORITY=0. IDNAME=S211. RATE(ESTI. * XCORD=230.9 / 9. YCORD=5760. YCORD=7065. 5 / 8. PRES=119.W)=120. 8 / 6. IDNAME=S212. 68 / * 4.9 / 9. SET=SET01. 10 $ SOURCE NAME=S211. 0. SET=SET01. 5 / 8.W)=120. PRIORITY=0. * TEMP=150. PRES=119. 2 / 2. 10 $ SOURCE NAME=S212. 13. * COMP(M)=1.1. 1.3 / 5. 10 $ SOURCE NAME=MS03. 2 / * 7. 10 $ SOURCE NAME=MS04.3. * SETNO=1.8 / * 10. YCORD=3020. NOCHECK.7. * TEMP=150.W)=173. 2 / 2. 10 $ SOURCE NAME=MS02. NOCHECK. 13. * TEMP=150. NOCHECK. * TEMP=150. PRIORITY=0. 8 / 6. 3 / 3. PRES=98. 68 / * 4. PRES=119. SET=SET01. YCORD=4195. * XCORD=20. SET=SET01. PRIORITY=0. 3 / 3.3 / 5. 1. 0. NOCHECK. 68 / * 4. IDNAME=MS02. 13. NOCHECK.8 / * 10. RATE(ESTI.9 / 9. IDNAME=S214. * SETNO=1. * COMP(M)=1. SET=SET01. 3 / 3. PRES=108. YCORD=5150. 0. 2 / * 7.3 / 5. SET=SET01. 1. IDNAME=MS04. 8 / 6. * SETNO=1. 13. 8 / 6. IDNAME=S213. PRES=108.8 / * 10. RATE(ESTI.3 / 5. 5 / 8. * COMP(M)=1. RATE(ESTI.8 / * 10. 0.52. * SETNO=1. 5 / 8. * 1-154 PIPEPHASE EXAMPLE .3 / 5. RATE(ESTI. PRIORITY=0.9 / 9.

XCORD=1605. PRINT $~VALVE MANIFOLD=M005. XCORD=3785. XCORD=1610. YCORD=3650 SINK NAME=U1T2. NAME=M005-I4. XCORD=3825. * $~ RATE(ESTI)=1. IDNAME=ML00. IDNAME=IJ00.148. YCORD=4105 SINK NAME=U1T3. XCORD=2002. YCORD=5630 JUNCTION MANIFOLD=M005. * TO=M005-O2. * $~ KMUL=8 $ LINK MANIFOLD=M005. NAME=M005-I1-O1. * XCORD=1785. IDNAME=IJ02. IDNAME=ML07. IDOUT=152. XCORD=2007. IDNAME=J214. IDNAME=U1T3. PRES=15. YCORD=5630 JUNCTION MANIFOLD=M005. NAME=M005-I1-O3. * XCORD=1785. PRES=15. YCORD=5655 SINK NAME=U2T3. IDNAME=IJ01. YCORD=5630 $ $~LINK MANIFOLD=M005.15. 8 / 6. IDNAME=ML06. * $~ IDTO=OJ02. FROM=M005-I2. * RATE(ESTI)=1000. XCORD=325. IDFROM=IJ00. IDNAME=U1T2. IDNAME=OJ01. IDIN=152. 3 / 3. YCORD=5630 JUNCTION MANIFOLD=M005. NAME=M005-I1. IDFROM=IJ00. YCORD=5060 SINK NAME=U2T2. XCORD=3780. * $~ RATE(ESTI)=1125. IDNAME=U201. IDNAME=TS21. XCORD=2001. 68 / * 4. * XCORD=1785. NAME=M005-O2. * $~ TO=M005-O1. 2 / 2.69995. IDNAME=OJ00. * YCORD=4631 $ JUNCTION MANIFOLD=M005. * $~ KMUL=8 PIPEPHASE Application Briefs 1-155 . YCORD=5630 JUNCTION MANIFOLD=M005. * $~ TO=M005-O3. * $~ TO=M005-O1. 0. IDNAME=U1T1. IDNAME=J211.3 / 5. PRES=15. * YCORD=4623 $~JUNCTION NAME=TS21.148. * $~ XCORD=1785.9 / 9.69995. YCORD=5630 $~JUNCTION MANIFOLD=M005. 5 / 8.1475. IDOUT=152. IDIN=152. * $~ IDTO=OJ00. IDNAME=ML05. * KMUL=8 $ $~LINK MANIFOLD=M005. IDNAME=IJ03. * COMP(M)=1. XCORD=3630. YCORD=4595 $~SINK NAME=U2T1. NAME=M005-O1. * YCORD=4331 JUNCTION NAME=J214. IDNAME=U2T2. 1. PRES=15. 10 $ $~SINK NAME=U1T1. IDOUT=152. FROM=M005-I1. NAME=M005-O3. IDNAME=J213. 13. PRINT $~VALVE MANIFOLD=M005. NAME=M005-I3. IDNAME=U2T3. IDNAME=OJ02. FROM=M005-I1. * YCORD=3623 JUNCTION NAME=J212. NAME=M005-I2.69995. * RATE(ESTI)=1125.15. * XCORD=1785. FROM=M005-I1. IDFROM=IJ00. PRES=15. * $~ KMUL=8 $ $~LINK MANIFOLD=M005.1475. XCORD=1586. IDFROM=IJ01. YCORD=4715. IDNAME=U2T1. PRINT VALVE MANIFOLD=M005. IDIN=152. NAME=M005-I1-O2. IDOUT=152. * IDTO=OJ01. NAME=M005-I2-O1. PRINT $~VALVE MANIFOLD=M005. YCORD=6230 $ JUNCTION NAME=J211. 2 / * 7. XCORD=3710. * RATE(ESTI)=1125. * XCORD=1785. PRES=15.8 / * 10. * YCORD=3943 JUNCTION NAME=J213. * $~ YCORD=3750 JUNCTION NAME=U201. YCORD=5630 JUNCTION MANIFOLD=M005. IDIN=152. * RATE(ESTI)=1125. * $~ IDTO=OJ00. * YCORD=4176 JUNCTION NAME=U202. XCORD=1583. XCORD=3665. * XCORD=1785. IDNAME=J212.69995. IDNAME=U202.

0. FROM=M005-I4. IDOUT=152.53.53. NAME=M005-I3-O1. * TO=M005-O2. IDNAME=ML10. NAME=M005-I2-O3. PRINT $~VALVE MANIFOLD=M005.75 / UPTIME. PRINT $~VALVE MANIFOLD=M005. * $~ TO=M005-O2. LENGTH=1000. PRINT VALVE MANIFOLD=M005. * U=4. * $~ TO=M005-O1. IDIN=152. FROM=M005-I3. IDIN=152.1 TUBING NAME=T002. IDOUT=152. LENGTH=400. LENGTH=400. PRINT $~VALVE MANIFOLD=M005. * $~ TO=M005-O1. TO=J211.1 TUBING NAME=T003. * KMUL=8 $ LINK NAME=L211. 4. IDNAME=ML15. * $~ IDTO=OJ00. * IVAL=BASIS. 0. * RVAL=COEF. NAME=M005-I3-O2. IDFROM=IJ02. * $~ IDTO=OJ01. TYPE=GASFLOW. * IDNAME=L212. NAME=M005-I4-O1. * SCHED= 40.000e-004 / EXP. NOMD=6. * $~ TO=M005-O3.8824 MCHOKE NAME=C206.7 PIPE NAME=P212. * $~ TO=M005-O2. IDIN=152. FROM=S213. IDFROM=IJ01. IDOUT=152. IDNAME=ML08. IDIN=152. * IDTO=OJ02. NAME=M005-I2-O2. * IVAL=BASIS. * $~ KMUL=8 $ $~LINK MANIFOLD=M005. PRINT VALVE MANIFOLD=M005. PRINT $~VALVE MANIFOLD=M005. TO=J212. IDFROM=IJ03. FROM=M005-I2. IDOUT=152. * IDTO=OJ01. IDIN=152. IDOUT=152. NOMD=6. 5. * KMUL=8 $ $~LINK MANIFOLD=M005. U=4. 1.000e-004 / EXP. FROM=M005-I4. IDFROM=S212. ID=105.8824 MCHOKE NAME=C211. IDIN=152. IDFROM=S211. $ LINK MANIFOLD=M005. IDTO=J211 IPR NAME=I204.8824 $ LINK NAME=L212. U=4. IDNAME=ML11. * U=4.8824 $ LINK NAME=L213. * KMUL=8 $ $~LINK MANIFOLD=M005. FROM=M005-I4. PUPS=60. IDOUT=152.5 PIPE NAME=P207. * TO=M005-O3. IDNAME=ML14. IDNAME=ML13. TO=J213. * $~ KMUL=8 $ $~LINK MANIFOLD=M005. IDFROM=IJ03. IDNAME=ML09. * IDTO=OJ02. IDFROM=IJ01. * $~ IDTO=OJ01. * 1-156 PIPEPHASE EXAMPLE . FROM=M005-I3. * RVAL=COEF. IDFROM=IJ02.75 / UPTIME. IDIN=152. * SCHED= 40. LENGTH=1000. NAME=M005-I3-O3. NAME=M005-I4-O2. IDFROM=IJ03. PRINT $~VALVE MANIFOLD=M005. IDTO=J212 IPR NAME=I209. NAME=M005-I4-O3. * IDNAME=L211. TYPE=GASFLOW. IDNAME=ML12. IDOUT=152. * $~ KMUL=8 $ $~LINK MANIFOLD=M005. PRINT VALVE MANIFOLD=M005. * $~ KMUL=8 $ LINK MANIFOLD=M005. FROM=S212. FROM=M005-I3. FROM=S211. 1. IDFROM=IJ02. IDOUT=152. PUPS=70. * TO=M005-O3. * $~ KMUL=8 $ LINK MANIFOLD=M005. * $~ IDTO=OJ02. ID=105. IDIN=152. * $~ IDTO=OJ00. FROM=M005-I2.

IDFROM=J213. FROM=J212. IDTO=U201 VALVE NAME=V251. IDTO=U201 $~VALVE NAME=V255. ANGLE=180. * $~ IDNAME=L241. TO=U202. TO=U201. IDTO=TS21 $~VALVE NAME=V235. IDTO=U201 $~VALVE NAME=V259. NOMD=6. ANGLE=180. IDFROM=J212. KMUL=8 $ $~LINK NAME=L253. ANGLE=180. * IVAL=BASIS. PUPS=60 PIPE NAME=P222. NOMI=6. KMUL=8 $ $~LINK NAME=L265. * U=4. IDFROM=J214.500e-004 / EXP. 1. * $~ IDNAME=L237. * $~ SCHED= 40. NOMO=6. * $~ IDNAME=L253. NOMI=6. NOMI=6. NOMO=6. 8.75 / UPTIME.5 PIPE NAME=P217. TO=U202. * RVAL=COEF. TYPE=GASFLOW. ANGLE=180. KMUL=8 $ $~LINK NAME=L241. NOMO=6. TO=U202. FROM=S214.1 TUBING NAME=T004. * $~ IDNAME=L261. TO=TS21. FROM=J213. TO=U201. NOMO=6. IDTO=TS21 $~VALVE NAME=V239. U=4. ANGLE=180. IDTO=J213 IPR NAME=I214. KMUL=8 $ $~LINK NAME=L237. * U=4. IDTO=U202 $~VALVE NAME=V267. * $~ SCHED= 40. IDFROM=J213. * IDNAME=L249. 1. KMUL=8 $ LINK NAME=L245. FROM=J213. * IVAL=BASIS. IDTO=TS21 $~VALVE NAME=V243.8824 MCHOKE NAME=C216. FROM=J212. NOMO=6.1 TUBING NAME=T005. * PIPEPHASE Application Briefs 1-157 . LENGTH=400. NOMI=6. FROM=J211. FROM=J214.75 / UPTIME. NOMD=6. TO=TS21.53. NOMI=6.500e-004 / EXP.8824 $ LINK NAME=L214. FROM=J211. KMUL=8 $ $~LINK NAME=L261. FROM=J211. FROM=J213. FROM=J212. NOMI=6. IDFROM=J212.53. * $~ IDNAME=L233. IDFROM=S214. ANGLE=180. TO=J214. KMUL=8 $ $~LINK NAME=L233. TO=U201. U=4. * $~ SCHED= 40. IDFROM=J211. 6. IDTO=U201 VALVE NAME=V247. LENGTH=400. TO=U201. NOMI=6. ANGLE=180. IDFROM=J211. IDTO=TS21 $~VALVE NAME=V231. NOMI=6. * $~ SCHED= 40. TO=TS21. IDTO=J214 IPR NAME=I219. * $~ SCHED= 40. ANGLE=180. ANGLE=180. * SCHED= 40. 0.8824 MCHOKE NAME=C221. KMUL=8 $ LINK NAME=L269. NOMO=6. PUPS=70. IDFROM=J211. NOMO=6.8824 $ $~LINK NAME=L229. * $~ IDNAME=L257. ID=105. NOMI=6. ANGLE=180. LENGTH=1000. TYPE=GASFLOW. * $~ IDNAME=L229. IDNAME=L213. * SCHED= 40. * SCHED= 40. FROM=J214. NOMO=6. * IDNAME=L245. * $~ SCHED= 40. * SCHED= 40. ID=105. IDFROM=J212. TO=TS21. KMUL=8 $ $~LINK NAME=L257. NOMO=6. NOMO=6. * $~ SCHED= 40. KMUL=8 $ LINK NAME=L249. * $~ SCHED= 40. IDFROM=S213. * $~ IDNAME=L265. LENGTH=1000. * IDNAME=L214. IDTO=U202 $~VALVE NAME=V263. IDFROM=J214. NOMI=6. * RVAL=COEF. 0.

TYPE=GASFLOW. U=4. TO=M005-I1. TO=U1T1. * IDNAME=MD02. NOMD=12. TO=U202. LENGTH=2600. 5. * IVAL=BASIS. LENGTH=2600. * IDNAME=L273. U=4. ANGLE=180.8824 VALVE NAME=V004. NOMD=10. LENGTH=1000. IDTO=U202 VALVE NAME=V271. IDTO=U202 VALVE NAME=V275. TO=U2T1. * IDNAME=MD03.8824 $ LINK NAME=ML02. FROM=MS02. TO=U2T2. U=4. * SCHED= 40. IDTO=IJ00 IPR NAME=I008. NOMD=12. U=4.8824 $ LINK NAME=L279. NOMO=12. FROM=U202. * SCHED= 40. U=4.8824 VALVE NAME=V001. 0. NOMI=12. * U=4. * $~ SCHED= 40. KMUL=8 $ LINK NAME=ML01. * SCHED= 40. * $~ IDNAME=MD01. NOMD=6. KMUL=8 $ $~LINK NAME=MD01. NOMI=12. * U=4. ANGLE=180.8824 VALVE NAME=V002. LENGTH=2600.8824 MCHOKE NAME=C010. IDFROM=MS01. * SCHED= 40. 1. * RVAL=COEF. * SCHED= 40. * IVAL=BASIS. IDTO=U2T3 PIPE NAME=P035. ID=105. 1.000e-004 / EXP. KMUL=8 $ LINK NAME=MD02. ANGLE=180. NOMO=12. IDTO=U1T3 PIPE NAME=P282. FROM=MS01. LENGTH=2600. * IDNAME=L281. * SCHED= 40. PUPS=60. NOMO=12. NOMI=6. PUPS=70. TO=M005-I2. U=4. U=4. * SCHED= 40. * 1-158 PIPEPHASE EXAMPLE . NOMO=12. IDFROM=J213. 4. LENGTH=1000. NOMI=12. ANGLE=180. * SCHED= 40.5 PIPE NAME=P009.75 / UPTIME. TO=M005-I3. * SCHED= 40. IDFROM=OJ02. IDTO=U1T2 PIPE NAME=P280.7 PIPE NAME=P014. * IDNAME=ML02. LENGTH=2600. IDNAME=L269. KMUL=8 $ LINK NAME=L281. NOMI=12. * RVAL=COEF.53.000e-004 / EXP. FROM=TS21. NOMO=12. LENGTH=2600. * $~ IDNAME=L277. IDTO=U2T1 $~PIPE NAME=P030.8824 MCHOKE NAME=C015. NOMI=12. IDFROM=TS21. IDFROM=MS02. IDFROM=OJ00. * $~ SCHED= 40.8824 $~VALVE NAME=V003. TYPE=GASFLOW. IDFROM=U202. ID=105. NOMD=12. IDFROM=J214. FROM=M005-O1. TO=U1T2. FROM=MS03.53. FROM=M005-O3.1 TUBING NAME=T009. KMUL=8 $ $~LINK NAME=L277. NOMO=6.75 / UPTIME.8824 VALVE NAME=V006. FROM=U201. IDFROM=OJ01. NOMD=6. LENGTH=400. * $~ SCHED= 40. TO=U1T3. * SCHED= 40.8824 $ LINK NAME=ML03. IDFROM=U201. U=4. FROM=J214. * IDNAME=ML01. 0. LENGTH=400. KMUL=8 $ LINK NAME=L273. TO=U2T3. * SCHED= 40.1 TUBING NAME=T014. NOMI=6. NOMD=12. ANGLE=180. FROM=M005-O2. * SCHED= 40. ANGLE=180. NOMO=6. IDTO=U2T2 PIPE NAME=P032. * IDNAME=L279. ANGLE=180. NOMD=12. KMUL=8 $ LINK NAME=MD03. IDTO=IJ01 IPR NAME=I013. IDTO=U1T1 $~PIPE NAME=P278.

IDNAME=ML03. ID=105. one to each outlet stream. 1. LENGTH=1000. 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. TYPE=GASFLOW. 6. IDTO=IJ02 IPR NAME=I018. NOMD=6. then there is M x N manifold links required to represent the flow in the manifold. NOMD=6.8824 $ $ End of keyword file.53. * RVAL=COEF.75 / UPTIME. * SCHED= 40.8824 MCHOKE NAME=C020.8824 $ LINK NAME=ML04. IDFROM=MS03. LENGTH=400. an incoming stream is directed to only one outlet stream. * SCHED= 40. Each incoming stream will have M connecting links. TO=M005-I4.. LENGTH=400. 0. IDFROM=MS04.5 PIPE NAME=P019. U=4. 0. $ END $ $ Begin Manifold Unit Mapping Information $ GMANIFOLD Name=[M005] In=[4].500e-004 / EXP. ID=105.1 TUBING NAME=T021. * RVAL=COEF. * U=4. * U=4. U=4. * IVAL=BASIS. * IDNAME=ML04.8824 MCHOKE NAME=C025.500e-004 / EXP. PUPS=60 PIPE NAME=P024. 8. FROM=MS04.53. All other (M-1) connecting links from an incoming stream are turned off at any given time. (See grayed out PIPEPHASE Application Briefs 1-159 . IDTO=IJ03 IPR NAME=I023..75 / UPTIME. TYPE=GASFLOW. LENGTH=1000. 1. During normal operation.1 TUBING NAME=T024. PUPS=70. * IVAL=BASIS.

links in network figure for a traditional manifold).00 T003 TBNG HB 105.0 I214 IPR 0.00 0.78 (TDM) 16. 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) ---.00 0.00 1000.00 (BAR) TEMP= 86.00 0.15 84.65 0.8 (F) L245 **JUNCTION** RATE= 493. BASE CASE DEVICE SUMMARY C O ------.00 88.00 0.00 16. In very unusual situations.00 0.00 0.34 150.24 (TDM) 108.4 (F) L213 ***SOURCE*** RATE= 458.70 150.16 88.54 0.---. Click Run to solve the network.00 88.70 150.1 V247 VALV CH 154.36 (TDM) 16.0 0.4 0.65 J212 16.00 17.30 150.98 150.------.55 S211 119. Using this Manifold connectivity. users can regularly change and redirect the flows easily. the operator may direct flow from one incoming stream to multiple destinations.16 C211 MCHO FN 24.57 0.out file to view the report.00 0.10 0.00 0.09 V001 VALV CH 303.53 1000.2 0.00 70.00 90.-----.36 (TDM) 119.00 86.00 (BAR) TEMP= 88.00 0.0 I209 IPR 0.42 (TDM) 119.--------.50 133.00 0.00 15.00 90.53 1000.53 150.00 0.30 2600.00 P212 PIPE BM 154.30 150.0 0.8 QUAL= 0.4 0.00 60.------.00 T004 TBNG HB 105.64 0.00 U201**JUNCTION** PRES= 16.07 J211**JUNCTION** PRES= 16.8 0.---.00 0.00 0.4 (F) L279 **JUNCTION** RATE= 970.00 0.56 S213 108.59 0.8 0.00 90.3 0.0 I204 IPR 0.00 0.00 17.42 (TDM) 16.7 0.-------.00 0.4 0. Below is a sample device summary of the results.00 (BAR) TEMP= 88.00 0.OUTLET -----.00 86.17 C206 MCHO FN 22.The calculated choke sizes are underlined.30 0.53 1000.------. Results & Discussion Select File/Run or click to view Run Simulation and View Results dialog box.11 93.00 15.70 132.00 0.15 84.00 U201**JUNCTION** PRES= 16.00 16.15 (BAR) TEMP= 84.1 0.00 16.10 150.4 (F) L249 **JUNCTION** RATE= 477.1 0.21 0.55 S212 119.00 90.4 P280 PIPE BM 303.00 86.00 0.65 0. AVG.0 QUAL= 0.00 87.10 400.00 1000.57 0.00 T002 TBNG HB 105.8 V251 VALV CH 154.---.00 70.00 P207 PIPE BM 154.0 QUAL= 0.65 U201 16.00 88.0 QUAL= 0.2 0.00 16.00 1000.00 86. Select Output File under Report and click View to generate a .06 J212**JUNCTION** PRES= 16.10 0.50 133.17 1-160 PIPEPHASE EXAMPLE .00 0.10 400. ------ L211 ***SOURCE*** RATE= 493.00 0.10 150.0 0.00 (BAR) TEMP= 90.00 77.4 QUAL= 0.00 U1T2 *** SINK *** PRES= 15.00 0.64 J211 16.1 (F) L212 ***SOURCE*** RATE= 477.1 QUAL= 0.

17 C010 MCHO FN 22.0 QUAL= 0.0 QUAL= 0.00 0.0 I013 IPR 0.00 17.36 93.25 90.00 (BAR) TEMP= 90.00 18.53 1000.00 0.00 17.00 0.17 C020 MCHO FN 21.36 (BAR) TEMP= 93.64 0.0 I008 IPR 0.1 (F) ML03 ***SOURCE*** RATE= 458.64 0.--------.00 T014 TBNG HB 105.00 132.10 400.00 17.00 0.00 0.00 0.00 0.0 I219 IPR 0.00 0.07 IJ00**JUNCTION** PRES= 16.36 90.00 0.36 93.07 (BAR) TEMP= 86.00 86.07 IJ02**JUNCTION** PRES= 16.36 88.65 0.00 0.36 88.70 132.00 0.09 V002 VALV CH 303.3 0.50 2600.57 0.00 16.34 150.00 T009 TBNG HB 105.00 U202**JUNCTION** PRES= 17.59 0.8 (F) MD02 **JUNCTION** RATE= 970.53 1000.00 0.00 0.10 400.3 (F) DEVICE SUMMARY C O ------.8 0.1 0.16 C015 MCHO FN 24.-----.53 150.16 88.36 90.00 0.00 P222 PIPE BM 154.00 T005 TBNG HB 105.70 150.0 QUAL= 0.2 (F) ML02 ***SOURCE*** RATE= 477.52 150.10 400. C216 MCHO FN 21.3 V275 VALV CH 154.00 T021 TBNG HB 105.00 0.30 150.00 17.00 60.8 0.30 2600.00 0.------.00 P009 PIPE BM 154.00 0.9 P282 PIPE BM 254.45 0.36 (BAR) TEMP= 90.30 150.9 QUAL= 0.55 MS01 119.00 0.8 0.10 0.65 0.50 133.00 88.0 0.64 0.10 150.15 (BAR) TEMP= 84.2 0. AVG.4 QUAL= 0.00 17. 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) ---.00 0.30 0.36 (BAR) TEMP= 88.00 90.0 0.00 0.00 0.00 0.06 IJ01**JUNCTION** PRES= 16.00 0.36 88.------.0 0.00 16.65 0.00 0.65 0.07 J214**JUNCTION** PRES= 17.36 (BAR) TEMP= 90.0 0.00 0.55 MS02 119.4 P032 PIPE BM 303.10 400.30 0.5 0.0 I018 IPR 0.00 70.0 QUAL= 0.00 P217 PIPE BM 154.00 0.77 0.00 0.6 0.05 88.00 88.70 0.00 15.00 16.00 70.00 0.00 0.00 88.00 77.OUTLET -----.73 96.00 15.3 QUAL= 0.00 0.15 84.14 84.00 0.52 150.21 0.9 (F) L281 **JUNCTION** RATE= 1013.54 0.15 84.00 0.64 U202 17.07 86.98 150.10 150.36 93.57 0.10 0.11 93.00 18.24 (TDM) 17.3 0.1 (F) L214 ***SOURCE*** RATE= 554.36 93.---.---.3 0.8 (F) ML01 ***SOURCE*** RATE= 493.1 0.---.00 77.2 0.10 400.00 1000.-------.00 0.93 (TDM) 98.00 U2T2 *** SINK *** PRES= 15.00 15.57 S214 98.53 1000.64 150.00 17.1 0.24 (TDM) 108.42 (TDM) 119.2 0.2 0.9 (F) L273 **JUNCTION** RATE= 554.00 0.00 U1T3 *** SINK *** PRES= 15.17 (TDM) 17.00 15.1 V271 VALV CH 154.00 P014 PIPE BM 154.00 0. ------ **********************************CONTINUED************************** L269 **JUNCTION** RATE= 458.00 87.36 (TDM) 119.64 J213 17.00 60.00 (BAR) TEMP= 86.15 (BAR) TEMP= 84.00 1000.53 1000.93 (TDM) 17.50 133.65 OJ01 16.00 1000.36 88.16 C221 MCHO FN 26.5 0.59 0.78 (TDM) 16.5 (F) PIPEPHASE Application Briefs 1-161 .5 0.0 0.1 0.00 U202**JUNCTION** PRES= 17.56 MS03 108.7 0.00 0.14 84.08 J213**JUNCTION** PRES= 17.1 QUAL= 0.09 V004 VALV CH 303.00 0.00 P019 PIPE BM 154.70 150.00 17.65 J214 17.00 1000.------.

2 QUAL= 0.52 150.00 86.00 0.------.00 16.07 91.1 0.1 QUAL= 0.06 IJ03**JUNCTION** PRES= 16.00 OJ01**JUNCTION** PRES= 16.07 (BAR) TEMP= 89.0 0.00 0.65 IJ03 16.00 OJ02**JUNCTION** PRES= 16.00 0.93 (TDM) 16.24 (TDM) 16. 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) ---.2 0.00 16.6 0.00 0.0 QUAL= 0.0 P035 PIPE BM 303.31 0.07 91.07 86.00 90.00 0.00 60.64 150.3 (F) MD03 **JUNCTION** RATE= 1013.65 IJ01 16.0 (F) ML27 **JUNCTION** RATE= 554.57 MS04 98.07 86.00 P024 PIPE BM 154.0 (F) 1-162 PIPEPHASE EXAMPLE .07 (BAR) TEMP= 89.00 0.00 77.00 0.00 1000. ------ **********************************CONTINUED************************** ML17 **JUNCTION** RATE= 493.36 (TDM) 16.2 V007 VALV CH 152.------.3 0.00 90.55 94.3 QUAL= 0.00 0.64 IJ00 16.00 (BAR) TEMP= 88.8 QUAL= 0.3 V008 VALV CH 152.00 0.07 89. DEVICE SUMMARY C O ------.0 QUAL= 0.52 150.15 84.65 OJ02 16.30 0.8 0. AVG.00 0.30 2600.00 0.00 0.4 0.00 16.00 16.-----.00 U2T3 *** SINK *** PRES= 15.00 0.4 (F) ML04 ***SOURCE*** RATE= 554.00 (BAR) TEMP= 88.1 V003 VALV CH 152.10 400.00 90.00 0.42 (TDM) 16.00 OJ02**JUNCTION** PRES= 16.---.00 OJ01**JUNCTION** PRES= 16.07 91.--------.64 IJ02 16.0 I023 IPR 0.00 15.00 0.-------.00 0.3 0.---.00 0.---.09 V006 VALV CH 303.17 (TDM) 16.16 C025 MCHO FN 26.00 15.00 0.------.15 84.00 16.4 (F) ML20 **JUNCTION** RATE= 477.53 1000.07 86.00 0.65 0.07 (BAR) TEMP= 91.8 0.00 86.00 132.8 V005 VALV CH 152.8 (F) ML24 **JUNCTION** RATE= 458.00 86.00 0.07 89.65 0.07 91.OUTLET -----.00 T024 TBNG HB 105.93 (TDM) 98.8 0.00 17.59 0.00 0.15 (BAR) TEMP= 84.

sinks. have to change the ‘On' and 'Off' status of sources. In the earlier version of PIPEPHASE. and links that needs to be turned off. For example. sinks. The Simulation Model for this example is shown in Figure 1-117. PIPEPHASE Application Briefs 1-163 . The network utilities intelligently identifies and automatically shuts all redundant/dead nodes and links.Network Change Utilities Simulation Objective Production manifolds are a common feature encountered in oil. the manifold link's on-off status can also be changed to re-direct the flow. and manifold links (valves). gas and condensate fields. The Network Change Utilities automates this process and makes it much easier. users had to manually identify and turn off all the associated dead links and nodes that are affected by this change. to correctly effect these changes. Simulation Model The simulation model described in example 21 A has been used to explain network utility scenario in PIPEPHASE. Field users often. Manifolds are used to gather or receive flow from multiple source points (such as wells) and direct them to any one of the several possible destinations. The users can specify the source(s). The basic objective of this simulation is to illustrate the use of Network Change utilities unit in PIPEPHASE. This can be a tedious exercise.Example 21B .

TEMPERATURE=F. PLOT=FULL.05092.59967. * SUMMARY=BOTH. MAP=TAITEL. Compositional. * RATE(GV)=CMD $ OUTDIMENSION Petroleum. * DETMANIFOLD $ FCODE TUBING=HB $ DEFAULT IDPIPE=102. DLHORIZ(M)=609. PROBLEM=EXAMPLE-21B. DENSITY=SPGR. * PROPERTY=FULL.26035. RATE(W)=TDM. MERGESUB. DATABASE=FULL.26035. * DATE=02/14/06 $ DESCRIPTION Use of Network Utilities $ DIMENSION Metric. IDANNULUS=154. DEVICE=FULL. Input Data $General Data Section $ TITLE PROJECT=APPBRIEFS. SIMULATOR=PART $ SEGMENT AUTO=OFF. Figure 1-117: Simulation Model Network with Junction unit Network with New Manifold Junction Unit Note: Refer example 21 A for a detailed description on the network. * HAUSEN $ PRINT INPUT=NONE. * CONNECT=FULL. FLASH=FULL. IDTUBING=102.39992 $ $Component Data Section $ COMPONENT DATA 1-164 PIPEPHASE EXAMPLE . ADD $ CALCULATION NETWORK. * DLVERT(M)=152. PRANDTL. ITER.

BANK=PROCESS. * TEMP=150. * COMP(M)=1. * XCORD=0. 2 / 2. 0.10 $ $Network Data Section $ NETWORK DATA $ SOLUTION PBALANCE. 10 $ SOURCE NAME=MS04. IC5 / * 9. * COMP(M)=1. 1. 1. PRES=108. 2 / * 7.3 / 5. YCORD=6425.890 $ PHASE VL=1. IDNAME=MS04. 13. 68 / * 4. SET=SET01. 10 $ SOURCE NAME=MS02. 2 / 2.8 / * 10. 3 / 3. C6PLUS. SET=SET01.3. 198. IDNAME=MS03. RATE(ESTI.7. C2 / * 5. 3 / 3. YCORD=5760. PRIORITY=0. 3 / 3. 800.3 / 5. PRES=119.9 / 9. C1 / * 4. NC5 . 68 / * 4. 5 / 8.3 / 5. 1. IDNAME=MS02. SET=SET01. SIMSCI PETRO(KGM3) 10. PRIORITY=0. STEP=1.8 / * 10.8 / * 10. 2 / * 7. SYSTEM=SRK $ WATER PROPERTY=Super $ KVALUE BANK=SimSci $ $PVT Data Section $ PVT PROPERTY DATA $ SET SETNO=1. 68 / * 4. * SETNO=1. YCORD=5150. * SETNO=1.9 / 9. 0. IC4 / * 7. * PIPEPHASE Application Briefs 1-165 . 8 / 6. * TEMP=150. * QDAMP=500. 13. 0. SET=SET01 $ $Structure Data Section $ STRUCTURE DATA $ SOURCE NAME=MS01. PDAMP=100 $ TOLERANCE PRESSURE=6.W)=200. 5 / 8. IDNAME=MS01. 5 / 8. 8 / 6. 8 / 6. NC4 / * 8. PRIORITY=0. FLOWAL=2. NOCHECK. * TEMP=150. 10 $ SOURCE NAME=MS03.250. 2 / * 7. CO2 / * 3. RATE(ESTI. NOCHECK.W)=200.W)=120. PRIORITY=0. NOCHECK. RATE(ESTI.9 / 9.1. PRES=119. * COMP(M)=1. * XCORD=20.895e-003 $ $Thermodynamic Data Section $ THERMODYNAMIC DATA $ METHOD SET=SET01. 2 / 2. N2 / * 2. $ LIBID 1. * XCORD=5. . * SETNO=1. 13. C3 / * 6.

* SETNO=1. 8 / 6. SETNO=1. 68 / * 4. PRES=15. IDNAME=J214. 10 $ $~SINK NAME=U1T1.69995. 2 / * 7. 1. 1. * XCORD=325. 5 / 8. * $~ YCORD=3750 JUNCTION NAME=U201. RATE(ESTI. RATE(ESTI. PRES=15. PRES=98. NOCHECK. 2 / 2. PRES=108.W)=173.8 / * 10. 0. * TEMP=150. PRES=15. * YCORD=3943 JUNCTION NAME=J213. PRES=98. 10 $ SOURCE NAME=S213. * SETNO=1. 2 / 2. PRES=15.52. 0. XCORD=2002. PRIORITY=0. * COMP(M)=1. PRES=119. YCORD=4595 $~SINK NAME=U2T1. XCORD=1605. PRES=15. 0. NOCHECK. XCORD=1610. XCORD=1586.15.W)=173. * RATE(ESTI)=1000. 13.1475. IDNAME=U202. YCORD=4105 SINK NAME=U1T3.7. YCORD=6230 $ JUNCTION NAME=J211. 10 $ SOURCE NAME=S211.1475. SET=SET01. 0. RATE(ESTI. 10 $ SOURCE NAME=S214. PRIORITY=0.W)=120. 13.8 / * 10. * YCORD=4331 JUNCTION NAME=J214.9 / 9. IDNAME=J213. 1.8 / * 10. SET=SET01. 0. * TEMP=150. XCORD=3825. XCORD=3630.69995. 5 / 8. NOCHECK. YCORD=4715. NOCHECK. * XCORD=230. * YCORD=3623 JUNCTION NAME=J212. XCORD=3780. 8 / 6. IDNAME=U201. * COMP(M)=1.9 / 9. IDNAME=U1T3.15. IDNAME=U2T2. * RATE(ESTI)=1125. * TEMP=150. IDNAME=S214. YCORD=5655 SINK NAME=U2T3.3 / 5.3 / 5. 5 / 8. * YCORD=4631 $ 1-166 PIPEPHASE EXAMPLE .9 / 9. IDNAME=U1T2. IDNAME=U1T1. RATE(ESTI. * COMP(M)=1.8 / * 10. 13. SET=SET01. PRIORITY=0.3. IDNAME=S213. SET=SET01. 68 / * 4. * COMP(M)=1. XCORD=2001.3 / 5.W)=200. IDNAME=J212. PRES=15.69995. * RATE(ESTI)=1125. RATE(ESTI. IDNAME=TS21. 3 / 3. * TEMP=150. * $~ RATE(ESTI)=1125. * XCORD=265. 8 / 6. * SETNO=1. YCORD=4195. * SETNO=1.69995. 10 $ SOURCE NAME=S212. YCORD=5060 SINK NAME=U2T2. 5 / 8. 2 / * 7. PRIORITY=0. XCORD=1583. 1. * RATE(ESTI)=1125. XCORD=2007. YCORD=7065. 68 / * 4. YCORD=3020. * $~ RATE(ESTI)=1. 3 / 3. 2 / * 7. XCORD=3785. PRES=119. 13. * YCORD=4176 JUNCTION NAME=U202. XCORD=3710. 8 / 6.148. * COMP(M)=1.3 / 5. IDNAME=U2T3. 2 / 2. IDNAME=U2T1. 3 / 3. * TEMP=150. 1. 3 / 3.W)=200. 2 / * 7. 68 / * 4. YCORD=3600.3 / 5. 2 / 2.8 / * 10. IDNAME=S211. 13.9 / 9. 8 / 6. 3 / 3.148. 2 / 2. * XCORD=190. XCORD=3665. IDNAME=J211. 2 / * 7. 68 / * 4.1. * YCORD=4623 $~JUNCTION NAME=TS21. NOCHECK.9 / 9. YCORD=3650 SINK NAME=U1T2.52. IDNAME=S212. SET=SET01. * XCORD=640. 5 / 8.

NAME=M005-I2. NAME=M005-I3-O2. IDOUT=152. NAME=M005-I4. FROM=M005-I2. FROM=M005-I1. IDNAME=IJ00. YCORD=5630 JUNCTION MANIFOLD=M005. NAME=M005-I3. YCORD=5630 JUNCTION MANIFOLD=M005. * XCORD=1785. * $~ KMUL=8 $ $~LINK MANIFOLD=M005. * $~ IDTO=OJ00. IDNAME=IJ03. IDOUT=152. * $~ KMUL=8 $ LINK MANIFOLD=M005. PRINT $~VALVE MANIFOLD=M005. IDNAME=IJ01. NAME=M005-O1. IDNAME=ML07. * $~ KMUL=8 $ LINK MANIFOLD=M005. YCORD=5630 $~JUNCTION MANIFOLD=M005. FROM=M005-I1. IDFROM=IJ01. IDFROM=IJ00. PRINT $~VALVE MANIFOLD=M005. * $~ IDTO=OJ01. * $~ KMUL=8 $ $~LINK MANIFOLD=M005. NAME=M005-I3-O1. JUNCTION MANIFOLD=M005. YCORD=5630 JUNCTION MANIFOLD=M005. * $~ IDTO=OJ00. * TO=M005-O3. * $~ TO=M005-O2. IDNAME=ML05. IDIN=152. * XCORD=1785. IDOUT=152. FROM=M005-I3. IDFROM=IJ02. IDIN=152. IDFROM=IJ02. * $~ KMUL=8 $ $~LINK MANIFOLD=M005. IDNAME=IJ02. IDNAME=OJ00. NAME=M005-I2-O2. * $~ IDTO=OJ02. IDNAME=OJ02. NAME=M005-I1. NAME=M005-I3-O3. FROM=M005-I3. IDIN=152. NAME=M005-I2-O1. IDIN=152. * $~ TO=M005-O3. * $~ TO=M005-O1. IDIN=152. PRINT $~VALVE MANIFOLD=M005. * IDTO=OJ01. YCORD=5630 JUNCTION MANIFOLD=M005. NAME=M005-I4-O1. * $~ XCORD=1785. * $~ TO=M005-O1. IDNAME=ML08. IDOUT=152. IDNAME=ML13. PRINT $~VALVE MANIFOLD=M005. * XCORD=1785. IDFROM=IJ00. * TO=M005-O2. * $~ IDTO=OJ00. * KMUL=8 $ $~LINK MANIFOLD=M005. FROM=M005-I2. IDNAME=ML10. FROM=M005-I4. IDIN=152. IDFROM=IJ01. * TO=M005-O2. NAME=M005-I2-O3. IDNAME=ML00. FROM=M005-I2. * $~ IDTO=OJ00. * $~ TO=M005-O1. * XCORD=1785. PRINT VALVE MANIFOLD=M005. PRINT PIPEPHASE Application Briefs 1-167 . IDOUT=152. PRINT VALVE MANIFOLD=M005. IDOUT=152. IDNAME=ML09. IDNAME=ML11. IDNAME=ML06. IDOUT=152. IDNAME=OJ01. FROM=M005-I1. IDFROM=IJ03. IDIN=152. IDOUT=152. IDFROM=IJ02. NAME=M005-O2. * $~ TO=M005-O1. YCORD=5630 JUNCTION MANIFOLD=M005. IDOUT=152. * $~ KMUL=8 $ LINK MANIFOLD=M005. IDNAME=ML12. * $~ IDTO=OJ02. PRINT $~VALVE MANIFOLD=M005. NAME=M005-I1-O2. * XCORD=1785. IDIN=152. * IDTO=OJ01. PRINT VALVE MANIFOLD=M005. FROM=M005-I3. * KMUL=8 $ $~LINK MANIFOLD=M005. IDIN=152. NAME=M005-O3. * IDTO=OJ02. * KMUL=8 $ $~LINK MANIFOLD=M005. IDFROM=IJ00. YCORD=5630 $ $~LINK MANIFOLD=M005. NAME=M005-I1-O3. IDFROM=IJ01. * XCORD=1785. NAME=M005-I1-O1. PRINT $~VALVE MANIFOLD=M005. * $~ TO=M005-O3.

PUPS=70. IDTO=TS21 $~VALVE NAME=V235. IDFROM=IJ03. NOMO=6. IDFROM=J212. * U=4. * $~ SCHED= 40.8824 MCHOKE NAME=C211.53. LENGTH=1000. * $~ KMUL=8 $ LINK MANIFOLD=M005. U=4. 1. PUPS=70.500e-004 / EXP. FROM=J211. * IDNAME=L214. KMUL=8 $ $~LINK NAME=L237. IDFROM=S214. ID=105. NOMI=6. TYPE=GASFLOW. NOMI=6. * $~ SCHED= 40. IDFROM=IJ03. IDIN=152. FROM=S213. * IVAL=BASIS. 0. ID=105. * IVAL=BASIS. TYPE=GASFLOW. IDIN=152. * RVAL=COEF. * RVAL=COEF.8824 MCHOKE NAME=C216. 1.53.75 / UPTIME. IDOUT=152. ID=105. NOMI=6. IDTO=TS21 $~VALVE NAME=V231. LENGTH=400. * $~ TO=M005-O2. LENGTH=400. * $~ IDTO=OJ01. LENGTH=1000.1 TUBING NAME=T003. * RVAL=COEF. PRINT $~VALVE MANIFOLD=M005. 8. NOMD=6. IDOUT=152. IDTO=J212 IPR NAME=I209. TO=TS21. TYPE=GASFLOW. IDNAME=ML14. 1. ANGLE=180. * SCHED= 40. * IVAL=BASIS. * SCHED= 40. FROM=S211. LENGTH=400. KMUL=8 $ $~LINK NAME=L233. FROM=M005-I4. IDTO=J211 IPR NAME=I204. * SCHED= 40.1 TUBING NAME=T002. IDTO=J213 IPR NAME=I214. 1. IDFROM=S211.1 TUBING NAME=T005. * 1-168 PIPEPHASE EXAMPLE . U=4. IDFROM=S213.8824 $ LINK NAME=L212.500e-004 / EXP.53. * RVAL=COEF. IDTO=J214 IPR NAME=I219. FROM=M005-I4. IDOUT=152.8824 $ LINK NAME=L214.8824 MCHOKE NAME=C206.5 PIPE NAME=P217.75 / UPTIME. $~VALVE MANIFOLD=M005. NAME=M005-I4-O2.75 / UPTIME. FROM=J213. IDFROM=J213.75 / UPTIME. * $~ IDNAME=L233. TYPE=GASFLOW. NOMO=6. LENGTH=400. ID=105. NOMD=6. * IDTO=OJ02.5 PIPE NAME=P207. U=4. TO=J214. * TO=M005-O3. PUPS=60 PIPE NAME=P222. * IDNAME=L211. IDTO=TS21 $~VALVE NAME=V239. * U=4. * $~ KMUL=8 $ $~LINK MANIFOLD=M005. * IDNAME=L212. TO=J211. IDFROM=J211. NOMO=6. FROM=J212. * KMUL=8 $ LINK NAME=L211. * $~ IDNAME=L229. 0. IDIN=152. NAME=M005-I4-O3. TO=J212. TO=J213. PUPS=60. * U=4. 5. FROM=S212.7 PIPE NAME=P212. IDNAME=ML15. 0. TO=TS21. * SCHED= 40. LENGTH=1000. 6. U=4.000e-004 / EXP.8824 $ $~LINK NAME=L229. FROM=S214.8824 MCHOKE NAME=C221. * U=4. * $~ IDNAME=L237. LENGTH=1000. * IVAL=BASIS. 4.1 TUBING NAME=T004.000e-004 / EXP.8824 $ LINK NAME=L213. NOMD=6. ANGLE=180. NOMD=6. * IDNAME=L213. IDFROM=S212. PRINT VALVE MANIFOLD=M005. 0. TO=TS21.53.

TO=U201. * $~ SCHED= 40. IDFROM=J214. ANGLE=180. * $~ IDNAME=L265. KMUL=8 $ LINK NAME=L249. NOMO=6. IDFROM=OJ00. FROM=J212. ANGLE=180. IDFROM=J213. * $~ SCHED= 40. IDTO=U201 $~VALVE NAME=V255. LENGTH=2600. IDFROM=J212. IDTO=U201 VALVE NAME=V247. TO=TS21. IDTO=U2T1 $~PIPE NAME=P030. NOMO=6. TO=U1T1. KMUL=8 PIPEPHASE Application Briefs 1-169 . NOMI=6. NOMI=6. * SCHED= 40. ANGLE=180. FROM=U202. ANGLE=180. TO=U202. NOMO=12. NOMI=6. LENGTH=2600.8824 $ LINK NAME=L279. * $~ IDNAME=L241. ANGLE=180. * IDNAME=L269. FROM=TS21. KMUL=8 $ $~LINK NAME=L261. KMUL=8 $ LINK NAME=L245. FROM=M005-O1. FROM=J211. FROM=J211. IDTO=U1T1 $~PIPE NAME=P278. NOMD=12. NOMO=6. * $~ SCHED= 40. ANGLE=180. KMUL=8 $ $~LINK NAME=L253. * SCHED= 40. NOMI=6. NOMI=12. * $~ SCHED= 40. IDFROM=J214. ANGLE=180. LENGTH=2600. NOMO=12. U=4. NOMI=12. IDFROM=J211. $~ SCHED= 40. * IDNAME=L245. KMUL=8 $ $~LINK NAME=L241. * $~ IDNAME=L257. IDFROM=U201. TO=U201. TO=U1T2. ANGLE=180. * SCHED= 40. * SCHED= 40.8824 VALVE NAME=V002. IDTO=TS21 $~VALVE NAME=V243. * IDNAME=L281. NOMD=10. LENGTH=2600. IDTO=U1T3 PIPE NAME=P282. IDTO=U201 $~VALVE NAME=V259. FROM=J214. TO=U201. * IDNAME=L249. NOMI=6. IDFROM=J214. TO=U202. IDTO=U202 $~VALVE NAME=V267. * $~ SCHED= 40. * $~ IDNAME=MD01. ANGLE=180. * IDNAME=L279. NOMO=6. * $~ SCHED= 40.8824 VALVE NAME=V001. NOMO=6. NOMI=6. NOMO=6. * SCHED= 40. FROM=J213. * IDNAME=L273. FROM=J214. NOMI=12. KMUL=8 $ LINK NAME=L269. NOMO=6. * $~ IDNAME=L253. U=4. U=4. NOMO=6. NOMO=6. U=4. IDTO=U202 VALVE NAME=V275. IDFROM=U202. IDTO=U202 $~VALVE NAME=V263. TO=U202. * $~ IDNAME=L261. IDFROM=TS21. KMUL=8 $ $~LINK NAME=MD01. KMUL=8 $ LINK NAME=L281. * $~ IDNAME=L277. KMUL=8 $ LINK NAME=L273. * $~ SCHED= 40. KMUL=8 $ $~LINK NAME=L277. IDTO=U201 VALVE NAME=V251. NOMD=12. NOMO=12. FROM=J212. IDTO=U202 VALVE NAME=V271. * SCHED= 40. * SCHED= 40. IDFROM=J211. ANGLE=180. TO=U1T3. ANGLE=180. NOMD=12. IDFROM=J212. IDFROM=J213.8824 $~VALVE NAME=V003. NOMI=6. KMUL=8 $ $~LINK NAME=L265. TO=U201. NOMI=6. IDTO=U1T2 PIPE NAME=P280. FROM=U201. KMUL=8 $ $~LINK NAME=L257. NOMI=6. FROM=J214. * $~ SCHED= 40. ANGLE=180. TO=U2T1. FROM=J213. TO=U202. * SCHED= 40. ANGLE=180.

500e-004 / EXP.53. NOMI=12. PUPS=60. U=4. IDTO=IJ02 IPR NAME=I018. ID=105. FROM=MS03. LENGTH=1000.75 / UPTIME.8824 VALVE NAME=V004. * SCHED= 40. * RVAL=COEF. $ LINK NAME=MD02.8824 MCHOKE NAME=C025. TYPE=GASFLOW. KMUL=8 $ LINK NAME=MD03. * U=4. TYPE=GASFLOW.53. 8. U=4. TO=M005-I1. TO=U2T2. NOMD=12. ID=105. * RVAL=COEF.1 TUBING NAME=T009. LENGTH=2600. * SCHED= 40. TO=M005-I2. 5. * IVAL=BASIS. LENGTH=400. NOMD=6. * IDNAME=MD02. IDFROM=OJ01. TYPE=GASFLOW. ANGLE=180. FROM=MS02.8824 MCHOKE NAME=C020. * RVAL=COEF. NOMD=6. Out=[3] Input: name=[ML01] slotname=[I1] nameID=[IJ00] Input: name=[ML02] slotname=[I2] nameID=[IJ01] Input: name=[ML03] slotname=[I3] nameID=[IJ02] 1-170 PIPEPHASE EXAMPLE . U=4. NOMI=12. 1.1 TUBING NAME=T021. ANGLE=180.75 / UPTIME. ID=105. * IDNAME=ML01. * SCHED= 40.53. * RVAL=COEF. LENGTH=400. 0. ID=105. * U=4. PUPS=60 PIPE NAME=P024. * SCHED= 40. $ END $ $ Begin Manifold Unit Mapping Information $ GMANIFOLD Name=[M005] In=[4]. NOMO=12.500e-004 / EXP. * U=4. * SCHED= 40. NOMO=12. IDTO=U2T3 PIPE NAME=P035.1 TUBING NAME=T014.8824 $ LINK NAME=ML03. LENGTH=400. IDTO=U2T2 PIPE NAME=P032. U=4. * IVAL=BASIS. IDFROM=MS04. LENGTH=1000.5 PIPE NAME=P019. IDTO=IJ00 IPR NAME=I008. U=4.000e-004 / EXP. IDTO=IJ03 IPR NAME=I023. NOMD=6.. 0. * SCHED= 40.8824 MCHOKE NAME=C010. * SCHED= 40.8824 $ LINK NAME=ML02. IDTO=IJ01 IPR NAME=I013. FROM=MS04.75 / UPTIME. FROM=M005-O3. TO=M005-I4. 1. * IDNAME=MD03. FROM=M005-O2. IDFROM=MS02. * IVAL=BASIS.8824 $ $ End of keyword file.8824 VALVE NAME=V006. 6. IDFROM=MS01. * U=4. * IVAL=BASIS.. * SCHED= 40.8824 MCHOKE NAME=C015. IDFROM=MS03. LENGTH=1000. NOMD=12. U=4. KMUL=8 $ LINK NAME=ML01. FROM=MS01. 1. * IDNAME=ML03. 0.75 / UPTIME. PUPS=70.5 PIPE NAME=P009.8824 $ LINK NAME=ML04. TYPE=GASFLOW. IDFROM=OJ02. TO=U2T3. 4.000e-004 / EXP. LENGTH=2600.7 PIPE NAME=P014. * IDNAME=ML04. PUPS=70. 0. NOMD=6. 1. LENGTH=1000.1 TUBING NAME=T024. LENGTH=400.53. * IDNAME=ML02. TO=M005-I3.

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 $ $ Results & Discussion Click to view Run Simulation and View Results window. Select the drop-down menu under Action to view the following options. ■ Remap Network ■ Remap Network From File PIPEPHASE Application Briefs 1-171 .

Figure 1-118: Run Simulation and View Results 1-172 PIPEPHASE EXAMPLE .

in the FluidFlowEdit- data. A master-network keyword input file (MNF) from the current GUI data base is generated (*_MNF. Overlay the excluded source-sink status and its corresponding data to generate a updated input keyword file. you can observe the corresponding sources have been disabled in the modified intermediate Pipephase keyword input file.xls. Click Run with Action . Click Nodes and Links to Exclude to view and/or modify FluidFlowEditData. which is transparent to the user: 1. This file turns on all nodes and links in the network. 2. Click Run to create remapped network and the inputname_status.This action will generate and perform the following automatically. PIPEPHASE Application Briefs 1-173 . Figure 1-119: PipephaseEditData Here.Remap Network in the Run Simulation and View Results dialog box. users can alter source and sink exclude status and edit Pressure. GUI. Remap Network Select Remap Network to activate Nodes and Links to Exclude button.xls (see below). if the status of S211 and MS01 is entered 0. For example. Flow-rate and Temperature data manually.inp).csv file. Click Save & Close to save and exit to Run Simulation and View Results dialog box.csv file is also created. A inputfile_status.

Click this button to view inputname_status. Figure 1-120: Inputname_status.csv has been created. Remap Network from File Once the inputfile_status.csv 1-174 PIPEPHASE EXAMPLE .csv.xls Excel spread sheet. 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. the Network Change Utilities may also be used to make network status changes to other nodes and links as well via the Update Network From File option. 1. Select Remap Network From File to activate View Status File button.

you will lose the data. You can observe the changes made in inputname_status. This file is only used for initially setting the excluded sources and sinks.csv file especially if you have included manually the entered data. The Remap Network and Run combination will overwrite the inputfile_status.csv getting reflected in PFD. Note: This file will be created after going through steps (1) to (3) mentioned in Remap Network section. Also. Note: You will get a runtime error. The inputfile_status. nodes.csv. 3.csv is used for all subsequent changes.csv file inadvertently gets overwritten.csv file. It is recommended that you also manually save a copy of the inputfile_status. the status file is generated automatically. Select Remap Network from File and click Run in Run Sim- ulation and View Results dialog box. and links using a single file. When the user selects the steps outlined in the Update-network and run options. maintaining the file format as follows: ● The file automatically includes the excluded nodes and the Manifold.xls file for this purpose.csv file.csv). Do not use the FluidFlowEdit. so you can recover the file incase the inputfile_status. if you click Run in Run Simulation and View Results dialog box with opened . 2. Alternatively the user can manually create this csv file in Excel using the format shown below and go through steps (1 to 4) outlined above under Update Network from File to effect the desired changes.csv file. Edit the inputname_status. if you have not saved the file (. PIPEPHASE Application Briefs 1-175 . Important Note regarding Network Change Utilities The advantage of using Remap Network From File is that users can quickly change the status of the manifold connections. Save and close the inputname_status. 4.

a common case for the reservoir simulator. Simulation Model This example describes the integration procedure: The integration can be set up from the following windows in PIPEPHASE: 1-176 PIPEPHASE EXAMPLE .Example 22 . gathering.PIPEPHASE-GEM Integration Simulation Objective Many operators want to know how their gathering system are impacting maximum production with the primary objective of optimizing their operations including the reservoir factors. surface pipelines. and processing. equipment Simulator) and GEM (Reservoir Simulator). the user will have to find an appropriate set of EOS methods. This will be particularly important when pseudo components are used . The most important applications for these types of integrations may include: ● Offshore oil and gas fields ● Onshore oil and gas fields ● Onshore gas storage fields ● Onshore CBM and shale gas fields ● Onshore CO2 EOR fields ● CO2 sequestration at coal-fired power plants In order to achieve a successful coupling between PIPEPHASE (wells.

PIPEPHASE Application Briefs 1-177 . Figure 1-121: Reservoir Interface Data Figure 1-122: Reservoir Simulator Interface Data This simulation is a simple example to illustrate the link between the PIPEPHASE network simulator and the GEM reservoir simulator.

Next. but this is not required as the default commands are provided. This solution is translated into target conditions for the reservoir model. While these simulators run. For each time step. By default. You must run a licensed version of GEM on your computer before you run the integrated network and reservoir simulations.LD* files. the IPR model has a pressure drop associated with it that provides a simplified model for the reservoir behavior. all PIPEPHASE and GEM streams with the same name are linked. 1-178 PIPEPHASE EXAMPLE . The IPR Table Convergence Method is used to ensure that the pressures and flow rates agree between the two models. the GEM reservoir model generates an IPR table for each well which gives the curve of pressure verses flow rate. PIPEPHASE injection wells are passed as feed streams to the GEM reservoir model while GEM production wells provide feed streams for the PIPEPHASE network model. The network and reservoir simulators are run sequentially with progressing time steps. For single component streams. setup the reservoir simulation by selecting GEM as the Reservoir Simulator and entering the Reservoir Input File Name.INI file for use in all simulations.DAT file must have a different name from the PIPEPPHASE simulation so that you can view the output files from both simulators. Locate the GEM Simulator EXE using the Find… button. You may exclude streams from the integration using the Linked Streams option. the IPR model does not have a pressure drop (outside of network tolerance) as GEM accurately models the reservoir. pressure and temperature of the stream. This IPR table is then used in the PIPEPHASE network calculation methods to identify the solution points that will satisfy the production and injection wells for both the surface network and the reservoir models. You may restore the default sequence at any time by clicking the Default Sequence button. information on the streams is passed between the two models. The GEM *. the vapor quality is also used. You may control the order in which you run and pass information to the simulators by editing the log file using the View Run Sequence button. In the integrated simulation. rate. You may add GEM EXE commands. These settings are stored in the PIPEPHASE. In stand-alone PIPEPHASE. You may view the information being passed between the simulators in the RESFILENAME. The feed streams connected to each simulator are defined by the composition.

you should also use the PIPEPHASE Restart From Time option which is defined in the Network Methods window. PROBLEM=EX22. USER=SIMSCI. The network model is changed in the PIPEPHASE defined time. The GEM reservoir model is expected to run at frequent time steps and is interrupted occasionally to interface with PIPEPHASE. You may reduce the PIPEPHASE results files by selecting the Print Reports Only at Network Defined Time Steps option. These time steps allow you to change data for the network model. The automatic synchronization allows you to take a defined number of Sync Iterations at Sync Time Steps at startup. If you use the reservoir model restart feature.. but smaller time steps should be used when there are significant operational changes. * DATE=11/16/10 $ DESCRIPTION PIPEPHASE GEM INTEGRATION $ PIPEPHASE Application Briefs 1-179 . or after a network optimization simulation has been performed. The synchronization time 3. but this increases the computation time and output results. The basic time step the user defines is Maximum Time Step which is 120 days in this example. after a well has been opened or closed.. An example usage case is provided in the Stars reservoir model example. Input Data $ SIMSCI PIPEPHASE Version 9. Optimization runs will optimize the network at these time steps. The Maximum Iterations and Tolerances are not used in the base GEM integration. Larger time steps can be used for stable operations. The maximum time increment selected by the user 2. The end times for both the network and reservoir model should match. The most critical part of the integration is to define the integration times. Smaller time steps are more accurate. These can be used in projects. These interruptions are defined by a combination of 1. Integration times are also introduced for each time defined in the PIPEPHASE Time Stepping data section. $ $General Data Section $ TITLE PROJECT=DEMOS.6 Beta keyword file.

DIMENSION RATE(W)=LBD
$
CALCULATION NETWORK, Compositional, LOGFILE, *
TRUEMWD
$
DEFAULT IDPIPE=4.026, IDTUBING=4.026, IDANNULUS=6.065, *
TAMBIENT=65, UPIPE=1, UTUBING=0.05, *
UANNULUS=1
$
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)=2000, DLVERT(FT)=250, *
MAXSTEPS=500
$
LIMITS PRES(MIN)=0, TEMP(MIN)=-110, TEMP(MAX)=900
$
$Component Data Section
$
COMPONENT DATA
$
LIBID 1, C1 / *
2, C2 / *
3, C3 / *
4, NC4 / *
5, NC5 / *
6, NC6 , BANK=SIMSCI , PROCESS
PETRO(API) 7, C7-9, 114.430, 62.141, 249.200 / *
8, C10-11, 144.830, 47.498, 349.800 / *
9, C12-14, 177.780, 41.071, 435.700 / *
10, C15PLUS, 281.000, 46.794, 599.900
LIBID 11, H2O , BANK=SIMSCI , PROCESS
$
PHASE VL=1,11

$
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
$

1-180 PIPEPHASE EXAMPLE

SOURCE NAME=PRODUCER, IDNAME=PROD, PRIORITY=0, *
SETNO=1, SET=SET01, PRES=4000, *
TEMP=200, RATE(ESTI,W)=80000, NOCHECK, *
XCORD=0, YCORD=-639, *
COMP(M)=1, 0.6793 / 2, 0.099 / 3, 0.0591 / *
4, 0.0517 / 5, 0.0269 / 6, 0.0181 / *
7, 0.0399 / 8, 0.0122 / 9, 8.000e-003 / *
10, 5.800e-003 / 11, 0.031
$
SOURCE NAME=SINJ, IDNAME=SINJ, PRIORITY=0, *
SETNO=1, SET=SET01, PRES=3900, *
TEMP=130, RATE(ESTI,W)=1000, XCORD=135, *
YCORD=-260, *
COMP(M)=1, 0.7786 / 2, 0.1123 / 3, 0.0607 / *
4, 0.0357 / 5, 9.000e-003 / 6, 2.500e-003 / *
7, 1.000e-003 / 8, 3.900e-005 / 9, 4.000e-006 / *
10, 1.000e-006
$
SINK NAME=DPRD, IDNAME=DPRD, PRES=1200, *
RATE(ESTI)=926, XCORD=957, YCORD=-529
SINK NAME=INJECTOR, IDNAME=INJE, PRES=4800, *
RATE(ESTI)=10000, XCORD=1528, YCORD=-119
$
$
$
LINK NAME=LINJ, FROM=SINJ, TO=INJECTOR, *
IDNAME=LINJ, IDFROM=SINJ, IDTO=INJE, *
INJECT, XCOR=588,513,329, YCOR=-141,-139,-186
PIPE NAME=P001, LENGTH=1000, ID=7, *
U=0.05, TAMB=65
TUBING NAME=T002, LENGTH=7000, DEPTH=7000, *
ID=7
IPR NAME=I004, TYPE=TABULAR, *
IVAL=BASIS, 5 / IMODEL, 0, *
RVAL=PWF11, 4681.08008 / PWF12, 5048.22021 / PWF13, 5415.3501 / *
PWF14, 5782.49023 / PWF15, 6149.62988 / PWF16, 6516.75977 / *
PWF17, 6883.8999 / PWF18, 7251.02979 / PWF19, 7618.16992 / *
PWF110, 7985.2998 / QF11, 2332.05005 / QF12, 71397.89844 / *
QF13, 1.405e+005 / QF14, 2.095e+005 / QF15, 2.786e+005 / *
QF16, 3.477e+005 / QF17, 4.167e+005 / QF18, 4.858e+005 / *
QF19, 5.549e+005 / QF110, 6.239e+005 / UPTIME,1 / *
PRES1, 0
$
LINK NAME=LPRD, FROM=PRODUCER, TO=DPRD, *
IDNAME=LPRD, IDFROM=PROD, IDTO=DPRD, *
XCOR=592,458,374, YCOR=-526,-567,-575
IPR NAME=I003, TYPE=TABULAR, *
IVAL=BASIS, 2 / IMODEL, 0, *
RVAL=PWF11, 2847.84009 / PWF12, 2531.40991 / PWF13, 2214.98999 / *
PWF14, 1898.56006 / PWF15, 1582.13 / PWF16, 1265.70996 / *
PWF17, 949.28003 / PWF18, 632.85303 / PWF19, 316.427 / *
PWF110, 0 / QF11, 0 / QF12, 30.50304 / *
QF13, 69.56053 / QF14, 108.61843 / QF15, 147.6754 / *
QF16, 186.73241 / QF17, 225.79041 / QF18, 264.84741 / *
QF19, 303.9054 / QF110, 342.9624 / UPTIME,1 / *
PRES1, 3600
TUBING NAME=T001, LENGTH=7000, DEPTH=7000, *
ID=7, U=1, TGRAD=1
PIPE NAME=P002, LENGTH=1000, ID=7
$
$Time Stepping Data Section
$
TIMESTEPPING
CHANGE TIME=5, 730
$End of TIME-STEPPING Data Section
$
$ End of keyword file...
$
END

PIPEPHASE Application Briefs 1-181

Results & Discussion
There are several tools available to analyze the results from the
combined network and reservoir models. This example highlights
several key areas which include:
1. PIPEPHASE Output Report
2. PIPEPHASE Excel® Output Report
3. GEM Output Report
4. GEM Post Processing Tools
5. SIM4ME Portal
Step 1 : PIPEPHASE Output Report
Prior to starting detailed post processing, you should scan the
PIPEPHASE output file to verify the simulation setup. The TIME
STEP report shows the well conditions for the reservoir and surface
models. These results should be in reasonable agreement, but will
not be exact due to the differences in the PVT packages between the
simulators and time synchronization. Modeling options are
discussed in Step 3.
You should scan the output file to look for instances where the
surface network needs modifications to support the declining
reservoir. Your first pass at the integrated simulation will not
provide an optimum design for the lifetime of the reservoir. Look
for instances where either the network or reservoir model no longer
solves, indicating that the system is no longer feasible. Consider
what steps should be taken to modify the network or enhance
production from the reservoir.

1-182 PIPEPHASE EXAMPLE

Figure 1-123: PIPEPHASE Output Report

Step 2 : PIPEPHASE Excel® Output Report
The Excel® report provides a convenient summary of the CMG and
PIPEPHASE wells as illustrated below. The data tables are
provided automatically, but you can also create plots to analyze the
results. This example looks at plots for the bottom hole pressure,
oil rate, and gas rate for the PRODUCER well.
As discussed previously, there will not be exact agreement for the
wells between the reservoir and network models due to the different
PVT packages and time synchronization. The reservoir simulation
must model the x-y-z axis over time and often uses a simple PVT
model and reduced component slate. In this example, PIPEPHASE
uses the same component slate but opts to use the API method for
densities. Accurate density predictions are essential for network
hydraulic calculations. Custom projects may allow separate
component slates with mapping between the models so that the
network simulator may have a larger component slate than the
reservoir simulator. These options are up to the user and the
selections will be different based on the individual applications.

PIPEPHASE Application Briefs 1-183

liquid volume basis or gas basis (standard conditions). After selecting the fluid property models. the plots show that it takes time for the reservoir to stabilize at these conditions. While PIPEPHASE sets the target conditions for the reservoir model. but not gas rates. you can ensure that the parameters that are important to you match between the simulators. The IPR defines the flow rate expected for a given pressure where the flow rate may be given as weight basis. you must select the IPR models to use for each well. By selecting the correct IPR model. The gas rates would be better matched with the GV or WT model. In this example. Figure 1-124: Excel® Output Report 1-184 PIPEPHASE EXAMPLE . the PRODUCER well uses the LV basis IPR model provides a good match for liquid rates. The remaining issue to a good match involves the time step and synchronization time.

Figure 1-125: PIPEPHASE and GEM Bottomhole PRESSURES FOR WELL PRODUCER PIPEPHASE Application Briefs 1-185 .

Figure 1-126: Oil Rate Comparison 1-186 PIPEPHASE EXAMPLE .

Figure 1-127: Gas Rate Comparison PIPEPHASE Application Briefs 1-187 .

You can look for cases where the reservoir simulator takes exceptionally small time steps for indications of problems in the reservoir such as water flooding. Figure 1-128: GEM Ouput Report 1-188 PIPEPHASE EXAMPLE . The reservoir will run at more frequent time steps than the surface network. Step 3 : GEM Output Report The GEM output file also provides well summaries and output diagnostics at each time step.

You must press the RUN button to progress the simulation. In this case. At the end of the reservoir simulation time. the simulation is paused at each integration time step if the PAUSE command is used in the log file. When running from the SIM4MEPortal. Information viewed in the Portal is for the most recently stored case. the reservoir simulation will end. You may not change the number of iterations or synchronization time as this should be constant for the entire simulation. This allows you to view intermediate results and change network conditions during the simulation. You may continue to view the simulation results for the final time step. the original surface network may not be able to support the declining reservoir. PIPEPHASE Application Briefs 1-189 . You may also change data and rerun the network solution. Simulation data used in this workflow is shown below. Using the SIM4ME Portal allows you to interact with the combined network and reservoir simulation at any point in time. you may not be interested in viewing the results each time. so the data will not be updated when you bypass the reports. This option gives you greater control of the output compared to the PIPEPHASE option to Print Reports Only at Network Defined Time Steps. You may use the “Run To Time” variable to progress the simulation to a specified time. Step 4 : GEM Post Processing Tools The GEM post processing tools are the best way to view the reservoir results. You may change the “Maximum Production Time Step” to increase or decrease the base time network. Refer to the Stars example for tips on using these tools. You may use the “Print Reports” option to enable or disable reports. When running simulations interactively. It is likely you will need to make changes to the operating conditions or introduce equipment such as pump or compressors to continue or optimize the production. Step 5 : SIM4ME Portal Over the lifetime of the reservoir. small time steps are taken to identify these additional cases that do not include the reservoir model.

Figure 1-129: PIPEPHASE - GEM Integration using SIM4ME® Portal

Figure 1-130: Current Production Time

1-190 PIPEPHASE EXAMPLE

Figure 1-131: Simulation Results

When running from the SIM4MEPortal, the simulation is paused at
each integration time step if the PAUSE command is used in the log
file. This allows you to view intermediate results and change
network conditions during the simulation. You must press the RUN
button to progress the simulation. You may use the Run To Time
variable to progress the simulation to a specified time. You may
use the Maximum Production Time Step option to increase or
decrease the base time network. You cannot change the number of
iterations or synchronization time as this should be constant for the
entire simulation.
When running simulations interactively, you may not be interested
in viewing the results each time. You may use the Print Reports
option to enable or disable reports. Information viewed in the
Portal is for the most recently stored case, so the data will not be
updated when you bypass the reports. This option gives you greater
control of the output compared to the PIPEPHASE option to Print
Reports Only at Network Defined Time Steps.
At the end of the reservoir simulation time, the reservoir simulation
will end. You may continue to view the simulation results for the
final time step. You may also change data and rerun the network
solution. In this case, small time steps are taken to identify these
additional cases that do not include the reservoir model.

PIPEPHASE Application Briefs 1-191

Example 23 – Long pipeline using a Drag Reduction Agent
Simulation Objective
Alternatives to using DRAs to increase capacity or reduce pressure
energy losses, may include building new pump stations, increasing
the number and/or size of existing main line pumps, building new
pipeline, etc. This endeavor could be quite expensive.
The purpose of this example is to show the advantages of using drag
reduction agents to increase capacity for a given pressure drop or
decrease frictional pressure losses for a given capacity or flow rate.

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.

Figure 1-132: Pipeline Profile

To find the original DRA concentration, reduce the inlet pipeline
pressure from 1857 psig to 1197 psig without reducing its current
capacity (526 bbl/day of liquids). Note that the pipeline outlet
pressure must be maintained at 200 psig due to contractual
commitments.

1-192 PIPEPHASE EXAMPLE

Input Data
$ SIMSCI PIPEPHASE Version 9.6 keyword file...
$
$General Data Section
$
TITLE DATE=09/10/10
$
$
DIMENSION RATE(LV)=BPD
$
CALCULATION NETWORK, Blackoil, PRANDTL, *
TRUEMWD
$
DEFAULT IDPIPE=4.026, IDTUBING=4.026, IDANNULUS=6.065, *
HAUSEN
$
PRINT INPUT=FULL, DEVICE=FULL, PLOT=FULL, *
PROPERTY=FULL, FLASH=FULL, MAP=NONE, *
CONNECT=NONE, MERGESUB, ITER, *
SUMMARY=BOTH, DATABASE=FULL, SIMULATOR=PART
$
SEGMENT AUTO=OFF, DLHORIZ(FT)=2000, DLVERT(FT)=500
$
LIMITS PRES(MIN)=0
$
$Network Data Section
$
NETWORK DATA
$
SOLUTION PBALANCE, FLOWAL=2, STEP=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
$
$Structure Data Section
$
STRUCTURE DATA
$
SOURCE NAME=S000, IDNAME=S000, PRIORITY=0, *
SETNO=1, PRES(ESTI)=4500, TEMP=120, *
RATE=500, GOR=12, WCUT=5, *
XCORD=0, YCORD=378
$
SINK NAME=D000, IDNAME=D000, PRES=299, *
RATE(ESTI)=1, XCORD=1013, YCORD=627
$
$
$
LINK NAME=PIPELINE, FROM=S000, TO=D000, *
IDNAME=PIPE, IDFROM=S000, IDTO=D000, *
XCOR=717,670,331, YCOR=434,112,268, DRATYPE=5, DRAPPM=150
PIPE NAME=P001, LENGTH=2.112e+006, 5.280e+005, *
1.056e+006, 5.280e+005, 7.920e+005, *
ECHG=1, 2, 3, *
5, -10
$
$Case Study Data Section
$
CASE STUDY DATA
DESCRIPTION Change initial DRA concentration to 0 PPM
PARAMETER CCLASS=LINK , CNAME=PIPELINE , VARI=DRA INI CONC, *
Value=0
$ End of keyword file...
$END

PIPEPHASE Application Briefs 1-193

reflect both the pressure profile without DRA (blue curve) and the pressure profile with an initial DRA concentration of 150 ppm (red curve). Results and Discussion Several case studies were created by changing the initial DRA concentration at the pipeline inlet. Figure 1-133: Pressure Profile Comparison As it can be inferred from (Figure 1-133). The results shown below in ( Figure 1-133). It was found that the initial DRA concentration at 150 ppm meets the desired criteria. 1-194 PIPEPHASE EXAMPLE . DRA usage may become a great asset for an operator as far as cost and disruptive changes to a pipeline operation. The range of changes were from 0 ppm to 200 ppm.

Figure 1-134: Effective DRA Concentration PIPEPHASE Application Briefs 1-195 . The effective DRA concentration along the pipeline is shown in (Figure 1-134).

1-196 PIPEPHASE EXAMPLE .

1-89 Dukler-Eaton-Flannigan . 1-30 Beggs-Brill-Moody . 1-64 Hydrate analysis . 1-22 gravel-packed . 1-7 hydrate formation . 1-10 Chokes . 1-24 buried pipeline . 1-40 Gilbert Choke Model . 1-7 Intermittent flow . 1-63 Global Defaults . 1-72 Gaslift Analysis . 1-9 Brill . 1-135 Detailed Manifolds . 1-50 D heat balances . v-iii Excel . 1-32 critical flow . 1-132 Input Data . v-iii Blackoil properties . 1-66 B flow regime map . 1-11 full . 1-89 DPDT device . 1-55 Excel Report . Index A F Annular . 1-49 flow pattern . 1-30 discharge pressure . 1-71 67 Index . 1-103 Calculation Segments . 1-126 Calculation Methods . 1-22. 1-18 Hydrate inhibitors . 1-103 H Hagedorn and Brown . 1-89 distillation columns . 1-133 Edit Excel PVT File . 1-7 isothermal heat transfer . 1-44 C gathering system . 1-112 Hydrate Unit . 1-128 Blackoil Well . 1-37 G Buried Gas Pipeline . 1-55 flow perturbations . 1-33 fluid phase envelope . 1-25 case study summary . 1-97 compositional fluid . 1-49 Generate PVT Table . 1-149 hydrate curves . 1-55 flow distribution . 1-58 I E Index . 1-108. 1-57 Gas Lift Valve . 1-24 Gas Gathering and Distribution System . 1-1 Excel reports .

1-16 Run Current Network . 1-1 M pressure losses . 1-65 MChoke . 1-107 Network . 1-65 Simulation Techniques . 1-82 Single Link Example . 1-50 Multiple Curves . 1-132 Mass Based Perturbation . 1-32 Pipeline Sphering . 1-68 Node . 1-30 Node Summary reports . 1-49 PPZIP . 1-18 Pressure-Volume-Temperature . 1-146 PVT file . 1-65 L P PBAL method . 1-9 Newton-Raphson method . 1-72 Max PVT Table Size . 1-70 Pigging . 1-14 Network Change Utilities . 1-129 pressure drop . 1-19 Network Data button . 1-15. 1-86 Microsoft Access database . 1-66 O K Offshore Gas Pipeline . 1-146 Problem Description . 1-86 Metric units . 1-76 separator pressure . v-iii Optional Pressure Estimate . 1-39 Looped Blackoil Gathering System . 1-19 single link calculation . 1-37 Manifold Connections . 1-147 Output . 1-18 Reservoir pressure curve . 1-30 Optional Pressure Estimate . 1-126 Manifold Print Options . 1-39 Link Summary reports . 1-67 Nodal Analysis . 1-32 slugging models . 1-65 Jacobian matrix . 1-141 Netopt optimizer . 1-37 PIPEPHASE Application Briefs 68 . 1-147 pump . 1-70 R MBAL method . 1-87 Result Access System . 1-128 maximum erosional velocity . 1-65 Line Sizing . 1-89 slug catcher . 1-160 S Network Convergence Data . 1-7 reference source . 1-7 Print Detailed Reports . 1-86 Sizing . 1-29 RAS database . 1-99. 1-1 Nodal Analysis plot . 1-16 N RSA Special Plots . 1-100 RAS . 1-94. 1-110 Refinery Heat Exchanger Network . J non-linear equations . v-iii Kirchoffs . 1-159. v-iii No Reverse Flow .

1-49 69 Index . 1-16. 1-26 Vogel coefficient . 1-170 Slugging Report . 1-9 TACITE . 1-37 Update Network . 1-33. 1-172 Soave-Redlich-Kwong . 1-114 wells . 1-43 Taitel-Dukler-Barnea . 1-37 Update Network from File . 1-39 Spurs . 1-132 Sphering . 1-37 Scott . 1-133 Special Plots . 1-66 Steam Line Sizing . Brill . 1-100 Vertical Flow Performance . 1-55 W Tubing . 1-37 U Norris . 1-67 V Sub-Network . 1-87 Use PVT File . 1-113 T View Profile . 1-32 Update PVT File .

PIPEPHASE Application Briefs 70 .

invensys.support@invensys.ips.com Website: http://support. Email: iom.com Global Customer Support Inside U.: 1-866-746-6477 Outside U.Invensys Systems.invensys.: 1-508-549-2424 or contact your local Invensys Representative.com .S. 26561 Rancho Parkway South Lake Forest. Inc. CA 92630 United States of America http://iom.S.