Concept
The fully implicit method belongs to the simultaneous solution (SS) methods: all unknowns in each grid block (for the black oil model, oil phase pressure, water saturation, and gas saturation, or bubble point pressure in place of gas saturation) are solved simultaneously, and all coefficients in the equations that vary with the unknowns (transmissibility, capillary pressure, accumulation term coefficients, and well production rates) are evaluated at the new time level n+1. With the coefficients evaluated at the new time level, the equations are nonlinear and are solved iteratively by the Newton-Raphson method, so the fully implicit method is also called the Newton iteration method.
The various solution methods for multiphase flow in porous media differ in the time level at which the nonlinear coefficients are evaluated. From low to high, the degree of implicitness is roughly as follows:
| Method | Capillary pressure | Transmissibility (flow coefficient) | Accumulation term coefficients | Number of coefficient evaluations per step |
|---|---|---|---|---|
| Implicit pressure, explicit saturation method | Explicit | Explicit | Explicit | Once |
| Semi-implicit method | Implicit | Linearized implicit | Explicit | Once; coefficients do not take part in the iteration |
| Fully implicit method | Implicit | Implicit, updated with the iteration | Implicit, updated with the iteration | Multiple times, until convergence |
All linearization methods can be regarded as special cases of the fully implicit method; the closer a method is to the Newton-Raphson method, the higher its degree of implicitness and the more stable it is.
Mechanism
Newton Iteration
All the difference equations of the components in grid block n are moved to one side and written as the residual Rn(X) = 0, where X denotes the unknowns of all grid blocks. Within one time step:
δX = X(v+1) − X(v), X(0) = Xn
where v is the iteration number and [J] is the Jacobian matrix, whose elements are the partial derivatives of the residual of each grid block with respect to the unknowns of that grid block and of the adjacent grid blocks.
- Taking the solution at the end of the previous time step as the initial value, calculate the residual and the Jacobian matrix;
- Solve the linear system to obtain the increment δX, update the unknowns, and recalculate all the coefficients with the new values;
- Repeat step 2 until the change between two successive iterations is smaller than the specified tolerance ε, and take the value of the last iteration as the solution at time step n+1.
Taking transmissibility as an example, the flow term at the new time level is approximated by the current iteration value plus first-order partial derivative terms in the pressure and saturation increments; the derivatives at the upstream point are taken as tangent values at the latest iteration. If the variation of transmissibility with pressure is negligible and only one iteration is performed, the method degenerates to the linearized implicit method; when the relative permeability curve is a straight line, it is the same as the semi-implicit method of Nolen and Berry.
The accumulation term coefficients (porosity, formation volume factor, solution gas-oil ratio, etc.) are weakly nonlinear, but they cannot be treated explicitly, otherwise the expanded accumulation term is no longer conservative and material balance errors arise. The linearization of the production term should also be consistent with the treatment of transmissibility, so as not to introduce instability.
Structure of the Equation System
The difference equations of the fully implicit and semi-implicit methods have the same structure, and the solution methods can be shared; the difference lies only in whether the coefficient generation and equation solution are done once or repeatedly within a time step. If the several unknowns of each grid block are regarded as one "block," a one-dimensional problem gives block tridiagonal equations, which can be solved with the Thomas algorithm, except that the element operations are replaced by submatrix operations. Two-dimensional and three-dimensional problems give block pentadiagonal and block heptadiagonal equations, respectively, which are commonly solved by iterative methods such as multivariable line relaxation. For three phases each submatrix is of order 3, and for two phases it is of order 2. For the specific solution methods, see Solution Methods for Systems of Linear Equations.
Unified example. A one-dimensional reservoir 1 000 m long is divided into 5 grid blocks (assumed; the unified example of this category). With the three-phase black oil model solved fully implicitly, each grid block has 3 unknowns (the primary unknowns; of the 6 pressures and saturations, 3 are eliminated using the saturations summing to 1 and the two capillary pressure relations), and each Newton iteration solves a block tridiagonal system of order 15 (5 × 5 blocks, each block a 3 × 3 submatrix, with 13 nonzero blocks). For two-phase oil-water flow each grid block has 2 primary unknowns, giving order 10. For the same problem, IMPES solves only a pressure equation of order 5 at each step. Estimated for direct elimination of banded matrices, the work per step of the simultaneous solution method is l³ times that of IMPES and the storage is l² times (l is the number of phases), that is, 27 times and 9 times for three phases; the fully implicit method also iterates several times at each step.
Influencing Factors and Considerations
- Stability and time step size. The fully implicit method is very effective for strongly nonlinear problems and is often called unconditionally stable: there is no strict stability condition, and the time step can be very large. Although several iterations are needed at each step, the number of steps is small, and the total computing time is sometimes similar to that of the semi-implicit method or even less. If the step is too large, Newton iteration may converge slowly or fail to converge, and in practice the step size is still controlled according to the saturation and pressure changes at each step.
- Applicable problems. Coning, gas override, steam drive, and other difficult problems, three-phase coning problems, and compositional and thermal recovery models generally require the fully implicit method. The fully implicit method places higher demands on the computer and should be used only when IMPES cannot give correct results; in general, IMPES is used for simpler problems and the simultaneous solution method for more complex ones.
- Truncation error. The higher the degree of implicitness, the larger the time truncation error generally is. In waterflooding calculations the flood front may be smeared, distorting the water breakthrough time and the shape of the water cut rise. A higher degree of implicitness is therefore not always better: for the black oil model, the linearized implicit method gives a good balance between stability and accuracy, and the Newton-Raphson method is used more for difficult models such as compositional and thermal recovery models. When the fully implicit method is needed, the truncation error can be controlled with smaller time steps or local grid refinement.
- Computational work and storage. The number of unknowns per grid block equals the number of phases or components, and the number of equations per step is several times that of IMPES, so the work and storage increase sharply with the number of phases. When the number of grid blocks is large, the solution method for the linear system often determines the total computer time.
- Adaptive implicit method. Instability usually appears only in a few grid blocks where saturation and pressure change sharply (such as the near-well zone in coning problems), and it varies with time. The adaptive implicit method automatically determines, for each grid block and each time step, the number of variables solved implicitly in that grid block according to whether the saturation change exceeds a threshold: 1 if only pressure is implicit, 2 if one saturation is added, and 3 if all three variables are implicit. This reduces the computational work while ensuring overall stability.