Professional Documents
Culture Documents
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.
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
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
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
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 ( ).
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
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.”
119.8
104.1
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
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 ( ).
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
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 ( ).
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.
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.