Petroleum Knowledge Base

Material Balance Check in Reservoir Simulation

The material balance check in reservoir simulation is a method for judging whether a computed solution is acceptable: the solution is acceptable only when the incremental material balance (IMB) and cumulative material balance (CMB) checks agree with each other; the cumulative check adds up and averages the errors over the time steps and is less accurate than the incremental check; both checks apply only to closed reservoirs, and a correction term must be added when mass flows across the outer boundary; for a difference equation to give a mass-conserving solution, the flow across an internal interface computed from the two sides must be equal and the coefficient matrix must be symmetric, and the accumulation term expansion must satisfy the definition of mass conservation.

Concept

The material balance check in reservoir simulation is used to judge whether a computed solution is acceptable. The check can be made for a single time step or for a whole time period: the check for a single time step is called the incremental material balance (IMB), and the check for a whole time period is called the cumulative material balance (CMB); a solution is acceptable only when the results of the IMB and CMB checks agree with each other.

In the CMB equation, φ⁰ and B⁰ are the porosity and formation volume factor at the initial pressure, not the reference values of the basic equations. Both checks apply only to closed reservoirs; once mass flows in or out across the outer boundary, a correction term must be added to the equations to account for that flow. The CMB adds up the deviations appearing at the individual time steps and then averages them, so it is less accurate than the IMB.

The conservation question in the accumulation term expansion is examined below: the material balance of a single-phase flow system was covered in the preceding section, and the equations are analyzed here to see what properties the difference notation must have to give a conservation equation.

Calculation Methods

IMB and CMB Checks

The IMB check equation is Eq. (6.70), and the CMB check equation is Eq. (6.71); both checks can be made at every time step, and a solution is acceptable only when the results of the two checks agree with each other. In the CMB equation, φ⁰ and B⁰ are the porosity and formation volume factor at the initial pressure, not the reference values of the basic equations. Both checks hold only in closed reservoirs; once mass flows in or out across the outer boundary, a correction term must be added to the equations to account for that flow. The CMB adds up the deviations at the individual time steps and then averages them, so it is less accurate than the IMB.

The variable bubble-point correction method shows the same conservation requirement: the correction is first computed on an assumed phase state, and any part of the computed result that is physically unrealistic is then corrected to the true situation with alternating phase states, without breaking mass conservation, after which the calculation continues with the new phase state; the premise of the correction is that the amounts of oil, gas, and water in each grid block do not change before and after the correction.

Conservation Analysis of the Accumulation Term Expansion

First, how the accumulation term is expanded. In the one-dimensional case, the finite-difference approximation Eq. (6.72) can be reduced to Eq. (6.73), and the expansion requires rewriting the right-hand side of Eq. (6.72) in terms of the pressure to be solved for. Eq. (6.72) is the equation obtained directly by discretizing the partial differential equation, while Eq. (6.73) is the equation actually solved in reservoir simulation, so the two equations must be examined together to find the conditions that the difference form must satisfy for conservation. The derivation does not specify a time step for the unknown on the left-hand side of Eq. (6.72) and Eq. (6.73), whether explicit or implicit; the source/sink term is likewise given no time step, and the transmissibility term is given neither a time nor an iteration step. For this reason, the discussion below applies to all the approximation methods for single-phase flow mentioned earlier.

Take a one-dimensional horizontal reservoir, write Eq. (6.72) for each grid block in turn, and add all these equations together to obtain Eq. (6.75). In Eq. (6.75), the first term describes the flow across the right-hand interface of a grid block, approximated by a forward difference, and the second term describes the flow across the left-hand interface of a grid block, approximated by a backward difference. The same internal interface appears once in the equation of each of the two adjacent grid blocks, so the flow at every internal interface is computed twice. What each term in Eq. (6.76) stands for is listed below:

  • the flow at the outer boundary estimated by a backward difference, whose sign shows whether fluid flows into or out of the whole grid system;
  • the sum of the flows at the internal interfaces in the forward direction, estimated by forward differences;
  • the sum of the flows at the internal interfaces in the reverse direction, estimated by backward differences;
  • the flow at the outer boundary estimated by a forward difference, whose sign likewise shows whether fluid flows into or out of the whole grid system;
  • the sum of all production (or injection), that is, the total production or total injection of the whole system;
  • the sum of the changes in the total amount of subsurface fluid over this time interval.

The IMB and CMB check equations were written for no-flow boundaries in the first place: setting the relevant transmissibilities to zero makes the flow terms at the outer boundary disappear. Substituting Eq. (6.77) back into Eq. (6.76) gives Eq. (6.78); combining and rearranging Eq. (6.78) gives Eq. (6.79); treating Eq. (6.73) in the same way gives the corresponding Eq. (6.80). Eq. (6.79) is the final result obtained by summing the difference equations of the whole system. Eq. (6.72) states the mass conservation of a single grid block, and adding it block by block naturally gives the mass conservation of the whole grid system.

Compare Eq. (6.79) with Eq. (6.82), the conservation equation written directly for the whole grid system: the sum of the mass conservation equations of the individual grid blocks is the same thing as the conservation equation of the whole grid system, so the first term of Eq. (6.79) can only be zero, which is Eq. (6.83). As long as a pressure gradient still exists, Eq. (6.83) holds if and only if Eq. (6.84) holds. Physically, Eq. (6.83) says that the flow across any internal interface in the forward direction is equal in magnitude to the flow across the same interface computed in the reverse direction from the adjacent grid block; although this conclusion is derived in one dimension, it also holds in multiple dimensions. Mathematically, Eq. (6.83) means that for the system of linear equations obtained from Eq. (6.72) to give a conserving solution, its coefficient matrix must be a symmetric matrix; in three dimensions there are corresponding symmetric relations such as Eq. (6.86).

The left-hand sides of Eq. (6.79) and Eq. (6.80) are the same, and combining the two equations gives Eq. (6.89); if every term inside the summation is equal term by term, Eq. (6.90) follows. Eq. (6.90) gives the conservation definition that the accumulation term expansion should satisfy for single-phase flow; the accumulation term expansion for multiphase flow involves other matters and is left to Chapter 7.

Influencing Factors and Considerations

  1. Both checks must be made, and their results must agree. The IMB and CMB checks can both be made at every time step; a solution is acceptable only when the results of the two checks agree with each other.
  2. They hold only in closed reservoirs. Once mass flows in or out across the outer boundary, a correction term must be added to the equations to account for that flow.
  3. The CMB is less accurate than the IMB. The CMB adds up the deviations at the individual time steps and then averages them, so it is less accurate than the IMB.
  4. The flow across the same internal interface, computed from the two sides, must be equal. The flow across any internal interface in the forward direction is equal to the flow across the same interface computed in the reverse direction from the adjacent grid block; this conclusion is derived in one dimension, but it also applies in multiple dimensions.
  5. A symmetric coefficient matrix is the mathematical condition for a conserving solution. For a system of difference equations to give a conserving solution, its coefficient matrix must be symmetric.
  6. Eq. (6.90) applies only to single-phase flow; multiphase flow is covered in Chapter 7. Eq. (6.90) is the conservation definition for the accumulation term expansion in single-phase flow; the expansion for multiphase flow involves other matters and is left to Chapter 7.
  7. Relation to the Adaptive Implicit Method. In the adaptive implicit method, when a variable is treated explicitly, its partial derivative in the transmissibility term is set to zero; this practice has shortcomings, and in particular, when transmissibility is evaluated by upstream weighting, the computed result may no longer satisfy mass conservation in some cases, and the conservation error grows larger; the material balance check is the means of detecting such errors.
  8. Relation to the Variable Bubble-Point Treatment. The premise of the variable bubble-point correction is that the amounts of oil, gas, and water in a grid block do not change before and after the correction; the corrected result must likewise be judged by the material balance check to decide whether it is acceptable.

References

  1. Zhang Liehui. Fundamentals of Oil and Gas Reservoir Numerical Simulation (in Chinese). Petroleum Industry Press, 2005.
  2. Han Dakuang; Chen Qinlei; Yan Cunzhang. Fundamentals of Reservoir Numerical Simulation (in Chinese). Petroleum Industry Press, 1993.