Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
VARIABLE DISCRETIZATION METHOD FOR FLOW SIMULATION ON COMPLEX GEOLOGICAL MODELS
Document Type and Number:
WIPO Patent Application WO/2012/071090
Kind Code:
A1
Abstract:
A variable discretization method for general multiphase flow simulation in a producing hydrocarbon reservoir. For subsurface regions for which a regular or Voronoi computational mesh is suitable, a finite difference/finite volume method ("FDM") is used to discretize numerical solution of the differential equations governing fluid flow (101). For subsurface regions with more complex geometries, a finite element method ("FEM") is used. The invention combines FDM and FEM in a single computational framework (102). Mathematical coupling at interfaces between different discretization regions is accomplished by decomposing individual phase velocity into an averaged component and a correction term. The averaged velocity component may be determined from pressure and averaged capillary pressure and other properties based on the discretization method employed, while the velocity correction term may be computed using a multipoint flux approximation type method, which may be reduced to two-point flux approximation for simple grid and permeability fields.

Inventors:
YANG YAHAN (US)
BI LINFENG (US)
GUO WEIDONG (US)
PARASHKEVOV ROSSEN (US)
WU XIAO-HUI (US)
Application Number:
PCT/US2011/047612
Publication Date:
May 31, 2012
Filing Date:
August 12, 2011
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
EXXONMOBIL UPSTREAM RES CO (US)
YANG YAHAN (US)
BI LINFENG (US)
GUO WEIDONG (US)
PARASHKEVOV ROSSEN (US)
WU XIAO-HUI (US)
International Classes:
G06G7/58
Foreign References:
US20080208539A12008-08-28
US20090306945A12009-12-10
US20100198638A12010-08-05
Other References:
MATTHAI ET AL.: "Finite element-node-centered Finite-volume Two-Phase-Flow Experiments with Fractured Rock Represented by Unstructured Hybrid-Element Meshes", SPE RESERVOIR EVALUATION & ENGINEERING, vol. 10, no. 6, December 2007 (2007-12-01), pages 740 - 756, XP055129508, Retrieved from the Internet [retrieved on 20111212]
WHEELER ET AL.: "Enhanced velocity mixed finite element methods for flow in multiblock domains", COMPUTATIONAL GEOSCIENCES, vol. 6, December 2002 (2002-12-01), pages 315 - 332, XP019956512, Retrieved from the Internet [retrieved on 20111212]
See also references of EP 2643790A4
Attorney, Agent or Firm:
JENSEN, Nathan, O. et al. (CORP-URC-SW-359P.O. Box 218, Houston TX, US)
Download PDF:
Claims:
CLAIMS

1. A method for simulating multi-phase flow in a producing hydrocarbon reservoir, comprising:

generating a model of the reservoir made up of discrete cells;

using a computer to numerically solve differential equations for pressure and for fluid saturation, by phase, for the reservoir, wherein:

a finite element discretization method ("FEM") is used for the numerical solution in at least one region of the model, and a finite difference or finite volume discretization method (collectively, "FDM") is used for remaining regions of the model; and

phase flow rate computation is made consistent in all regions and across interfaces between regions by decomposing each individual phase velocity into an averaged component and a correction term; and

downloading, storing in memory or other data storage, or displaying at least one of hydrocarbon saturations, flow rates, and masses, for at least one phase, at one or more locations in the model.

2. The method of claim 1, wherein FEM regions of the model employ a flexible computational grid and FDM regions employ a structured or Voronoi grid.

3. The method of claim 2, wherein at least one FEM region contains intersecting faults, pinchouts, or lies near an internal surface.

4. The method of claim 1, wherein the averaged velocity component is determined from pressure and averaged capillary pressure and other properties based on the discretization method employed, while the velocity correction term is computed using a multi-point flux approximation ("MPFA") type method, which may be reduced to TPFA for simple grid and permeability fields.

5. The method of claim 4, wherein the multi-point flux approximation type method is a two-point flux approximation ("TPFA") type method for simple grids and permeability fields.

6. The method of claim 1, wherein different regions are coupled through continuity of averaged fluxes determined using rock absolute permeability.

7. The method of claim 1, wherein the solving for pressure and for fluid saturation accounts for phase equilibrium, compressibility, capillary and gravitational effects.

8. The method of claim 1, wherein in at least one FEM region, mass conservation is used together with a volume balance equation for multiphase flow, in which phase flow rates are computed from phase absolute velocity, and phase absolute velocity is computed as a sum of an averaged absolute velocity and a correction term determined using a modified MPFA method.

9. The method of claim 8, wherein the averaged absolute velocity is computed as a function of absolute permeability but independent of relative permeability.

10. The method of claim 4, wherein phase velocities for MPFA are computed either directly or equivalently from an average velocity.

11. The method of claim 10, wherein a mixed finite element method ("MFEM") is used in an FEM region, in which decomposition of phase velocity is based on theoretical equivalence of computing phase velocities either directly or from an average velocity using a modified MPFA approach.

12. The method of claim 1, wherein fluid saturations are held fixed at assumed values during solving for pressure, and then fluid saturations are solved for.

13. The method of claim 12, further comprising using the fluid saturation solutions to update the assumed fluid saturation values, and solving again for pressure and fluid saturations.

14. The method of claim 1, wherein multiple fluid phases are considered, including liquid, vapor, and aqueous phases.

15. The method of claim 1, wherein the making the phase flow rate computations consistent further comprises using the same mathematical expressions for pressure and saturation calculations for FEM regions as are used for FDM regions.

16. The method of claim 1, wherein at an interface between an FEM region and an FDM region, conditions are imposed on the phase flow rate computations such that phase velocity is continuous across the interface and that averaged absolute phase velocity is the same on the FEM side of the interface as on the FDM side.

17. The method of claim 1, wherein the flow rate computation is made in at least one FEM region using a mixed finite-element method ("MFEM") generalized to handle multiphase flow, accounting for phase equilibrium, compressibility, capillary and gravitational effects, in which an MFEM mass conservation equation for single-phase flow is replaced with a volume balance equation for multiphase flow.

18. The method of claim 17, wherein said phase velocity correction term, 5uv, accounts for capillary and gravity effects, and is computed using a using a modified multi-point flux approximation ("MPFA") method wherein:

an interaction region is set up around each vertex point in the FEM's grid, each such interaction region containing portions of FEM grid cells that include the vertex point, each such portion being called a sub-interaction region; a linear pressure function, δρν, is found for each sub-interaction region such that the following conditions are satisfied:

(i) ν = Pc,v - Pea at cell centers, where pc,v is capillary pressure of phase v, and ^c a is average value of capillary pressure;

(ii) δρν is continuous at centers of cell interfaces; and

(iii) for each sub-face between adjoining sub-interaction regions, Suv is computed from 5uv = -K■ + (pv - pa )g z], where pv is fluid density for phase v, pa is average density of the fluids, g is acceleration due to gravity constant, and z is a unit vector in z- direction, which expression for duv, when evaluated in each sub-interaction region, is constrained to be continuous across each sub-face in its normal direction.

19. The method of claim 1, wherein the flow rate computation is made in at least one FDM region using a multi-point flux approximation method ("MPFA") wherein the averaged velocity, ua, is obtained by steps comprising:

setting up an interaction region around each vertex point in the FDM's grid, each such interaction region containing portions of FDM grid cells that include the vertex point, each such portion being called a sub-interaction region;

finding a linear pressure function, δρα, for each sub-interaction region such that the following conditions are satisfied:

(i) pa = p+ Pea at cell centers, where p is pressure, and pc,a is average value of capillary pressure;

(ii) pa is continuous at centers of cell interfaces; and

(iii) average velocity for each sub-face between adjoining sub-interaction regions is calculated from ua = -K - [Vpa + pagz] , where pa is average density, g is acceleration due to gravity constant, and z is a unit vector in z-direction, which expression for ua, when evaluated in each sub-interaction region, is constrained to be continuous across each sub-face in its normal direction.

20. The method of claim 1, further comprising using the hydrocarbon saturations, flow rates, and masses to update the model of the reservoir, and repeating the method for a next time step.

21. A method for managing production of hydrocarbons from a reservoir, comprising: simulating fluid flow in the reservoir using a method of claim 1 ; and

managing production of hydrocarbons from the reservoir based at least in part on the simulation.

Description:
VARIABLE DISCRETIZATION METHOD FOR FLOW SIMULATION ON

COMPLEX GEOLOGICAL MODELS

CROSS-REFERENCE TO RELATED APPLICATION [0001] This application claims the priority benefit of U.S. Provisional Patent

Application 61/416,449 filed 23 November 2010 entitled VARIABLE DISCRETIZATION METHOD FOR FLOW SIMULATION ON COMPLEX GEOLOGICAL MODELS, the entirety of which is incorporated by reference herein.

FIELD OF THE INVENTION

[0002] This invention relates generally to the field of development of oil or gas fields, and more particularly to reservoir simulation. Specifically, the invention is a method for numerically solving fluid flow equations in complex subsurface geometries.

BACKGROUND OF THE INVENTION

[0003] Accurate prediction of flow behaviors in reservoirs is essential for effective reservoir management. Reservoir simulation is the use of a physical model of a reservoir on a computer to test how the reservoir will perform as production or stimulation proceeds over time, i.e. over a series of discrete time steps. The reservoir model is spatially discretized so that the differential equations governing fluid flow can be solved by numerical methods. Discretization methods commonly used today for reservoir simulation can be generally classified into one of two categories: finite difference/finite volume methods (FDM) or finite element methods (FEM). Of the different choices, each numerical method for solving differential equations on a computer has advantages and disadvantages. It is well-known that a finite difference method typically is simpler, easier to implement, and executes faster. For this reason, finite difference/finite volume methods are used widely in the industry today. Unfortunately, finite difference methods such as two-point flux approximation (TPFA) require Voronoi grids, where each cell boundary is perpendicular to the line joining centers of the two neighboring cells; see, for example, Heinrich. This is a severe limitation because building a Voronoi grid is challenging if not impossible when a reservoir model contains intersecting faults, pinchouts, or other irregular geological features. Finite element methods, on the other hand, are more complex mathematically, more difficult to implement, and take longer to execute. Because of this, finite element methods are not commonly used in reservoir simulation, even though they have the advantage of being applicable to models with flexible grids and using a general permeability tensor. Because of the implementation and efficiency issues associated with finite element and other alternatives, finite difference/finite volume methods such as TPFA are used in practice sometimes in situations where they should not, throwing into doubt the validity of simulation results.

[0004] While extensive studies exist in literature on mathematical theory of finite difference/finite volume methods for reservoir simulation, papers published on application of finite element methods to modeling general multiphase (gas or liquid) flow are limited. Most of the publications related to FEM methods have made simplifications either on fluid phase behavior, or simplifying treatments on gravitational or capillary effect. For example, Cai et al. proposed a new control-volume mixed finite element method for irregular block-centered quadrilateral grids and tested it on single phase flow problems. Hoteit et al. (2002) carried out analysis of mixed finite element and mixed-hybrid finite element methods for single phase problems. For multiphase flow, Fung et al. developed a control-volume finite-element method (CVFEM) for flow simulation to reduce grid-orientation effects. For CVFEM, mass conservation is honored on the dual grid. By comparison, a mixed finite element method (MFEM) offers a more natural way for achieving mass conservation, which is satisfied on the original grid. Chavent et al. used MFEM to simulate incompressible two-phase flow in two dimensions. MFEM was also used by Darlow et al. for solving miscible displacement problems and by Ewing and Heinemann for performing compositional simulation while neglecting gravity and capillary pressure. To improve accuracy, Durlofsky et al. developed a mixed finite element method for modeling three phase, multicomponent systems using IMPES type formulation. A similar MFEM approach was employed by Hoteit et al. (2006) in combination with discontinuous Galerkin to capture sharp saturation gradient. For parallel multiphysics and multiscale simulation, a multiblock/multidomain approach using mixed and expanded mixed methods and mortar space to handle non-matching grids was proposed by Wheeler et al.

[0005] Besides FEM methods, the multipoint flux approximation (MPFA, see for example, Aavatsmark et al, Chen et al, Edwards et al.) has been developed to handle permeability tensor and flexible grids for reservoir simulation. It has been shown that with special choices of finite element spaces and the quadrature rule, MP FA may be derived from FEM methods.

SUMMARY OF THE INVENTION

[0006] In one embodiment, the invention is a method for simulating multi-phase flow in a producing hydrocarbon reservoir, comprising:

(a) generating a model of the reservoir made up of discrete cells;

(b) using a computer to numerically solve differential equations for pressure and for fluid saturation, by phase, for the reservoir, wherein:

(i) a finite element discretization method ("FEM") is used for the numerical solution in at least one region of the model, and a finite difference or finite volume discretization method (collectively, "FDM") is used for remaining regions of the model; and

(ii) phase flow rate computation is made consistent in all regions and across interfaces between regions by decomposing each individual phase velocity into an averaged component and a correction term determined using MPFA type approaches; and

(c) downloading, storing in memory or other data storage, or displaying at least one of hydrocarbon saturations, flow rates, and masses, for at least one phase, at one or more locations in the model.

[0007] It will be clear to persons who work in technical field that practical applications of the invention require use of a computer, programmed in accordance with the teachings of this disclosure. Thus, the invention is computer implemented.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The present invention and its advantages will be better understood by referring to the following detailed description and the attached drawings in which:

[0009] Fig. 1 is a schematic diagram of a reservoir model for flow simulation using a variable discretization method of the present invention;

[0010] Fig. 2 is a schematic diagram of a computational grid for MFEM discretization and locations of pressure unknowns in the present inventive method;

[0011] Fig. 3 is a schematic of a 2D MPFA interaction region (such as the example interaction region shown in Fig. 2) with four sub-interaction regions shown for computing phase velocity corrections for MFEM, where black dots and grey dots are locations of primary pressure unknowns and intermediate pressure unknowns, respectively;

[0012] Fig. 4 is a schematic diagram of a 2D MPFA interaction region for computing averaged velocity for MPFA discretization method, where black dots and grey dots are locations of primary pressure unknowns and intermediate pressure unknowns, respectively;

[0013] Fig. 5 is a schematic diagram of a 2D MPFA interaction region for computing individual phase absolute velocity for MPFA discretization method, where black dots and grey dots are locations of primary pressure unknowns and intermediate pressure unknowns, respectively;

[0014] Fig. 6 is a schematic diagram showing a computational region using MFEM discretization method and a computational region using MPFA discretization method, where black dots and grey dots symbolize cell pressure unknowns and face pressure unknowns, respectively;

[0015] Fig. 7 is a schematic diagram of a computational region using MFEM discretization method and a computational region using TPFA discretization method, where black dots and grey dots symbolize cell pressure unknowns and face pressure unknowns, respectively;

[0016] Fig. 8 is a schematic diagram of a computational region using MPFA discretization method and a computational region using TPFA discretization method, where black dots symbolize cell pressure unknowns;

[0017] Fig. 9 is a schematic diagram of a computational region using a CVFEM discretization method and a computational region using an MFEM discretization method, where black dots symbolize cell or node pressure unknowns, while grey dots indicate face pressure unknowns; and

[0018] Fig. 10 is a flowchart showing basic steps in one embodiment of the present inventive method.

[0019] The invention will be described in connection with example embodiments.

However, to the extent that the following detailed description is specific to a particular embodiment or a particular use of the invention, this is intended to be illustrative only, and is not to be construed as limiting the scope of the invention. On the contrary, it is intended to cover all alternatives, modifications and equivalents that may be included within the scope of the invention, as defined by the appended claims. DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS

[0020] The present invention combines finite difference and finite element methods in a single computational framework. The result is a variable discretization method for general multiphase flow simulation. The objective is to capture the strength and avoid the weakness of finite difference and finite element approaches. With this inventive variable discretization method, the reservoir may be divided into several regions and then different discretization methods are applied to different regions depending on the geometry and permeability properties there. For example, for regions containing intersecting faults or lying near an internal surface, a mixed finite element method or a control volume finite element method may be applied after a flexible computational mesh is created; see Fig. 1. For the bulk of the reservoir away from the geological complexities, a structured or Voronoi grid may be constructed and a simpler multipoint flux approximation or a two point flux approximation may be employed instead.

[0021] An important aspect of the present invention's variable discretization method is to establish a consistent formulation for multiphase flow simulation and the mathematical coupling at interfaces between different discretization regions. For different discretization methods, the type of variables and the form of equations for determining flow velocity are different. In addition, different phases usually have different capillary and gravitational forces acting on them. It is thus important to have a consistent method for the computation of flow rates for all phases. Consistency is achieved in the present invention through a new technique which decomposes individual phase velocity into an averaged component and a correction term. The averaged velocity component is determined from pressure, i.e. the ambient pressure, and averaged capillary pressure and other properties based on the discretization method employed. The velocity correction term is computed using an MPFA type method, which is applicable for structured or unstructured grids, with scalar or tensorial permeability fields. This method of deriving phase velocity is thus different from the previous methods, for example, the method of Durlofsky et al, where a total velocity is first defined for each cell based on cell permeability and relative permeability values, and then phase velocity for each edge is computed using upwinding and averaging from two elements sharing the edge (face).

[0022] The method disclosed herein for computing velocity also plays an important role in establishing the coupling between regions using different discretization methods. Physically, different regions are coupled together by flow. The coupling method ensures that a consistent velocity is obtained for the interface separating regions where grid geometry and permeability properties potentially may be substantially different. Herein, consistency means not only that velocity is continuous across the interface, but also that the method is consistent as well, i.e. uses the same formulas in all steps for pressure and saturation solves to compute the same physical quantity.

[0023] The present invention's variable discretization method may be combined with different formulation methods, e.g., IMPES (implicit pressure and explicit saturations), sequential implicit, IMPSAT (implicit pressure and saturations), or coupled implicit, to solve the coupled multiphase flow problem. To illustrate this, a sequential implicit method is adapted next to solve pressure and saturation equations (once for each time step). Due to the rigorous treatment for phase velocity, consistent forms of flow expressions are employed in each step to minimize errors and improve stability for flow simulation. By taking advantage of the consistency and similarities in the computational flows, the present method for multiphase flow calculations also improves efficiency and facilitates code implementation for combining finite difference and finite element methods in a single computational framework.

1. Consistent Velocity Calculations for Multiphase Flow

[0024] Pressure solve, i.e. solution for pressure for multiphase flow simulation, is based on a combination of a mixed finite-element method, a control volume finite element, a multipoint flux approximation and a two point flux approximation. The advantage of using a mixed finite-element method is that the method can handle complex reservoir geometry and internal geological features such as faults and pinchouts. The mixed finite element method also can work with very general permeability and flexible computational meshes, in addition to honoring mass conservation. In this section, the well-known mixed finite element method for single phase, incompressible flow is first described. After that, the method is generalized to multiphase systems, accounting for phase equilibrium, compressibility, capillary pressure, and gravity. The new derivation of this embodiment of the invention computes phase velocity by defining a phase absolute velocity which in its basic form involves absolute permeability only. Phase absolute velocity is derived as the sum of an averaged velocity which is solved using MFEM and a local correction term determined using modified MPFA method. Extension of MPFA as a discretization method for multiphase flow follows a similar pattern and is also presented.

1.1 MFEM for Sin gle Phase Flow [0025] A mixed finite element method for single phase flow solves the mass conservation equation and Darcy's law

V - w = /

i (1) where u is fluid velocity, p is pressure, and / is a source/sink term. For simplicity, the lowest order Raviart-Thomas spaces RT0 are used. First, Eq. (1) can be rewritten in weak form as

and = o (3)

where | E | and \r\ are volume and face area for cell E, v is velocity test function, and^, ps, p s , u s , and v s are cell averaged source/sink term, cell averaged pressure, face averaged pressure, face velocity, and face averaged test velocity, respectively, and the sum over s is a sum over all faces of the cell E. To construct the linear system, face velocity is first expressed in terms of ps and p s by inverting a local mass matrix M E , which is defined by the following

Imposing continuity on velocity across each internal face then results in equations involving system unknowns p and p s only. The final step is to solve p and p s by coupling velocity continuity equations with mass conservation, Eq. (2).

1.2 MFEM for Multiphase Flow

[0026] The mixed finite-element method described above may be generalized to handle multiphase flow, accounting for phase equilibrium, compressibility, capillary and gravitational effects. The idea is to replace mass conservation with a volume balance equation for multiphase flow. In deriving the volume balance equation, phase velocity and flow rates are computed using a new method that computes phase flow rates from phase absolute velocity. Phase absolute velocity is in turn defined as sum of an averaged absolute velocity and a correction term determined using a modified MPFA method. [0027] This approach has the advantage that the same forms of expressions for phase flow can be written for pressure solve and transport solve to make the two steps consistent with each other. With sequential implicit method, some volume discrepancy error is expected due to the fact that the equations are not solved simultaneously, flow relations are nonlinear, and other reasons. This consistent approach for flow calculations, together with conservation of total velocity imposed during the saturation solve, reduces the errors in phase volume balance, which is important for time step stability of flow simulation.

[0028] The absolute velocity u a accounting for averaged capillary and gravity effects is defined as the solution to the following: K- 1 u a + V(p + Pc> a ) + p a gz = 0 (5) where z is the unit vector in z-direction . The corresponding equation in weak form is

τ τ τ τ

\ (K- l u) - vdx - p E -∑v s -|r s |+∑ / > s - v s -|r s | = p c a E -∑v s -\r s \ -∑p Ci ai S - v s -|r s

[0029] The face average value of capillary pressure, p c , a ,s, may be obtained by interpolating on capillary pressures for cells. Note that p s and p c , a ,s may be combined in Eq. (6), only the sum of the two terms and not the individual value of p c , a ,s impacts the flow solutions. Similar to MFEM for single phase flow, u a may be expressed in terms oip and p s using the mass matrix and Eq. (6).

[0030] Note that relative permeability is not explicitly involved in the equations (5-6) for averaged velocity. This makes the method more efficient because it means the mass matrices are independent of time and so the associated computation (inversion) needs to be performed only once for each cell at the beginning of simulation.

[0031] In order to obtain phase velocity at each cell face, a correction term to the averaged absolute velocity for capillary and gravity effect, 5u v , needs to be computed. For that purpose, the multipoint flux approximation method is modified and applied to each interaction region (dashed box in Fig. 2) set up around each grid vertex point. Figure 2 is a schematic diagram of a computational grid for MFEM discretization. Black dots symbolize cell pressure unknowns, while grey dots stand for face pressure unknowns. The box with broken lines is an example interaction region. [0032] With the modified multipoint flux approximation, a linear pressure function, ν, is sought for each sub-interaction region belonging to a grid cell such that the following conditions are satisfied (see Fig. 3),

1. At cell centers, δρ ν = p c , v - p c , a where both phase capillary pressure and averaged capillary pressure may have different values for different sub-interaction regions;

2. δρ ν is continuous at face centers;

3. Velocity correction for each sub-face contained within the interaction region, 5u v = -K■ + (p v - p a )g z] evaluated on each sub-interaction region, is continuous in normal direction across the face. Note in this equation both phase density and averaged density may have different values for different sub-interaction regions.

Figure 3 is a schematic diagram of a 2D MPFA interaction region, showing constrained values and a velocity expression for each sub-region for determining the velocity correction term. Black dots indicate locations where values of linear pressure interpolations are constrained, i.e. the value of δρ ν must be equal to p c , v - Pc,a- The grey dots indicate positions where MPFA intermediate unknowns are located. The velocity correction term for a whole face may be obtained by combining corresponding sub-face correction terms obtained on two neighboring interaction regions.

[0033] The use of an MPFA method here has advantages over simple averaging in that MPFA calculations are local and results are consistent with the grid geometry and prescribed permeability field. Simple averaging, on the other hand, may yield an unrealistic phase velocity such as non-zero flow rate when there should not be any flow due to blockage in flow path. Finally, phase absolute velocity is defined as

u v = u a + 5u v (7) Equations for phase flow rate and mass flow rate then follow

v = |r|A,(S v (8)

[0034] where component phase density ξ ίν , and phase saturation 5 * are obtained from fluid property calculations. Mobility ^(S) in Eqs. (8-9) may be determined using a displacement model. For stability, phase mobility is 100% upstream weighted. Eqs. (7-9) may be regarded as a natural generalization of the corresponding equations for TPFA, where phase flow rate is written as product of |r|/L v (5 * ) and a velocity term computed based on potential difference between two neighboring cells and absolute permeability. There are two implications of this observation. First, this method preserves the hyperbolic character of the transport equations so the system is amenable to efficient solution methods when capillary pressure is neglected and upwinding is applied. Second, similarity in flow expressions for TPFA, MFEM and other methods makes it easier to establish a common computational framework in the simulator for performing different discretization calculations.

[0035] Using Eqs. (7-9), the counterpart of mass conservation for multiphase flow may be derived using volume balance equation, which states that at any point in the reservoir, fluid fills the entire pore volume, or

v, = v p (10)

Linearizing Eq. (10) and using Eq. (9) leads to the following

where superscript u indicates a beginning of time step value, and dt is time step size. Fluid volume and derivatives in the equation above are again taken from fluid property calculations. The system of equations to solve for ps and p s are obtained by imposing velocity continuity on u a and then combining the resulting equations with Eq. (11). Assuming saturation values are fixed, cell averaged pressure and face averaged pressure can be solved. Afterwards, absolute velocity u a , phase velocity u v , and mass flow rate Ui can be recovered using Eqs. (6), (7), and (9).

1.3 MPFA for Multiphase Flow

[0036] MPFA has been proposed for irregular grids. It can also handle general permeability fields. Conceptually, pressure interpolation in MPFA is not completely self- consistent in that different values for pressure at the same intermediate unknown location may be produced depending on the interaction region being processed. The attractive aspect of MPFA, though, is that the method uses fewer system unknown variables and so may be less expensive compared to MFEM. In terms of computational procedure, MP FA is different from MFEM mainly in the way face velocity is derived and used, and this difference has very significant mathematical consequences.

[0037] For MPFA calculations, interaction regions need to be set up first around the vertex points. There are two different methods to derive phase velocity expressions for MPFA. With the first method, the procedure is similar to that for MFEM. First, an average velocity is computed corresponding to values of cell pressure, averaged capillary pressure, and averaged density. For that purpose, a linear pressure function, p a , is sought for each sub- interaction region belonging to a grid cell (see Fig. 4) such that

1. At cell centers, p a = p+ p c,a where averaged capillary pressure may have different values for different sub-interaction;

2. p a is continuous at face centers;

3. Average velocity for each sub-face contained within the interaction region, u a = -K■ + p a gz] evaluated on each sub-interaction region, is continuous in the normal direction across the face. Note that averaged density in this computation may have different values for different sub-interaction regions.

[0038] Figure 4 is a schematic diagram of a 2D MPFA interaction region, with the black dots showing locations where values of linear pressure interpolations are constrained, and showing a velocity expression for each sub-region for determining MPFA averaged velocity. Grey dots indicate positions where MPFA intermediate unknowns are located.

[0039] Similar to the treatment for MFEM, a velocity correction term, Su v , is computed for each phase. The phase absolute velocity u v may then be obtained by combining u a and du v for the sub-faces.

[0040] In the aforementioned second way of deriving phase velocity expressions for MPFA, phase velocity is computed directly without the use of an averaged velocity. To accomplish that, MPFA is modified so as to seek a linear pressure function, p v , for each sub- interaction region belonging to a grid cell (see Fig. 5) such that:

1. p v = p+ pc,v at cell centers;

2. p v is continuous at face centers; 3. Phase velocity for each sub-face contained within the interaction region, u v = -K■ + p v gz] evaluated on each sub-interaction region, is continuous in the normal direction across the face. Note in this equation phase density may have different values for different sub-interaction regions.

Figure 5 is a schematic diagram of a 2D MP FA interaction region, with black dots indicating locations where values of pressure are constrained for linear interpolations, and showing an expression for velocity for each sub-region for determining MPFA phase velocity. Grey dots indicate positions where MPFA intermediate unknowns are located.

[0041] After u v is solved for at the sub-faces, phase absolute velocity for the face may then be obtained by combining those for the sub-faces.

[0042] These two methods of deriving phase absolute velocity may appear to be very different. Fortunately, final results are actually the same because both procedures are linear,

1. e., phase absolute velocity is a linear function of constrained values at cell centers and density terms in the velocity expressions. By adding values of cell center constraints and density terms for deriving u a and du v , it is obvious that superposition of the MPFA pressure interpolation for averaged absolute velocity and the correction term becomes pressure interpolation for the second method, and, consequently, the two procedures are equivalent. This is an important fact because it provides additional theoretical basis for the decomposition of phase velocity which is necessary for MFEM.

[0043] In performing MFEM or MPFA calculations, the averaged capillary pressure and density preferably should be taken as proper averages of the respective variable weighted by saturations, mobility, etc. Depending on the exact form of the weighting scheme, relative permeability may enter indirectly the calculations for absolute velocity. To reduce complexity of code development, however, these averages may be set to zero, provided that necessary checking is in place to ensure the accuracy of solutions.

2. Variable Discretization

[0044] With variable discretization, different discretization methods described above as well as traditional approaches such as TPFA and CVFEM are combined to solve the pressure equation. In solving for the pressure solution, the reservoir may be divided into different regions for which a different discretization method, MFEM, CVFEM, MPFA, or TPFA, may be assigned. In a simulation model, those regions potentially may have substantially different grid geometry and permeability properties. Generally, MFEM is preferable where grids are non-matching, severely distorted, or the permeability field is highly discontinuous. For regions where distortion to the grid is mild and the permeability field is relatively smooth, MPFA or CVFEM may be applied. To reduce the error, use of TPFA should preferably be restricted to areas where the grid is either structured or Voronoi and permeability is either scalar or a diagonal tensor.

[0045] For cells away from the interfaces between regions, the methods described in the previous section are used to generate the linear system to solve for pressure unknowns. For cells at the interfaces, coupling between neighboring regions needs to be established so that calculations of flow are consistent and mass balance is honored. In doing that, velocity derivations presented earlier provide a convenient way to construct coupling equations for different combinations of discretization methods.

2.1 Interface between MFEM and MPFA

[0046] For each interface dividing a MFEM region and a MPFA region, there is no change to the MFEM and MPFA calculations except for the equation for the continuity of velocity for cell faces on the interface. On such faces, it is required that averaged absolute velocity derived based on Eq. (6) for the MFEM side is the same as that derived for the other side using MPFA procedure.

[0047] Consider the 2D model in Fig. 6 as an example. Figure 6 is a schematic diagram of a computational region using a MFEM discretization method and a computational region using a MPFA discretization method. Black dots symbolize cell pressure unknowns, while grey dots indicate face pressure unknowns. Continuity of absolute velocity for edge AB takes the form

^ a, MFEM P 5 ' PlO ' Pll ' Pl2 ' Pl3 ) ^ a, MPFA, [0048] Above, MPFA velocity for side AB is derived based on interaction regions around vertex A and vertex B and so involves cell center pressures p2, P3, ps, pe, Ps, and p . Alternatively, MPFA linear pressure interpolation may make use of side averaged pressure values, pn, pu, and pis, which leads to an expression of velocity as a function of pressures Pis, Pi, Pn, Pe, Pi4, and p . Though both approaches produce a consistent flow field, the former uses the same MPFA procedure as that for cells away from the interface, and so may require less implementation effort.

2.2 Interface between MFEM and TPFA [0049] Similar to the treatment for MFEM and MPFA, there is no change to the

MFEM and TPFA calculations except for the equation for the continuity of velocity for cell faces on the interface. For such faces, it is required that averaged absolute velocity derived based on Eq. (6) for the side using MFEM is the same as that derived based on TPFA method for the other side. Since the cell on the MFEM side may have quite irregular cell geometries and a general form of permeability tensor and so TPFA may not be appropriate, it is desirable to limit TPFA discretization so it does not extend beyond the interface. For that reason, TPFA velocity on any cell face belonging to the interface is preferably computed from face pressure and cell pressure on the TPFA side, rather than two neighboring cell pressures. For the 2D example in Fig. 7, the velocity continuity equation for edge AB takes the form

U a, MFEM iP5 J Pl0 > Pw> Pl2 J Pu ) ~ U a, TPFA (Pn > Pe ) ( 13 )

[0050] Figure 7 is a schematic diagram of a computational region using an MFEM discretization method and a computational region using a TPFA discretization method. Black dots symbolize cell pressure unknowns, while grey dots indicate face pressure unknowns. 2.3 Interface between MPFA and TPFA

[0051] For cells in MPFA and TPFA regions, cell center pressures are the only unknowns. For cell faces at the interface between the two regions, values of velocity computed from the two sides may in general be different. To eliminate ambiguity, the velocity value derived from MPFA may be set to be the face velocity for the purpose of flow calculations. This is because MPFA has a wider range of applicability than TPFA and so may result in a smaller discretization error in general. For the 2D example in Fig. 8, velocity continuity for edge AB is obtained simply by setting u a, AB =u a,MPFA {p 2 , Pi , P 5 , P 6 , Pz , P 9 ) (14)

In Fig. 8, the black dots symbolize cell pressure unknowns.

2.4 Interface between CVFEM and MFEM

[0052] Another option to deal with irregular grids or tensorial permeability field is

CVFEM discretization method. CVFEM is less expensive compared to MFEM, but does not handle permeability discontinuities as accurately. For example, with a checker board permeability field, CVFEM may predict non-zero flow rate even when permeability jumps between a zero and a non-zero value. In the simulation, CVFEM should preferably be applied to regions where permeability jumps are not very large. For CVFEM discretization, unknowns are node (vertex) pressures rather than cell or face pressures, and control volumes are dual cells around vertices of the original grid, see Fig. 9. In Fig. 9, black dots symbolize cell and node pressure unknowns, while grey dots indicate face pressure unknowns. For cell faces on interfaces separating CVFEM and MFEM regions, velocity continuity may be written in terms of node pressures, cell pressures, and face pressures. For the 2D example, illustrated in Fig. 9, the continuity equation for edge AB has the following form: a, CVFEM Pi PlO 1 P\ \ ) U a, MFEM Pl2 ' Pn ' Pl4 ' Pl5 ) · (15)

In Eq. (15), the left hand side is set to be the product of permeability in cell left to edge AB and pressure gradient computed from p 6 , pio, and pn using CVFEM interpolation. For simplicity, the phase velocity correction for edge AB may be computed based on capillary pressure and density values on the CVFEM side. For multiphase volume balance calculations, "half control volumes (polyhedral ADEFG in Fig. 9) are created for nodes lying on the interface. Phase flow rates for faces around half volumes are computed based on CVFEM pressure interpolation for faces in the interior of cells. For "half faces at the interface, phase flow rates are set to be the product of phase velocity for the original grid faces and the area of the half face.

3. Transport Solve

[0053] For the pressure solve using a variable discretization method of the present invention and sequential implicit formulation, reservoir saturations are treated as fixed. The second part of a time step for multiphase flow simulation is to solve for saturations. Similar to the treatment for finite-difference based simulators, total velocity is preferably held constant during the saturation solve. This approach tends to produce more accurate solutions because it reduces at the end of the time step the discrepancy in the total volume balance equation already enforced during the pressure-solve step.

[0054] After solutions for pg and p s are obtained, values of absolute velocity, u a , are recovered using the inverted mass matrix and Eq. (6). Individual phase flow rate and mass flow rate are updated according to Eqs. (7-9), with mobility again taken from the upstream side designated based on flow conditions existing at the beginning of the time step. Total flow rate, F t , is then defined as F, =∑F V (16) It is possible that phase flow may change direction after update based on pressure changes obtained from the pressure solve. In that case, values of u a and consequently the upstream direction for each phase and F v are re-determined so that a mobility upstream weighting scheme for computing F v is consistent with the sign of the actual phase flow rate, under the constraint that the total flow, F t , is preserved. Similar to total flow rate, total mobility is defined as

(17)

To solve for saturations, u a is first expressed as a function of saturations, treating F t as a constant

F,

(18) r (S) A t (S)

Substituting Eq. (18) into Eq. (8) yields expressions for phase rates as functions of saturations only

F„ + |Γ|^¾∑ S)(Su v - Su v , ) (19)

S) ' 1 t (S)

Mass flow rates at constant total phase flow rate

ω

Γ Y . F (20)

[0055] Finally, constraint equations to solve for saturation are simply definitions of phase saturations v v = S v v p (21)

Similar to the pressure solve, linearization is performed on Eq. (21):

where saturation derivatives of mass flow rates are calculated using Eqs. (19) and (20). [0056] Figure 10 is a flowchart showing basic steps in a reservoir simulation using the present inventive method. The improvements made to reservoir simulation by the present invention will occur primarily at steps 101, 102 and 105, although other steps are impacted. At step 101, different integer arrays containing indices of reservoir cells and cell faces belonging to different discretization regions are constructed according to either user input or internal criteria based on cell geometry and permeability properties.

[0057] At step 102, different discretization modules are initialized. Within this initialization step, computations that are not dependent on time are performed and stored in memory to be used later during time stepping. These computations include assembly and inversion of mass matrices for MFEM, solution of intermediate unknowns and calculation of fluxes for all interaction regions for MPFA, etc.

[0058] At step 103, reservoir is initialized. This step determines initial pressure, masses, and saturation conditions for each grid cell in the reservoir, typically based on gravity - capillary pressure equilibrium and specified gas-oil contact and water-oil contact. After the reservoir is initialized, time step calculations are started and repeated until simulation end time is reached.

[0059] At step 104, various rock and fluid properties as well as derivatives of those quantities necessary for simulation are computed. These include computation of relative permeability, fluid volume for each phase, phase saturations, derivative of relative permeability with respect to saturations, derivatives of phase volume with respect to masses, among others.

[0060] At step 105, different discretization modules perform calculations based on volume balance, flux continuity, etc. for the assigned regions as described in this invention to build a global linear system to be used for computing pressure unknowns.

[0061] At step 106, a solver is called to solve the pressure system. At step 107, values of pressure for each cell and flow rates between all neighboring cells are updated based on pressure solution obtained from the solver.

[0062] At step 108, a linear system is constructed based on saturation equations to solve for saturations for the time step. In the process, total phase volumetric flow between neighboring cells is held fixed to minimize volume balance errors. At step 109, the saturation equations are solved, and at step 110 flow rates and cell masses are updated based on solutions of the saturation equations. The computations then move on to the next time step (indicated by t n+1 ).

[0063] The foregoing application is directed to particular embodiments of the present invention for the purpose of illustrating it. It will be apparent, however, to one skilled in the art, that many modifications and variations to the embodiments described herein are possible. All such modifications and variations are intended to be within the scope of the present invention, as defined in the appended claims. For instance, 2D examples and models are used in the foregoing description, but only for simplicity of illustration and not to limit the invention. Nomenclature

F v flow rate of phase v

F t total flow rate

F v phase flow rate computed from total velocity rti mass of component i in the block

Ui mass flow rate of component i

U i mass flow rate of component i computed from total velocity

V gradient operator d partial derivative

S v phase saturation

v v phase volume

v p pore volume

dt time step size

u a averaged absolute velocity

du v phase velocity correction

u v phase absolute velocity

K rock permeability tensor

λ phase mobility IJ1 face area

|E| cell volume

μ fluid viscosity

p fluid density

p pressure

Pc.v capillary pressure of phase v g gravitational constant

density of component i in phase v

Subscripts

v fluid phase index

i component index

s face index for a control volume a averaged quantity

t total amount

c capillary

Superscripts

0 beginning of time step

References

I. Aavatsmark, I., Barkve, T., Boe, O., and Mannseth, T., Discretization on non- orthogonal, quadrilateral grids for inhomogeneous, anisotropic media, J. Comp. Phy. 127, 1996, 2-14

2. Cai, Z., Jones, J. E., McCormick, S. F., and Russell, T. F., Control-volume mixed finite element methods, Computational Geosciences, 1, 1997, 289-315.

3. Chavent, G., Cohen, G., Jaffre, J., Dupuy, M., Ribera, I., Simulation of Two- Dimensional Waterflooding By Using Mixed Finite Elements, SPE Journal, 1984, 382- 390.

4. Chen, Q., Wan, J., Yang, Y., Mifflin, R., A New Multipoint Flux Approximation for Reservoir Simulation, SPE 106464 presented at the SPE Symposium on Reservoir Simulation, Houston, Texas, February 26-27, 2007.

5. Darlow, B. L., Ewing, R. E., Wheeler, M. F., Mixed Finite Element Method for Miscible Displacement Problems in Porous Media, SPE Journal, 1984, 391-398.

6. Durlofsky, L. J., and Chien, M. C. FL, Development of a Mixed Finite-Element-Based Compositional Reservoir Simulator, paper SPE 25253 presented at the SPE Symposium on Reservoir Simulation, New Orleans, Louisiana, February 28-March 3, 1993.

7. Edwards, M. G. and Rogers, C. F., A Flux Continuous Scheme for the Full Tensor Pressure Equation, proceedings, 4th European Conference on the Mathematics of Oil Recovery, Roros, 1994

8. Ewing, R. E., and Heinemann, R. F., Incorporation of Mixed Finite Element Methods in Compositional Simulation for Reduction of Numerical Dispersion, paper SPE 12267 presented at the SPE Symposium on Reservoir Simulation, San Francisco, California, November 15-18, 1983.

9. Fung, L. S. -K., Hiebert, A. D., and Nghiem, L. X., Reservoir Simulation with a Control- Volume Finite-Element Method, SPERE, August, 1992, 349-357.

10. Heinrich, B., Finite Difference Methods on Irregular Networks, Birkhauser, Basel (1987).

I I. Hoteit, H., Erhel, J., Mose, R., Philippe, B., and Ackerer, Ph., Numerical Reliability for Mixed Methods Applied to Flow Problems in Porous Media, Computational

Geosciences, 6, 2002, 161-194. 12. Hoteit and A. Firoozabadi, Compositional Modeling by the Combined Discontinuous Galerkin and Mixed Methods, SPE Journal, March, 2006, 19-34.

13. Nordbotten, J. M. and Eigestad, G. T., Discretization on Quadrilateral Grids with Improved Monotonicity Properties, Journal of Computational Physics, 203, 2005, pp

744-760.

14. Klausen, R. A., and Russell, T. F., Relationships among some locally conservative discretization methods which handle discontinuous coefficients, Computational Geosciences, 8, 2004, pp 341-377.

15. Verma, S. K. and Aziz, K., A Control Volume Scheme for Flexible Grids In Reservoir Simulation, SPE 37999 presented at the SPE Symposium on Reservoir Simulation, Dallas, Texas, June 8-11, 1997.

16. Wheeler, M. F., Arbogast, T., Bryant, S., Eaton, J., Lu, Q., Peszynska, M., A Parallel Multiblock/Multi domain Approach for Reservoir Simulation, SPE 51884 presented at the SPE Symposium on Reservoir Simulation, Houston, Texas, February 14-17, 1999.

17. Wheeler, M. F., Yotov, I., A Multipoint Flux Mixed Finite Element Method, SIAM Journal on Numerical Analysis, 44, 2006, pp 2082-2106

18. Wu, X. FL, and Parashkevov, R. R., Effect of Grid Deviation on Flow Solutions, SPE Journal, March 2009, 67-77