# Patent

## Title
System and method for performing oilfield simulation operations

## Abstract

The invention relates to a method of performing an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The method includes determining a time-step for simulating the reservoir, the reservoir being represented as a plurality of gridded cells and being modeled as a multi-phase system using a plurality of partial differential equations, calculating a plurality of Courant-Friedrichs-Lewy (CFL) conditions of the reservoir model corresponding to the time-step, the plurality of CFL conditions comprising a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, simulating a first cell of the plurality of gridded cells with an Implicit Pressure, Explicit Saturations (IMPES) system, and simulating a second cell of the plurality of gridded cells with a Fully Implicit Method (FIM) system.

## Background
CROSS REFERENCE TO RELATED APPLICATIONS
This application claims priority under 35 U.S.C. §119 to U.S. Provisional Patent Application No. 60/846,702, filed on Sep. 22, 2006.


BACKGROUND
1. Field of the Invention
The present invention relates to techniques for performing oilfield operations relating to subterranean formations having reservoirs therein. More particularly, the invention relates to techniques for performing oilfield operations involving an analysis of reservoir operations, and the techniques impact on such oilfield operations.
2. Background of the Related Art
Oilfield operations, such as surveying, drilling, wireline testing, completions, simulation, planning, and oilfield analysis, are typically performed to locate and gather valuable downhole fluids. Various aspects of the oilfield and its related operations are shown in FIGS. 1A-1D. As shown in FIG. 1A, surveys are often performed using acquisition methodologies, such as seismic scanners to generate maps of underground structures. These structures are often analyzed to determine the presence of subterranean assets, such as valuable fluids or minerals. This information is used to assess the underground structures and locate the formations containing the desired subterranean assets. Data collected from the acquisition methodologies may be evaluated and analyzed to determine whether such valuable items are present, and if they are reasonably accessible.
As shown in FIG. 1B-1D, one or more wellsites may be positioned along the underground structures to gather valuable fluids from the subterranean reservoirs. The wellsites are provided with tools capable of locating and removing hydrocarbons from the subterranean reservoirs. As shown in FIG. 1B, drilling tools are typically advanced from the oil rigs and into the earth along a given path to locate the valuable downhole fluids. During the drilling operation, the drilling tool may perform downhole measurements to investigate downhole conditions. In some cases, as shown in FIG. 1C, the drilling tool is removed and a wireline tool is deployed into the wellbore to perform additional downhole testing.
After the drilling operation is complete, the well may then be prepared for production. As shown in FIG. 1D, wellbore completions equipment is deployed into the wellbore to complete the well in preparation for the production of fluid therethrough. Fluid is then drawn from downhole reservoirs, into the wellbore and flows to the surface. Production facilities are positioned at surface locations to collect the hydrocarbons from the wellsite(s). Fluid drawn from the subterranean reservoir(s) passes to the production facilities via transport mechanisms, such as tubing. Various equipment may be positioned about the oilfield to monitor oilfield parameters and/or to manipulate the oilfield operations.
During the oilfield operations, data is typically collected for analysis and/or monitoring of the oilfield operations. Such data may include, for example, subterranean formation, equipment, historical and/or other data. Data concerning the subterranean formation is collected using a variety of sources. Such formation data may be static or dynamic. Static data relates to, for example, formation structure and geological stratigraphy that define the geological structure of the subterranean formation. Dynamic data relates to, for example, fluids flowing through the geologic structures of the subterranean formation over time. Such static and/or dynamic data may be collected to learn more about the formations and the valuable assets contained therein.
Sources used to collect static data may be seismic tools, such as a seismic truck that sends compression waves into the earth as shown in FIG. 1A. These waves are measured to characterize changes in the density of the geological structure at different depths. This information may be used to generate basic structural maps of the subterranean formation. Other static measurements may be gathered using core sampling and well logging techniques. Core samples may be used to take physical specimens of the formation at various depths as shown in FIG. 1B. Well logging typically involves deployment of a downhole tool into the wellbore to collect various downhole measurements, such as density, resistivity, etc., at various depths. Such well logging may be performed using, for example, the drilling tool of FIG. 1B and/or the wireline tool of FIG. 1C. Once the well is formed and completed, fluid flows to the surface using production tubing as shown in FIG. 1D. As fluid passes to the surface, various dynamic measurements, such as fluid flow rates, pressure, and composition may be monitored. These parameters may be used to determine various characteristics of the subterranean formation.
Sensors may be positioned about the oilfield to collect data relating to various oilfield operations. For example, sensors in the drilling equipment may monitor drilling conditions, sensors in the wellbore may monitor fluid composition, sensors located along the flow path may monitor flow rates, and sensors at the processing facility may monitor fluids collected. Other sensors may be provided to monitor downhole, surface, equipment or other conditions. The monitored data is often used to make decisions at various locations of the oilfield at various times. Data collected by these sensors may be further analyzed and processed. Data may be collected and used for current or future operations. When used for future operations at the same or other locations, such data may sometimes be referred to as historical data.
The processed data may be used to predict downhole conditions, and make decisions concerning oilfield operations. Such decisions may involve well planning, well targeting, well completions, operating levels, production rates and other operations and/or conditions. Often this information is used to determine when to drill new wells, re-complete existing wells, or alter wellbore production.
Data from one or more wellbores may be analyzed to plan or predict various outcomes at a given wellbore. In some cases, the data from neighboring wellbores or wellbores with similar conditions or equipment may be used to predict how a well will perform. There are usually a large number of variables and large quantities of data to consider in analyzing oilfield operations. It is, therefore, often useful to model the behavior of the oilfield operation to determine the desired course of action. During the ongoing operations, the operating conditions may need adjustment as conditions change and new information is received.
Techniques have been developed to model the behavior of various aspects of the oilfield operations, such as geological structures, downhole reservoirs, wellbores, surface facilities as well as other portions of the oilfield operation. For example, U.S. Pat. No. 6,980,940 to Gurpinar discloses integrated reservoir optimization involving the assimilation of diverse data to optimize overall performance of a reservoir. In another example, Application No. WO2004/049216 to Ghorayeb discloses an integrated modeling solution for coupling multiple reservoir simulations and surface facility networks. Other examples of these modeling techniques are shown in Patent/Publication/Application Nos. U.S. Pat. Nos. 5,992,519, 6,018,497, 6,078,869, 6,106,561, 6,230,101, 6,313,837, 6,775,578, 7,164,990, WO1999/064896, WO2005/122001, GB2336008, US2003/0216897, US2003/0132934, US2004/0220846, US2005/0149307, US2006/0129366, US2006/0184329, US2006/0197759 and Ser. No. 10/586,283.
Reservoir simulation often requires the numerical solution of the equations that describe the physics governing the complex behaviors of multi-component, multi-phase fluid flow in natural porous media in the reservoir and other types of fluid flow elsewhere in the production system. The governing equations typically used to describe the fluid flow are based on the assumption of thermodynamic equilibrium and the principles of conservation of mass, momentum and energy, as described in Aziz, K. and Settari, A., Petroleum Reservoir Simulation, Elsevier Applied Science Publishers, London, 1979. The complexity of the physics that govern reservoir fluid flow leads to systems of coupled nonlinear partial differential equations that are not amenable to conventional analytical methods or modeling. As a result, numerical solution techniques are necessary.
A variety of mathematical models, formulations, discretization methods, and solution strategies have been developed and are associated with a grid imposed upon an area of interest in a reservoir. Detailed discussions of the problems of reservoir simulation and the equations dealing with such problems can be found, for example, in a PCT published patent application to ExxonMobil, International Publication No. WO2001/40937, and in U.S. Pat. No. 6,662,146 B1 (the “146 patent”). Reservoir simulation can be used to predict production rates from reservoirs and can be used to determine appropriate improvements, such as facility changes or drilling additional wells that can be implemented to improve production.
A grid imposed upon an area of interest in a model of a reservoir may be structured or unstructured. Such grids include cells, each cell having one or more unknown properties, but with all the cells in the grid having one common unknown variable, generally pressure. Other unknown properties may include, but are not limited to, for example, fluid properties such as water saturation or temperature, or rock properties such as permeability or porosity to name a few. A cell treated as if it has only a single unknown variable (typically pressure) is called herein a “single variable cell,” or an “IMPES cell”, while a cell with more than one unknown is called herein a “multi-variable cell” or an “implicit cell.”
The most popular approaches for solving the discrete form of the nonlinear equations are the fully implicit method (FIM) and Implicit Pressure, Explicit Saturations Systems (IMPES), as described by Peaceman, D., “Fundamentals of Reservoir Simulation”, published by Elsevier London, 1977, and Aziz, K. and Settari, A., “Petroleum Reservoir Simulation”, Elsevier Applied Science Publishers, London, 1979. There are a wide variety of specific FIM and IMPES formulations, as described by Coats, K. H., “A Note on IMPES and Some IMPES-Based Simulation Models”, SPEJ (5) No. 3, (September 2000), p. 245.
The fully implicit method (FIM) assumes that all the variables and the coefficients that depend on these variables are treated implicitly. In a FIM system, all cells have a fixed number (greater than one) of unknowns, represented herein by the letter “m.” As a result, the FIM is unconditionally stable, so that one can theoretically take any time step size. At each time step, a coupled system of nonlinear algebraic equations, where there are multiple degrees of freedom (implicit variables) per cell, must be solved. The most common method to solve these nonlinear systems of equations is the Newton-Raphson scheme, which is an iterative method where the approximate solution to the nonlinear system is obtained by an iterative process of linearization, linear system solution, and updating.
FIM simulations are computationally demanding. A linear system of equations with multiple implicit variables per cell arises at each Newton-Raphson iteration. The efficiency of a reservoir simulator depends, to a large extent, on the ability to solve these linear systems of equations in a robust and computationally efficient manner.
In an IMPES method, only one variable (typically pressure) is treated implicitly. All other variables, including but not limited to saturations and compositions, are treated explicitly. Moreover, the flow terms (transmissibilities) and the capillary pressures are also treated explicitly. For each cell, the conservation equations are combined to yield a pressure equation. These equations form a linear system of coupled equations, which can be solved for the implicit variable (typically pressure). After the pressure is obtained, the saturations and capillary pressures are updated explicitly. Explicit treatment of saturation (and also of transmissibility and capillary pressure) leads to conditional stability. That is, the maximum allowable time step depends heavily on the characteristics of the problem, such as the maximum allowable throughput, and/or saturation change, for any cell. When the time step size is not too restrictive, the IMPES method is extremely useful. This is because the linear system of equations has one implicit variable (usually pressure) per cell. In some practical settings, however, the stability restrictions associated with the IMPES method lead to impractically small time steps.
The adaptive implicit method (AIM) was developed in order to combine the large time step size of FIM with the low computational cost of IMPES. See Thomas, G. W. and Thurnau, D. H., “Reservoir Simulation Using an Adaptive Implicit Method,” SPEJ (October, 1983), p. 759 (“Thomas and Thurnau”). In an AIM system, the cells of the grid may have a variable number of unknowns. The AIM method is based on the observation that in most cases, for a particular time step, only a small fraction of the total number of cells in the simulation model requires FIM treatment, and that the simpler IMPES treatment is adequate for the vast majority of cells. In an AIM system, the reservoir simulator adaptively and automatically selects the appropriate level of implicitness for a variable (e.g., pressure and/or saturation) on a cell by cell basis (see, e.g., Thomas & Thurnau). Rigorous stability analysis can be used to balance the time-step size with the target fraction of cells having the FIM treatment (see, e.g., Coats, K. H. “IMPES Stability: Selection of Stable Time-steps”, SPEJ (June 2003), p. 181-187). AIM is conditionally stable and its time-steps can be controlled using a stability condition called the Courant-Friedrichs-Lewy (CFL) condition.
Despite the development and advancement of reservoir simulation techniques in oilfield operations, such as the FIM, IMPES, and AIM, there remains a need for a thermal adaptive implicit method (TAIM) in reservoir simulation of a thermal system with improved simulation run time and memory usage. It is desirable to calculate multiple CFL conditions in each cell concurrently. It is further desirable that such techniques for reservoir simulation be capable of one of more of the following, among others: decoupling CFL conditions in each cell for performing concurrent calculation, enabling the linear stability analysis for compositional two-phase and compositional three-phase thermal systems with inter-phase mass transfer, capillarity, and gravity effects, expanding CFL conditions from an isothermal simulator to include temperature effect for a thermal simulator, and/or estimating CFL conditions for multi-phase system with mass transfer based on CFL conditions calculated for multi-phase system without mass transfer.
SUMMARY
In general, in one aspect, the invention relates to a method of performing an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The method includes determining a time-step for simulating the reservoir using a reservoir model, the reservoir being represented as a plurality of gridded cells and being modeled as a multi-phase system using a plurality of partial differential equations, calculating a plurality of Courant-Friedrichs-Lewy (CFL) conditions of the reservoir model corresponding to the time-step, the plurality of CFL conditions being calculated for each of the plurality of gridded cells and comprising a temperature CFL condition, a composition CFL condition, and a saturation CFL condition calculated concurrently, simulating a first cell of the plurality of gridded cells using the reservoir model with an Implicit Pressure, Explicit Saturations (IMPES) system to obtain a first simulation result, the first cell having no CFL condition of the plurality of CFL conditions with a value greater than one, simulating a second cell of the plurality of gridded cells using the reservoir model with a Fully Implicit Method (FIM) system to obtain a second simulation result, the second cell having at least one CFL condition of the plurality of CFL conditions with a value greater than one, and performing the oilfield operation based on the first and second simulation results.
In general, in one aspect, the invention relates to a method of performing an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The method includes determining a time-step for simulating the reservoir, the reservoir being represented as a plurality of gridded cells and being modeled as a multi-phase system using a plurality of partial differential equations, the multi-phase system having a plurality of phases, calculating a plurality of Courant-Friedrichs-Lewy (CFL) conditions of a first reservoir model corresponding to the time-step, the first reservoir model having no mass transfer among the plurality of phases, the plurality of CFL conditions being calculated for each of the plurality of gridded cells and comprising a temperature CFL condition, a composition CFL condition, and a saturation CFL condition calculated concurrently, simulating a first cell of the plurality of gridded cells using a second reservoir model with an Implicit Pressure, Explicit Saturations (IMPES) system to obtain a first simulation result, the second reservoir model having mass transfer among the plurality of phases, the first cell having no CFL condition of the plurality of CFL conditions with a value greater than one, simulating a second cell of the plurality of gridded cells using the second reservoir model with a Fully Implicit Method (FIM) system to obtain a second simulation result, the second cell having at least one CFL condition of the plurality of CFL conditions with a value greater than one, and performing the oilfield operation based on the first and second simulation results.
In general, in one aspect, the invention relates to a method of performing an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The method includes determining a time-step for simulating the reservoir, the reservoir being represented as a plurality of gridded cells and being modeled as a multi-phase system using a plurality of partial differential equations, the multi-phase system having a plurality of phases with no mass transfer among the plurality of phases, calculating a plurality of Courant-Friedrichs-Lewy (CFL) conditions corresponding to the time-step, the plurality of CFL conditions being calculated for each of the plurality of gridded cells and comprising a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, the composition CFL condition and the saturation CFL condition being calculated based on an isothermal simulator, the temperature CFL condition being calculated based on a thermal simulator, simulating a first cell of the plurality of gridded cells using the thermal simulator with an Implicit Pressure, Explicit Saturations (IMPES) system to obtain a first simulation result, the first cell having no CFL condition of the plurality of CFL conditions with a value greater than one, simulating a second cell of the plurality of gridded cells using the thermal simulator with a Fully Implicit Method (FIM) system to obtain a second simulation result, the second cell having at least one CFL condition of the plurality of CFL conditions with a value greater than one, and performing the oilfield operation based on the first and second simulation results.
In general, in one aspect, the invention relates to a method of optimizing computer usage when performing simulations for a reservoir using a reservoir model wherein the reservoir model is gridded into cells. The method includes a. determining a preferred percentage of cells to be simulated using an Implicit Pressure, Explicit Saturations (IMPES) system for optimizing computer usage, b. determining a time-step for simulating the reservoir, c. calculating Courant-Friedrichs-Lewy (CFL) conditions according to the time-step for each cell of the reservoir model including calculating a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, d. calculating a percentage of cells having no CFL condition with a value greater than one, e. determining whether the percentage calculated from step d is equal to or greater than the preferred percentage and if not, reducing the time-step and returning to step c, and f. simulating all cells having no CFL value greater than one using the IMPES system and simulating all other cells using a Fully Implicit Method (FIM) system.
In general, in one aspect, the invention relates to a computer system with optimized computer usage when performing simulations for an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The computer system inlcues a processor, memory, and software instructions stored in memory to execute on the processor to a. determine a preferred percentage of cells to be simulated using an Implicit Pressure, Explicit Saturations (IMPES) system for optimizing computer usage, b. determine a time-step for simulating the reservoir, c. calculate Courant-Friedrichs-Lewy (CFL) conditions according to the time-step for each cell of the reservoir model including calculating a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, d. calculate a percentage of cells having no CFL condition with a value greater than one, e. determine whether the percentage calculated from step d is equal to or greater than the preferred percentage and if not reducing the time-step and returning to step c, and f. simulate all cells having no CFL value greater than one using the IMPES system and simulating all other cells using a Fully Implicit Method (FIM) system.
Other aspects and advantages of the invention will be apparent from the following description and the appended claims.



BRIEF DESCRIPTION OF DRAWINGS
So that the above recited features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof that are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
FIGS. 1A-1D depict exemplary schematic views of an oilfield having subterranean structures including reservoirs therein and various oilfield operations being performed on the oilfield. FIG. 1A depicts an exemplary survey operation being performed by a seismic truck. FIG. 1B depicts an exemplary drilling operation being performed by a drilling tool suspended by a rig and advanced into the subterranean formation. FIG. 1C depicts an exemplary wireline operation being performed by a wireline tool suspended by the rig and into the wellbore of FIG. 1B. FIG. 1D depicts an exemplary simulation operation being performed by a simulation tool being deployed from the rig and into a completed wellbore for drawing fluid from the downhole reservoir into a surface facility.
FIGS. 2A-2D are exemplary graphical depictions of data collected by the tools of FIGS. 1A-1D, respectively. FIG. 2A depicts an exemplary seismic trace of the subterranean formation of FIG. 1A. FIG. 2B depicts exemplary core sample of the formation shown in FIG. 1B. FIG. 2C depicts an exemplary well log of the subterranean formation of FIG. 1C. FIG. 2D depicts an exemplary simulation decline curve of fluid flowing through the subterranean formation of FIG. 1D.
FIG. 3 depicts an exemplary schematic view, partially in cross section, of an oilfield having a plurality of data acquisition tools positioned at various locations along the oilfield for collecting data from the subterranean formation.
FIG. 4 depicts an exemplary schematic view of an oilfield having a plurality of wellsites for producing hydrocarbons from the subterranean formation.
FIG. 5 depicts an exemplary schematic diagram of a portion of the oilfield of FIG. 4 depicting the simulation operation in detail.
FIGS. 6-8 depict exemplary flow charts for performing simulation operations of an oilfield.
FIG. 9 depicts a computer system for performing simulation operations of an oilfield.
FIGS. 10-33 depict exemplary test results related to a thermal adaptive implicit method.



DETAILED DESCRIPTION
Presently preferred embodiments of the invention are shown in the above-identified Figs. and described in detail below. In describing the preferred embodiments, like or identical reference numerals are used to identify common or similar elements. The Figs. are not necessarily to scale and certain features and certain views of the Figs. may be shown exaggerated in scale or in schematic in the interest of clarity and conciseness.
In the following detailed description of embodiments of the invention, numerous specific details are set forth in order to provide a more thorough understanding of the invention. However, it will be apparent to one of ordinary skill in the art that the invention may be practiced without these specific details. In other instances, well-known features have not been described in detail to avoid unnecessarily complicating the description.
FIGS. 1A-D depict an oilfield (100) having geological structures and/or subterranean formations therein. As shown in these Figs., various measurements of the subterranean formation are taken by different tools at the same location. These measurements may be used to generate information about the formation and/or the geological structures and/or fluids contained therein.
FIGS. 1A-1D depict schematic views of an oilfield (100) having subterranean formations (102) containing a reservoir (104) therein and depicting various oilfield operations being performed on the oilfield (100). FIG. 1A depicts a survey operation being performed by a seismic truck (106a) to measure properties of the subterranean formation. The survey operation is a seismic survey operation for producing sound vibration(s) (112). In FIG. 1A, one such sound vibration (112) is generated by a source (110) and reflects off a plurality of horizons (114) in an earth formation (116). The sound vibration(s) (112) is (are) received in by sensors (S), such as geophone-receivers (118), situated on the earth's surface, and the geophone-receivers (118) produce electrical output signals, referred to as data received (120) in FIG. 1.
In response to the received sound vibration(s) (112) representative of different parameters (such as amplitude and/or frequency) of the sound vibration(s) (112). The data received (120) is provided as input data to a computer (122a) of the seismic recording truck (106a), and responsive to the input data, the recording truck computer (122a) generates a seismic data output record (124). The seismic data may be further processed as desired, for example by data reduction.
FIG. 1B depicts a drilling operation being performed by a drilling tool (106b) suspended by a rig (128) and advanced into the subterranean formation (102) to form a wellbore (136). A mud pit (130) is used to draw drilling mud into the drilling tool (106b) via flow line (132) for circulating drilling mud through the drilling tool (106b) and back to the surface. The drilling tool (106b) is advanced into the formation to reach reservoir (104). The drilling tool (106b) is preferably adapted for measuring downhole properties. The drilling tool (106b) may also be adapted for taking a core sample (133) as shown, or removed so that a core sample (133) may be taken using another tool.
A surface unit (134) is used to communicate with the drilling tool (106b) and offsite operations. The surface unit (134) is capable of communicating with the drilling tool (106b) to send commands to drive the drilling tool (106b), and to receive data therefrom. The surface unit (134) is preferably provided with computer facilities for receiving, storing, processing, and analyzing data from the oilfield (100). The surface unit (134) collects data output (135) generated during the drilling operation. Computer facilities, such as those of the surface unit (134), may be positioned at various locations about the oilfield (100) and/or at remote locations.
Sensors (S), such as gauges, may be positioned throughout the reservoir, rig, oilfield equipment (such as the downhole tool), or other portions of the oilfield for gathering information about various parameters, such as surface parameters, downhole parameters, and/or operating conditions. These sensors (S) preferably measure oilfield parameters, such as weight on bit, torque on bit, pressures, temperatures, flow rates, compositions and other parameters of the oilfield operation.
The information gathered by the sensors (S) may be collected by the surface unit (134) and/or other data collection sources for analysis or other processing. The data collected by the sensors (S) may be used alone or in combination with other data. The data may be collected in a database and all or select portions of the data may be selectively used for analyzing and/or predicting oilfield operations of the current and/or other wellbores.
Data outputs from the various sensors (S) positioned about the oilfield may be processed for use. The data may be historical data, real time data, or combinations thereof. The real time data may be used in real time, or stored for later use. The data may also be combined with historical data or other inputs for further analysis. The data may be housed in separate databases, or combined into a single database.
The collected data may be used to perform analysis, such as modeling operations. For example, the seismic data output may be used to perform geological, geophysical, reservoir engineering, and/or production simulations. The reservoir, wellbore, surface and/or process data may be used to perform reservoir, wellbore, or other production simulations. The data outputs from the oilfield operation may be generated directly from the sensors (S), or after some preprocessing or modeling. These data outputs may act as inputs for further analysis.
The data is collected and stored at the surface unit (134). One or more surface units (134) may be located at the oilfield (100), or linked remotely thereto. The surface unit (134) may be a single unit, or a complex network of units used to perform the necessary data management functions throughout the oilfield (100). The surface unit (134) may be a manual or automatic system. The surface unit (134) may be operated and/or adjusted by a user.
The surface unit (134) may be provided with a transceiver (137) to allow communications between the surface unit (134) and various portions (or regions) of the oilfield (100) or other locations. The surface unit (134) may also be provided with or functionally linked to a controller for actuating mechanisms at the oilfield (100). The surface unit (134) may then send command signals to the oilfield (100) in response to data received. The surface unit (134) may receive commands via the transceiver or may itself execute commands to the controller. A processor may be provided to analyze the data (locally or remotely) and make the decisions to actuate the controller. In this manner, the oilfield (100) may be selectively adjusted based on the data collected to optimize fluid recovery rates, or to maximize the longevity of the reservoir (104) and its ultimate production capacity. These adjustments may be made automatically based on computer protocol, or manually by an operator. In some cases, well plans may be adjusted to select optimum operating conditions, or to avoid problems.
FIG. 1C depicts a wireline operation being performed by a wireline tool (106c) suspended by the rig (128) and into the wellbore (136) of FIG. 1B. The wireline tool (106c) is preferably adapted for deployment into a wellbore (136) for performing well logs, performing downhole tests and/or collecting samples. The wireline tool (106c) may be used to provide another method and apparatus for performing a seismic survey operation. The wireline tool (106c) of FIG. 1C may have an explosive or acoustic energy source (143) that provides electrical signals to the surrounding subterranean formations (102).
The wireline tool (106c) may be operatively linked to, for example, the geophones (118) stored in the computer (122a) of the seismic recording truck (106a) of FIG. 1A. The wireline tool (106c) may also provide data to the surface unit (134). As shown data output (135) is generated by the wireline tool (106c) and collected at the surface. The wireline tool (106c) may be positioned at various depths in the wellbore (136) to provide a survey of the subterranean formation.
FIG. 1D depicts a production operation being performed by a production tool (106d) deployed from the rig (128) and into the completed wellbore (136) of FIG. 1C for drawing fluid from the downhole reservoirs into surface facilities (142). Fluid flows from reservoir (104) through wellbore (136) and to the surface facilities (142) via a surface network (144). Sensors (S) positioned about the oilfield (100) are operatively connected to a surface unit (142) for collecting data therefrom. During the production process, data output (135) may be collected from various sensors (S) and passed to the surface unit (134) and/or processing facilities. This data may be, for example, reservoir data, wellbore data, surface data, and/or process data.
While FIGS. 1A-1D depict monitoring tools used to measure properties of an oilfield (100), it will be appreciated that the tools may be used in connection with non-oilfield operations, such as mines, aquifers or other subterranean facilities. Also, while certain data acquisition tools are depicted, it will be appreciated that various measurement tools capable of sensing properties, such as seismic two-way travel time, density, resistivity, production rate, etc., of the subterranean formation and/or its geological structures may be used. Various sensors (S) may be located at various positions along the subterranean formation and/or the monitoring tools to collect and/or monitor the desired data. Other sources of data may also be provided from offsite locations.
The oilfield configuration in FIGS. 1A-1D is not intended to limit the scope of the invention. Part, or all, of the oilfield (100) may be on land and/or sea. Also, while a single oilfield at a single location is depicted, the present invention may be used with any combination of one or more oilfields (100), one or more processing facilities and one or more wellsites. Additionally, while only one wellsite is shown, it will be appreciated that the oilfield (100) may cover a portion of land that hosts one or more wellsites. One or more gathering facilities may be operatively connected to one or more of the wellsites for selectively collecting downhole fluids from the wellsite(s).
FIGS. 2A-2D are graphical depictions of data collected by the tools of FIGS. 1A-D, respectively. FIG. 2A depicts a seismic trace (202) of the subterranean formation of FIG. 1A taken by survey tool (106a). The seismic trace (202) measures a two-way response over a period of time. FIG. 2B depicts a core sample (133) taken by the drilling tool (106b). The core test typically provides a graph of the density, resistivity, or other physical property of the core sample (133) over the length of the core. Tests for density and viscosity are often performed on the fluids in the core at varying pressures and temperatures. FIG. 2C depicts a well log (204) of the subterranean formation of FIG. 1C taken by the wireline tool (106c). The wireline log typically provides a resistivity measurement of the formation at various depths. FIG. 2D depicts a production decline curve (206) of fluid flowing through the subterranean formation of FIG. 1D taken by the production tool (106d). The production decline curve (206) typically provides the production rate Q as a function of time t.
The respective graphs of FIGS. 2A-2C contain static measurements that describe the physical characteristics of the formation. These measurements may be compared to determine the accuracy of the measurements and/or for checking for errors. In this manner, the plots of each of the respective measurements may be aligned and scaled for comparison and verification of the properties.
FIG. 2D provides a dynamic measurement of the fluid properties through the wellbore. As the fluid flows through the wellbore, measurements are taken of fluid properties, such as flow rates, pressures, composition, etc. As described below, the static and dynamic measurements may be used to generate models of the subterranean formation to determine characteristics thereof.
FIG. 3 is a schematic view, partially in cross section of an oilfield (300) having data acquisition tools (302a), (302b), (302c), and (302d) positioned at various locations along the oilfield for collecting data of a subterranean formation (304). The data acquisition tools (302a-302d) may be the same as data acquisition tools (106a-106d) of FIG. 1, respectively. As shown, the data acquisition tools (302a-302d) generate data plots or measurements (308a-308d), respectively.
Data plots (308a-308c) are examples of static data plots that may be generated by the data acquisition tools (302a-302d), respectively. Static data plot (308a) is a seismic two-way response time and may be the same as the seismic trace (202) of FIG. 2A. Static plot (308b) is core sample data measured from a core sample of the formation (304), similar to the core sample (133) of FIG. 2B. Static data plot (308c) is a logging trace, similar to the well log (204) of FIG. 2C. Data plot (308d) is a dynamic data plot of the fluid flow rate over time, similar to the graph (206) of FIG. 2D. Other data may also be collected, such as historical data, user inputs, economic information, other measurement data, and other parameters of interest.
The subterranean formation (304) has a plurality of geological structures (306a-306d). As shown, the formation has a sandstone layer (306a), a limestone layer (306b), a shale layer (306c), and a sand layer (306d). A fault line (307) extends through the formation. The static data acquisition tools are preferably adapted to measure the formation and detect the characteristics of the geological structures of the formation.
While a specific subterranean formation (304) with specific geological structures is depicted, it will be appreciated that the formation may contain a variety of geological structures. Fluid may also be present in various portions of the formation. Each of the measurement devices may be used to measure properties of the formation and/or its underlying structures. While each acquisition tool is shown as being in specific locations along the formation, it will be appreciated that one or more types of measurement may be taken at one or more location across one or more oilfields or other locations for comparison and/or analysis.
The data collected from various sources, such as the data acquisition tools of FIG. 3, may then be evaluated. Typically, seismic data displayed in the static data plot (308a) from the data acquisition tool (302a) is used by a geophysicist to determine characteristics of the subterranean formation (304). Core data shown in static plot (308b) and/or log data from the well log (308c) is typically used by a geologist to determine various characteristics of the geological structures of the subterranean formation (304). Production data from the production graph (308d) is typically used by the reservoir engineer to determine fluid flow reservoir characteristics.
FIG. 4 depicts an oilfield (400) for performing simulation operations. As shown, the oilfield has a plurality of wellsites (402) operatively connected to a central processing facility (454). The oilfield configuration of FIG. 4 is not intended to limit the scope of the invention. Part or all of the oilfield may be on land and/or sea. Also, while a single oilfield with a single processing facility and a plurality of wellsites is depicted, any combination of one or more oilfields, one or more processing facilities and one or more wellsites may be present.
Each wellsite (402) has equipment that forms a wellbore (436) into the earth. The wellbores extend through subterranean formations (406) including reservoirs (404). These reservoirs (404) contain fluids, such as hydrocarbons. The wellsites draw fluid from the reservoirs and pass them to the processing facilities via surface networks (444). The surface networks (444) have tubing and control mechanisms for controlling the flow of fluids from the wellsite to the processing facility (454).
FIG. 5 depicts a schematic view of a portion (or region) of the oilfield (400) of FIG. 4, depicting a producing wellsite (402) and surface network (444) in detail. The wellsite (402) of FIG. 5 has a wellbore (436) extending into the earth therebelow. As shown, the wellbores (436) is already drilled, completed, and prepared for production from reservoir (404).
Wellbore production equipment (564) extends from a wellhead (566) of wellsite (402) and to the reservoir (404) to draw fluid to the surface. The wellsite (402) is operatively connected to the surface network (444) via a transport line (561). Fluid flows from the reservoir (404), through the wellbore (436), and onto the surface network (444). The fluid then flows from the surface network (444) to the process facilities (454).
As further shown in FIG. 5, sensors (S) are located about the oilfield (400) to monitor various parameters during oilfield operations. The sensors (S) may measure, for example, pressure, temperature, flow rate, composition, and other parameters of the reservoir, wellbore, surface network, process facilities and/or other portions (or regions) of the oilfield operation. These sensors (S) are operatively connected to a surface unit (534) for collecting data therefrom. The surface unit may be, for example, similar to the surface unit (134) of FIGS. 1A-D.
One or more surface units (534) may be located at the oilfield (400), or linked remotely thereto. The surface unit (534) may be a single unit, or a complex network of units used to perform the necessary data management functions throughout the oilfield (400). The surface unit may be a manual or automatic system. The surface unit may be operated and/or adjusted by a user. The surface unit is adapted to receive and store data. The surface unit may also be equipped to communicate with various oilfield equipment. The surface unit may then send command signals to the oilfield in response to data received or modeling performed.
As shown in FIG. 5, the surface unit (534) has computer facilities, such as memory (520), controller (522), processor (524), and display unit (526), for managing the data. The data is collected in memory (520), and processed by the processor (524) for analysis. Data may be collected from the oilfield sensors (S) and/or by other sources. For example, oilfield data may be supplemented by historical data collected from other operations, or user inputs.
The analyzed data (e.g., based on modeling performed) may then be used to make decisions. A transceiver (not shown) may be provided to allow communications between the surface unit (534) and the oilfield (400). The controller (522) may be used to actuate mechanisms at the oilfield (400) via the transceiver and based on these decisions. In this manner, the oilfield (400) may be selectively adjusted based on the data collected. These adjustments may be made automatically based on computer protocol and/or manually by an operator. In some cases, well plans are adjusted to select optimum operating conditions or to avoid problems.
To facilitate the processing and analysis of data, simulators may be used to process the data for modeling various aspects of the oilfield operation. Specific simulators are often used in connection with specific oilfield operations, such as reservoir or wellbore simulation. Data fed into the simulator(s) may be historical data, real time data, or combinations thereof. Simulation through one or more of the simulators may be repeated or adjusted based on the data received.
As shown, the oilfield operation is provided with wellsite and non-wellsite simulators. The wellsite simulators may include a reservoir simulator (340), a wellbore simulator (342), and a surface network simulator (344). The reservoir simulator (340) solves for hydrocarbon flow through the reservoir rock and into the wellbores. The wellbore simulator (342) and surface network simulator (344) solves for hydrocarbon flow through the wellbore and the surface network (444) of pipelines. As shown, some of the simulators may be separate or combined, depending on the available systems.
The non-wellsite simulators may include process (346) and economics (348) simulators. The processing unit has a process simulator (346). The process simulator (346) models the processing plant (e.g., the process facilities (454)) where the hydrocarbon(s) is/are separated into its constituent components (e.g., methane, ethane, propane, etc.) and prepared for sales. The oilfield (400) is provided with an economics simulator (348). The economics simulator (348) models the costs of part or the entire oilfield (400) throughout a portion or the entire duration of the oilfield operation. Various combinations of these and other oilfield simulators may be provided.
FIG. 6 depicts a method for forecasting production from a reservoir using a reservoir model. Prior to starting the method, the reservoir, which is a multi-phase system, is gridded into cells (i.e., blocks or gridblocks). Initially, a time-step for simulating the reservoir is determined (Step 601). An example time-step may be a second, a minute, an hour, a day, a week, a month, a year, any portion thereof, or any other time measurement. In Step 603, CFL conditions are then calculated concurrently according to the time-step for each cell of the reservoir model (as determined in Step 601). The calculation of CFL conditions includes, but is not limited to, calculating a temperature CFL condition, a composition CFL condition, and a saturation CFL condition. The details of exemplary calculations are described below and shown in FIG. 8. All cells having no CFL value greater than one are subsequently simulated using an IMPES system (Step 606). The simulation results in a first simulation result. All other cells are simulated using a FIM system (Step 605), which results in a second simulation result. Next, the method is incremented by the time step to continue the simulation (Step 602) until the simulation is complete. The oilfield operation (e.g., forecasting reservoir production) is then performed according to first and second simulation results (Step 607).
FIG. 7 depicts a method of optimizing computer usage when performing simulations for a reservoir using a reservoir model. As described herein, prior to optimizing computer usage, the reservoir model is gridded into cells (i.e., blocks or gridblocks). Initially, a preferred percentage of cells is determined that is to be simulated using an IMPES system for optimizing memory usage (Step 701). As described above in relation to Step 601, a simulation time-step is also selected for simulation of the reservoir model (Step 702). CFL conditions are then calculated according to the time-step for every cell of the reservoir model (Step 703). The calculation includes, but not limited to, calculating a temperature CFL condition, a composition CFL condition, and a saturation CFL condition. The details of exemplary calculations are described below and shown in FIG. 8. Subsequently, a percentage of cells having no CFL condition with a value greater than one is calculated (Step 704). If the calculated percentage is greater than or equal to the preferred percentage (Step 707), all cells having no CFL value greater than one are simulated using an IMPES system and all other cells are simulated using an FIM system (Step 705). The method may then terminate or proceed to Step 703. If the calculated percentage is less than the preferred percentage (Step 707), the time-step is decreased (Step 706) and the method may then terminate or proceed to Step 703.
FIG. 8 depicts a method for calculating CFL conditions. As described herein the reservoir model is gridded into cells (i.e., blocks or gridblocks). The reservoir model is represented as a plurality of partial differential equations. The partial differential equations are provided to model the multi-phase system (Step 801). The reservoir model is a multi-phase system which includes, but is not limited to, a plurality of phases, a temperature effect, a composition effect, and a saturation effect. Next, the temperature effect, the composition effect, and the saturation effect are separated (Step 802). The separation enables a temperature CFL condition, a composition CFL condition, and a saturation CFL condition for the plurality of partial differential equations to be calculated concurrently (Step 803). More details of the method to separate the temperature effect, the composition effect, and the saturation effect are described below. The notations used in the calculations are listed in table 1 below.
The invention may be implemented on virtually any type of computer regardless of the platform being used. For example, as shown in FIG. 9, a computer system (900) includes a processor (902), associated memory (904), a storage device (906), and numerous other elements and functionalities typical of today's computers (not shown). The computer system (900) may also include input means, such as a keyboard (908) and a mouse (910), and output means, such as a monitor (912). The computer system (900) is connected to a local area network (LAN) or a wide area network (e.g., the Internet) (not shown) via a network interface connection (not shown). Those skilled in the art will appreciate that these input and output means may take other forms.
Further, those skilled in the art will appreciate that one or more elements of the aforementioned computer system (900) may be located at a remote location and connected to the other elements over a network. Further, the invention may be implemented on a distributed system having a plurality of nodes, where each portion of the invention may be located on a different node within the distributed system. In one embodiment of the invention, the node corresponds to a computer system. Alternatively, the node may correspond to a processor with associated physical memory. The node may alternatively correspond to a processor with shared memory and/or resources. Further, software instructions to perform embodiments of the invention may be stored on a computer readable medium such as a compact disc (CD), a diskette, a tape, a file, or any other computer readable storage device.







TABLE 1







Primary/gas pressure









P (psi)







gas/oil capillary pressure









Po = P − PcGO(Sg) (psi)







water/oil capillary pressure









Pw = Po − PcWO(Sw) = P − PcGO(Sg) − PcWO(Sw) (psi)







Gas saturation









Sg







water saturation









Sw







Temperature of the rock and fluids









T (° F.)







Gas mole fractions of hydrocarbon component









yc







Oil mole fractions of hydrocarbon component









xc







Depth









D (ft)







Gravity constant


 













  g
  =
  
    
      1
      144
    
    ⁢
    
      (
      
        psi
        ⁢
        
          -
        
        ⁢
        
          ft
          2
        
        ⁢
        
          /
        
        ⁢
        lb
      
      )
    
  







 







Porosity









φ







Permeability









K (mD)







Rock and fluids heat conductivity









κ (Btu/ft-day-° F.)







Hydrocarbon component K- value









Kc







Water component K- value









Kw







Gas velocity, oil velocity, water velocity and total velocity









ug, uo, uw and ut = ug + uo + uw (ft/day)







Gas mobility, oil mobility, water mobility and total mobility


 













  
    
      λ
      g
    
    =
    
      
        kr
        g
      
      
        μ
        g
      
    
  
  ,
  
    
      λ
      o
    
    =
    
      
        kr
        o
      
      
        μ
        o
      
    
  
  ,
  
    
      λ
      w
    
    =
    
      
        
          
            kr
            w
          
          
            μ
            w
          
        
        ⁢
        
          
        
        ⁢
        and
        ⁢
        
          
        
        ⁢
        
          λ
          t
        
      
      =
      
        
          λ
          g
        
        +
        
          λ
          o
        
        +
        
          λ
          w
        
      
    
  







 







Gas density, oil density and water molar density









ρg, ρo and ρw (mol/ft3)







Gas density, oil density and water mass density









 ρg, ρo and ρw (lb/ft3)







Gas energy, oil energy and water internal energy









Ug, Uo, Uw (Btu/mol)







Gas enthalpy, oil enthalpy and water internal enthalpy









Hg, Ho, Hw (Btu/mol)







Rock energy









ρrUr (in Btu/ft3)







Time step









Δt (day)







Cell volume









V







Cell length in the direction of the flow









Δx (ft3 and ft)







Transmissibility


 













  
    T
    _
  
  =
  
    
      V
      
        Δx
        2
      
    
    ⁢
    Κ
    ⁢
    
      
    
    ⁢
    
      (
      
        mD
        ·
        ft
      
      )
    
  







 







Heat transmissibility


 













  
    
      T
      _
    
    h
  
  =
  
    
      V
      
        Δx
        2
      
    
    ⁢
    κ
    ⁢
    
      
    
    ⁢
    
      (
      
        Btu
        ⁢
        
          /
        
        ⁢
        day
        ⁢
        
          -
        
        ⁢
        °
        ⁢
        
          
        
        ⁢
        
          F
          .
        
      
      )
    
  







 







Gas, oil, water, and total volumetric rates in (ft3/day)


 













  
    
      q
      g
    
    =
    
      
        V
        Δx
      
      ⁢
      
        u
        g
      
    
  
  ,
  
    
      q
      o
    
    =
    
      
        V
        Δx
      
      ⁢
      
        u
        o
      
    
  
  ,
  
    
  
  ⁢
  
    
      q
      w
    
    =
    
      
        
          V
          Δx
        
        ⁢
        
          u
          w
        
        ⁢
        
          
        
        ⁢
        and
        ⁢
        
          
        
        ⁢
        
          q
          t
        
      
      =
      
        
          V
          Δx
        
        ⁢
        
          u
          t
        
      
    
  







 







Cr rock compressibility


Cre rock heat capacity


CP,c oil compressibility for hydrocarbon component c


CT,c oil thermal expansion coefficient for hydrocarbon component c


D depth of a grid block


g gravitational constant


Hp phase enthalpy


Hs steam enthalpy


Hp,c phase enthalpy for hydrocarbon component c


 






  
    
      
        
          
            K
            c
          
          =
          
            
              
                y
                c
              
              
                x
                c
              
            
            ⁢
            
              
            
            ⁢
            K
            ⁢
            
              -
            
            ⁢
            value
            ⁢
            
              
            
            ⁢
            of
            ⁢
            
              
            
            ⁢
            hydrocarbon
            ⁢
            
              
            
            ⁢
            component
            ⁢
            
              
            
            ⁢
            c
            ⁢
            
              
            
            ⁢
            between
            ⁢
            
              
            
            ⁢
            gas
            ⁢
            
              
            
            ⁢
            and
            ⁢
            
              
            
            ⁢
            oil
          
        
      
    
    
      
        
          phases
          ,
          
            
              K
              w
            
            =
            
              
                y
                w
              
              ⁢
              
                
              
              ⁢
              K
              ⁢
              
                -
              
              ⁢
              value
              ⁢
              
                
              
              ⁢
              of
              ⁢
              
                
              
              ⁢
              water
              ⁢
              
                
              
              ⁢
              component
              ⁢
              
                
              
              ⁢
              between
              ⁢
              
                
              
              ⁢
              gas
              ⁢
              
                
              
              ⁢
              and
              ⁢
              
                
              
              ⁢
              water
            
          
        
      
    
    
      
        phases
      
    
  
   






 


k permeability


ηh number of hydrocarbon components


P pressure






  
    
      
        
          
            P
            
              c
              GO
            
            ′
          
          ≥
          
            0
            ⁢
            
              
            
            ⁢
            derivative
            ⁢
            
              
            
            ⁢
            of
            ⁢
            
              
            
            ⁢
            gas
            ⁢
            
              
            
            ⁢
            capillary
            ⁢
            
              
            
            ⁢
            pressure
            ⁢
            
              
            
            ⁢
            with
            ⁢
            
              
            
            ⁢
            respect
            ⁢
            
              
            
            ⁢
            to
            ⁢
            
              
            
            ⁢
            gas
          
        
      
    
    
      
        
          
            saturation
            ⁢
            
              
            
            ⁢
            
              (
              
                
                  P
                  
                    c
                    GO
                  
                
                =
                
                  
                    
                      P
                      g
                    
                    -
                    
                      P
                      o
                    
                  
                  ≥
                  0
                
              
              )
            
          
          ,
        
      
    
    
      
        
          
            P
            
              c
              WO
            
            ′
          
          ≤
          
            0
            ⁢
            
              
            
            ⁢
            derivative
            ⁢
            
              
            
            ⁢
            of
            ⁢
            
              
            
            ⁢
            water
            ⁢
            
              
            
            ⁢
            capillary
            ⁢
            
              
            
            ⁢
            pressure
            ⁢
            
              
            
            ⁢
            with
            ⁢
            
              
            
            ⁢
            respect
            ⁢
            
              
            
            ⁢
            to
            ⁢
            
              
            
            ⁢
            water
          
        
      
    
    
      
        
          saturation
          ⁢
          
            
          
          ⁢
          
            (
            
              
                P
                
                  c
                  WO
                
              
              =
              
                
                  
                    P
                    o
                  
                  -
                  
                    P
                    w
                  
                
                ≤
                0
              
            
            )
          
        
      
    
  
   






Pref reference pressure


 






  
    q
    t
  
  =
  
    
      V
      Δx
    
    ⁢
    
      u
      t
    
    ⁢
    
      
    
    ⁢
    total
    ⁢
    
      
    
    ⁢
    volumetric
    ⁢
    
      
    
    ⁢
    rate
  






 


R universal gas constant


Sp saturation of phase p


T temperature


Tcritc critical temperature of hydrocarbon component c


Tref reference temperature


 






  
    
      T
      _
    
    =
    
      
        V
        
          Δx
          2
        
      
      ⁢
      k
      ⁢
      
        
      
      ⁢
      transmissitivity
    
  
  ,
  
    
      
        T
        _
      
      h
    
    =
    
      
        V
        
          Δx
          2
        
      
      ⁢
      κ
      ⁢
      
        
      
      ⁢
      heat
      ⁢
      
        
      
      ⁢
      transmissitivity
    
  






 


t and Δt time variable and discretization


Up phase energy


 






  
    
      u
      p
    
    ⁢
    
      
    
    ⁢
    phase
    ⁢
    
      
    
    ⁢
    velocity
  
  ,
  
    
      u
      
        t
        ⁢
        
          
        
      
    
    =
    
      
        ∑
        p
      
      ⁢
      
        
          u
          p
        
        ⁢
        
          
        
        ⁢
        total
        ⁢
        
          
        
        ⁢
        velocity
      
    
  
  ,
  
    
      f
      p
    
    ⁢
    
      
    
    ⁢
    phase
    ⁢
    
      
    
    ⁢
    fractional
    ⁢
    
      
    
    ⁢
    flow
  






 


V volume (rock and fluid) of a grid block


x and Δx space variable and discretization


xc fraction of component c in the oil phase


yc fraction of component c in the gas phase


Zc Z-factor for hydrocarbon component c


αe conversion factor Psi → Btu/ft3


κ heat conductivity of the rock and the fluids


κc heat capacity of hydrocarbon component c


 






  
    
      
        
          
            
              λ
              p
            
            ⁢
            
              
            
            ⁢
            phase
            ⁢
            
              
            
            ⁢
            mobility
          
          ,
          
            
              λ
              
                t
                ⁢
                
                  
                
              
            
            =
            
              
                ∑
                p
              
              ⁢
              
                
                  λ
                  p
                
                ⁢
                
                  
                
                ⁢
                total
                ⁢
                
                  
                
                ⁢
                mobility
              
            
          
          ⁢
          
            
          
          ,
          
            
              1
              λ
            
            =
            
              
                ∑
                p
              
              ⁢
              
                
              
              ⁢
              
                
                  1
                  
                    λ
                    p
                  
                
                ⁢
                
                  
                
                ⁢
                harmonic
              
            
          
        
      
    
    
      
        
          average
          ,
          
            
              λ
              pq
            
            =
            
              
                
                  λ
                  p
                
                ⁢
                
                  λ
                  q
                
              
              
                λ
                t
              
            
          
        
      
    
  
   






 


μp phase viscosity


μo,c oil viscosity of hydrocarbon component c


φ porosity of the rock


ρp phase molar density, ρp phase mass density


ρs steam molar density






  
    
      
        
          
            ρ
            c
            ref
          
          ⁢
          
            
          
          ⁢
          oil
          ⁢
          
            
          
          ⁢
          molar
          ⁢
          
            
          
          ⁢
          density
          ⁢
          
            
          
          ⁢
          for
          ⁢
          
            
          
          ⁢
          hydrocarbon
          ⁢
          
            
          
          ⁢
          component
          ⁢
          
            
          
          ⁢
          c
          ⁢
          
            
          
          ⁢
          at
          ⁢
          
            
          
          ⁢
          reference
        
      
    
    
      
        conditions
      
    
  
   






ρrUr or ρrHr rock energy









Below are various exemplary explanations of methodologies and/or modeling used as part of the present invention in relation to an oilfield (in furtherance of FIGS. 6-8), such as a multiphase reservoir system. The various equations used below are numbered simply for ease of reference and do not necessarily indicate any relative importance or ordering. Following the explanations are detailed derivations of the equations and models used below as well as exemplary tests performed in the oilfield.
Derivation of the General Stability Criteria
To evaluate the viability of using AIM-based formulations to model thermal compositional reservoir flows, the behavior of these complex systems is illustrated below with some of the primary variables treated explicitly. For that purpose, a comprehensive linear stability analysis is performed, and concise expressions of the stability limits are reported. The derived stability criteria for the Thermal Adaptive Implicit Method (TAIM) account for explicit treatment of compositions, saturations, and temperature. If the stability limits prove to be sharp, they can be used as ‘switching criteria’ (i.e., labeling a primary variable implicit or explicit for the current time step) in a TAIM-based reservoir simulator.
The system of coupled nonlinear partial differential conservation equations that govern thermal-compositional porous media flows is considered here. Using a minimum set of assumptions, a system of coupled linear convection-dispersion differential equations is derived. The assumptions that lead to this linear system, which are stated clearly, are motivated by physical arguments and observations. The coupled system of linear equations is discretized using standard methods widely used in general-purpose reservoir simulation. Specifically, first-order forward Euler (explicit) approximation is used for the time derivative. First order spatial derivatives are discretized using single-point upstream weighting, and second-order spatial derivatives are discretized using centered differences. The applicability of the limits obtained using the linear stability analysis is tested using fully implicit nonlinear thermal-compositional simulations in the parameter space of practical interest.
The governing equations, which are written for each gridblock, or control-volume of a simulator, are the (1) conservation of mass (moles) for each hydrocarbon component, which may be present in the gas and oil phases, (2) conservation of the water component, which in addition to the (liquid) water phase, could vaporize into the gas phase, and (3) conservation of energy. The coupled nonlinear system of equations is first linearized, then the stability of the discrete linear system, with respect to the growth of small perturbation as a function of time, is tested for all possible combinations of explicit treatment of compositions, saturations, and temperature.
While the derived stability limits are not strictly CFL (Courant-Friedrichs-Lewy) numbers, the term CFL is used to indicate that these numbers can be used to control the time step if an explicit treatment of the variable is employed, or as local switching criteria in adaptive implicit treatments. CFLXc, CFLSp and CFLT are defined as the stability limits for explicit treatment of the composition of hydrocarbon component c, xc, saturation of phase p, Sp, and temperature T, respectively. A system is stable if for every time step and for every gridblock in the model, all CFL<1.
In the derivation, the effect of rock compressibility on the stability behavior is neglected, and the porosity, φ, is assumed constant. Even if the thermal conductivity of the rock and fluid system, κ, depends on water saturation, that dependence is expected to have a negligible impact on the stability behavior. The conservation of mass, or moles, for each of hydrocarbon component c can be written as




  
    
      
        
          φ
          ⁢
          
            
              ∂
              
                ∂
                t
              
            
            ⁡
            
              [
              
                
                  x
                  c
                
                ⁡
                
                  (
                  
                    
                      
                        K
                        c
                      
                      ⁢
                      
                        ρ
                        g
                      
                      ⁢
                      
                        S
                        g
                      
                    
                    +
                    
                      
                        ρ
                        o
                      
                      ⁢
                      
                        S
                        o
                      
                    
                  
                  )
                
              
              ]
            
          
        
        =
        
          -
          
            
              ∂
              
                ∂
                x
              
            
            ⁡
            
              [
              
                
                  x
                  c
                
                ⁡
                
                  (
                  
                    
                      
                        K
                        c
                      
                      ⁢
                      
                        ρ
                        g
                      
                      ⁢
                      
                        u
                        g
                      
                    
                    +
                    
                      
                        ρ
                        o
                      
                      ⁢
                      
                        u
                        o
                      
                    
                  
                  )
                
              
              ]
            
          
        
      
    
    
      
        (
        1
        )
      
    
  




Where nh is the number of hydrocarbon components, nh equations such as equation (1) are formulated. The conservation of the water component, where its presence in the gas phase is only considered for thermal problems, is given by




  
    
      
        
          φ
          ⁢
          
            ∂
            
              ∂
              t
            
          
          ⁢
          
            (
            
              
                
                  K
                  w
                
                ⁢
                
                  ρ
                  g
                
                ⁢
                
                  S
                  g
                
              
              +
              
                
                  ρ
                  w
                
                ⁢
                
                  S
                  w
                
              
            
            )
          
        
        =
        
          
            -
            
              ∂
              
                ∂
                x
              
            
          
          ⁢
          
            (
            
              
                
                  K
                  w
                
                ⁢
                
                  ρ
                  g
                
                ⁢
                
                  u
                  g
                
              
              +
              
                
                  ρ
                  w
                
                ⁢
                
                  u
                  w
                
              
            
            )
          
        
      
    
    
      
        (
        2
        )
      
    
  




For thermal systems, the overall energy balance can be written as follows




  
    
      
        
          
            φ
            ⁢
            
              ∂
              
                ∂
                t
              
            
            ⁢
            
              (
              
                
                  Σ
                  p
                
                ⁢
                
                  ρ
                  p
                
                ⁢
                
                  U
                  p
                
                ⁢
                
                  S
                  p
                
              
              )
            
          
          +
          
            
              (
              
                1
                -
                φ
              
              )
            
            ⁢
            
              ∂
              
                ∂
                t
              
            
            ⁢
            
              (
              
                
                  ρ
                  r
                
                ⁢
                
                  U
                  r
                
              
              )
            
          
        
        =
        
          
            
              -
              
                ∂
                
                  ∂
                  x
                
              
            
            ⁢
            
              (
              
                
                  Σ
                  p
                
                ⁢
                
                  ρ
                  p
                
                ⁢
                
                  H
                  p
                
                ⁢
                
                  u
                  p
                
              
              )
            
          
          +
          
            κ
            ⁢
            
              
                
                  ∂
                  2
                
                ⁢
                T
              
              
                ∂
                
                  x
                  2
                
              
            
          
        
      
    
    
      
        (
        3
        )
      
    
  




where Σp indicates summation over all np fluid phases.

An equation for the overall mass (mole) conservation is obtained by summing the conservation equations of all the hydrocarbon components together with the water equation as below.




  
    
      
        
          φ
          ⁢
          
            ∂
            
              ∂
              t
            
          
          ⁢
          
            (
            
              
                ∑
                p
              
              ⁢
              
                
                  ρ
                  p
                
                ⁢
                
                  S
                  p
                
              
            
            )
          
        
        =
        
          
            -
            
              ∂
              
                ∂
                x
              
            
          
          ⁢
          
            (
            
              
                ∑
                p
              
              ⁢
              
                
                  ρ
                  p
                
                ⁢
                
                  u
                  p
                
              
            
            )
          
        
      
    
    
      
        (
        4
        )
      
    
  




This overall mass balance equation can be used to replace one of the component conservation equations (Eq. 1).
The following are chosen as primary variable set in the system of equations: gas-phase pressure, P; temperature, T; gas saturation Sg; water saturation, Sw; the compositions of nh−1 hydrocarbon components in the oil phase xc. Once all the primary variables are available, all the remaining secondary variables can be computed. The secondary variables include: oil and water pressures, oil saturation, hydrocarbon compositions in the gas phase, and water concentration in the gas.
Temperature Equation
It is noted that the component compositions do not appear explicitly in the overall energy balance. Second, in many steam injection processes, the vapor phase in a few gridblocks, for example in the steam front or close to a steam injector, can quickly become nearly fully saturated with steam, while the compositions of the oil and water phases show small variations. Experience indicates that the derivatives of the energy balance with respect to component compositions can be important, especially when the gas phase had just appeared (i.e. Sg is quite small). In these situations, however, the derivatives of the energy equation with respect to temperature are up to two orders of magnitude larger than those with respect to component compositions. It then makes sense to assume that the stability of the discrete overall energy balance is a weak function of changes in the composition of the fluid phases. So, the energy equation over a control-volume can be thought of as tracking multiple fluid phases with different energy content, but where the composition of the phases is nearly constant. Based on this assumption, the overall energy balance will be nearly independent of the various component conservation equations. With these considerations, a temperature equation for a system composed of np phases is derived. Later, the results obtained under this assumption are validated for thermal problems with significant compositional effects.
The equations (φ assumed constant) are the np mole conservation equations:




  
    
      
        
          φ
          ⁢
          
            ∂
            
              ∂
              t
            
          
          ⁢
          
            (
            
              
                ρ
                p
              
              ⁢
              
                S
                p
              
            
            )
          
        
        =
        
          
            
              -
              
                ∂
                
                  ∂
                  x
                
              
            
            ⁢
            
              (
              
                
                  ρ
                  p
                
                ⁢
                
                  u
                  p
                
              
              )
            
            ⁢
            
              
            
            ⁢
            
              ∀
              p
            
          
          =
          
            1
            ⁢
            
              
            
            ⁢
            ...
            ⁢
            
              
            
            ⁢
            
              n
              p
            
          
        
      
    
    
      
        (
        5
        )
      
    
  




Conservation of energy:




  
    
      
        
          
            φ
            (
            
              
                ∂
                
                  ∂
                  t
                
              
              ⁢
              
                
                  ∑
                  p
                
                ⁢
                
                  
                    ρ
                    p
                  
                  ⁢
                  
                    U
                    p
                  
                  ⁢
                  
                    S
                    p
                  
                
              
            
            )
          
          +
          
            
              (
              
                1
                -
                φ
              
              )
            
            ⁢
            
              
                
                  ∂
                  
                    ρ
                    r
                  
                
                ⁢
                
                  U
                  r
                
              
              
                ∂
                t
              
            
          
        
        =
        
          
            
              -
              
                ∂
                
                  ∂
                  x
                
              
            
            ⁢
            
              (
              
                
                  ∑
                  p
                
                ⁢
                
                  
                    ρ
                    p
                  
                  ⁢
                  
                    H
                    p
                  
                  ⁢
                  
                    u
                    p
                  
                
              
              )
            
          
          +
          
            
              ∂
              
                ∂
                x
              
            
            ⁢
            
              (
              
                κ
                ⁢
                
                  
                    ∂
                    T
                  
                  
                    ∂
                    x
                  
                
              
              )
            
          
        
      
    
    
      
        (
        6
        )
      
    
  




A. Pressure Equation
Developing the conservation of mole equations gives (assuming ρp≠0):




  
    
      
        
          
            
              φρ
              p
            
            ⁢
            
              
                ∂
                
                  S
                  p
                
              
              
                ∂
                t
              
            
          
          +
          
            φ
            ⁢
            
              
                ∂
                
                  ρ
                  p
                
              
              
                ∂
                t
              
            
            ⁢
            
              S
              p
            
          
        
        =
        
          
            
              
                -
                
                  
                    ∂
                    
                      ρ
                      p
                    
                  
                  
                    ∂
                    x
                  
                
              
              ⁢
              
                u
                p
              
            
            -
            
              
                ρ
                p
              
              ⁢
              
                
                  ∂
                  
                    u
                    p
                  
                
                
                  ∂
                  x
                
              
              ⁢
              
                
              
              ⁢
              
                ∀
                p
              
            
          
          =
          
            
              
                1
                ⁢
                
                  
                
                ⁢
                ...
                ⁢
                
                  
                
                ⁢
                
                  n
                  p
                
              
              ⇔
              
                

              
              ⁢
              
                
                  φ
                  ⁢
                  
                    
                      ∂
                      
                        S
                        p
                      
                    
                    
                      ∂
                      t
                    
                  
                
                +
                
                  φ
                  ⁢
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      t
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
              
            
            =
            
              
                
                  
                    -
                    
                      1
                      
                        ρ
                        p
                      
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      x
                    
                  
                  ⁢
                  
                    u
                    p
                  
                
                -
                
                  
                    
                      ∂
                      
                        u
                        p
                      
                    
                    
                      ∂
                      x
                    
                  
                  ⁢
                  
                    
                  
                  ⁢
                  
                    ∀
                    p
                  
                
              
              =
              
                1
                ⁢
                
                  
                
                ⁢
                ...
                ⁢
                
                  
                
                ⁢
                
                  n
                  p
                
              
            
          
        
      
    
    
      
        (
        7
        )
      
    
  




Summing all the equations gives the pressure equation:




  
    
      
        
          φ
          ⁢
          
            
              ∑
              p
            
            ⁢
            
              
                1
                
                  ρ
                  p
                
              
              ⁢
              
                
                  ∂
                  
                    ρ
                    p
                  
                
                
                  ∂
                  t
                
              
              ⁢
              
                S
                p
              
            
          
        
        =
        
          
            -
            
              
                ∑
                p
              
              ⁢
              
                
                  1
                  
                    ρ
                    p
                  
                
                ⁢
                
                  
                    ∂
                    
                      ρ
                      p
                    
                  
                  
                    ∂
                    x
                  
                
                ⁢
                
                  u
                  p
                
              
            
          
          -
          
            
              ∂
              
                u
                t
              
            
            
              ∂
              x
            
          
        
      
    
    
      
        (
        8
        )
      
    
  




The primary pressure P is the pressure of one of the phase.
Assuming spatial variation of the total velocity small, the pressure equation can be written as:




  
    
      
        
          
            
              φ
              (
              
                
                  ∑
                  p
                
                ⁢
                
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      P
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
              
              )
            
            ⁢
            
              
                ∂
                P
              
              
                ∂
                t
              
            
          
          +
          
            
              φ
              (
              
                
                  ∑
                  p
                
                ⁢
                
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      T
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
              
              )
            
            ⁢
            
              
                ∂
                T
              
              
                ∂
                t
              
            
          
        
        =
        
          
            -
            
              (
              
                
                  ∑
                  p
                
                ⁢
                
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      T
                    
                  
                  ⁢
                  
                    u
                    p
                  
                
              
              )
            
          
          ⁢
          
            
              ∂
              T
            
            
              ∂
              x
            
          
        
      
    
    
      
        (
        9
        )
      
    
  




B. Temperature Equation
Developing the energy equation gives (assuming κ constant):




  
    
      
        
          
            φ
            ⁢
            
              
                ∑
                p
              
              ⁢
              
                
                  
                    ∂
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    U
                    p
                  
                  ⁢
                  
                    S
                    p
                  
                
                
                  ∂
                  t
                
              
            
          
          +
          
            
              (
              
                1
                -
                φ
              
              )
            
            ⁢
            
              
                
                  ∂
                  
                    ρ
                    r
                  
                
                ⁢
                
                  U
                  r
                
              
              
                ∂
                t
              
            
          
        
        =
        
          
            -
            
              
                ∑
                p
              
              ⁢
              
                
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    ⁢
                    
                      H
                      p
                    
                  
                  
                    ∂
                    x
                  
                
                ⁢
                
                  u
                  p
                
              
            
          
          -
          
            
              ∑
              p
            
            ⁢
            
              
                ρ
                p
              
              ⁢
              
                H
                p
              
              ⁢
              
                
                  ∂
                  
                    u
                    p
                  
                
                
                  ∂
                  x
                
              
            
          
          +
          
            κ
            ⁢
            
              
                
                  ∂
                  2
                
                ⁢
                T
              
              
                ∂
                
                  x
                  2
                
              
            
          
        
      
    
    
      
        (
        10
        )
      
    
  




Replacing




  
    ∂
    
      u
      p
    
  
  
    ∂
    x
  




from (7) in the energy equation gives:





  
    
      
        
          
            φ
            ⁢
            
              
                ∑
                p
              
              ⁢
              
                (
                
                  
                    
                      
                        ∂
                        
                          ρ
                          p
                        
                      
                      ⁢
                      
                        U
                        p
                      
                      ⁢
                      
                        S
                        p
                      
                    
                    
                      ∂
                      t
                    
                  
                  -
                  
                    
                      
                        H
                        p
                      
                      ⁢
                      
                        ∂
                        
                          ρ
                          p
                        
                      
                      ⁢
                      
                        S
                        p
                      
                    
                    
                      ∂
                      t
                    
                  
                
                )
              
            
          
          +
          
            
              (
              
                1
                -
                φ
              
              )
            
            ⁢
            
              
                
                  ∂
                  
                    ρ
                    r
                  
                
                ⁢
                
                  U
                  r
                
              
              
                ∂
                t
              
            
          
        
        =
        
          
            -
            
              
                ∑
                p
              
              ⁢
              
                
                  (
                  
                    
                      
                        
                          ∂
                          
                            ρ
                            p
                          
                        
                        ⁢
                        
                          H
                          p
                        
                      
                      
                        ∂
                        x
                      
                    
                    -
                    
                      
                        H
                        p
                      
                      ⁢
                      
                        
                          ∂
                          
                            ρ
                            p
                          
                        
                        
                          ∂
                          x
                        
                      
                    
                  
                  )
                
                ⁢
                
                  u
                  p
                
              
            
          
          +
          
            κ
            ⁢
            
              
                
                  ∂
                  2
                
                ⁢
                T
              
              
                ∂
                
                  x
                  2
                
              
            
          
        
      
    
    
      
        (
        11
        )
      
    
  




With ρpUp=ρpHp−αPp (α conversion factor psi  Btu/ft3) the equation can be written as:




  
    
      
        
          
            φ
            ⁢
            
              
                ∑
                p
              
              ⁢
              
                (
                
                  
                    
                      ρ
                      p
                    
                    ⁢
                    
                      
                        ∂
                        
                          H
                          p
                        
                      
                      
                        ∂
                        t
                      
                    
                    ⁢
                    
                      S
                      p
                    
                  
                  -
                  
                    α
                    ⁢
                    
                      
                        
                          ∂
                          
                            P
                            p
                          
                        
                        ⁢
                        
                          S
                          p
                        
                      
                      
                        ∂
                        t
                      
                    
                  
                
                )
              
            
          
          +
          
            
              (
              
                1
                -
                φ
              
              )
            
            ⁢
            
              
                
                  ∂
                  
                    ρ
                    r
                  
                
                ⁢
                
                  U
                  r
                
              
              
                ∂
                t
              
            
          
        
        =
        
          
            -
            
              
                ∑
                p
              
              ⁢
              
                
                  ρ
                  p
                
                ⁢
                
                  
                    ∂
                    
                      H
                      p
                    
                  
                  
                    ∂
                    x
                  
                
                ⁢
                
                  u
                  p
                
              
            
          
          +
          
            κ
            ⁢
            
              
                
                  ∂
                  2
                
                ⁢
                T
              
              
                ∂
                
                  x
                  2
                
              
            
          
        
      
    
    
      
        (
        12
        )
      
    
  
  
    
      
        
          
            
              [
              
                
                  
                    φΣ
                    p
                  
                  ⁢
                  
                    ρ
                    p
                  
                  ⁢
                  
                    
                      ∂
                      
                        H
                        p
                      
                    
                    
                      ∂
                      T
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
                +
                
                  
                    (
                    
                      1
                      -
                      φ
                    
                    )
                  
                  ⁢
                  
                    
                      
                        ∂
                        
                          ρ
                          r
                        
                      
                      ⁢
                      
                        U
                        r
                      
                    
                    
                      ∂
                      T
                    
                  
                
              
              ]
            
            ⁢
            
              
                ∂
                T
              
              
                ∂
                t
              
            
          
          -
          
            
              α
              e
            
            ⁢
            
              φΣ
              p
            
            ⁢
            
              P
              p
            
            ⁢
            
              
                ∂
                
                  S
                  p
                
              
              
                ∂
                t
              
            
          
          +
          
            
              φ
              ⁡
              
                (
                
                  
                    
                      Σ
                      p
                    
                    ⁢
                    
                      ρ
                      p
                    
                    ⁢
                    
                      
                        ∂
                        
                          H
                          p
                        
                      
                      
                        ∂
                        P
                      
                    
                    ⁢
                    
                      S
                      p
                    
                  
                  -
                  
                    α
                    e
                  
                
                )
              
            
            ⁢
            
              
                ∂
                P
              
              
                ∂
                t
              
            
          
        
        =
        
          
            
              -
              
                (
                
                  
                    Σ
                    p
                  
                  ⁢
                  
                    ρ
                    p
                  
                  ⁢
                  
                    
                      ∂
                      
                        H
                        p
                      
                    
                    
                      ∂
                      T
                    
                  
                  ⁢
                  
                    u
                    p
                  
                
                )
              
            
            ⁢
            
              
                ∂
                T
              
              
                
                  ∂
                  x
                
                ⁢
                
                  
                
              
            
          
          +
          
            κ
            ⁢
            
              
                
                  ∂
                  2
                
                ⁢
                T
              
              
                ∂
                
                  x
                  2
                
              
            
          
        
      
    
    
      
        (
        13
        )
      
    
  




Replacing




  
    ∂
    P
  
  
    ∂
    t
  




from the pressure equation (9) and defining γS and γu in (14) and (15) gives an equation in function of the temperature derivatives and the saturations derivatives:





  
    
      
        
          
            γ
            ⁢
            
              
            
            ⁢
            s
          
          =
          
            
              
                Σ
                p
              
              ⁢
              
                ρ
                p
              
              ⁢
              
                
                  ∂
                  
                    H
                    p
                  
                
                
                  ∂
                  T
                
              
              ⁢
              
                S
                p
              
            
            +
            
              
                
                  1
                  -
                  φ
                
                φ
              
              ⁢
              
                ∂
                
                  ∂
                  T
                
              
              ⁢
              
                (
                
                  
                    ρ
                    r
                  
                  ⁢
                  
                    U
                    r
                  
                
                )
              
            
            -
            
              
                
                  
                    
                      Σ
                      p
                    
                    ⁢
                    
                      ρ
                      p
                    
                    ⁢
                    
                      
                        ∂
                        
                          H
                          p
                        
                      
                      
                        ∂
                        P
                      
                    
                    ⁢
                    
                      S
                      p
                    
                  
                  -
                  α
                
                
                  
                    Σ
                    p
                  
                  ⁢
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      P
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
              
              ⁢
              
                (
                
                  
                    Σ
                    p
                  
                  ⁢
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      T
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
                )
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            γ
            u
          
          =
          
            
              
                ∑
                p
              
              ⁢
              
                
                  ρ
                  p
                
                ⁢
                
                  
                    ∂
                    
                      H
                      p
                    
                  
                  
                    ∂
                    T
                  
                
                ⁢
                
                  u
                  p
                
              
            
            -
            
              
                
                  
                    
                      Σ
                      p
                    
                    ⁢
                    
                      ρ
                      p
                    
                    ⁢
                    
                      
                        ∂
                        
                          H
                          p
                        
                      
                      
                        ∂
                        P
                      
                    
                    ⁢
                    
                      S
                      p
                    
                  
                  -
                  α
                
                
                  
                    Σ
                    p
                  
                  ⁢
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      P
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
              
              ⁢
              
                (
                
                  
                    ∑
                    p
                  
                  ⁢
                  
                    
                      1
                      
                        ρ
                        p
                      
                    
                    ⁢
                    
                      
                        ∂
                        
                          ρ
                          p
                        
                      
                      
                        ∂
                        T
                      
                    
                    ⁢
                    
                      u
                      p
                    
                  
                
                )
              
            
          
        
      
    
    
      
        (
        14
        )
      
    
  
  
    
      
        
          
            φγ
            ⁢
            
              
            
            ⁢
            s
            ⁢
            
              
                ∂
                T
              
              
                ∂
                t
              
            
          
          -
          
            αφ
            ⁢
            
              
                ∑
                p
              
              ⁢
              
                
                  P
                  p
                
                ⁢
                
                  
                    ∂
                    
                      S
                      p
                    
                  
                  
                    ∂
                    t
                  
                
              
            
          
        
        =
        
          
            
              -
              
                γ
                u
              
            
            ⁢
            
              
                ∂
                T
              
              
                ∂
                x
              
            
          
          +
          
            κ
            ⁢
            
              
                
                  ∂
                  2
                
                ⁢
                T
              
              
                ∂
                
                  x
                  2
                
              
            
          
        
      
    
    
      
        (
        15
        )
      
    
  




This equation is a temperature equation only if the capillary pressures in the accumulation terms is neglected. For instance, for 3-phase problems with Sg and Sw as primary variables, So=1−Sg−Sw and the saturation derivative term can be written as:




  
    
      
        
          
            -
            αφ
          
          ⁢
          
            
              ∑
              p
            
            ⁢
            
              
                P
                p
              
              ⁢
              
                
                  ∂
                  
                    S
                    p
                  
                
                
                  ∂
                  t
                
              
            
          
        
        =
        
          
            
              
                -
                
                  αφ
                  ⁡
                  
                    (
                    
                      
                        P
                        g
                      
                      -
                      
                        P
                        o
                      
                    
                    )
                  
                
              
              ⁢
              
                
                  ∂
                  
                    S
                    g
                  
                
                
                  ∂
                  t
                
              
            
            -
            
              
                αφ
                ⁡
                
                  (
                  
                    
                      P
                      w
                    
                    -
                    
                      P
                      o
                    
                  
                  )
                
              
              ⁢
              
                
                  ∂
                  
                    S
                    w
                  
                
                
                  ∂
                  t
                
              
            
          
          ≈
          0
        
      
    
    
      
        (
        16
        )
      
    
  




Giving the advection/diffusion equation in temperature only:




  
    
      
        
          φγ
          ⁢
          
            
          
          ⁢
          s
          ⁢
          
            
              ∂
              T
            
            
              ∂
              t
            
          
        
        =
        
          
            
              -
              γ
            
            ⁢
            
              
            
            ⁢
            u
            ⁢
            
              
                ∂
                T
              
              
                ∂
                x
              
            
          
          +
          
            κ
            ⁢
            
              
                
                  ∂
                  2
                
                ⁢
                T
              
              
                ∂
                
                  x
                  2
                
              
            
          
        
      
    
    
      
        (
        17
        )
      
    
  




Discretizing these linear equations with forward Euler schemes for time and length and analyzing the errors growth by the Von Neumann method will result in CFL for the explicit treatment of the temperature composed of a convection term function of the phase volumetric rates qp and a conduction term proportional to the heat transmissibility Th:




  
    
      
        
          
            C
            ⁢
            
              
            
            ⁢
            F
            ⁢
            
              
            
            ⁢
            L
            ⁢
            
              
            
            ⁢
            T
          
          =
          
            
              Δ
              ⁢
              
                
              
              ⁢
              t
              ⁢
              
                
                
                  
                    
                      1
                      
                        φ
                        ⁢
                        
                          
                        
                        ⁢
                        V
                      
                    
                    ⁢
                    
                      
                        γ
                        q
                      
                      
                        γ
                        S
                      
                    
                  
                  +
                  
                    
                      
                        
                          T
                          _
                        
                        h
                      
                      
                        φ
                        ⁢
                        
                          
                        
                        ⁢
                        V
                      
                    
                    ⁢
                    
                      2
                      
                        γ
                        S
                      
                    
                  
                
                
              
            
            <
            1
          
        
        ⁢
        
          

        
        ⁢
        
          
            γ
            q
          
          =
          
            
              
                ∑
                p
              
              ⁢
              
                
                  ρ
                  p
                
                ⁢
                
                  
                    ∂
                    
                      H
                      p
                    
                  
                  
                    ∂
                    T
                  
                
                ⁢
                
                  q
                  p
                
              
            
            -
            
              
                
                  
                    
                      Σ
                      p
                    
                    ⁢
                    
                      ρ
                      p
                    
                    ⁢
                    
                      
                        ∂
                        
                          H
                          p
                        
                      
                      
                        ∂
                        P
                      
                    
                    ⁢
                    
                      S
                      p
                    
                  
                  -
                  
                    α
                    e
                  
                
                
                  
                    Σ
                    p
                  
                  ⁢
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      P
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
              
              ⁢
              
                (
                
                  
                    ∑
                    p
                  
                  ⁢
                  
                    
                      1
                      
                        ρ
                        p
                      
                    
                    ⁢
                    
                      
                        ∂
                        
                          ρ
                          p
                        
                      
                      
                        ∂
                        T
                      
                    
                    ⁢
                    
                      q
                      p
                    
                  
                
                )
              
            
          
        
      
    
    
      
        (
        18
        )
      
    
  




Coupled Thermal-Compositional System
Thermal multi-component multiphase flow in porous media can be described using the following system of coupled conservation equations:

    
    
        (nh−1) hydrocarbon-component conservation equations. With each equation, the corresponding hydrocarbon composition in the liquid phase (for compositional and black-oil systems only) is aligned as the primary unknown.
        (np−1) ‘saturation equations’. Namely, the conservation equation for total mass (moles) and the conservation equation for the water component. The saturation of gas and water are aligned, respectively, with these two equations. For a two-phase system, one equation and one saturation are used; the specific choice depends on the phase state.
        The temperature equation (overall energy balance) is aligned with the temperature variable.
    
    


Let X denote the vector of nh−1 oil compositions and S the vector of phase saturations (Sg,Sw). The following assumptions are made: (1) the derivatives with respect to pressure are negligible, (2) the dependence of fluid properties on composition is weak, (3) spatial variation of the total-velocity is small (i.e., ∂ut/∂x≈0), and (4) the cross-derivative terms are negligible. Based on these considerations, the nonlinear system of conservation equations can be reduced to the following coupled linear convection-dispersion equations:




  
    
      
        
          
            (
            
              
                
                  
                    C
                    XX
                  
                
                
                  
                    C
                    XS
                  
                
                
                  
                    C
                    XT
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    C
                    SS
                  
                
                
                  
                    C
                    ST
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    
                  
                
                
                  
                    C
                    TT
                  
                
              
            
            )
          
          ⁢
          
            (
            
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    X
                  
                
              
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    S
                  
                
              
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    T
                  
                
              
            
            )
          
        
        =
        
          
            
              -
              
                (
                
                  
                    
                      
                        L
                        XX
                      
                    
                    
                      
                        L
                        XS
                      
                    
                    
                      
                        L
                        XT
                      
                    
                  
                  
                    
                      
                        
                      
                    
                    
                      
                        L
                        SS
                      
                    
                    
                      
                        L
                        ST
                      
                    
                  
                  
                    
                      
                        
                      
                    
                    
                      
                        
                      
                    
                    
                      
                        L
                        TT
                      
                    
                  
                
                )
              
            
            ⁢
            
              (
              
                
                  
                    
                      
                        ∂
                        t
                      
                      ⁢
                      X
                    
                  
                
                
                  
                    
                      
                        ∂
                        t
                      
                      ⁢
                      S
                    
                  
                
                
                  
                    
                      
                        ∂
                        t
                      
                      ⁢
                      T
                    
                  
                
              
              )
            
          
          +
          
            
              (
              
                
                  
                    
                      M
                      XS
                    
                  
                  
                    
                      M
                      XT
                    
                  
                
                
                  
                    
                      M
                      SS
                    
                  
                  
                    
                      M
                      ST
                    
                  
                
                
                  
                    
                      
                    
                  
                  
                    
                      M
                      TT
                    
                  
                
              
              )
            
            ⁢
            
              (
              
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      X
                    
                  
                
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      S
                    
                  
                
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      T
                    
                  
                
              
              )
            
          
        
      
    
    
      
        (
        19
        )
      
    
  




Note that the equations are ordered as follows: the first block-row is composed of nh−1 component mass balances; the second block row is composed of np−1 equations, which for three-phase flow are the balances of overall-mass and water; the last row is the temperature equation. The primary variables are ordered as (X,S,T)T.
In Eq. 19, the second block-row (saturation equations) is independent of the composition vector, X, and the last row (temperature equation) is decoupled from both X and S. Using the temperature equation and the overall mass balance and water equations to eliminate the off diagonal terms on the left-hand-side, the following is obtained:




  
    
      
        
          
            (
            
              
                
                  
                    C
                    XX
                  
                
                
                  
                    
                  
                
                
                  
                    
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    C
                    SS
                  
                
                
                  
                    
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    
                  
                
                
                  
                    C
                    TT
                  
                
              
            
            )
          
          ⁢
          
            (
            
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    X
                  
                
              
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    S
                  
                
              
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    T
                  
                
              
            
            )
          
        
        =
        
          
            
              -
              
                (
                
                  
                    
                      
                        L
                        XX
                      
                    
                    
                      
                        L
                        XS
                        ′
                      
                    
                    
                      
                        L
                        XT
                        ′
                      
                    
                  
                  
                    
                      
                        
                      
                    
                    
                      
                        L
                        SS
                      
                    
                    
                      
                        L
                        ST
                        ′
                      
                    
                  
                  
                    
                      
                        
                      
                    
                    
                      
                        
                      
                    
                    
                      
                        L
                        TT
                      
                    
                  
                
                )
              
            
            ⁢
            
              (
              
                
                  
                    
                      
                        ∂
                        x
                      
                      ⁢
                      X
                    
                  
                
                
                  
                    
                      
                        ∂
                        x
                      
                      ⁢
                      S
                    
                  
                
                
                  
                    
                      
                        ∂
                        x
                      
                      ⁢
                      T
                    
                  
                
              
              )
            
          
          +
          
            
              (
              
                
                  
                    
                      M
                      XS
                      ′
                    
                  
                  
                    
                      M
                      XT
                      ′
                    
                  
                
                
                  
                    
                      M
                      SS
                    
                  
                  
                    
                      M
                      ST
                      ′
                    
                  
                
                
                  
                    
                      
                    
                  
                  
                    
                      M
                      TT
                    
                  
                
              
              )
            
            ⁢
            
              (
              
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      X
                    
                  
                
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      S
                    
                  
                
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      T
                    
                  
                
              
              )
            
          
        
      
    
    
      
        (
        20
        )
      
    
  




Application of the inverse of the diagonal left-hand-side matrix gives a coupled system of linear convection-dispersion equations:




  
    
      
        
          
            (
            
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    X
                  
                
              
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    S
                  
                
              
              
                
                  
                    
                      ∂
                      t
                    
                    ⁢
                    T
                  
                
              
            
            )
          
          =
          
            
              -
              
                L
                ⁡
                
                  (
                  
                    
                      
                        
                          
                            ∂
                            x
                          
                          ⁢
                          X
                        
                      
                    
                    
                      
                        
                          
                            ∂
                            x
                          
                          ⁢
                          S
                        
                      
                    
                    
                      
                        
                          
                            ∂
                            x
                          
                          ⁢
                          T
                        
                      
                    
                  
                  )
                
              
            
            +
            
              M
              ⁡
              
                (
                
                  
                    
                      
                        
                          ∂
                          x
                          2
                        
                        ⁢
                        X
                      
                    
                  
                  
                    
                      
                        
                          ∂
                          x
                          2
                        
                        ⁢
                        S
                      
                    
                  
                  
                    
                      
                        
                          ∂
                          x
                          2
                        
                        ⁢
                        T
                      
                    
                  
                
                )
              
            
          
        
        ⁢
        
          

        
        ⁢
        where
      
    
    
      
        (
        21
        )
      
    
  
  
    
      
        
          L
          =
          
            (
            
              
                
                  
                    
                      C
                      XX
                      
                        -
                        1
                      
                    
                    ⁢
                    
                      L
                      XX
                    
                  
                
                
                  
                    
                      C
                      XX
                      
                        -
                        1
                      
                    
                    ⁢
                    
                      L
                      XS
                      ′
                    
                  
                
                
                  
                    
                      C
                      XX
                      
                        -
                        1
                      
                    
                    ⁢
                    
                      L
                      XT
                      ′
                    
                  
                
              
              
                
                  0
                
                
                  
                    
                      C
                      SS
                      
                        -
                        1
                      
                    
                    ⁢
                    
                      L
                      SS
                    
                  
                
                
                  
                    
                      C
                      SS
                      
                        -
                        1
                      
                    
                    ⁢
                    
                      L
                      ST
                      ′
                    
                  
                
              
              
                
                  0
                
                
                  0
                
                
                  
                    
                      C
                      TT
                      
                        -
                        1
                      
                    
                    ⁢
                    
                      L
                      TT
                    
                  
                
              
            
            )
          
        
        ⁢
        
          

        
        ⁢
        and
      
    
    
      
        (
        22
        )
      
    
  
  
    
      
        M
        =
        
          (
          
            
              
                0
              
              
                
                  
                    C
                    XX
                    
                      -
                      1
                    
                  
                  ⁢
                  
                    M
                    XS
                    ′
                  
                
              
              
                
                  
                    C
                    XX
                    
                      -
                      1
                    
                  
                  ⁢
                  
                    M
                    XT
                    ′
                  
                
              
            
            
              
                0
              
              
                
                  
                    C
                    SS
                    
                      -
                      1
                    
                  
                  ⁢
                  
                    M
                    SS
                  
                
              
              
                
                  
                    C
                    SS
                    
                      -
                      1
                    
                  
                  ⁢
                  
                    M
                    ST
                    ′
                  
                
              
            
            
              
                0
              
              
                0
              
              
                
                  
                    C
                    TT
                    
                      -
                      1
                    
                  
                  ⁢
                  
                    M
                    TT
                  
                
              
            
          
          )
        
      
    
    
      
        (
        23
        )
      
    
  




It is shown below that the stability of the discrete linear system depends on the diagonal entries in L and M.
The composition term has the following form




  
    
      
        
          
            
              C
              XX
              
                -
                1
              
            
            ⁢
            
              L
              XX
            
          
          =
          
            
              1
              φ
            
            ⁢
            
              (
              
                
                  
                    
                      ξ
                      1
                    
                  
                  
                    
                      
                    
                  
                  
                    
                      
                    
                  
                
                
                  
                    
                      
                    
                  
                  
                    ⋱
                  
                  
                    
                      
                    
                  
                
                
                  
                    
                      
                    
                  
                  
                    
                      
                    
                  
                  
                    
                      ξ
                      
                        
                          n
                          h
                        
                        -
                        1
                      
                    
                  
                
              
              )
            
          
        
        ⁢
        
          

        
        ⁢
        where
      
    
    
      
        (
        24
        )
      
    
  
  
    
      
        
          ξ
          c
        
        =
        
          
            
              
                K
                c
              
              ⁢
              
                ρ
                g
              
              ⁢
              
                u
                g
              
            
            +
            
              
                ρ
                o
              
              ⁢
              
                u
                o
              
            
          
          
            
              
                K
                c
              
              ⁢
              
                ρ
                g
              
              ⁢
              
                S
                g
              
            
            +
            
              
                ρ
                o
              
              ⁢
              
                S
                o
              
            
          
        
      
    
    
      
        (
        25
        )
      
    
  




is the ratio of the mass (moles) of component, c, flowing out of the gridblock to the amount of component c in the gridblock.

For a three-phase system, whether thermal or isothermal, the saturation terms are given by:




  
    
      
        
          
            C
            SS
            
              -
              1
            
          
          ⁢
          
            L
            SS
          
        
        =
        
          
            
              
                u
                t
              
              φ
            
            ⁢
            
              (
              
                
                  
                    
                      
                        ∂
                        
                          f
                          g
                        
                      
                      
                        ∂
                        
                          S
                          g
                        
                      
                    
                  
                  
                    
                      
                        ∂
                        
                          f
                          g
                        
                      
                      
                        ∂
                        
                          S
                          w
                        
                      
                    
                  
                
                
                  
                    
                      
                        ∂
                        
                          f
                          w
                        
                      
                      
                        ∂
                        
                          S
                          g
                        
                      
                    
                  
                  
                    
                      
                        ∂
                        
                          f
                          w
                        
                      
                      
                        ∂
                        
                          S
                          w
                        
                      
                    
                  
                
              
              )
            
          
          =
          
            
              
                u
                t
              
              φ
            
            ⁢
            F
          
        
      
    
    
      
        (
        26
        )
      
    
  




where F is the matrix of fractional flow derivatives. And,





  
    
      
        
          
            
              
                C
                SS
                
                  -
                  1
                
              
              ⁢
              
                M
                SS
              
            
            =
            
              
                k
                φ
              
              ⁢
              Q
            
          
          ,
          where
        
        ⁢
        
          

        
        ⁢
        
          Q
          =
          
            (
            
              
                
                  
                    
                      
                        λ
                        _
                      
                      gw
                    
                    ⁢
                    
                      P
                      
                        c
                        WO
                      
                      ′
                    
                  
                
                
                  
                    
                      (
                      
                        
                          
                            λ
                            _
                          
                          go
                        
                        +
                        
                          
                            λ
                            _
                          
                          gw
                        
                      
                      )
                    
                    ⁢
                    
                      P
                      
                        c
                        GO
                      
                      ′
                    
                  
                
              
              
                
                  
                    
                      -
                      
                        (
                        
                          
                            
                              λ
                              _
                            
                            gw
                          
                          +
                          
                            
                              (
                              
                                λ
                                _
                              
                              )
                            
                            ow
                          
                        
                        )
                      
                    
                    ⁢
                    
                      P
                      
                        c
                        WO
                      
                      ′
                    
                  
                
                
                  
                    
                      -
                      
                        
                          λ
                          _
                        
                        gw
                      
                    
                    ⁢
                    
                      P
                      
                        c
                        GO
                      
                      ′
                    
                  
                
              
            
            )
          
        
      
    
    
      
        (
        27
        )
      
    
  




The proofs for Eqs. 26 and 27 are shown in the section “Thermal Saturation System” below. For a two-phase system, the saturation terms are:




  
    
      
        
          
            
              C
              SS
              
                -
                1
              
            
            ⁢
            
              L
              SS
            
          
          =
          
            
              
                u
                t
              
              φ
            
            ⁢
            
              
                ∂
                
                  f
                  p
                
              
              
                ∂
                
                  S
                  p
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        and
      
    
    
      
        (
        28
        )
      
    
  
  
    
      
        
          
            C
            SS
            
              -
              1
            
          
          ⁢
          
            M
            SS
          
        
        =
        
          
            k
            φ
          
          ⁢
          
            λ
            _
          
          ⁢
          
            P
            c
            ′
          
        
      
    
    
      
        (
        29
        )
      
    
  




The terms related to the energy, or temperature, equation, for either two or three-phase systems are given by:




  
    
      
        
          
            
              C
              TT
              
                -
                1
              
            
            ⁢
            
              L
              TT
            
          
          =
          
            
              γ
              u
            
            
              φγ
              S
            
          
        
        ⁢
        
          

        
        ⁢
        and
      
    
    
      
        (
        30
        )
      
    
  
  
    
      
        
          
            C
            TT
            
              -
              1
            
          
          ⁢
          
            M
            TT
          
        
        =
        
          κ
          
            φγ
            S
          
        
      
    
    
      
        (
        31
        )
      
    
  




Stability Analysis
In this section, the results of the stability analysis on the entire linear discrete thermal-compositional system is reported.
Eq. 21 is discretized using explicit first-order (forward Euler) time discretization. First-order spatial derivatives are discretized using single-point upstream weighting, and second-order derivatives are represented using centered differences. Linear stability analysis of this coupled discrete thermal-compositional system is performed. Specifically, a Von Neumann analysis is applied, in which the growth of small errors as a function of time is analyzed. The details of the methodology are shown in the Appendix.
Here, the expressions of the comprehensive stability criteria for explicit treatment of compositions, saturations and temperature is given:

    
    
        The CFL criterion for the explicit treatment of each hydrocarbon composition c is:
    
    






  
    
      
        
          C
          ⁢
          
            
          
          ⁢
          F
          ⁢
          
            
          
          ⁢
          L
          ⁢
          
            
          
          ⁢
          
            X
            c
          
        
        =
        
          
            Δ
            ⁢
            
              
            
            ⁢
            t
            ⁢
            
              
              
                
                  1
                  
                    φ
                    ⁢
                    
                      
                    
                    ⁢
                    V
                  
                
                ⁢
                
                  
                    
                      
                        K
                        c
                      
                      ⁢
                      
                        ρ
                        g
                      
                      ⁢
                      
                        q
                        g
                      
                    
                    +
                    
                      
                        ρ
                        o
                      
                      ⁢
                      
                        q
                        o
                      
                    
                  
                  
                    
                      
                        K
                        c
                      
                      ⁢
                      
                        ρ
                        g
                      
                      ⁢
                      
                        S
                        g
                      
                    
                    +
                    
                      
                        ρ
                        o
                      
                      ⁢
                      
                        S
                        o
                      
                    
                  
                
              
              
            
          
          <
          1
        
      
    
    
      
        (
        32
        )
      
    
  




    
    
         These expressions basically state that the mass (moles) flowing out of a gridblock in a time step cannot exceed the mass (moles) in the gridblock.
        The CFL for the explicit treatment of saturation in a two-phase system is:
    
    






  
    
      
        
          C
          ⁢
          
            
          
          ⁢
          F
          ⁢
          
            
          
          ⁢
          L
          ⁢
          
            
          
          ⁢
          
            S
            p
          
        
        =
        
          
            Δ
            ⁢
            
              
            
            ⁢
            t
            ⁢
            
              
              
                
                  
                    
                      q
                      t
                    
                    
                      φ
                      ⁢
                      
                        
                      
                      ⁢
                      V
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        f
                        p
                      
                    
                    
                      ∂
                      
                        S
                        p
                      
                    
                  
                
                +
                
                  2
                  ⁢
                  
                    
                      T
                      _
                    
                    
                      φ
                      ⁢
                      
                        
                      
                      ⁢
                      V
                    
                  
                  ⁢
                  
                    λ
                    _
                  
                  ⁢
                  
                    P
                    c
                    ′
                  
                
              
              
            
          
          <
          1
        
      
    
    
      
        (
        33
        )
      
    
  




    
    
        The CFL for the explicit treatment of saturation in a three-phase system is expressed as the eigenvalues of a two by two matrix system:
    
    






  
    
      
        
          C
          ⁢
          
            
          
          ⁢
          F
          ⁢
          
            
          
          ⁢
          L
          ⁢
          
            
          
          ⁢
          S
        
        =
        
          
            Δ
            ⁢
            
              
            
            ⁢
            t
            ⁢
            
              
              
                
                  
                    
                      q
                      t
                    
                    
                      φ
                      ⁢
                      
                        
                      
                      ⁢
                      V
                    
                  
                  ⁢
                  F
                
                +
                
                  2
                  ⁢
                  
                    
                      T
                      _
                    
                    
                      φ
                      ⁢
                      
                        
                      
                      ⁢
                      V
                    
                  
                  ⁢
                  Q
                
              
              
            
          
          <
          1
        
      
    
    
      
        (
        34
        )
      
    
  




    
    
        The CFL for the explicit treatment of temperature is:
    
    






  
    
      
        
          
            C
            ⁢
            
              
            
            ⁢
            F
            ⁢
            
              
            
            ⁢
            L
            ⁢
            
              
            
            ⁢
            T
          
          =
          
            
              Δ
              ⁢
              
                
              
              ⁢
              t
              ⁢
              
                
                
                  
                    
                      1
                      
                        φ
                        ⁢
                        
                          
                        
                        ⁢
                        V
                      
                    
                    ⁢
                    
                      
                        γ
                        q
                      
                      
                        γ
                        S
                      
                    
                  
                  +
                  
                    
                      
                        
                          T
                          _
                        
                        h
                      
                      
                        φ
                        ⁢
                        
                          
                        
                        ⁢
                        V
                      
                    
                    ⁢
                    
                      2
                      
                        γ
                        S
                      
                    
                  
                
                
              
            
            <
            1
          
        
        ⁢
        
          

        
        ⁢
        with
      
    
    
      
        (
        35
        )
      
    
  
  
    
      
        
          γ
          q
        
        =
        
          
            
              ∑
              p
            
            ⁢
            
              
                ρ
                p
              
              ⁢
              
                
                  ∂
                  
                    H
                    p
                  
                
                
                  ∂
                  T
                
              
              ⁢
              
                q
                p
              
            
          
          -
          
            
              
                
                  
                    Σ
                    p
                  
                  ⁢
                  
                    ρ
                    p
                  
                  ⁢
                  
                    
                      ∂
                      
                        H
                        p
                      
                    
                    
                      ∂
                      P
                    
                  
                  ⁢
                  
                    S
                    p
                  
                
                -
                
                  α
                  e
                
              
              
                
                  Σ
                  p
                
                ⁢
                
                  1
                  
                    ρ
                    p
                  
                
                ⁢
                
                  
                    ∂
                    
                      ρ
                      p
                    
                  
                  
                    ∂
                    P
                  
                
                ⁢
                
                  S
                  p
                
              
            
            ⁢
            
              (
              
                
                  ∑
                  p
                
                ⁢
                
                  
                    1
                    
                      ρ
                      p
                    
                  
                  ⁢
                  
                    
                      ∂
                      
                        ρ
                        p
                      
                    
                    
                      ∂
                      T
                    
                  
                  ⁢
                  
                    q
                    p
                  
                
              
              )
            
          
        
      
    
    
      
        (
        36
        )
      
    
  




Note that the CFL criterion for explicit treatment of compositions contains convection terms only. This is because the effects of physical dispersion in the component conservation equations is neglected. The CFL criteria for explicit treatment of saturation and temperature contain both convection and dispersion terms. In the case of the saturation CFL expressions, the dispersion term is proportional to the derivative of the capillary pressure with respect to saturation, which is usually small and often neglected in large-scale numerical reservoir simulation. The dispersion term in the temperature CFL expressions, on the other hand, represents thermal conduction, which can be more significant than the heat convection term for some thermal processes of practical interest.
Thermal Saturation System
In this section, the saturation system for thermal problems is shown to be the same as the saturation system for isothermal flows. The matrices of interest for the thermal saturation system are (written with ρpq=ρp−ρq):




  
    
      
        
          C
          XX
        
        =
        
          φ
          ⁡
          
            (
            
              
                
                  
                    ρ
                    go
                  
                
                
                  
                    ρ
                    wo
                  
                
              
              
                
                  
                    
                      K
                      w
                    
                    ⁢
                    
                      ρ
                      g
                    
                  
                
                
                  
                    ρ
                    w
                  
                
              
            
            )
          
        
      
    
    
      
        (
        37
        )
      
    
  
  
    
      
        
          L
          XX
        
        =
        
          
            u
            t
          
          ⁡
          
            (
            
              
                
                  
                    
                      
                        ρ
                        go
                      
                      ⁢
                      
                        
                          ∂
                          
                            f
                            g
                          
                        
                        
                          ∂
                          
                            S
                            g
                          
                        
                      
                    
                    +
                    
                      
                        ρ
                        wo
                      
                      ⁢
                      
                        
                          ∂
                          
                            f
                            w
                          
                        
                        
                          ∂
                          
                            S
                            g
                          
                        
                      
                    
                  
                
                
                  
                    
                      
                        ρ
                        go
                      
                      ⁢
                      
                        
                          ∂
                          
                            f
                            g
                          
                        
                        
                          ∂
                          
                            S
                            w
                          
                        
                      
                    
                    +
                    
                      
                        ρ
                        wo
                      
                      ⁢
                      
                        
                          ∂
                          
                            f
                            w
                          
                        
                        
                          ∂
                          
                            S
                            w
                          
                        
                      
                    
                  
                
              
              
                
                  
                    
                      
                        K
                        w
                      
                      ⁢
                      
                        ρ
                        g
                      
                      ⁢
                      
                        
                          ∂
                          
                            f
                            g
                          
                        
                        
                          ∂
                          
                            S
                            g
                          
                        
                      
                    
                    +
                    
                      
                        ρ
                        w
                      
                      ⁢
                      
                        
                          ∂
                          
                            f
                            w
                          
                        
                        
                          ∂
                          
                            S
                            g
                          
                        
                      
                    
                  
                
                
                  
                    
                      
                        K
                        w
                      
                      ⁢
                      
                        ρ
                        g
                      
                      ⁢
                      
                        
                          ∂
                          
                            f
                            g
                          
                        
                        
                          ∂
                          
                            S
                            w
                          
                        
                      
                    
                    +
                    
                      
                        ρ
                        w
                      
                      ⁢
                      
                        
                          ∂
                          
                            f
                            w
                          
                        
                        
                          ∂
                          
                            S
                            w
                          
                        
                      
                    
                  
                
              
            
            )
          
        
      
    
    
      
        (
        38
        )
      
    
  
  
    
      
        
          M
          XX
        
        =
        
          (
          
            
              
                
                  
                    (
                    
                      
                        
                          ρ
                          go
                        
                        ⁢
                        
                          α
                          g
                        
                      
                      +
                      
                        
                          ρ
                          wo
                        
                        ⁢
                        
                          α
                          w
                        
                      
                    
                    )
                  
                  ⁢
                  
                    P
                    
                      c
                      wo
                    
                    ′
                  
                
              
              
                
                  
                    (
                    
                      
                        
                          p
                          go
                        
                        ⁢
                        
                          β
                          g
                        
                      
                      +
                      
                        
                          ρ
                          wo
                        
                        ⁢
                        
                          β
                          w
                        
                      
                    
                    )
                  
                  ⁢
                  
                    P
                    
                      c
                      GO
                    
                    ′
                  
                
              
            
            
              
                
                  
                    (
                    
                      
                        
                          K
                          w
                        
                        ⁢
                        
                          ρ
                          g
                        
                        ⁢
                        
                          α
                          g
                        
                      
                      +
                      
                        
                          ρ
                          w
                        
                        ⁢
                        
                          α
                          w
                        
                      
                    
                    )
                  
                  ⁢
                  
                    P
                    
                      c
                      wo
                    
                    ′
                  
                
              
              
                
                  
                    (
                    
                      
                        
                          K
                          w
                        
                        ⁢
                        
                          ρ
                          g
                        
                        ⁢
                        
                          β
                          g
                        
                      
                      +
                      
                        
                          ρ
                          w
                        
                        ⁢
                        
                          β
                          w
                        
                      
                    
                    )
                  
                  ⁢
                  
                    P
                    
                      c
                      GO
                    
                    ′
                  
                
              
            
          
          )
        
      
    
    
      
        (
        39
        )
      
    
  




where





  
    
      
        
          
            
              
                α
                g
              
              =
              
              ⁢
              
                k
                ⁢
                
                  
                    λ
                    _
                  
                  gw
                
              
            
          
        
        
          
            
              
                β
                g
              
              =
              
              ⁢
              
                k
                ⁡
                
                  (
                  
                    
                      
                        λ
                        _
                      
                      go
                    
                    +
                    
                      
                        λ
                        _
                      
                      gw
                    
                  
                  )
                
              
            
          
        
        
          
            
              
                α
                w
              
              =
              
              ⁢
              
                -
                
                  k
                  ⁡
                  
                    (
                    
                      
                        
                          λ
                          _
                        
                        gw
                      
                      +
                      
                        
                          λ
                          _
                        
                        ow
                      
                    
                    )
                  
                
              
            
          
        
        
          
            
              
                β
                w
              
              =
              
              ⁢
              
                
                  -
                  k
                
                ⁢
                
                  
                    λ
                    _
                  
                  gw
                
              
            
          
        
      
    
    
      
        (
        40
        )
      
    
  




Setting




  
    α
    =
    
      
        ρ
        wo
      
      
        ρ
        go
      
    
  
  ,
  
    β
    =
    
      
        
          K
          w
        
        ⁢
        
          ρ
          g
        
      
      
        ρ
        w
      
    
  




and multiplying by





   
  
    (
    
      
        
          
            1
            
              ρ
              go
            
          
        
        
          
            
          
        
      
      
        
          
            
          
        
        
          
            1
            
              ρ
              w
            
          
        
      
    
    )
  




the following expressions are obtained





  
    
      
        
          
            (
            
              
                
                  
                    1
                    
                      ρ
                      go
                    
                  
                
                
                  
                    
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    1
                    
                      ρ
                      w
                    
                  
                
              
            
            )
          
          ⁢
          
            C
            XX
          
        
        =
        
          φ
          ⁡
          
            (
            
              
                
                  1
                
                
                  α
                
              
              
                
                  β
                
                
                  1
                
              
            
            )
          
        
      
    
    
      
        (
        41
        )
      
    
  
  
    
      
        
          
            (
            
              
                
                  
                    1
                    
                      ρ
                      go
                    
                  
                
                
                  
                    
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    1
                    
                      ρ
                      w
                    
                  
                
              
            
            )
          
          ⁢
          
            L
            XX
          
        
        =
        
          
            u
            t
          
          ⁡
          
            (
            
              
                
                  
                    
                      
                        ∂
                        
                          f
                          g
                        
                      
                      
                        ∂
                        
                          S
                          g
                        
                      
                    
                    +
                    
                      α
                      ⁢
                      
                        
                          ∂
                          
                            f
                            w
                          
                        
                        
                          ∂
                          
                            S
                            g
                          
                        
                      
                    
                  
                
                
                  
                    
                      
                        ∂
                        
                          f
                          g
                        
                      
                      
                        ∂
                        
                          S
                          w
                        
                      
                    
                    +
                    
                      α
                      ⁢
                      
                        
                          ∂
                          
                            f
                            w
                          
                        
                        
                          ∂
                          
                            S
                            w
                          
                        
                      
                    
                  
                
              
              
                
                  
                    
                      β
                      ⁢
                      
                        
                          ∂
                          
                            f
                            g
                          
                        
                        
                          ∂
                          
                            S
                            g
                          
                        
                      
                    
                    +
                    
                      
                        ∂
                        
                          f
                          w
                        
                      
                      
                        ∂
                        
                          S
                          g
                        
                      
                    
                  
                
                
                  
                    
                      β
                      ⁢
                      
                        
                          ∂
                          
                            f
                            g
                          
                        
                        
                          ∂
                          
                            S
                            w
                          
                        
                      
                    
                    +
                    
                      
                        ∂
                        
                          f
                          w
                        
                      
                      
                        ∂
                        
                          S
                          w
                        
                      
                    
                  
                
              
            
            )
          
        
      
    
    
      
        (
        42
        )
      
    
  
  
    
      
        
          
            (
            
              
                
                  
                    1
                    
                      ρ
                      go
                    
                  
                
                
                  
                    
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    1
                    
                      ρ
                      w
                    
                  
                
              
            
            )
          
          ⁢
          
            M
            XX
          
        
        =
        
          (
          
            
              
                
                  
                    (
                    
                      
                        α
                        g
                      
                      +
                      
                        αα
                        w
                      
                    
                    )
                  
                  ⁢
                  
                    P
                    
                      C
                      WO
                    
                    ′
                  
                
              
              
                
                  
                    (
                    
                      
                        β
                        g
                      
                      +
                      
                        α
                        ⁢
                        
                          
                        
                        ⁢
                        
                          β
                          w
                        
                      
                    
                    )
                  
                  ⁢
                  
                    P
                    
                      C
                      GO
                    
                    ′
                  
                
              
            
            
              
                
                  
                    (
                    
                      
                        β
                        ⁢
                        
                          
                        
                        ⁢
                        
                          α
                          g
                        
                      
                      +
                      
                        α
                        w
                      
                    
                    )
                  
                  ⁢
                  
                    P
                    
                      C
                      WO
                    
                    ′
                  
                
              
              
                
                  
                    (
                    
                      
                        β
                        ⁢
                        
                          
                        
                        ⁢
                        
                          β
                          g
                        
                      
                      +
                      
                        β
                        w
                      
                    
                    )
                  
                  ⁢
                  
                    P
                    
                      C
                      GO
                    
                    ′
                  
                
              
            
          
          )
        
      
    
    
      
        (
        43
        )
      
    
  




For an isothermal model, water does not partition in the gas phase; therefore, Kw=0 or β=0. By setting this constraint, the thermal system reduces to an isothermal one. Notice that the matrices




  
    
      
        
          
            (
            
              
                
                  
                    1
                    
                      ρ
                      go
                    
                  
                
                
                  
                    
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    1
                    
                      ρ
                      w
                    
                  
                
              
            
            )
          
          ⁢
          
            L
            XX
          
          ⁢
          
            
          
          ⁢
          and
          ⁢
          
            
          
          ⁢
          
            (
            
              
                
                  
                    1
                    
                      ρ
                      go
                    
                  
                
                
                  
                    
                  
                
              
              
                
                  
                    
                  
                
                
                  
                    1
                    
                      ρ
                      w
                    
                  
                
              
            
            )
          
        
        ⁢
        
          

        
        ⁢
        
          
            M
            XX
          
          ⁢
          
            
          
          ⁢
          
            a
            ⁢
            re
          
          ⁢
          
            
          
          ⁢
          both
          ⁢
          
            
          
          ⁢
          of
          ⁢
          
            
              
            
            ⁢
            
              
            
          
          ⁢
          the
          ⁢
          
            
          
          ⁢
          form
          ⁢
          
            :
          
        
        ⁢
        
          
        
        ⁢
        
          

        
        ⁢
        
          
        
        ⁢
        
          (
          
            
              
                
                  a
                  +
                  
                    α
                    ⁢
                    
                      
                    
                    ⁢
                    b
                  
                
              
              
                
                  c
                  +
                  
                    α
                    ⁢
                    
                      
                    
                    ⁢
                    d
                  
                
              
            
            
              
                
                  
                    β
                    ⁢
                    
                      
                    
                    ⁢
                    a
                  
                  +
                  b
                
              
              
                
                  
                    β
                    ⁢
                    
                      
                    
                    ⁢
                    c
                  
                  +
                  d
                
              
            
          
          )
        
      
    
    
      
        (
        44
        )
      
    
  




Also notice that:





  
    
      
        
          
            
              (
              
                
                  
                    1
                  
                  
                    α
                  
                
                
                  
                    β
                  
                  
                    1
                  
                
              
              )
            
            
              -
              1
            
          
          ⁢
          
            (
            
              
                
                  
                    a
                    +
                    
                      α
                      ⁢
                      
                        
                      
                      ⁢
                      b
                    
                  
                
                
                  
                    c
                    +
                    
                      α
                      ⁢
                      
                        
                      
                      ⁢
                      d
                    
                  
                
              
              
                
                  
                    
                      β
                      ⁢
                      
                        
                      
                      ⁢
                      a
                    
                    +
                    b
                  
                
                
                  
                    
                      β
                      ⁢
                      
                        
                      
                      ⁢
                      c
                    
                    +
                    d
                  
                
              
            
            )
          
        
        =
        
          (
          
            
              
                a
              
              
                c
              
            
            
              
                b
              
              
                d
              
            
          
          )
        
      
    
    
      
        (
        45
        )
      
    
  




Consequently,





  
    
      
        
          
            
              
                
                  C
                  XX
                  
                    -
                    1
                  
                
                ⁢
                A
              
              =
              
              ⁢
              
                
                  
                    C
                    XX
                    
                      -
                      1
                    
                  
                  ⁡
                  
                    (
                    
                      
                        
                          
                            ρ
                            go
                          
                        
                        
                          
                            
                          
                        
                      
                      
                        
                          
                            
                          
                        
                        
                          
                            ρ
                            w
                          
                        
                      
                    
                    )
                  
                
                ⁢
                
                  (
                  
                    
                      
                        
                          1
                          
                            ρ
                            go
                          
                        
                      
                      
                        
                          
                        
                      
                    
                    
                      
                        
                          
                        
                      
                      
                        
                          1
                          
                            ρ
                            w
                          
                        
                      
                    
                  
                  )
                
                ⁢
                A
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  
                    [
                    
                      
                        (
                        
                          
                            
                              
                                1
                                
                                  ρ
                                  go
                                
                              
                            
                            
                              
                                
                              
                            
                          
                          
                            
                              
                                
                              
                            
                            
                              
                                1
                                
                                  ρ
                                  w
                                
                              
                            
                          
                        
                        )
                      
                      ⁢
                      
                        C
                        XX
                      
                    
                    ]
                  
                  
                    -
                    1
                  
                
                ⁡
                
                  [
                  
                    
                      (
                      
                        
                          
                            
                              1
                              
                                ρ
                                go
                              
                            
                          
                          
                            
                              
                            
                          
                        
                        
                          
                            
                              
                            
                          
                          
                            
                              1
                              
                                ρ
                                w
                              
                            
                          
                        
                      
                      )
                    
                    ⁢
                    A
                  
                  ]
                
              
            
          
        
      
    
    
      
        (
        46
        )
      
    
  




It follows that





  
    
      
        
          
            C
            XX
            
              -
              1
            
          
          ⁢
          
            L
            XX
          
        
        =
        
          
            
              u
              t
            
            φ
          
          ⁢
          
            (
            
              
                
                  
                    
                      ∂
                      
                        f
                        g
                      
                    
                    
                      ∂
                      
                        S
                        g
                      
                    
                  
                
                
                  
                    
                      ∂
                      
                        f
                        g
                      
                    
                    
                      ∂
                      
                        S
                        w
                      
                    
                  
                
              
              
                
                  
                    
                      ∂
                      
                        f
                        w
                      
                    
                    
                      ∂
                      
                        S
                        g
                      
                    
                  
                
                
                  
                    
                      ∂
                      
                        f
                        w
                      
                    
                    
                      ∂
                      
                        S
                        w
                      
                    
                  
                
              
            
            )
          
        
      
    
    
      
        (
        47
        )
      
    
  
  
    
      
        
          
            C
            XX
            
              -
              1
            
          
          ⁢
          
            M
            XX
          
        
        =
        
          
            1
            φ
          
          ⁢
          
            (
            
              
                
                  
                    
                      α
                      g
                    
                    ⁢
                    
                      P
                      
                        C
                        WO
                      
                      ′
                    
                  
                
                
                  
                    
                      β
                      g
                    
                    ⁢
                    
                      P
                      
                        C
                        GO
                      
                      ′
                    
                  
                
              
              
                
                  
                    
                      α
                      w
                    
                    ⁢
                    
                      P
                      
                        C
                        WO
                      
                      ′
                    
                  
                
                
                  
                    
                      β
                      w
                    
                    ⁢
                    
                      P
                      
                        C
                        GO
                      
                      ′
                    
                  
                
              
            
            )
          
        
      
    
    
      
        (
        48
        )
      
    
  




This shows that CXX−1LXX and CXX−1MXX do not depend on the value of α and β, and that the thermal case with β=0 is the same as the isothermal case.
Stability Analysis and Decoupling of CFL Criteria
A linear stability analysis of the linear multidimensional convection dispersion system of coupled equations for thermal-compositional flows is performed to derive the following equation:




  
    
      
        
          (
          
            
              
                
                  
                    ∂
                    t
                  
                  ⁢
                  X
                
              
            
            
              
                
                  
                    ∂
                    t
                  
                  ⁢
                  S
                
              
            
            
              
                
                  
                    ∂
                    t
                  
                  ⁢
                  T
                
              
            
          
          )
        
        =
        
          
            -
            
              L
              ⁡
              
                (
                
                  
                    
                      
                        
                          ∂
                          x
                        
                        ⁢
                        X
                      
                    
                  
                  
                    
                      
                        
                          ∂
                          x
                        
                        ⁢
                        S
                      
                    
                  
                  
                    
                      
                        
                          ∂
                          x
                        
                        ⁢
                        T
                      
                    
                  
                
                )
              
            
          
          +
          
            M
            ⁡
            
              (
              
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      X
                    
                  
                
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      S
                    
                  
                
                
                  
                    
                      
                        ∂
                        x
                        2
                      
                      ⁢
                      T
                    
                  
                
              
              )
            
          
        
      
    
    
      
        (
        49
        )
      
    
  




The linear system is discretized using the standard low-order discretization schemes, which are widely used in the industry. The stability of the discrete linear system is studied by the von Neumann method, which is based on Fourier series decomposition. A linear system has the property that if an instability is introduced to the solution, each frequency of the instability is also a solution of the system. A necessary condition for stability is that all the frequencies of the error decay with time.
Let ε denote the solution error of each variable in the vectors X, S and T, and βε as the frequency of these errors. The error, ε, satisfies the linear system Eq. 49. Discretizing the time derivative using a first-order forward Euler approximation and the first-order spatial derivative using single-point upstream weighting can be written for gridblock i:




  
    
      
        
          
            
              
                
                  ∂
                  ɛ
                
                
                  ∂
                  t
                
              
              =
              
              ⁢
              
                
                  
                    
                      ɛ
                      
                        n
                        +
                        1
                      
                    
                    ⁢
                    
                      e
                      
                        j
                        ⁢
                        
                          
                        
                        ⁢
                        
                          β
                          ɛ
                        
                        ⁢
                        i
                      
                    
                  
                  -
                  
                    
                      ɛ
                      n
                    
                    ⁢
                    
                      e
                      
                        j
                        ⁢
                        
                          
                        
                        ⁢
                        
                          β
                          ɛ
                        
                        ⁢
                        i
                      
                    
                  
                
                
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  t
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  e
                  
                    j
                    ⁢
                    
                      
                    
                    ⁢
                    
                      β
                      ɛ
                    
                    ⁢
                    i
                  
                
                ⁢
                
                  
                    
                      ɛ
                      
                        n
                        +
                        1
                      
                    
                    -
                    
                      ɛ
                      n
                    
                  
                  
                    Δ
                    ⁢
                    
                      
                    
                    ⁢
                    t
                  
                
              
            
          
        
      
    
    
      
        (
        50
        )
      
    
  
  
    
      
        
          
            
              
                
                  ∂
                  ɛ
                
                
                  ∂
                  x
                
              
              =
              
              ⁢
              
                
                  
                    
                      ɛ
                      n
                    
                    ⁢
                    
                      e
                      
                        j
                        ⁢
                        
                          
                        
                        ⁢
                        
                          β
                          ɛ
                        
                        ⁢
                        i
                      
                    
                  
                  -
                  
                    
                      ɛ
                      n
                    
                    ⁢
                    
                      e
                      
                        j
                        ⁢
                        
                          
                        
                        ⁢
                        
                          
                            β
                            ɛ
                          
                          ⁡
                          
                            (
                            
                              i
                              -
                              1
                            
                            )
                          
                        
                      
                    
                  
                
                
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  ɛ
                  n
                
                ⁢
                
                  e
                  
                    j
                    ⁢
                    
                      
                    
                    ⁢
                    
                      β
                      ɛ
                    
                    ⁢
                    i
                  
                
                ⁢
                
                  
                    1
                    -
                    
                      e
                      
                        
                          -
                          j
                        
                        ⁢
                        
                          
                        
                        ⁢
                        
                          β
                          ɛ
                        
                      
                    
                  
                  
                    Δ
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
              
            
          
        
      
    
    
      
        (
        51
        )
      
    
  
  
    
      
        
          
            
              ∂
              2
            
            ⁢
            ɛ
          
          
            ∂
            
              x
              2
            
          
        
        =
        
          
            -
            
              ɛ
              n
            
          
          ⁢
          
            e
            
              j
              ⁢
              
                
              
              ⁢
              
                β
                ɛ
              
              ⁢
              i
            
          
          ⁢
          
            2
            
              Δ
              ⁢
              
                
              
              ⁢
              
                x
                2
              
            
          
          ⁢
          
            (
            
              1
              -
              
                cos
                ⁢
                
                  
                
                ⁢
                
                  β
                  ɛ
                
              
            
            )
          
        
      
    
    
      
        (
        52
        )
      
    
  




Introducing the discretized values into the linear system Eq. 49, and after some algebraic manipulations the following amplification system is obtained:




  
    
      
        
          ξ
          
            n
            +
            1
          
        
        =
        
          
            (
            
              I
              -
              
                Δ
                ⁢
                
                  
                
                ⁢
                
                  tN
                  
                    
                      β
                      
                        ɛ
                        X
                      
                    
                    ,
                    
                      β
                      
                        ɛ
                        S
                      
                    
                    ,
                    
                      β
                      
                        ɛ
                        T
                      
                    
                  
                
              
            
            )
          
          ⁢
          
            ξ
            n
          
        
      
    
    
      
        (
        53
        )
      
    
  




where βεx and βεs are vectors of frequencies, one composition or saturation per variable.

Since the eigenvectors of the amplification matrix are the same as the eigenvectors of the matrix, the system is stable if for all the frequencies  the eigenvalues  of the  matrix satisfy the condition:




  
    
      
        
          
          
            1
            -
            
              Δ
              ⁢
              
                
              
              ⁢
              t
              ⁢
              
                
              
              ⁢
              
                λ
                
                  
                    β
                    
                      ɛ
                      X
                    
                  
                  ,
                  
                    β
                    
                      ɛ
                      S
                    
                  
                  ,
                  
                    β
                    
                      ɛ
                      T
                    
                  
                
              
            
          
          
        
        <
        1
      
    
    
      
        (
        54
        )
      
    
  




When there is only one equation (for instance if one only looks at the temperature equation), the extremum amplitude is reached at the frequency β=π. Since




  
    
      N
      π
    
    =
    
      
        2
        ⁢
        
          L
          
            Δ
            ⁢
            
              
            
            ⁢
            x
          
        
      
      +
      
        4
        ⁢
        
          M
          
            Δ
            ⁢
            
              
            
            ⁢
            
              x
              2
            
          
        
      
    
  
  ,




the stability criterion is equivalent to:





  
    
      
        
          
          
            1
            -
            
              Δ
              ⁢
              
                
              
              ⁢
              t
              ×
              2
              ⁢
              
                (
                
                  
                    L
                    
                      Δ
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                  +
                  
                    2
                    ⁢
                    
                      M
                      
                        Δ
                        ⁢
                        
                          
                        
                        ⁢
                        
                          x
                          2
                        
                      
                    
                  
                
                )
              
            
          
          
        
        <
        1
      
    
    
      
        (
        55
        )
      
    
  




In practice




  
    L
    
      Δ
      ⁢
      
        
      
      ⁢
      x
    
  
  +
  
    2
    ⁢
    
      M
      
        Δ
        ⁢
        
          
        
        ⁢
        
          x
          2
        
      
    
  




is real and positive, resulting in the CFL criterion:





  
    
      
        
          Δ
          ⁢
          
            
          
          ⁢
          
            t
            ⁡
            
              (
              
                
                  L
                  
                    Δ
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
                +
                
                  2
                  ⁢
                  
                    M
                    
                      Δ
                      ⁢
                      
                        
                      
                      ⁢
                      
                        x
                        2
                      
                    
                  
                
              
              )
            
          
        
        <
        1
      
    
    
      
        (
        56
        )
      
    
  




For the general system of coupled equations, since the L and M matrices in Eqs. 22 and 23 are block triangular, the  matrix is also block triangular. This means that the eigenvalues of N  are the eigenvalues of its block diagonal. It is then possible to decouple the conditions on the compositions X, saturation S, and temperature T into 3 separate criteria:




  
    
      
        
          
          
            1
            -
            
              Δ
              ⁢
              
                
              
              ⁢
              
                tN
                
                  β
                  
                    ɛ
                    X
                  
                
                X
              
            
          
          
        
        <
        1
      
    
    
      
        (
        57
        )
      
    
  
  
    
      
        
          
          
            1
            -
            
              Δ
              ⁢
              
                
              
              ⁢
              
                tN
                
                  β
                  
                    ɛ
                    S
                  
                
                S
              
            
          
          
        
        <
        1
      
    
    
      
        (
        58
        )
      
    
  
  
    
      
        
          
          
            1
            -
            
              Δ
              ⁢
              
                
              
              ⁢
              
                tN
                
                  β
                  
                    ɛ
                    T
                  
                
                T
              
            
          
          
        
        <
        1
      
    
    
      
        (
        59
        )
      
    
  




with their associated eigenvalues:





  
    
      
        
          
          
            1
            -
            
              Δ
              ⁢
              
                
              
              ⁢
              t
              ⁢
              
                
              
              ⁢
              
                λ
                
                  β
                  
                    ɛ
                    X
                  
                
                X
              
            
          
          
        
        <
        1
      
    
    
      
        (
        60
        )
      
    
  
  
    
      
        
          
          
            1
            -
            
              Δ
              ⁢
              
                
              
              ⁢
              t
              ⁢
              
                
              
              ⁢
              
                λ
                
                  β
                  
                    ɛ
                    S
                  
                
                S
              
            
          
          
        
        <
        1
      
    
    
      
        (
        61
        )
      
    
  
  
    
      
        
          
          
            1
            -
            
              Δ
              ⁢
              
                
              
              ⁢
              t
              ⁢
              
                
              
              ⁢
              
                λ
                
                  β
                  
                    ɛ
                    T
                  
                
                T
              
            
          
          
        
        <
        1
      
    
    
      
        (
        62
        )
      
    
  




Moreover, as shown in Eq. 24, the hydrocarbon composition matrix is diagonal. This allows us to decouple the hydrocarbon component conservation equations from each other. Since one equation can be dealt with at a time, the extremum amplitude is reached at the frequency β=π for every composition. This gives CFL limit for the explicit treatment of each hydrocarbon component c in Eq. 32.
For two-phase systems, since there is only one saturation equation, the extremum amplitude is reached at the frequency β=π. Consequently, the CFL for the explicit treatment of saturation, Sp, is given by Eq. 33. For three-phase systems, there are two saturation equations (Sg and Sw), and they cannot be decoupled. Extensive testing (Coats 2003) in the isothermal cases indicates that taking βSg=βSw=π is a reasonable measure of the stability of the system. Since




  
    
      N
      
        π
        ,
        π
      
      S
    
    =
    
      
        
          2
          
            Δ
            ⁢
            
              
            
            ⁢
            x
          
        
        ⁢
        
          C
          SS
          
            -
            1
          
        
        ⁢
        
          L
          SS
        
      
      +
      
        
          4
          
            Δ
            ⁢
            
              
            
            ⁢
            
              x
              2
            
          
        
        ⁢
        
          C
          SS
          
            -
            1
          
        
        ⁢
        
          M
          SS
        
      
    
  
  ,




λ2S are defined as the eigenvalues of the matrix





  
    
      1
      
        Δ
        ⁢
        
          
        
        ⁢
        x
      
    
    ⁢
    
      C
      SS
      
        -
        1
      
    
    ⁢
    
      L
      SS
    
  
  +
  
    
      2
      
        Δ
        ⁢
        
          
        
        ⁢
        
          x
          2
        
      
    
    ⁢
    
      C
      SS
      
        -
        1
      
    
    ⁢
    
      
        M
        SS
      
      .
    
  




The stability limit is then given by:

|1−Δt×2λ2S|<1  (63)

In practice, these λ2S are real and positive resulting in the following CFL criteria, which is stated in Eq. 34,

Δtλ2S<1  (64)

For the temperature equation, the extremum amplitude is reached at the frequency β=π, and the CFL for the explicit treatment of the temperature T is given in Eq. 35.
As mentioned above, the method (described above and shown in the FIGS. 1-9) has been tested in several exemplary cases related to the oilfield, additional test results are depicted in the examples of FIGS. 10-33.
Water Injection in Dead-Oil Reservoir
In FIGS. 10 and 11, the total velocity profiles for an isothermal and a thermal run are shown. In both simulations a constant rate of water is injected. For the isothermal case, the oil and water phase velocities sums to a constant velocity along the reservoir. However, it is noted that this is not the case anymore for the thermal case where a slight hook is observed in velocity for cells 1-3 caused by temperature effects. Throughout the exemplary cases, it is important to control how the partial derivative ut with respect to x is evolving. The linear analysis is based on the fact that this term can be neglected against the other derivatives.
Test CFLS
Runs have been done with only saturations taken explicit with the time step controlled by 0.9 CFLS, 1 CFLS and 1.1 CFLS (CFLT around 0.2). The results for the 0.9 CFLS case is shown in FIG. 12. Fully implicit runs with exactly the same time steps have been done after to check the accuracy of the explicit saturations run. It is observed that the explicit saturations solution behaves correctly, with a front with less diffusion as for the fully implicit run. For the run controlled by 1 CFLS, a time step converges with CFLS=1.04 and it is enough to get a small oscillation in the saturation profile (not shown). Results are plotted in FIG. 13 for the run at 1.1 CFLS. This oscillation is seen after 4 time steps. It can be concluded from these tests cases that CFLS is very sharp. However, one can argue saying that the temperature variation is not very big and the intent is to clearly assess the isothermal CFLS. Accordingly, it is necessary to have a test case with the variation of saturation and temperature occurring in the same cells.
Test CFLT
In the fully implicit test case in FIG. 11, CFLS goes up to 6 and CFLT rarely goes above 1. To achieve a fully implicit case that can run easily above CFLT, the heat conductivity has been un-physically increased from 25 to 5000 Btu/ft/day/deg F.
In this case, when running the fully implicit simulation, CFLS goes up to 10 and CFLT up to 22. When running an explicit temperature simulation run at 1 CFL, no issue is noticed (not printed) but if the simulation is run at 1.2 CFL, it is observed (after 6 time steps) that an oscillation of the temperature profile grows larger and larger. A fully implicit simulation run with the same time steps as the explicit temperature run is performed and the results of the 2 simulations are compared in FIG. 14.
Gas Injection in Dead-Oil Reservoir
Now, turning to an example of the gas injection in a dead-oil reservoir as described below and depicted in FIGS. 15-22. As the total velocity profile is quite different depending upon whether viewed before or after the breakthrough, both of these 2 situations are studied. FIGS. 15 and 16 depict the total velocity profiles for an isothermal and a thermal run where gas has just started to be injected and has not made is way to the producer. In both simulations the same amount of gas is being injected. The total velocity is almost constant for both cases. CFLS goes up to 2.5 and CFLT up to 0.1. FIGS. 17 and 18 depict the total velocity profiles for an isothermal and a thermal run after breakthrough. The CFL are much larger due to the larger velocity. The total velocity profile is a little tilted. It is observed that CFLS goes up to 8 and CFLT to 0.3. It is then going to be easy to restrict the time step to study the effect of CFLS but some parameters need modification to study CFLT. It is also observed that a very slight hook in the velocity profile is caused by the temperature.
Test CFLS
In FIG. 19, the saturation starts to oscillate after 8 steps at 1.1 CFLS (no problem at CFLS). As a remark, if at this state time step is controlled at a value less than 1, then the oscillation is damped. However, the solution has been deteriorated and differs from the FI solution.
Test CFLT
In order to study the effect of the CFLT, the heat conductivity has been un-physically increased from 25 to 2000 Btu/ft/day/deg F. In this case, CFLS goes up to 4 and CFLT up to 1.6 when the simulation is run in fully implicit. If a simulation run with an explicit in temperature is run at time step 1 CFLT, no oscillation is observed (no shown); however, when the time step is 1.2 CFLT, after 9 time steps the temperature profile is extremely oscillating. Worth noting is that all cells have CFLT≈1.2 (flat profile), as depicted in FIG. 20. Further, it is observed that Sg is also oscillating in a non-linear manner (mostly through the viscosities temperature dependency).
Another way of increasing the CFLT is by not increasing the heat conductivity but by decreasing the heat capacity. In this test case, the heat capacity is put at 0.35 instead of 35 Btu/ft3/deg F. A fundamental assumption is that the partial derivative of ut with respect to t is approximately zero and stays reasonable even if the slight hook is larger than in the water/oil case (it goes from qt=35 ft3/d to 25 ft3/d). When the time step of the simulation is run with CFLT less than 1.4, then no an oscillation is observed. In FIG. 21, 10 time steps are needed prior to observing some oscillations starting to grow. Two notable points are: (1) in this case where only 3 cells are violated between 1 and 1.3, the oscillation effect seems less important and not as sharp as the case where all the cells are violating the CFLT; and (2) the oscillations are localized to the violating cells.
Water Injection in Dry-Gas Reservoir
The total velocity is having the same hook behavior when the T profile is changing and the CFLT values are the same regardless of whether or not the derivatives are neglected with respect to pressure.
Hot Gas injection in Compositional Oil
FIGS. 23 and 24 depict an isothermal and thermal injection of gas in a compositional oil reservoir at early times. In both cases, it is observed that the total velocity is changing and can vary from 100 ft3/day to 300 ft3/day. However, this changing velocity for the isothermal cases should not be an issue. At early times, the CFLS can go up to 5 whereas the CFLT stays below 0.1. FIGS. 25 and 26 depict the same runs at a later time when the gas has reached the producer. In that case, the total velocity is much larger but its spatial variation is quite flat. It has to be noticed that in the 2 situations (before or after breakthrough), the CFLS profile is not flat at all. Accordingly, by running just above the CFLS, only a few number of cells may be violated.
In addition, as a compositional run is not only the mass conservation equations but also the equilibrium constraints, it can be difficult to observe oscillations if the stability limit is only violated slightly. One skilled in the art will appreciate that:

    
    
        (1) running at CFL always results in non-oscillatory stability;
        (2) when CFL values are spatially uniform, the CFL criteria is very sharp (oscillations are observed when running simulations just above CFL); and
        (3) when CFL values are not uniform, it is more difficult to observe when the oscillations start and sometimes simulations must be run much above CFL to observe the oscillations.
    
    


These effects are observed in the following tests where a simulation is run at time steps much higher than CFL=1 to depict oscillations in the profile. This is the case for the saturation tests. The very nice thing about the temperature CFL is that it can only be of interest when conduction effects are important. This means that the CFLT values always enjoy a good spatial uniformity and the criteria are extremely sharp in practice.
CFLS Before Breakthrough
It is quite a challenge to run a test case exactly at the desired CFL value due to the large dependency of Sg on the composition. When the simulation is run with an explicit saturation at t=1 CFLS, a solution in agreement with the fully implicit solution results. Running at 1.2 CFLS or 1.5 CFLS is very difficult because one time step is observed above CFLS and the next one below CFLS. With this situation, it not possible to assess the stability. However, it seems that the saturation is a slightly diverging from the fully implicit solution. FIG. 26 depicts the difference between a fully implicit run and an explicit in saturation run at 2 CFLS after the first time step. The converging time step in itself is less than CFLS (0.8 CFLS) but 2 CFLS has been reached in the successive Newton iterations. An extremely large oscillation is observed in the saturation profile.
CFLS after Breakthrough
In this case, it seems even more difficult to observer an oscillating saturation profile. In FIG. 27, a case simulation run with 4 CFLS is depicted.
Test CFLT
In the two former thermal cases, CFLT was always below 1 so the heat conductivity is increased to 5000 Btu/ft/day/deg F to have CFLT values above 1 in the fully implicit run. For the case after breakthrough, the explicit in temperature simulation run at 1 CFLT gives the same values than the fully implicit and for the simulation run at 1.1 CFLT, oscillations after 5 time steps are observed (see FIG. 28). FIG. 29 depicts the same simulation run performed at 1.2 CFLT with dramatic oscillations (oscillations appear from first time step). As a result, the CFLT is extremely sharp, much sharper than the CFLS. These results are in agreement with Coats' conclusions when the CFL values are uniform through the grid.
Tests on Fully Physics System
In this case, a full physics system is built. Steam and water are now injected at a steam quality of 80%. In FIG. 30, a reservoir undergoing steam injection can be viewed almost like two connected reservoirs, one being the group of cells that contains mobile steam and the other being the group of cells that contains only a hydrocarbon and perhaps immobile steam. In this test, the system will be shocked when one of the cells of the second type finally achieves mobile steam saturation, and the steam attempts to flow (rapidly) out of the cell under the existing large pressure gradient. If you are able to control the large changes in the state of this cell, it should now become a member of the group of steam containing cells, connected to other such cells with a much smaller pressure gradient than previously. The model undergoes a succession of shocks as mobile steam spreads across the grid. Despite the fact that the total velocity is very different, it can be considered constant in each reservoir. In this fully implicit case, CFLSg goes up to 15 and CFLT around 0.5.
Test CFLS
When it is run at CFLSg, there is no issue. Run at 1.2 CFLSg: the beginning of the run is controlled by the CFLSg in the last cells where some gas is forming by the depletion. However, no oscillation is observed. This may be due by the fact Sg is very close to 0 and not really changing. Then, gas starts to form in the first cells, then dt is controlled by the CFLSg of the first cells. A little riddle in Sg is seen traveling along the model. In FIG. 31, the case for CFLSg=1.5 is plotted where 3 cells are observed that have CFLSg between 1 and 1.3 creating a large wave traveling along the model.
Test CFLT
The CFLT stability cannot be assessed with the current values, so the heat conductivity is increased at 2500 instead of 25 Btu/ft/day/deg F. A simulation of the same case as before is run and a case with initial gas at Sg=0.3 (50% water, 50% HC) is also run. The results are the same for both and presented for Sg initial=0.3 only. When the simulation is run at CFLT, the same profile as FI (CFLT profile flat) is observed. At 1.2 CFLT, oscillations are observed after 23 time-steps but the oscillations never fully grow.
FIG. 32 depicts the profiles for the simulation at 1.3 CFLT. Oscillation is observed after 7 time-steps and they grow to large oscillations. As a remark, when the simulator reaches a point where it cannot converge at 1.3 CFLT, the simulator attempts to divide the time step by 2 (i.e. run at 0.65 CFLT) and it is observed that the temperature profile is smoothed out in this one time step by 2 (i.e. run at 0.65 CFLT) and it is observed that the temperature profile is smoothed out in this one time step (see FIG. 33). After that, if attempts are again made to violate above CFLT, the large oscillations come back directly.
The steps of portions or all of the process may be repeated as desired. Repeated steps may be selectively performed until satisfactory results achieved. For example, steps may be repeated after adjustments are made. This may be done to update the simulator and/or to determine the impact of changes made.
It will be understood from the foregoing description that various modifications and changes may be made in the preferred and alternative embodiments of the present invention without departing from its true spirit. For example, the simulators, time steps and a preferred percentage of cells modeled using IMPES method may be selected to achieve the desired simulation. The simulations may be repeated according to the various configurations, and the results compared and/or analyzed.
This description is intended for purposes of illustration only and should not be construed in a limiting sense. The scope of this invention should be determined only by the language of the claims that follow. The term “comprising” within the claims is intended to mean “including at least” such that the recited listing of elements in a claim are an open group. “A,” “an” and other singular terms are intended to include the plural forms thereof unless specifically excluded.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art will appreciate that other embodiments can be devised which do not depart from the scope of the invention as disclosed herein. Accordingly, the scope of the invention should be limited only by the attached claims.

## Claims

1. A method of performing an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein, the method comprising:
determining a time-step for simulating the reservoir using a reservoir model, the reservoir being represented as a plurality of gridded cells and being modeled as a multi-phase system using a plurality of partial differential equations;
calculating a plurality of Courant-Friedrichs-Lewy (CFL) conditions of the reservoir model corresponding to the time-step, the plurality of CFL conditions being calculated for each of the plurality of gridded cells and comprising a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, the composition CFL condition and the saturation CFL condition being calculated based on an isothermal simulator, the temperature CFL condition being calculated based on a thermal simulator;
simulating a first cell of the plurality of gridded cells using the thermal simulator with an Implicit Pressure, Explicit Saturations (IMPES) system to obtain a first simulation result, the first cell having no CFL condition of the plurality of CFL conditions with a value greater than one;
simulating a second cell of the plurality of gridded cells using the thermal simulator with a Fully Implicit Method (FIM) system to obtain a second simulation result, the second cell having at least one CFL condition of the plurality of CFL conditions with a value greater than one; and
performing the oilfield operation based on the first and second simulation results.

2. The method of claim 1, wherein calculating the plurality of CFL conditions comprises:
decoupling the plurality of partial differential equations by separating a temperature effect, a composition effect, and a saturation effect in the reservoir model to generate a plurality of decoupled equations; and
calculating the temperature CFL condition, the composition CFL condition, and the saturation CFL condition using the plurality of decoupled equations.

3. The method of claim 1, wherein the multi-phase system has a plurality of phases and the reservoir model has no mass transfer among the plurality of phases, and wherein calculating the plurality of CFL conditions comprises:
deriving a general temperature CFL expression to calculate the temperature CFL condition, the general temperature CFL expression being independent of a number of phases of the multi-phase system.

4. The method of claim 1, wherein performing the oilfield operation comprises:
preparing a forecast of the oilfield operation based on the first and second simulation results; and
improving production from the reservoir based on the forecast.

5. The method of claim 1, wherein performing the oilfield operation comprises:
preparing a development plan of the oilfield operation based on the first and second simulation results.

6. The method of claim 1, wherein the time-step comprises at least one selected from a group consisting of a second, a minute, an hour, a day, a week, a month, and a year.

7. A method of performing an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein, the method comprising:
determining a time-step for simulating the reservoir, the reservoir being represented as a plurality of gridded cells and being modeled as a multi-phase system using a plurality of partial differential equations, the multi-phase system having a plurality of phases;
calculating a plurality of Courant-Friedrichs-Lewy (CFL) conditions of a first reservoir model corresponding to the time-step, the first reservoir model having no mass transfer among the plurality of phases, the plurality of CFL conditions being calculated for each of the plurality of gridded cells and comprising a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, the composition CFL condition and the saturation CFL condition being calculated based on an isothermal simulator, the temperature CFL condition being calculated based on a thermal simulator;
simulating a first cell of the plurality of gridded cells using the thermal simulator with an Implicit Pressure, Explicit Saturations (IMPES) system to obtain a first simulation result, the thermal simulator having mass transfer among the plurality of phases, the first cell having no CFL condition of the plurality of CFL conditions with a value greater than one;
simulating a second cell of the plurality of gridded cells using the thermal simulator with a Fully Implicit Method (FIM) system to obtain a second simulation result, the second cell having at least one CFL condition of the plurality of CFL conditions with a value greater than one; and
performing the oilfield operation based on the first and second simulation results.

8. The method of claim 7, wherein calculating the plurality of CFL conditions comprises:
decoupling the plurality of partial differential equations by separating a temperature effect, a composition effect, and a saturation effect in the first reservoir model to generate a plurality of decoupled equations; and
calculating the temperature CFL condition, the composition CFL condition, and the saturation CFL condition using the plurality of decoupled equations.

9. The method of claim 7, wherein calculating the plurality of CFL conditions comprises:
deriving a general temperature CFL expression to calculate the temperature CFL condition, the general temperature CFL expression being independent of a number of phases of the multi-phase system.

10. The method of claim 7, wherein performing the oilfield operation comprises:
preparing a forecast of the oilfield operation based on the first and second simulation results; and
improving production from the reservoir based on the forecast.

11. The method of claim 7, wherein performing the oilfield operation comprises:
preparing a development plan of the oilfield operation based on the first and second simulation results.

12. The method of claim 7, wherein the time-step comprises at least one selected from a group consisting of a second, a minute, an hour, a day, a week, a month, and a year.

13. A method of performing an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein, the method comprising:
determining a time-step for simulating the reservoir, the reservoir being represented as a plurality of gridded cells and being modeled as a multi-phase system using a plurality of partial differential equations, the multi-phase system having a plurality of phases with no mass transfer among the plurality of phases;
calculating a plurality of Courant-Friedrichs-Lewy (CFL) conditions corresponding to the time-step, the plurality of CFL conditions being calculated for each of the plurality of gridded cells and comprising a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, the composition CFL condition and the saturation CFL condition being calculated based on an isothermal simulator, the temperature CFL condition being calculated based on a thermal simulator;
simulating a first cell of the plurality of gridded cells using the thermal simulator with an Implicit Pressure, Explicit Saturations (IMPES) system to obtain a first simulation result, the first cell having no CFL condition of the plurality of CFL conditions with a value greater than one;
simulating a second cell of the plurality of gridded cells using the thermal simulator with a Fully Implicit Method (FIM) system to obtain a second simulation result, the second cell having at least one CFL condition of the plurality of CFL conditions with a value greater than one; and
performing the oilfield operation based on the first and second simulation results.

14. The method of claim 13, wherein calculating the plurality of CFL conditions comprises:
decoupling the plurality of partial differential equations by separating a temperature effect from a composition effect and a saturation effect in the thermal simulator to generate a plurality of decoupled equations; and
calculating the temperature CFL condition using the plurality of decoupled equations.

15. The method of claim 13, wherein calculating the plurality of CFL conditions comprises:
deriving a general temperature CFL expression to calculate the temperature CFL condition, the general temperature CFL expression being independent of a number of phases of the multi-phase system.

16. The method of claim 13, wherein performing the oilfield operation comprises:
preparing a forecast of the oilfield operation based on the first and second simulation results; and
improving production from the reservoir based on the forecast.

17. The method of claim 13, wherein performing the oilfield operation comprises:
preparing a development plan of the oilfield operation based on the first and second simulation results.

18. The method of claim 13, wherein the time-step comprises at least one selected from a group consisting of a second, a minute, an hour, a day, a week, a month, and a year.

19. A method of optimizing computer usage when performing simulations for a reservoir using a reservoir model wherein the reservoir model is gridded into cells, the method comprising:
a. determining a preferred percentage of cells to be simulated using an Implicit Pressure, Explicit Saturations (IMPES) system for optimizing computer usage;
b. determining a time-step for simulating the reservoir;
c. calculating Courant-Friedrichs-Lewy (CFL) conditions according to the time-step for each cell of the reservoir model including calculating a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, the composition CFL condition and the saturation CFL condition being calculated based on an isothermal simulator, the temperature CFL condition being calculated based on a thermal simulator;
d. calculating a percentage of cells having no CFL condition with a value greater than one;
e. determining whether the percentage calculated from step d is equal to or greater than the preferred percentage and if not, reducing the time-step and returning to step c;
f. simulating, by the thermal simulator, all cells having no CFL value greater than one using the IMPES system; and
g. simulating, by the thermal simulator, all cells having CFL values greater than one using a Fully Implicit Method (FIM) system.

20. The method of claim 19, wherein step c comprises:
providing a plurality of partial differential equations to model the reservoir in the reservoir model, wherein the plurality of partial differential equations model a temperature effect, a composition effect, and a saturation effect;
separating the temperature effect, the composition effect, and the saturation effect to generate a plurality of decoupled equations; and
computing the temperature CFL condition, the composition CFL condition, and the saturation CFL condition using the plurality of decoupled equations.

21. The method of claim 19, the reservoir being modeled as a multi-phase system using a plurality of partial differential equations, wherein step c comprises:
deriving a general temperature CFL expression to calculate the temperature CFL condition, the general temperature CFL expression being independent of a number of phases of the multi-phase system.

22. The method of claim 19, wherein the time-step comprises at least one selected from a group consisting of a second, a minute, an hour, a day, a week, a month, and a year.

23. A computer system with optimized computer usage when performing simulations for an oilfield operation of an oilfield having at least one wellsite, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein, the computer system comprising:
a processor;
memory;
and software instructions stored in memory to execute on the processor to:
a. determine a preferred percentage of cells to be simulated using an Implicit Pressure, Explicit Saturations (IMPES) system for optimizing computer usage;
b. determine a time-step for simulating the reservoir;
c. calculate Courant-Friedrichs-Lewy (CFL) conditions according to the time-step for each cell of the reservoir model including calculating a temperature CFL condition, a composition CFL condition, and a saturation CFL condition, the composition CFL condition and the saturation CFL condition being calculated by an isothermal simulator, the temperature CFL condition being calculated by a thermal simulator;
d. calculate a percentage of cells having no CFL condition with a value greater than one;
e. determine whether the percentage calculated from step d is equal to or greater than the preferred percentage and if not reduce the time-step and return to step c;
f. simulate, by the thermal simulator, all cells having no CFL value greater than one using the IMPES system; and
g. simulate, by the thermal simulator, all cells having CFL values greater than one using a Fully Implicit Method (FIM) system.

24. The computer system of claim 23, wherein step c comprises:
providing a plurality of partial differential equations to model the reservoir in the reservoir model, wherein the plurality of partial differential equations model a temperature effect, a composition effect, and a saturation effect;
separating the temperature effect, the composition effect, and the saturation effect to generate a plurality of decoupled equations; and
computing the temperature CFL condition, the composition CFL condition, and the saturation CFL condition using the plurality of decoupled equations.

25. The computer system of claim 23, wherein the time-step comprises at least one selected from a group consisting of a second, a minute, an hour, a day, a week, a month, and a year.