You are on page 1of 12

J185169 DOI: 10.

2118/185169-PA Date: 19-January-17 Stage: Page: 1 Total Pages: 12

Compositional Simulation of Two-Phase


Flows for Pipeline Depressurization
Luigi Raimondi, Process Simulation Services

Summary but in these tools, the simulation of fluid flow in pipes is per-
The simulation of multiphase flow, considered in the case of coex- formed assuming steady state: Dynamic simulation is sometimes
isting vapor and liquid phases, is an important topic in engineer- limited to depressurization where the pipe is modeled as a vessel
ing for the design of oil-and-gas production and transportation of the same volume.
facilities. This paper presents the development of a compositional A “compositional tracking module” is available in the com-
approach for the dynamic calculation of multiphase flows in pipe- mercial simulators for multiphase flow, such as OLGA and Leda-
lines. This approach can be defined as “full compositional,” Flow, but there are no published cases covering the field of fast
because the vapor and liquid phases are described by taking into pipeline depressurization. This lack of documentation extends to
account the chemical composition, presenting points of interest almost the entire two-phase-flow model, which, on the basis of
from both the theoretical and the practical points of view. Physi- proprietary data, has never been published.
cal properties required are calculated at each integration timestep By analyzing the large amount of published papers in the field
with the actual phase compositions instead of relying on property of multiphase flow, one can easily find that almost all experimen-
tables previously generated from a single constant fluid composi- tal data refer to fluids of constant chemical composition: Most
tion. With this approach, in the numerical solution of the conserv- experiments use simple and safe two-component systems such as
ative two-phase-flow equations, the congruency between the air/water, nitrogen/water, nitrogen/naphtha, and only a few more.
dynamic pressure, calculated by solving the Navier-Stokes equa- These two-component systems have very little similarity to
tions at constant temperature, and the thermodynamic pressure of real cases, where the oil-and-gas chemical composition is defined
the system becomes a critical constraint. by tens of hydrocarbons, from methane (C1) to triacontane (C30)
In the numerical solution, the overall mass balance defined by and higher, light gases (typically N2, CO2, H2S), and water.
means of the vapor- and liquid-phase densities is verified with In the mentioned commercial simulation codes, the thermody-
respect to the mass balance of each chemical component involved, namic approach is approximated: The standard option is to precal-
and the system pressure obtained from the solution of the momen- culate and store physical properties in tables from which the
tum equations is always compared with the thermodynamic value simulators pick property values required by the solution algo-
defined by mass balance. rithm. The compositional approach, when available, is limited
Of the numerous test cases created for model validation, three of with respect to the number of chemical components and calcula-
them (focused on fast depressurizations) are presented and discussed. tion methods.
Similar examples are not available in the literature as solutions of Within the numerous problems arising in the design and opera-
the current “state-of-the-art” commercial pipeline simulators. tion of pipelines (startup, shutdown, and restart), the calculation
of pipeline depressurization, which can arise from both planned
Introduction and unplanned events, is a central point in the evaluation of safety
consequences. As unplanned events are concerned, fast pipeline
Simulation of multiphase flow in pipelines has become a very-im- depressurization caused by rupture is probably the most-severe
portant topic in research and engineering during the past 30 years. effect that requires accurate simulation. The calculation of the
The increasing exploitation of oil-and-gas reservoirs in offshore outflow of highly flammable gas and oil is very important in
fields and the transportation of the fluids to the onshore treatment assessing the safety consequences in the nearby environment.
facilities are key factors for this development. Technical and eco- The fast depressurization of a pipeline has hazardous effects:
nomic problems represented by the installation of separation Apart from the dispersion or management of the discharged fluid,
equipment have promoted the transport of oil and gas in a single the most important inner effect is the significant reduction of the
pipeline as the only feasible solution. Now, multiphase flow (in the wall temperature, eventually below the ductile/brittle transition
case of coexisting vapor and liquid phases) is a research theme of point of the steel. Because Joule-Tomson effects related to these
great importance for the exploitation of oil-and-gas reservoirs: The operations create a remarkable fluid cooling, the prediction of
term “flow-assurance” defines the technology applied for the good values of the temperature reached by the pipeline material is
design of pipelines and gathering and network systems, and the a desirable result of the simulation. Low temperatures can also
prevention and solution of problems related to fluid transportation. promote the formation of hydrates when the fluids contain water,
Simulation tools of the nuclear industry, such as RELAP (e.g., not only as a separated liquid phase, but also when present in low
Relap 5 2001) and CATHARE (developed for the simulation of amounts in the vapor phase. In the following sections, a different
water and steam flows) have provided the starting point for the de- and extended thermodynamic approach is presented for the solu-
velopment of new gas/liquid flow simulators aimed at the solution tion of multiphase flows and fast depressurizations.
of the different problems faced by the oil-and-gas industry. Fluid-flow equations are coupled with thermodynamic equa-
These needs have inspired extensive research in two-phase tions of state (EOSs) for the evaluation of fluid properties, taking
flow, with a particular focus on inherent transient phenomena into account all possible changes in pressure, temperature, and
such as slug-flow calculation. Today, commercial two-phase-flow fluid compositions, and the numerical method used for the calcu-
simulators such as Olga, Tacite, and LedaFlow are well-known lation of the fluid temperature and phase separation is analyzed in
and widely used for steady-state and transient multiphase-flow detail in terms of thermodynamic constraints.
modeling. In this presentation, themes such as the evolution of the flow
A compositional approach is commonly found in commercial type (stratified, bubble, slug, and others) and the calculation of
process simulators (e.g., Aspen, Hysys, ChemCad, and Prosim), friction factors are not analyzed in detail, and only the importance
of composition changes during the dynamic of the two-phase flow
Copyright V
C 2017 Society of Petroleum Engineers is discussed in the final examples. The vapor/liquid two-phase-
Original SPE manuscript received for review 12 May 2016. Revised manuscript received for
flow model has been developed on the basis of methods already
review 18 October 2016. Paper (SPE 185169) peer approved 8 November 2016. published, as detailed by Table 1.

2017 SPE Journal 1

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 2 Total Pages: 12

Flow Model Configuration References


Stratified Horizontal, inclined Taitel-Dukler (1976)
Slug Horizontal, inclined Cook and Behnia (2000), Bendiksen and Espedal (1992),
Bonizzi et al. (2009)
Slug Vertical Brauner and Ullman (2004), Van Hout et al. (2002)
Bubble Vertical Lisseter and Fowler (1992)
Annular Vertical Barnea and Taitel (1989)
Annular Horizontal, inclined Barnea (1991)
Droplet entrainment and deposition Horizontal Pan and Hanratty (2002b), Berna et al. (2014)
Droplet entrainment and deposition Vertical Pan and Hanratty (2002a), Berna et al. (2014)
Churn Vertical Govan et al. (1991)
Taylor bubble and gas bubble entrainment Horizontal, vertical Brauner and Ullmann (2004), Nydal and Andreussi
(1991), Bonizzi and Issa (2003)
Countercurrent and flooding Vertical, inclined Vijayan et al. (2001), Govan et al. (1991)

Table 1—Two-fluid-flow models and relevant references.

Fluids dynamics equations and solution algorithms have been tions included in the interface momentum exchanged, as
implemented into an existing process-simulation code (XPSIM described by Taitel and Dukler (1976) for stratified flow. In the
2015), which has provided a general thermodynamic framework following study, the two-fluid model is used.
for the calculation of the vapor/liquid equilibrium for real mix-
tures of hydrocarbons and their physical and transport properties Conservation of Mass. Fluid-dynamic equations, for pipeline
(enthalpy, density, viscosity, and others). simulation, are considered in one dimension (pipe length) only.
In particular, thermodynamic and transport properties of real By introducing a control volume V, mass conservation is given by
mixtures are evaluated by applying EOSs commonly used in oil- the differential equation
and-gas engineering-design activity. Well-known cubic EOSs
such as the Soave-Redlich-Kwong (SRK) or the Peng-Robinson @ak qk @
(PR) are used for the calculations presented in the next sections. þ ðak qk uk Þ ¼ fk ; . . . . . . . . . . . . . . . . . . . . . ð1Þ
However, more-complex thermodynamic equations, such as the @t @z
GERG-2004 model designed for light hydrocarbons C1–nC8 and a where q is the mass density, a the volume fraction, u the velocity,
few other gases (see Kunz and Wagner 2012), are also available and f the phase mass generated. Here, the subscript k is used to
for the calculation of sensitivity tests and comparisons of results indicate the vapor or liquid phase: the value 1 identifies the vapor
obtained with different thermodynamic models. phase (V), whereas the index 2 is used for the liquid phase (L).
The next sections present the results achieved in the develop- For a two-phase system, vapor and liquid volume fractions ak
ment of this extended code for the simulation of multiphase-fluid sum to unity:
transport in the oil-and-gas industry.
aV þ aL ¼ 1: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð2Þ
Fluid-Dynamics Equations and Models
The equations required for the description of single-phase and In Eq. 1, the last term f defines phase changes caused by evap-
multiphase flows are well-known, and their derivation is presented oration and condensation or mass addition and subtraction related
in many textbooks and almost all the publications related to multi- to fluid injection or leaks.
phase-flow dynamics. Among available documentation, we can When only evaporation and condensation exist, the liquid and
cite two of them: (1) the historically relevant and fundamental vapor terms sum to zero:
textbook on fluid dynamics of Landau and Lifchitz (1971) and (2)
the more-recent text of Ishii and Hibiki (2006). So, conservation fV þ fL ¼ 0: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð3Þ
equations for mass, momentum, and energy are given here with-
out any derivation and particular comments. In the following, a Thermodynamic and transport properties, which are usually
fluid system formed by Nc chemical components (e.g., methane, considered functions of the pressure and temperature only, in the
ethane, nitrogen, and others) is considered, and the relative case of a multicomponent fluid mixture, are also dependent on the
amount of the chemical components is defined by the number of phase compositions. Phase composition is denoted by the vector z
moles or mass units. The composition is described by a vector z with components zi that represent the molar or weight fraction of
of dimension Nc, and each individual chemical component is iden- the i th chemical component. In some cases, the symbol y is used
tified by an index i. to identify the vapor composition vector and x for the liquid
When conservation equations contain both phase and chemical phase. Therefore, in general, the calculation of the liquid and
component indices, the first will be written as subscript and the vapor densities can be defined by the following functions:
second as superscript.
Two approaches are currently used to describe fluid dynamics qk ¼ qðT; P; zk Þ . . . . . . . . . . . . . . . . . . . . . . . . . . . ð4Þ
of a gas/liquid two-phase system: (1) drift-flux models or (2) two-
fluid models. qV ¼ qðT; P; yÞ . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð5Þ
In the first method, momentum-balance equations of the vapor
and liquid phases are coupled, and the different phase velocities qL ¼ qðT; P; xÞ: . . . . . . . . . . . . . . . . . . . . . . . . . . . ð6Þ
are described by means of drift relations; many chapters of Ishii
and Hibiki (2006) are dedicated to this approach. In a similar manner, phase enthalpies, entropies, viscosities,
Instead, the two-fluid model uses separate equations to and thermal conductivities are calculated as functions of pressure,
describe the flow of the vapor and liquid phases with their interac- temperature, and phase compositions, as

2 2017 SPE Journal

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 3 Total Pages: 12

Hk ¼ HðT; P; zk Þ . . . . . . . . . . . . . . . . . . . . . . . . . . . ð7Þ where hk is the internal heat-transfer coefficient of the phase k in


contact with the pipe wall, which is calculated as a function of the
Nusselt number, and Ak is the pipe internal surface in contact with
Sk ¼ SðT; P; zk Þ . . . . . . . . . . . . . . . . . . . . . . . . . . . ð8Þ the same phase (White 1988).
Naturally, the fluid can be heated or cooled as a function of its
lk ¼ lðT; P; zk Þ . . . . . . . . . . . . . . . . . . . . . . . . . . . ð9Þ temperature, the temperature of the external medium, pipe-wall
physical properties and thickness, insulation properties and thick-
kk ¼ kðT; P; zk Þ; . . . . . . . . . . . . . . . . . . . . . . . . . . ð10Þ nesses, soil depth and conductivity, and other factors. All these
parameters are taken into account by the simulation code for the
and in Eqs. 7 through 10, H denotes the enthalpy, S the entropy, l calculation of the Qk term.
the dynamic viscosity, and k the fluid thermal conductivity. The dynamic heat-transfer equation is solved by considering
insulation thicknesses and material characteristics (density, con-
ductivity, and heat capacity) to obtain the inner-pipe-wall temper-
Momentum Balance. The momentum-balance equation of phase
ature, which determines heat transfer with the flowing fluid.
k is written as
When a compositional approach is used, the mass balance of
@ak qk uk @ the chemical components contained in the vapor and liquid phases
þ ðak qk uk uk þ ak PÞ must be considered.
@t @z
Excluding the existence of chemical reactions and ignoring
@
¼ Pk ak þ ak qk gsin# þ Mjk þ MkW ; . . . . . . . . . . . ð11Þ mass diffusion of the chemical species, the change of the local
@z composition of the fluid phases contained in a control volume V is
where P defines the pressure in the control volume, # is the incli- the effect of convective flow and vapor/liquid equilibrium.
nation of the pipe, Mjk is the drag force between phase k and phase Taking into account a control volume, the mass balance of the
j, and MkW is the frictional pressure drop of phase k generated by ith chemical component of the system (e.g., methane) in the k-
its interaction with the pipe wall. The drag force between the liq- phase can be written as
uid and vapor phases satisfies the condition Mjk ¼ Mkj.
When dealing with vapor/liquid two-phase flow, a @mik @
þ ðmik uk Þ ¼ fki ; . . . . . . . . . . . . . . . . . . . . . . ð18Þ
“conservation-volume” equation must be added to the previous @t @z
mass-balance equations. It expresses the fact that the sum of vol-
ume fractions of the phases must be equal to unity and can be where the index i applies to all chemical components existing in
written as the fluid system (from 1 to Nc). The term mik is the mass of com-
ponent i in the control volume and can be defined with the phase
aV @qV aL @qL 1 @ 1 @ density and the weight fraction of the component i in the fluid
þ ¼ ðaquÞV  ðaquÞL ; . . . ð12Þ phase k:
qV @t qL @t qV @z qL @z
where the derivative of the z-coordinate represents the spatial mik ¼ ak qk wik : . . . . . . . . . . . . . . . . . . . . . . . . . . . . .ð19Þ
gradient.
As in Eq. 1, the term f ik is the amount of mass caused by evap-
Energy Balance. The last conservation equation considered is oration/condensation or additional injections or leaks. When only
that of energy and can be derived in the form evaporation and condensation are involved, the vapor fv and liquid
      fl parts sum to zero for each chemical component.
@ u2k @ u2k When the differential equations are integrated, by assuming
ak qk Ek þ þ a k qk E k þ uk
@t 2 @z 2 the temperature is constant across one timestep Dt, the change of
@ the phase densities can be related to the change of pressure, and
¼ Qk þ P  uk þ Lk ;                    ð13Þ Eq. 12 can be rewritten as
@z
 
where Ek is the internal energy of phase k, Qk represents the heat aV @qV aL @qL @P 1 @ 1 @
exchanged through the pipe wall, and Lk is the enthalpy change þ ¼ ðaquÞV  ðaquÞL :
qV @P qL @P @t qV @z qL @z
related to condensation or evaporation. For the latter, we have the
obvious relation Lv þ Ll ¼ 0.                    ð20Þ
By introducing phase enthalpy Hk and using the thermody-
namic equation, The complete set of Navier-Stokes equations is solved with a
mixed implicit/explicit integration procedure. Details of the
Pk applied integration method are not given, and a valuable reference
Hk ¼ E k þ ; . . . . . . . . . . . . . . . . . . . . . . . . . . . ð14Þ
qk is the text of Ferziger and Peric (2002). The component mass-bal-
ance equations (Eqs. 18 and 19) are integrated with an explicit
the energy-balance equation can be rewritten as schema on the basis of the new phase velocities and densities
obtained in the previous steps. An overview of the procedure,
@ak qk Hk @ Dak Pk
þ ðak qk Hk uk Þ ¼ þ Qk : . . . . . . . . . ð15Þ used for the numerical solution, is described in the next section.
@t @z Dt
The heat Q, exchanged between the fluid and the external am- Numerical Solution
bient, is The selection and implementation of a numerical method used for
the solution of the Navier-Stokes differential equations are still
Q ¼ UAðT  Te Þ: . . . . . . . . . . . . . . . . . . . . . . . . . . . ð16Þ
complex and demanding tasks, notwithstanding the large amount
of papers published on the numerical solution of hyperbolic par-
Here, U is a global heat-transfer coefficient, A the transfer surface
tial-differential equations. In the literature, one can find numerous
area, T the fluid temperature, and Te the external temperature.
methods ranging from the “method of characteristics” (MOCs)
In a more-detailed form, the same equation can be written in
(Mahgerefteh et al. 1999), explicit Euler methods, conservative
terms of the fluid temperature T and internal-pipe-wall tempera-
finite-volume methods derived from the Godunov approach
ture Tw as
(Godounov 1979), advection upwind model solution (AUMS)
methods (Liou 2001), and others. One has to consider that pipe-
Qk ¼ hk Ak ðT  Tw Þ; . . . . . . . . . . . . . . . . . . . . . . . . ð17Þ
line length may range from a few meters to hundreds of

2017 SPE Journal 3

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 4 Total Pages: 12

kilometers, and the problems to be simulated can have time inter- Models for Flow Regimes and Friction Factors. The evaluation
vals from a few seconds, in the case of fast depressurization of the momentum-exchange terms Mik and Mkw , defined in Eq. 11,
caused by a full-bore rupture, to a few days in the case of startup which represent, respectively, the vapor/liquid phase interaction,
or shutdown of long transmission lines. So, one critical constraint and the fluid-phase/wall interaction is a critical point in the solu-
was to keep the integration timestep at acceptable values, to tion of the viscous Navier-Stokes equations. Unreliable calcula-
ensure that the code can be used by a flow-assurance engineer in tions of these terms produce nonphysical results with the effect of
daily calculations for projects and design assessments. Some of a very-fast divergence of the whole-solution algorithm.
the most referenced integration methods have been implemented As mentioned, fluid-dynamics equations are developed on the
and tested, but many have been found either not sufficiently stable basis of a two-fluid model, taking into account the flow patterns
(MOC and explicit Euler) or requiring very-low integration time- and their identification with respect to
steps (e.g., AUMS) and have been eventually abandoned. • Vapor and liquid volumetric flow rates
At the end, an implicit staggered mesh model (“staggered • Pipe diameter and inclination
arrangement” in Ferziger and Peric 2002, p. 166) has provided • Vapor and liquid densities
sufficient stability and was used to integrate the multicomponent- • Vapor- and liquid-transport properties
fluid dynamic equations. As implemented in this context, some The flow regimes considered are stratified, annular, slug, bub-
other algorithms bring erroneous mass balances that, in turn, gen- ble/churn, and distributed bubble.
erate absurd pressure and temperature values. The equations for the definition of these flow regimes and their
With this approach, pressure, density, and energy are calcu- boundaries have been selected through the analysis and verifica-
lated at the center of each control volume, while phase velocities tion of a large set of available articles on the subject. The selec-
tion from available open literature of the equations to be used for
are defined at the surfaces separating control volumes. The inte-
the identification of flow patterns, their transition boundaries,
gration algorithm proceeds along the following main steps:
the equilibrium holdup, and the interface friction factor describing
1. Define a time interval Dt on the basis of the previous calcu-
the momentum exchange between phases turned out to be
lation history. For each control volume, an upper value of
very complex.
the Courant number uDt/Dx well below unity is used as a
Many published correlations are built on a very limited range
limiting criterion for the timestep, and the latter is reduced
of experimental data, and their extrapolation, even to very-near
also on the basis of the relative pressure change across each
regions, generates unacceptable results.
timestep. The pioneering work of Taitel and Dukler (1976) still repre-
2. Solve the system defined by the vapor and liquid momen- sents a milestone in the mechanistic approach to flow-pattern
tum-balance (Eq. 11) and the volume-conservation (Eq. 20) identification, liquid holdup, and pressure-drop calculation.
to derive updated phase velocities and an estimated pressure Latest developments tend to be driven by a quasicomputa-
value. For each control volume, there exist three independ- tional-fluid-dynamics simulation of the systems.
ent variables, so the total number of equations to be solved is The paper of Bonizzi et al. (2009) gives an interesting over-
3NV where NV is the number of control volumes. view and insight about how mechanistic descriptions of the gener-
3. Solve the mass-balance equations to obtain the updated ation and collapse of bubbles and drops can be incorporated into
mass content of each control volume by use of an implicit- the equations defining the liquid and vapor flow fields and how,
integration model. with small control volumes, it is possible to identify the genera-
4. From the new mass content, a new pressure value is esti- tion of slug flow as a perturbation of the stratified flow.
mated on the basis of the vapor- and liquid-compressibility Of the very limited number of the most fruitful papers listed in
values. the References section, one must mention Barnea (1991) for annu-
5. Solve the energy balance with the updated phase velocities lar flow; Taitel and Barnea (1990), Nydal and Andreussi (1991),
to obtain the new fluid status with an implicit integration and Cook and Behnia (2000) for slug flow; and Pan and Hanratty
method. (2002a, b) for the evaluation of liquid entrainment in both hori-
6. Solve the component-balance equations with an explicit zontal and vertical annular flows. Table 1 includes flow models to
Euler integration method. be considered in a reliable two-phase-flow simulation and the
7. For each control volume, verify that calculated new pres- most-important reference papers.
sure values are coherent and derive the new temperature
and vapor fraction by performing flash calculation with the
EOS selected by the user. EOS and Temperature Calculation
8. New vapor and liquid-phase compositions are obtained at In a two-phase fluid flow, a thermodynamic EOS represents the
the end of the previous step. integration between fluid mechanics and the constraints existing
9. Recalculate all fluid properties (density, enthalpy, entropy, between vapor and liquid phases. When a compositional approach
heat capacity, viscosity, and thermal conductivity) for the is used, fluid properties (which are dependent on the system com-
vapor and liquid phases with the updated values of pressure, position, local temperature, and pressure) are also connected with
temperature, and compositions. the solution of the Navier-Stokes equations. For example, the
These steps are repeated until the final-simulation time is pressure must satisfy both the thermodynamic EOS and the
reached or some other termination criteria are satisfied. momentum-balance equation. The result of the numerical solution
In the upcoming EOS and Temperature Calculation section, of the flow equations (momentum and mass balance) during a
the calculation of the thermodynamic status (temperature, pres- time increment Dt produces new values of the density and fluid
sure, and vapor fraction) of the fluid contained in a control vol- pressure. Similarly, the solution of the energy equations generates
ume after an integration step is discussed in detail. new values of the energy contained in a control volume V0. So, at
When dealing with depressurization, the calculation of the the new time t0 , new values of the internal energy are derived and
mass flow rate discharged through a hole or a control valve is also must be connected to local temperature, pressure, and densities as
a critical point. The algorithm verifies that the fluid velocity E ¼ EðT; VÞ, E ¼ EðT; PÞ, or E ¼ EðT; qÞ. When an EOS for a
does not exceed the local sound velocity, allowing one to reach multicomponent chemical system is applied, the pressure, temper-
the latter value when a sufficient pressure drop is available. The ature, and density (or volume) should also satisfy the EOS. In
calculation of sound velocity, when performed for a two-phase abstract form, the latter can be written as
real fluid, with an EOS is not straightforward: A discussion of this
topic can be found in Raimondi (2011), where the numerical eval- UðT; P; V; zÞ ¼ 0: . . . . . . . . . . . . . . . . . . . . . . . . . ð21Þ
uation of the speed of sound by use of the Peng-Robinson EOS
is presented, and calculated values are compared with experimen- If we consider one of the cubic EOSs, used extensively in oil-
tal values. and-gas simulation, the previous EOS takes the form

4 2017 SPE Journal

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 5 Total Pages: 12

RT aðTÞ Strictly speaking, the Clausius-Clapeyron equation is valid


P¼  . . . . . . . . . . . . . . . . . . . . . ð22Þ only when the two phases in equilibrium have the same composi-
ðV  bÞ VðV  bÞ
tion (i.e., when the system is formed by a single chemical compo-
for the SRK equation (Soave 1972), or nent). For multicomponent systems, temperature and pressure
changes along the saturation line are connected by a more-com-
RT aðTÞ plex equation (Gibbs 1878) because the variation of the chemical
P¼  . . . . . . . . . . . . ð23Þ
ðV  bÞ VðV þ bÞ þ bðV  bÞ potentials li must be taken into account:
X
for the PR equation (Peng and Robinson 1976). In Eqs. 22 and 23, Vk dP  Sk dT  mik dlik ¼ 0: . . . . . . . . . . . . . . . . . ð30Þ
a and b are evaluated from the values ai and bi, which are charac- i
teristic parameters of each pure chemical component, and from
the vapor-phase composition y or liquid-phase composition x as After the energy equation has been integrated, a new value E0
of the total energy per unit mass is obtained, and can be compared
X
NC with the value E at the previous time t0. To compute the new tem-
b¼ zi bi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð24Þ perature, a number of possible paths can be used, all on the basis
i of the new value of the internal energy obtained from the integra-
X
NC tion of the balance equation. For a vapor/liquid system, the energy
a¼ zi zj ai ai ð1  kij Þ: . . . . . . . . . . . . . . . . . . . . . ð25Þ of the unit mass can be written as
i;j
E ¼ EV wV þ EL wL ; . . . . . . . . . . . . . . . . . . . . . . . . ð31Þ
In addition, at equilibrium, vapor-and liquid-phase composi-
tions must satisfy the equality of the chemical potentials in the where wk is the weight fraction of the liquid or vapor phase. By
two phases: taking the differential of Eq. 31 and considering the constraints

liV ¼ liL : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð26Þ wV þ wL ¼ 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð32Þ

In the field of the calculation of thermodynamic equilibrium dwV þ dwL ¼ 0; . . . . . . . . . . . . . . . . . . . . . . . . . . . ð33Þ


with the use of EOSs, the fundamental relations of the equality of
the chemical potentials li are transformed into the equality of we can write, assuming the vapor fraction as independent
phase fugacities and finally into the definition of equilibrium con- variable,
stants, or K-values.
Avoiding the detailed derivation, which can be found in Poling dE ¼ wV dEV þ ð1  wV ÞEL þ ðEV  EL ÞdwV : . . . . . . . ð34Þ
et al. (2001), of the vapor/liquid equilibrium equations, the equi-
librium constraint is described by the K-value relations as The differentials are expanded in terms of the partial deriva-
yi tives with respect to pressure and temperature as
¼ Ki ðT; P; x; yÞ: . . . . . . . . . . . . . . . . . . . . . . . . . ð27Þ    
xi @Ek @Ek
dEk ¼ dT þ dP: . . . . . . . . . . . . . . . ð35Þ
Only for low-pressure multicomponent systems, Eq. 27 can @T P @P T
take the simple and well-known form: Finally, by substituting the expansion of Eq. 35 into Eq. 34, a
yi p0i ðTÞ final expression relating the changes of pressure and temperature
¼ ; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð28Þ to the change of the internal energy is obtained, and this relation
xi P
can be expressed as
where p0i is the vapor pressure of the ith component.
In detail, the Ki function has a mathematical expression that DE ¼ f ðDT; DPÞ: . . . . . . . . . . . . . . . . . . . . . . . . . . ð36Þ
is a highly nonlinear function of 2Ncþ2 variables and is depend-
ent on the EOS selected for the description of the system to be At this stage, we have one equation with two independent vari-
simulated. The complexities involved in the numerical solution ables (i.e., the changes of pressure and temperature); one of them
of this problem, which requires the analysis of the phase-split must be eliminated, and more than one option is possible. How-
stability, have been thoroughly analyzed and described by ever, the simplest solution that relates pressure and temperature
Michelsen (1982). changes through the Clausius-Clapeyron equation has been disre-
One of the relevant points for the dynamic simulation of fluid garded because of the described shortcomings. Another possible
flow is the evaluation of the change of the fluid temperature with solution path is to use directly the pressure values derived by the
time. This becomes very important for multiphase flow when integrations of the momentum- and volume-balance equations and
additional evaporation or condensation affecting vapor and liquid to calculate the new temperature value. The solution procedure
phases must be considered. Both retrograde condensation and adopted was to use a second equation, derived from mass balance,
evaporation are complex effects, which are not uncommon in the generating an updated mass content of the control volume V at
field of fluid flow at high pressure. Usually, the temperature is cal- time tþDt. Because the new mass content can be expressed as a
culated after fluid pressure and phase velocities have been density value, we can write
updated as results of the integration through a timestep.
The well-known Clausius-Clapeyron equation, Dq ¼ f ðDT; DPÞ; . . . . . . . . . . . . . . . . . . . . . . . . . . ð37Þ

dP DH which, together with Eq. 36, allows the calculation of updated


¼ ; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð29Þ temperature and pressure values.
dT TDV
is frequently used to define the link between pressure and temper-
ature of vapor and liquid phases in equilibrium. Here, DV is the Model Validation and Numerical Results
difference between the vapor and liquid volumes, and DH is the The solution of the equations described in the previous sections
difference of the vapor and liquid enthalpies. has been implemented within a process-simulation software
Eq. 29 permits the calculation of temperature difference after a (XPSIM 2015), providing the thermodynamic framework required
pressure change has been derived (e.g., by the solution of the mo- for the calculation of vapor/liquid equilibrium and phase proper-
mentum-conservation equations) and is often applied for the cal- ties. Because fluid properties are not derived from predefined
culation of flashing flows (Leung 1990). tables (i.e., interpolated or extrapolated), but are calculated for all

2017 SPE Journal 5

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 6 Total Pages: 12

control volumes at each time-integration step as functions of used as a reliable validation test. Publications by Mahgerefteh
phase compositions, the simulation time required to solve a given et al. (1999, 2006a, b) present discussions and simulated
problem results in a generally higher and very dependent number results limited to the comparison with experimental data (pres-
of chemical components used to describe the flowing fluid. How- sure, temperature, and inventory) without any additional calcu-
ever, a deeper insight into fluid composition changes and their lated fluid properties such as velocity and liquid fraction obtained
effects on the evolution of the fluid dynamics is obtained. in the present study. Moreover, in these studies, the homogeneous
Three simulation cases are presented: two-fluid model is used, which implies that the same velocity
• One “Isle of Grain” full-bore rupture experiment, which pro- value is used for the liquid and vapor phases. There are no
vides a significant overall validation of the model published results obtained with the previously mentioned com-
• Depressurization of a pipeline filled with a three-component mercial simulators.
fluid to show compositional changes Pipeline characteristics and experimental conditions are these:
• A pipeline shutdown operation followed by partial depressu- (a) material, carbon steel; (b) inner diameter, 154.0 mm; (c) outer
rization and subsequent displacement of the residual fluid by diameter, 168.6 mm; (d) wall roughness, 0.05 mm; (e) orifice di-
an inert gas ameter (circular), 154 mm; (f) initial pressure, 21.6 bar; (g) initial
In the following presentation, the terms “initial pipe end” and temperature, 17.8 C; and (h) ambient air temperature, 19.1 C.
“final pipe end” are frequently used: They are taken from the The properties used for carbon steel are density of 7854 kg/m3,
description of the Isle of Grain experiments. The first term defines heat capacity of 434 J/kg.K, and thermal conductivity of 53.6
the side where, during normal flow, the fluid enters the pipeline W/m.K.
(0-m distance). The second term indicates the opposite side where Initially, the pipeline is filled with LPG at 17.8 C and 21.6
the fluid normally exits the pipeline (total pipeline length). bar, and all the initial content (approximately 930 kg) is dis-
In the examples presented, pipeline leaks or full-bore ruptures
charged into the atmosphere in approximately 20 seconds. In this
are always at the final pipe end.
short time interval, the internal fluid temperature shows a very-
For the calculation of the mass discharged through the leak or
large decrease down to approximately 30 C.
valve, the methods defined by an American Petroleum Institute (API)
Experimental data reported are (a) pipeline inventory vs. time,
standard (API Standard 520 2008) are used. A discussion of the
(b) pressure vs. time at initial and final points, and (c) temperature
methods proposed by this standard and a detailed description on how
vs. time at initial and final points.
they can be applied in connection with rigorous thermodynamics and
These data are available as image plots from which it is diffi-
EOSs was presented by Raimondi (2007). This approach ensures that
cult to extract exact numerical values (Richardson and Saville
the velocity of the fluid discharged from the pipeline leak does not
exceed the sonic speed when critical flow conditions are established 1996a, b). Some data presented by these graphs (for the last part
by the pressure difference existing between the volume element that of the depressurization) could be questioned because (a) inventory
includes the leak and the external environment (atmosphere or blow- data show an increase of the mass content and (b) pressure figures
down system). All the test cases have been simulated with the PR show values below 1 atm.
EOS for vapor/liquid equilibrium and thermal properties. The experiment is simulated by letting the liquid LPG flow
Experimental results required for the validation are almost not through the pipeline for a very short time t0 (0.2 seconds), when
available in the public domain: There is no publication dealing the inlet and outlet valves are closed. The full-bore rupture at the
with variable fluid composition monitored by analyzers or other pipeline exit starts at time t1 equal to 1.0 second. In the graph
instruments. Moreover, some published results do not provide cited in the following paragraph, calculated data are shifted by 1
enough details to be used for model validation: So, the Isle of second to set the full-bore rupture at t ¼ 0 seconds, as presented
Grain experiments are still the most-comprehensive experimental by experimental data.
results dealing with pipeline depressurizations. In the field of CO2 The agreement of the calculated data is quite good, consider-
transportation, some experimental results have been published ing that no tuning parameter is used and that the discharge coeffi-
recently: One of these experiments (Ruden et al. 2014) has been cient has been set to 1.0.
simulated and discussed by the author of this study in a publica- In this simulation, the calculation of the heat exchanged with
tion dealing with acid gas transportation through pipelines (Rai- the external ambient represents a critical point, because
mondi 2016). • Internal heat-transfer coefficients are functions of fluid prop-
erties and phase velocities.
• Pipe internal temperature is the result of the transient heat
Case 1—Validation of the Model. It is well-known that pipeline flux across the pipe wall.
ruptures are problems that are difficult to simulate reliably. The • External heat-transfer coefficient is a function of the exter-
calculation of the rapid pressure and temperature changes is rec- nal ambient (air with convective flux) and its properties.
ognized as a “stress test” of the numerical algorithm implemented All these parameters are calculated at each integration time
for the solution of the fluid-flow equations. In the field of pipeline and for each control volume, and the heat exchanged between
depressurization, the experiments performed some years ago by fluid and pipe wall is calculated with Eq. 17.
BP and Shell and known as the Isle of Grain experiments are often The introduction of approximations such as an overall heat-
mentioned, and their results are discussed and compared. transfer coefficient or other averaging condition generates com-
These tests are well-representative of the problems connected pletely different results.
to the rapid depressurization of evaporating fluids generating low Timesteps are automatically adjusted by the algorithm within
internal temperatures, which represent a potential risk of possible a specified range: In this case, the lower limit is set at 1.0  105
brittle fracture. seconds, and the upper limit at 0.002 seconds. Calculated values
These experiments, documented in a report by Richardson and presented in the figures cited next have been stored with a fre-
Saville (1996a, b), dealt with the rupture of a pipeline (100 m quency of 0.1 seconds.
long) filled with liquefied petroleum gas (LPG) that has depressu- When the mechanistic two-fluid model is used in the simula-
rization that is completed in approximately 30 seconds. Because tion, rapid fluctuations of both pressure and temperature are
the fluid used was nearly-pure propane (95% propane, 5% n-bu- obtained at the final pipeline end where the rupture is located.
tane), the simulation of these experiments is not suitable to picture At this point, the fluid velocity reaches values of approxi-
the change of fluid composition during the depressurization mately 100 m/s, and the correlations developed for lower fluid ve-
caused by a very-small change of the overall composition. locity are working in a completely extrapolated region.
Instead, their simulation represents a very-critical test of the fluid- In this particular case, the fraction of liquid drops exceeds 0.8,
dynamics model and numerical-integration algorithm. so if a homogeneous/no-slip flow model is used for the calculation
Of the experimental results obtained, that identified as of the two-phase friction factor only, more-stable and slightly bet-
“experiment P40” is the most-discussed in the literature, so it is ter results are obtained. Fig. 1 shows experimental and calculated

6 2017 SPE Journal

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 7 Total Pages: 12

1000 24

875 21

750 18

Pressure (bar)
Inventory (kg)
625 15

500 12

375 9

250 6

125 3

0 0
0 5 10 15 20 25 30
0 5 10 15 20 25 30
Elapsed Time (seconds)
Elapsed Time (seconds)
Fig. 1—Case 1. Mass content vs. time. Experimental ( ), calcu-
Fig. 2—Case 1. Calculated pressure values at initial/final pipe
lated ( ).
ends. Final end ( ), initial ( ).

24.0 24

21.0 21

18.0 18

Pressure (bar)
Pressure (bar)

15.0 15

12.0 12

9.0 9

6.0 6

3.0 3

0.0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Elapsed Time (seconds) Elapsed Time (seconds)

Fig. 3—Case 1. Pressure values at initial pipe end. Calculated Fig. 4—Case 1. Pressure values at final pipe end. Calculated
( ), experimental ( ). ( ), experimental ( ).

values of the mass content of the pipeline during the depressuriza- In particular, the fast temperature change at the fluid exit point
tion. Fig. 2 presents the change with time of the calculated pres- can be easily explained and related to the vapor/liquid equilibrium
sure values at the initial and final pipe ends. temperature (41.4 C at 1 atm), which is established by liquid
Figs. 3 and 4 compare calculated and experimental data of the evaporation at the low outlet pressure. The subsequent rapid tem-
pressure, respectively, at the pipeline inlet and outlet. perature increase is determined by the heat exchanged with the am-
Figs. 5 and 6 illustrate the sharp change of the internal fluid bient when the liquid fraction becomes zero at the discharge point.
temperature compared with experimental values at the final and Fig. 7 presents the calculated fluid velocity at the exit point
initial pipe ends, respectively. where the full-bore rupture is located.

20
20.0
13.5
10
7.0
Temperature (°C)

0.5
Temperature (°C)

0
–6.0
–10 –12.5
–19.0
–20
–25.5

–30 –32.0
–38.5
–40 –45.0
0 5 10 15 20 25 30 0.0 3.3 6.7 10.0 13.3 16.7 20.0 23.3 26.7 30.0
Elapsed Time (seconds) Elapsed Time (seconds)

Fig. 5—Case 1. Temperature values at final pipe end. Calculated Fig. 6—Case 1. Temperature values at initial pipe end. Calcu-
( ), experimental ( ). lated ( ), experimental ( ).

2017 SPE Journal 7

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 8 Total Pages: 12

100 1.000
90 0.875
80

Liquid-Volume Fraction
0.750
70
Velocity (m/s)

0.625
60
50 0.500

40 0.375
30
0.250
20
0.125
10
0 0.000
0 5 10 15 20 25 30 0 3 6 9 12 15 18 21 24 27 30
Elapsed Time (seconds) Elapsed Time (seconds)

Fig. 7—Case 1. Calculated fluid velocity at final pipe end vs. time. Fig. 8—Case 1. Calculated liquid fraction at initial and final pipe
ends. Initial ( ), final ( ).

During the depressurization, at the final pipe end, the flow re-
gime becomes almost immediately annular because of the very- Pressure curves, presented by Fig. 11, show the values of the
high fluid velocity with a very-low liquid fraction, as described by initial and final pipe ends: Initially, the fluid discharged is liquid,
Fig. 8, which shows the change of the liquid-volume fraction dur- so the pressure drop is very fast and becomes slower with the
ing the depressurization at the initial and final points of the pipe- increase of the vapor fraction. Small pressure oscillations can be
line. Oscillations of the liquid fractions can be correlated to the related to the existence of reverse pressure waves. As shown by
fast-moving liquid waves arriving at the rupture point as entrained the same figure, equilibrium with the external atmospheric pres-
by the vapor fraction. sure is reached in approximately 10 minutes, and the simulation is
The mechanistic two-fluid model can also give other insights continued up to 20 minutes. Besides pipe-wall interactions, the
into the liquid/vapor phase interactions during the short depressu- vapor and liquid friction factors are calculated by considering
rization time; for example, Fig. 9 shows the changes of the flow the shear stress between the phases generated by their different
regime at the middle point of the pipeline. velocities, taking into account the established flow pattern
(see Table 1).
Case 2—A Three-Component System. This second example The internal fluid temperature is reported by Fig. 12, which
presents the simulation of the depressurization of a longer pipe- shows the oscillatory behavior at the final pipe end where the fluid
line caused by a leak or an emergency operation. To illustrate a is discharged. This can be related to the fast evaporation, caused
larger composition change, a different fluid mixture is used, as by a high heat-transfer coefficient, of the incoming liquid slugs.
shown by Table 2. When the outlet liquid mass becomes negligible, the outlet tem-
The phase-envelope shown by Fig. 10 gives the pressure and perature reaches a value in equilibrium with the external tempera-
temperature region where vapor and liquid phases are in equilib- ture at 19.1 C.
rium. The pipeline is assumed to be 1 km long (internal diameter As in the Isle of Grain case, the large-temperature oscillation
of 0.154 m, with the same parameters used in Case 1, filled with calculated at the fluid exit can be correlated to the oscillating exit
the fluid defined by Table 2 initially stored at 120 bar and 25 C). pressure and the liquid film, which also changes sharply as liquid
The pipeline is initialized, allowing the mixture to flow slugs or liquid mass waves reach the final pipe end.
through and by closing inlet and outlet valves after 10 seconds to The initial mass content is 9443 kg, and its change is presented
obtain pressure stabilization. The leak, through a hole of 50-mm by Fig. 13. At the end of the depressurization, the remaining mass
diameter at the pipe end, is started at 60 seconds. is liquid formed by n-butane and n-octane only.
At the initial temperature, the bubblepoint pressure is less than Fig. 14 shows the change of the mixture composition at the
120 bar, so the discharged phase is initially liquid, but, during the initial pipe end: The methane content becomes nearly zero after 10
depressurization, the fluid very soon enters the two-phase region. minutes. Therefore, it is not possible to evaluate reliably pressure
and temperature changes with the initial fluid composition only.
5
Case 3—Depressurization and Displacement. Among the infi-
nite cases of the depressurizations of hydrocarbon mixtures found
4 in design and operation practice, we have selected a case where
the fluid contained in the pipeline is first depressurized and then
displaced by an inert chemical component.
3
Flow Map

The problem simulates the depressurization of a pipeline, PL1,


connecting two offshore platforms, as required by operating pro-
cedures. The pipeline PL1 (630 m long, internal diameter of
2
0.268 m) transports the fluid from one offshore platform to a

1
No. Component Molar Fraction (%)

1 C1 50
0
0 5 10 15 20 25 30
2 n-C4 40
Elapsed Time (seconds)
3 n-C8 10
Fig. 9—Case 1. Calculated flow map at 50 m. Single phase 0,
stratified 1, annular 2, slug 3, bubble 4, distributed bubble 5. Table 2—Fluid composition of the “three-component system.”

8 2017 SPE Journal

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 9 Total Pages: 12

*Phase envelope PHE1 - Cumulative plot*


135.5

119.8

104.1

Pressure (bar) 88.4

72.7

56.9

41.2

25.5

9.8
–114.8 –85.9 –57.0 –28.1 0.8 29.7 58.6 87.6 116.5 145.4 174.3
Temperature (°C)
Dewpoint curve Bubblepoint curve V/F 0.100000 curve V/F 0.500000 curve V/F 0.900000 curve

Fig. 10—Case 2. Phase envelope of the methane, n-butane, and n-octane mixture.

140.0 30.00

120.0 25.00

20.00
100.0
Temperature (°C)
Pressure (bar)

15.00
80.0
10.00
60.0
5.00
40.0
0.00

20.0 –5.00

0.0 –10.00
0 200 400 600 800 1,000 1,200 0 200 400 600 800 1,000 1,200

Elapsed Time (seconds) Elapsed Time (seconds)

Fig. 11—Case 2. Calculated pressure at pipe ends vs. time. Ini- Fig. 12—Case 2. Calculated temperature value at pipe ends vs.
tial end ( ), final end ( ). time. Initial end ( ), final end ( ).

1.000
10000
0.875
8750
0.750
7500
Mole Fraction
Inventory (kg)

0.625
6250
0.500
5000
0.375
3750
0.250
2500
0.125
1250
0.000
0 0 200 400 600 800 1,000 1,200
0 200 400 600 800 1,000 1,200 Elapsed Time (seconds)
Elapsed Time (seconds)
Fig. 14—Case 2. Component molar fractions at initial pipe end
Fig. 13—Case 2. Calculated mass content vs. time. vs. time. Methane ( ), n-butane ( ), n-octane ( ).

2017 SPE Journal 9

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 10 Total Pages: 12

No. Component Molar Fraction (%) *Phase envelope PHE1 - BP & DP curves
85.92
1 H2O 0.0172
76.40
2 N2 0.6984
66.89
3 CO2 4.5054

Pressure (bar)
57.38
4 H2S 6.6298
47.86
5 C1 39.1120
38.35
6 C2 23.4063
28.83
7 C3 22.2626
19.32
8 i-C4 0.8409
9.81
–109.3 –93.5 –77.6 –61.8 –46.0 –30.1 –14.3 1.6 17.4 33.2 49.1
9 n-C4 1.4369
Temperature (°C)
10 i-C5 0.3492
Dewpoint curve Bubblepoint curve

11 n-C5 0.3753
Fig. 15—Case 3. Phase envelope of the fluid mixture.
12 C6 0.2604

13 C7 0.0716 The calculated fluid-flow rate, discharged through the control


14 C8 0.0263
valve, is shown by Fig. 16, whereas Fig. 17 pictures the complete
history of the calculated fluid pressure and temperature at the inlet
15 C9 0.0063 pipe end.
Fig. 18 shows how the nitrogen fraction changes during the
16 C10 0.0013 depressurization and suggests that the operating procedure is com-
pleted in approximately 1 hour.
Table 3—Case 3 fluid composition. However, inspection of Fig. 17 suggests that the operation
should be carried out in a longer time (i.e., by diminishing the
supplied nitrogen-flow rate to avoid the sharp decrease of the in-
nearby one. The global composition of the hydrocarbon fluid is ternal temperature caused by the sudden evaporation of the hydro-
given by Table 3, and the vapor/liquid phase envelope is shown carbon liquid phase).
by Fig. 15.
At normal conditions, the fluid enters the pipeline at 15 C and Conclusions
100 bar, and happens to be in a supercritical state because the
operating pressure is above both the critical point (33 C, 86 bar) This study describes the results obtained in the development of a
and the cricondenbar point. Because of an abnormal condition software tool for the simulation and analysis of multiphase trans-
generated at one platform, the pipeline is closed (5 minutes after port through pipelines, which takes into account the chemical
the simulation start); 10 minutes afterward, the depressurization is composition of the fluid. In performing the numerical integration,
started through a control valve at the final end. This control valve chemical equilibrium and thermodynamic-fluid properties (den-
has a diameter of 1 in. and a “discharge coefficient” equal to 0.8 sity, energy, and viscosity) are calculated at each timestep without
is used for the calculation of the outlet flow rate. The pipeline any loss of detail, which would arise from the use of precalculated
inlet is connected to a nitrogen-supply facility, providing the gas property tables.
at 30 C when the pipeline pressure decreases below 20 bar. By extending the two-fluid model with chemical-components
The operation continues until the hydrocarbon fluid is com- mass balances, this approach allows better flow-assurance analy-
pletely displaced: At this point, the pipeline is ready for a subse- ses in the fluid-transport engineering.
quent restart operation. A process-simulation software (XPSIM) has provided the ther-
modynamic framework used to implement this integrated
approach. Fluid-dynamics models required by the mechanistic
description of the vapor/liquid phase interactions for the calcula-
100000 tion of liquid holdup, flow regimes (with their transitions), and
two-phase friction factors have been developed with only avail-
87500
able literature publications and data without the use of proprietary
75000 information.
Flow Rate (kg/h)

In the solution procedure adopted, the overall mass balance


62500 defined by means of the vapor- and liquid-phase densities is veri-
fied with respect to the mass balance of each chemical component
50000
involved. Also, the system pressure, obtained from the solution of
37500 the momentum equations, is always compared with the thermody-
namic value defined by mass-balance equations.
25000 The validity of this approach is demonstrated by the results
obtained in the simulation of three complex and significant test
12500 cases. The first case compares calculated results with experimen-
0
tal values from the Isle of Grain experiments: The good agree-
0 10 20 30 40 50 60 ment between calculated and experimental values represents an
Elapsed Time (minutes) important validation of the algorithms developed.
For this case, simulations performed with other commercial
Fig. 16—Case 3. Discharged mass flow rate through the outlet- simulation tools are neither described nor discussed in multi-
control valve. phase-flow literature.

10 2017 SPE Journal

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 11 Total Pages: 12

110.0 30.0

100.0 23.0

90.0 16.0

80.0 9.0

Temperature (°C)
Pressure (bar)
70.0 2.0

60.0 –5.0

50.0 –12.0

40.0 –19.0

30.0 –26.0

20.0 –33.0

10.0 –40.0
0 10 20 30 40 50 60
Elapsed Time (minutes)

Fig. 17—Case 3. Pressure and temperature history at initial pipe end. Pressure ( ), temperature ( ).

Nomenclature l ¼ phase viscosity, Pas


a ¼ attraction parameter in cubic EOS l ¼ chemical-component thermodynamic potential, J/kg mol
b ¼ volume parameter in cubic EOS
E ¼ internal energy, J/kg
Subscripts and Superscripts
f ¼ mass exchanged between phases, kg/m3s
e ¼ external
H ¼ fluid or phase enthalpy, J/kg
i ¼ phase index or volume index
k ¼ thermal conductivity, W/mK
L ¼ liquid phase
k ¼ interaction coefficient in cubic EOS
V ¼ vapor phase
K ¼ vapor/liquid equilibrium constant
0 ¼ pure-chemical component
M ¼ interphase momentum exchange
w ¼ pipe wall
p ¼ vapor pressure of pure component, Pa
P ¼ system pressure, Pa
S ¼ fluid or phase entropy, J/kgK References
t ¼ time, seconds API Standard 520, Sizing, Selection, and Installation of Pressure-Reliev-
T ¼ system temperature, K ing Devices in Refineries: Part I—Sizing and Selection. 2008. Wash-
u ¼ system or phase velocity, m/s ington, DC: American Petroleum Institute.
V ¼ system or control volume, m3 Barnea, D. and Taitel, Y. 1989. Transient-Formulation Modes and Stabil-
V ¼ molar volume in EOS, m3/kg mol ity of Steady-State Annular Flow. Chemical Engineering Science 44
w ¼ weight fraction (2): 325–332. http://dx.doi.org/10.1016/0009-2509(89)85069-9.
x ¼ liquid-phase composition, molar fraction Barnea, D. 1991. Stability Analysis of Annular Flow Structure, Using Dis-
y ¼ vapor-phase composition, molar fraction crete Form of the “Two-Fluid Model”. International Journal of Multi-
z ¼ pipe distance, m phase Flow 17 (6): 705–716. http://dx.doi.org/10.1016/0301-9322
z ¼ global fluid composition, molar fractions (91)90052-5.
a ¼ liquid- or vapor-phase volume fraction Bendiksen, K. and Espedal, M. 1992. Onset of Slugging in Horizontal
D ¼ finite variable change Gas-Liquid Pipe Flow. International Journal of Multiphase Flow 18
q ¼ phase density, kg/m3 (2): 237–247. http://dx.doi.org/10.1016/0301-9322(92)90086-V.
Berna, C., Escriva, A., Munoz-Cobo, J. L. et al. 2014. Review of Droplet
Entrainment in Annular Flow: Interfacial Waves and Onset of Entrain-
1.000 ment. Progress in Nuclear Energy 74: 14–43. http://dx.doi.org/
0.875
10.1016/j.pnecene.2014.01.018.
Bonizzi, M. and Issa, R. I. 2003. A Model for Simulating Gas Bubble
0.750 Entrainment in Two-Phase Horizontal Slug Flow. International Jour-
nal of Multiphase Flow 29 (11): 1685–1717. http://dx.doi.org/10.1016/
Molar Fraction

0.625 j.ijmultiphaseflow.2003.09.001.
Bonizzi, M., Andreussi, P., and Banerjee, S. 2009. Flow Regime Inde-
0.500
pendent, High-Resolution Multi-Field Modelling of Near-Horizontal
0.375 Gas-Liquid Flows in Pipelines. International Journal of Multiphase
Flow 35 (1): 34–46. http://dx.doi.org/10.1016/j.ijmultiphaseflow.2008.
0.250 09.001.
Brauner, N. and Ullmann, A. 2004. Modelling Gas Entrainment From
0.125 Taylor Bubbles. Part A: Slug Flow. International Journal of Multi-
phase Flow 30 (3): 239–272. http://dx.doi.org/10.1016/j.ijmultiphase
0.000
0 10 20 30 40 50 60 flow.2003.11.007.
Elapsed Time (minutes) Cook, M. and Behnia, M. 2000. Pressure Drop Calculation and Modelling
of Inclined Intermittent Gas-Liquid Flow. Chemical Engineering Sci-
Fig. 18—Case 3. Nitrogen molar fraction vs. time. Initial pipe ence 55 (20): 4699–4708. http://dx.doi.org/10.1016/S0009-2509(00)
end ( ), final pipe end ( ). 00065-8.

2017 SPE Journal 11

ID: jaganm Time: 16:21 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152


J185169 DOI: 10.2118/185169-PA Date: 19-January-17 Stage: Page: 12 Total Pages: 12

Ferziger, J. H. and Peric, M. 2002. Computational Methods for Fluid Dy- Raimondi, L. 2007. Rigorous Calculation of Critical Flow Conditions for
namics, third edition, Springer. Pressure Safety Devices. Process Safety and Environmental Protection
Gibbs, J. W. 1878. On the Equilibrium of Heterogeneous Substances. 85 (4): 277–288. http://dx.doi.org/10.1205/psep06018.
Trans. of the Connecticut Academy of Arts and Sciences. Raimondi, L. 2011. Comment on “Molecular Simulation Prediction of
Godounov, S. 1979. Resolution Numerique des Problemes Multidimen- Sound Velocity for a Binary Mixture Near Miscible Conditions”.
sionnels de la Dynamique des Gaz. Editions Mir, Moscou. Industrial Engineering Chemistry Research 50 (19): 11455–11458.
Govan, A., Hewitt, G. F., Richter, H. J. et al. 1991. Flooding and Churn http://dx.doi.org/10.1021/ie201386e.
Flow in Vertical Pipes. International Journal of Multiphase Flow 17 Raimondi, L. 2016. Simulation of Pipeline Depressurization in the Trans-
(1): 27–44. http://dx.doi.org/10.1016/0301-9322(91)90068-E. portation of Oil and Gas With High CO2 and H2S content. Chemical
Ishii, M. and Hibiki, T. 2006. Thermo-Fluid Dynamics of Two-Phase Engineering Trans. 53: 337–342.
Flow. Berlin: Springer. Relap5/Mod3.3 Code. 2001. Manual Volume I: Code Structure, System
Kunz, O. and Wagner, W. 2012. The GERG-2008 Wide-Range Equation Models, and Solution Methods. Nuclear Safety Analysis Division, In-
of State for Natural Gases and Other Mixtures: An Expansion of formation Systems Laboratories, Inc.
GERG-2004. Journal of Chemical Engineering Data 57 (11): Richardson, S. M. and Saville G. 1996a. Isle of Grain Pipeline Depressur-
3032–3091. http://dx.doi.org/10.1021/je300655b. isation Tests. OTH 94 441. Offshore Technology Report. Imperial Col-
Landau, L. and Lifchitz, E. 1971. Mecanique des Fluides, Physique Theo- lege for the Health and Safety Executive.
rique, Tome VI. Editions Mir, Moscou. Richardson, S. M. and Saville, G. 1996b. Blowdown of LPG Pipelines. Trans
Leung, J. C. 1990. Similarity Between Flashing and Nonflashing Two- IChemE 74 (4): 235–244. http://dx.doi.org/10.1205/095758296528581.
Phase Flows. AIChE Journal 36 (5): 797–800. http://dx.doi.org/ Ruden, A. T., Xu, Z. G., Selberg, M. H. et al. 2014. Simulating Flow of
10.1002/aic.690360520. CO2 With Impurities in OLGA; Dealing With Narrow Phase-Enve-
Liou, M-S. 2001. Ten Years in the Making AUSM-Family, NASA report. lopes and the Critical Point. Energy Procedia 51: 344–352. http://
Lisseter, P. E. and Fowler, A. C. 1992. Bubbly Flow I–A Simplified dx.doi.org/10.1016/j.egypro.2014.07.041.
Model. International Journal of Multiphase Flow 18 (2): 195–204. Soave, G. 1972. Equilibrium Constants From a Modified Redlich-Kwong
http://dx.doi.org/10.1016/0301-9322(92)90082-R. Equation of State. Chemical Engineering Science 27 (6): 1197–1203.
Mahgerefteh, H., Saha, P., and Economou, I. G. 1999. Fast Numerical http://dx.doi.org/10.1016/0009-2509(72)80096-4.
Simulation for Full Bore Rupture of Pressurized Pipelines. AIChE Taitel, Y. and Dukler A. E. 1976. A Model for Predicting Flow Regime
Journal 45 (6): 1191–1201. http://dx.doi.org/10.1002/aic.690450605. Transitions in Horizontal and Near Horizontal Gas-Liquid Flow. AIChE
Mahgerefteh, H., Oke, A., and Atti, O. 2006a. Modeling Outflow Follow- Journal 22 (1): 47–55. http://dx.doi.org/10.1002/aic.690220105.
ing Rupture in Pipeline Networks. Chemical Engineering Science 61 Taitel, Y. and Barnea, D. 1990. A Consistent Approach for Calculating
(6): 1811–1818. http://dx.doi.org/10.1016/j.ces.2005.10.013. Pressure Drop in Inclined Slug Flow. Chemical Engineering Science
Mahgerefteh, H., Oke, A., and Rykov, Y. 2006b. Efficient Numerical So- 45 (5): 1199–1206. http://dx.doi.org/10.1016/0009-2509(90)87113-7.
lution for Highly Transient Flows. Chemical Engineering Science 61: Van Hout, R., Barnea, D., and Shemer, L. 2002. Translational Velocities
5049–5056. http://dx.doi.org/10.1016/j.ces.2006.03.012. of Elongated Bubbles in Continuous Slug Flow. International Journal
Michelsen, M. L. 1982. The Isothermal Flash Problem. Part I. Stability. of Multiphase Flow 28 (8): 1333–1350. http://dx.doi.org/10.1016/
Fluid Phase Equilibria 9 (1): 1–19. http://dx.doi.org/10.1016/0378- S0301-9322(02)00027-7.
3812(82)85001-2. Vijayan, M., Jayanti, S, and Balakrishnan, A. R. 2001. Effect of Tube Di-
Nydal, O. J. and Andreussi, P. 1991. Gas Entrainment in a Long Liquid ameter on Flooding. International Journal of Multiphase Flow 27 (5):
Slug Advancing in a Near Horizontal Pipe. International Journal of 797–816. http://dx.doi.org/10.1016/S0301-9322(00)00045-8.
Multiphase Flow 17 (2): 179–189. http://dx.doi.org/10.1016/0301- White, F. M. 1988. Heat and Mass Transfer. Addison Wesley Publishing
9322(91)90014-T. Company.
Pan, L. and Hanratty, J. 2002a. Correlation of Entrainment for Annular XPSIM (eXtended Process SIMulator). 2015. Reference Manual. Version
Flow in Vertical Pipes. International Journal of Multiphase Flow 28 2.02. Process Simulation Services, www.xpsimworld.com.
(3): 363–384. http://dx.doi.org/10.1016/S0301-9322(01)00073-8.
Pan, L. and Hanratty, J. 2002b. Correlation of Entrainment for Annular
Flow in Horizontal Pipes. International Journal of Multiphase Flow Luigi Raimondi is director of Process Simulation Services. Previ-
28 (3): 385–408. http://dx.doi.org/10.1016/S0301-9322(01)00073-8. ously, he was the manager of the Process Simulation and Sw
Development Department at Snamprogetti for more than 15
Peng, D. Y. and Robinson, D. B. 1976. A New Two-Constant Equation of
years. Raimondi’s current interests and research include ther-
State. Industrial Engineering Chemistry Fundamentals 15 (1): 59–64. modynamics, phase equilibria, and multiphase flows, and, in
http://dx.doi.org/10.1021/i160057a011. these fields, he has authored more than 10 technical papers.
Poling, B. E., Prausnitz, J. M., and O’Connell, J. P. 2001. The Properties He holds a PhD degree in industrial chemistry from the Univer-
of Gases and Liquids, fifth edition. McGraw-Hill. sity of Milan, Italy. Raimondi is a member of SPE.

12 2017 SPE Journal

ID: jaganm Time: 16:22 I Path: S:/J###/Vol00000/160152/Comp/APPFile/SA-J###160152

You might also like