

























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


























































































By C´edric Frac`es Gasmi August 2010
I certify that I have read this report and that in my opinion it is fully adequate, in scope and in quality, as partial fulfillment of the degree of Master of Science in Energy Resources Engineering.
Hamdi Tchelepi (Principal advisor)
ii
space, which is implemented as an adaptive tabulation strategy, leads to highly ro- bust and efficient computations of the phase behavior associated with compositional flow simulation. The characterization of reservoir models requires information such as porosity, permeability, relative permeability, and capillary pressure. Various techniques are used to describe the pore-scale details and model the flow dynamics. This knowl- edge is then used to estimate the macroscopic (Darcy-scale) properties and solve the macroscopic equations governing flow and transport in very large domains. We sur- vey different pore-scale simulators based on Lattice Boltzman methods. We present qualitative and quantitative results obtained from available simulators, as well as, our own implementation of existing algorithms. We document and test different ap- proaches and give an overview of the advantages and the challenges that remain to be resolved.
iv
I would like to express my sincere gratitude to my adviser Prof. Hamdi Tchelepi for his time, confidence, support and guidance. None of this would have been possible without him. I also wish to thank Dr. Denis Voskov for his trust, valuable comments and help. I wish to thank Lisette Quettier and Arthur Moncorge (Total) who gave me the opportunity to come to Stanford and initiated this adventure. I would also like to thank the Stanford University Petroleum Research Institute (SUPRI-B), and its affiliates for their financial support. I am very grateful to the staff of the Department of Petroleum Engineering who has contributed in creating an ideal environment for the development of research projects. I thank Youngseuk Kheem, Ratnanabha Sain and Tapan Mukerji for use of their Lattice Boltzmann Simulation code. I would like to thank warmheartedly my classmates, friends and beloved office- mates, whose help and friendship made my stay at Stanford a wonderful experience. Special thanks to Guillaume Moog, Antoine Bertoncello, Mathieu Rousset, Sebastien Matringe, Bruno Dujardin, Danny Rojas, Mehrdad Honarkhah, Markus Buchgraber, Mohammad Al Dossary, Ekin Ozdogan, Israel Reyna, Mohammad Shahvali, Obi Ise- bor, Alejandro Leiva. Finally, I thank my family for their constant support and belief in me.
v
B Workflow and Algorithms layout 78 B.1 Algorithms designs for CSP....................... 78 B.1.1 Tie simplex calculation...................... 78 B.1.2 Methods comparisons....................... 78
C Appendix Lattice Boltzmann Methods 81 C.1 Integration of Lattice Boltzmann laws to recover the Navier-Stokes equations................................. 81
viii
1.1 Two dimensional representation of two to six order simplex...... 4 1.2 Representation of tie-lines for a four components system {CO 2 , C 1 , C 4 , C 10 } at T = 345 K and P = 50 bars (a) and tie-triangles for system {CO 2 , N 2 , C 1 , H 2 S} at T = 130 K and P = 100 bar (b).................... 6 1.3 Ternary diagram for system {CO 2 , C 1 , C 16 } at p = 100 bars and T = 323 K................................. 10 1.4 Representation of tie-triangle, intersecting composition at two different pressures for a four components system {CO 2 , N 2 , C 1 , H 2 S}...... 11 1.5 Sensitivity of the methods to the shift parameter............ 14 1.6 Phase diagram for {C 1 , C 10 , CO 2 , H 2 O} at P = 50 bar (left) and 100 bar (right) T = 280K........................... 15 1.7 Phase diagram for {C 1 , N 2 , CO 2 , H 2 S} at P = 100 bars T = 80 K (left) and 140 K (right)............................. 16 1.8 Degeneration of tie triangle into tie line for {C 1 , C 10 , CO 2 , H 2 O} at p = 150 bars, T = 373 K.......................... 17 1.9 Representation of composition distributions for four components sys- tems {C 1 , C 10 , CO 2 , H 2 O} at t = 10 days and Projection in the com- positional space with tie triangles at P = 40 bar(b).......... 18 1.10 Representation of the initial guess selection for two phases...... 19 1.11 Representation of simulation results and projections within the CS for {C 1 , C 10 , CO 2 , H 2 O} system at t = 10 days............... 21 1.12 Representation of simulation results for {C 1 , C 10 , CO 2 , H 2 O} system at t = 10 days................................. 21
x
1.13 Composition distributions for a 6 components systems {C 1 , C 10 , CO 2 , N C 5 , H 2 S, H 2 O} at t = 10 days............................... 22
2.1 (a) D2Q9 lattice, definition of lattice unit, and discrete velocities; (b) example of direction specific density distribution function f. Source [29]. 30 2.2 Illustration of mid-plane bounce-back movement of direction specific densities fi. The effective wall location is halfway between the fluid and solid nodes. Source [29]........................ 32 2.3 Flow in an open Channel......................... 35 2.4 Flow around a cylinder.......................... 36 2.5 Flow in a porous media.......................... 37 2.6 Representation of the pressure-density according to Eq. 2.19. ψ 0 = 4 and ρ 0 = 200. Two phases system for interaction amplitude ‖G‖ > 92 .4..................................... 38 2.7 Phase separation in a open system with periodic boundary conditions. The liquid phase is defined arbitrarily and corresponds to a value larger than a given threshold.......................... 39 2.8 Density distribution over time in a porous media. Capillary effects are here neglected and no boundaries are accounted for at the edges.... 41 2.9 Representation of the D3Q19 lattice used for the three dimensional extension of the code........................... 42 2.10 Gravity segregation in a 3D system with closed boundary at the bottom. 43 2.11 Velocity field in a three dimensional channel at different time steps.. 44 2.12 Flow around an obstacle in a three dimensional case.......... 45 2.13 Simulation of the contact angle for Gads=-200 and G=-120...... 47 2.14 Simulation of a capillary rise for a 300 × 300 system for g = -0. Gads = −250 and ρ = 523......................... 48 2.15 Young Laplace linear correlation between radius and pressure drop.. 49 2.16 Simulation of a drainage process in the abscence of gravity ρin = 100 and ρw = 523................................ 50
xi
Enhanced oil recovery (EOR) of heavy hydrocarbons usually involve thermal pro- cesses that are described using a thermal-compositional model [3]. The equations that describe the flow, transport and thermodynamic behavior include mass and en- ergy conservation and thermodynamic-equilibrium relations. The accurate descrip- tion of the phase behavior of the multi-component multiphase mixtures as a function of pressure and temperature is a major challenge in compositional flow simulation. A thermodynamic approach using an Equations of State (EoS) is usually employed to describe the phase behavior. It is possible to determine the state of a mixture (phases) based only on the overall component compositions, pressure, and temperature. The use of an EoS based approach makes the simulation process time consuming. The thermodynamic-equilibrium equations are usually solved iteratively for each computa- tional gridblock at every Newton iteration during a time step. Accurate and efficient integration of thermodynamic computations in compositional simulation has been the subject of several recent books [1], [8]. One of the widely used simplifications is the assumption of constant K-values, [4]. In this approach, the component equilibrium ratios between are taken to be a function
1
of pressure and temperature only, and this reduces the complexity of dealing with the nonlinear behaviors due to compositional dependence of the phase equilibrium equations. Extensions for this K-value approach have been proposed, [11], in which the equilibrium ratios are assumed to depend on the overall fraction of one of the components. However, this approximation is accurate only for low temperatures and can lead to difficulties in representing the phase behavior in the near-critical region. The determination of the phase state of the mixture is necessary to solve the sys- tem of conservation laws that describes multi-component, multi-phase transport in porous media. Once the phase state of a given gridblock is determined for the current nonlinear (Newton) iteration, the solution for the next iteration can be computed. The phase-state definition is an important aspect of compositional simulation. One needs to track the appearance and disappearance of the various phases. The disap- pearance of a phase is detected based on the saturation. When a phase saturation becomes negative, the phase is assumed to have disappeared. Phase appearance is usually treated using a phase stability analysis [9]. In this case, we need to determine the equilibrium state by computing the tangent plane distance (TPD) of the Gibbs energy function. This procedure must be performed for every single-phase cell at every nonlinear iteration of the flow computation process. It can be time consuming, especially when the numbers of phases and components are large. Michelsen et al. [6] presented a method to speed up the phase behavior computa- tions for compositional mixtures in pipe flow. They proposed criteria for avoiding the phase stability test in single-phase fluids. This approach is very efficient for transient simulation where the compositions change slowly. Since most nonlinear solvers for reservoir simulation include limits on the compositional changes during an iteration, this method can be applied to gas injection processes as well. However, it is difficult to extend this method to systems with more than two phases, or for more sophisti- cated nonlinear solvers, in which significant changes in the mixture composition in gridblock can take place. While two-phase EoS computations associated with compositional flow simula- tion are becoming quite robust and efficient, reliable methods for handling multi- component fluids with more than two phases are generally lacking. The purpose of
Figure 1.1: Two dimensional representation of two to six order simplex.
where np is the number of phases. Thus, we have a tie-line for two phases, a tie- triangle for three phases, etc. The tie-simplex can be represented by the np vertices that correspond to the equilibrium fractions, namely,
V 1 = xi, 1 , V 2 = xi, 2 ,... Vnp = xi,np , (1.3)
where xi,j is the mole fraction of component i in phase j. The relationship between the overall mole fraction, zi, and the phase equilibrium fractions is given by
zi =
∑^ np j=
xi,j νj. (1.4)
Notice that there are only nc − 1 independent zi because of the constraint that phase fractions must add up to unity. Combining this equation with the linear constraint for νj , we have
∑^ np j=
xi,j νj = zi, i = 1,... , nc − 1 (1.5) ∑^ np j=
νj = 1 (1.6)
Now, consider the subspace J of {i = 1,... , nc − 1 } with dimension np − 1. Then, we can represent the vector ν as the solution of the equation xJ e
(^) ν =
zJ 1
(^) , (1.7)
where e =
[ 1 ,... , 1
] is the unit vector. Substitution of this solution in the other equations, I = {i = 1,... , nc − 1 }/J, we finally get a system that parameterizes the
compositional space, in terms of tie-simplexes as follows:
zI = xI ν = xI
xJ e
− 1 zJ 1
(^) , (1.8)
or in more familiar form
zI = AzJ + b, (1.9)
where A is a matrix whose dimensions are [(nc − np) × (np − 1)] and b is a vector with [nc − np] entries. Equation (1.8) defines a complete parametrization for multi- component systems with an arbitrary number of phases.
We extend the tie-line approach for the representation of the two-phase compositional space (i.e., two hydrocarbon phases) with a predefined density, [5]. The method is extended for any number of phases, and we use a tie-simplex for the representation of the multi-phase (more than two phases) thermodynamic equilibrium of mixtures with large numbers of components. We start with a definition of the initial ‘face’ of a tie simplex. For a system with np-phases, this face represents an np-dimensional subspace of the nc-dimensional compositional space. For two-phase systems, we need to start from the edge that represents the longest tie-line; for three phases, we start from the face (triangle) that encloses the largest tie-triangle, and for four phases, one starts from the tetrahedral cell that contains the largest tie-tetrahedron, etc. From the initial ‘face’, a negative-flash procedure is performed in order to find the first tie-simplex. This simplex is defined by the phase fraction vector, x. Starting from the center of the simplex
z =
∑ j
xj n^1 p
An orthogonal shift with length D in the direction of one of the secondary components, i can be made; the corresponding coordinates for the shift in the primary components
I is equal to nc − np can be prohibitive. For practical general-purpose simulation, adaptive tabulation of the tie-simplexes is recommended.
The tie-line interpolation procedure presented in [15] is extended to general multi- component systems, in which an arbitrary number of phases can coexist at equilib- rium. Interpolation in tie-simplex space is possible from observations of the smooth- ness of the solution space associated with flash computations when analyzed in terms of the tie-simplex, γ, parameter, [5]. Interpolation among tie-simplexes as a function of the γ-parameter is performed using the natural-neighbor interpolation method, [12], where the nc − np-dimensional tie-simplex space is triangulated. For any tessellation of scattered data, interpolation of any point inside a hyper-triangle is performed, namely,
λi =
∑^ n k=
ai,kγk + bi, i = 1,... , n + 1, (1.12)
where the λi denote the barycenter coordinates of each neighbor (n + 1 neighbors for n-dimensional space), γk is the coordinate of the interpolated point in the k direction. In order to find the coefficients ai,k and bi, we use the barycenter coordinates, which serve as a basis vector for each vertex. Thus, we can write a system of equations for each vertex as
ei = Γai + bi, ∀i ∈ 1 ,... , n + 1 (1.13)
Here, Γ is a matrix of the coordinates of all the neighbors ((n + 1) × n), and ei is a unit vector (e 1 = [1, 0 ,... , 0], e 2 = [0, 1 , 0 ,... , 0], etc.). In order to find coefficients ai and bi, we solve Eq. 1.13 for each ei. That is, we compute the inverse of the matrix [Γ 1]. For a given z, the tie-simplex that intersects this composition must be computed. Inside a hyper-triangle, linear interpolation is used. For this purpose, the exact solution of the following problem:
ν = αtzJ + βt, ∀t, (1.14)
fi =
∑ j
xti,j νj − zi = 0, i ∈ I. (1.15)
is computed. For the compositional space, the dimension n from Eq. 1.12 is equal to nc − np. Using Eq. 1.12, we can write the following linear system
fAγ = −fb. (1.16)
The solution of this system, γ, provides the barycenter coordinates for tie-simplex interpolation.
In this section, we describe how to use the CSP framework to deal with phase- behavior computations of multi-phase, multi-component systems. First, a general preconditioning strategy based on the negative-flash procedure is presented. Then, computational results for two and three-phase computations are reported.
The main purpose of this work is to demonstrate that the tie-simplex parameterization of the compositional space combined with a negative-flash procedure provides a gen- eral method to solve phase behavior problems of multi-phase systems. The essence of the negative-flash strategy and challenges related to standard EoS methods are described first. The phase behavior of multi-phase, multi-component systems is usually defined by thermodynamical-equilibrium relations. In compositional flow simulation, the first step is the phase-stability test, which helps to determine the number of stable phases for the mixture at prevailing p and T. Usually, this phase-stability test is performed using a minimization of Gibbs free energy [8], or the tangents plane distance (TPD) criterion [9].