Timestep Control and the CFL Limit

Chapter 12, Running a Simulation, History Matching, and Forecasting

Learning objectives

  • State the CFL condition and the Courant number of an explicit saturation update
  • Explain how an explicit run fails past the limit: accuracy first, then an over-filled injector cell
  • Show why a closed material balance does not prove a stable solution
  • Compare IMPES's stable step on the field with a fully implicit step, and the accuracy the longer step gives up

Information Moves One Cell at a Time

An explicit saturation update, the second half of IMPES in Section 12.1 (IMPES and Fully Implicit), takes the water fraction from the upstream cell, so a change in saturation can travel at most one cell in a step. Write ΔWi\Delta W_i for the pore volumes of water injected in a step and Δx\Delta x for a cell's share of the pore volume. The update is

Si m+1=Si m−ΔWiΔx(fw(Si m)−fw(Si−1 m)),S_i^{\,m+1} = S_i^{\,m} - \frac{\Delta W_i}{\Delta x}\left(f_w(S_i^{\,m}) - f_w(S_{i-1}^{\,m})\right),

and its Courant number is the steepest slope of the fractional flow times the step over the cell:

C=fw′max⁡ ΔWiΔx.C = f_w'^{\max}\,\frac{\Delta W_i}{\Delta x}.

The CFL condition, named for Courant, Friedrichs and Lewy (1928), asks for C≤1C \le 1: for the book's first-order upwind update, the largest step it is guaranteed to take is the one at which the fastest saturation crosses one cell (Lie, 2019, Chapter 9, discretizes this transport equation with the same upstream scheme). For the Ogbon field's fluids and the curves of Section 9.4 (Relative Permeability) the steepest slope of the fractional flow is 3.42. In a slab of 100 cells the limit is therefore a step of 0.0029 pore volumes, and the figure takes the same flood at 0.5 to 4 times that step with the book's flood kernel (IMPES) and with its fully implicit solver, against the exact answer of Section 11.3 (The Buckley-Leverett Displacement).

At 3.0 times the explicit step limit, one step puts 0.88 of a cell's pore volume ofwater into the injector's cell, more than the 0.62 it can take, so IMPES holds 106 %water there, more than the pore itself, and its profile is off by 33.7 %. Theimplicit run at the same step keeps every saturation under 79.7 % and is off by2.1 %. On the field IMPES's stable step at the start of the flood is 5.9 days; animplicit step of 1 year is 62 times that and recovers 14.33 % of the flow grid's oilin 10 years against IMPES's 14.52 %.(a) The front, 3.0 times the limit00.250.50.75104080100120140Distance along the slab (fraction)Water (%)pore holds 80pore full(b) The highest water, 106 % against 80 %0.512480100120140Step (times the limit)limit 1(c) The profile error, 33.7 % against 2.1 %0.51240.1110100Step (times the limit)(d) The field, 62 times, 14.33 %1101001313.51414.515Step (times IMPES's 5.9 days)IMPES 5.9 dKey: the exact profile (black), IMPES (green) and the fully implicit run (blue) at the same step; theceiling a pore can hold (dotted) and the full pore (dashed); the limit (black line); your step (largedot).Step 3.0 times the limit (0.0088 PV a step; 57 IMPES steps to 0.50 PV). Highest saturation 106 %(implicit 79.7 %; a pore holds 80 % with its residual oil). IMPES's step on the field 5.9 days (668explicit steps to 10 years; yours is 62 times it). Recovery given up 0.20 points (14.33 % against14.52 % of the flow grid's oil at 10 years).

What Happens Past the Limit

Below the limit the explicit run is accurate: after 0.50 pore volumes its profile is off by 0.7 % of water saturation on average at half the limit and by 0.5 % at the limit, where the front moves about one cell a step. Past it the first thing lost is accuracy, not the saturations. At 1.5 times the limit every saturation is still inside the physical range (the highest is 79.7 %, against the 80 % a pore holds once the residual oil is left), yet the profile is off by 3.1 %, six times its error at the limit, and the front carries wiggles. The limit is a guarantee for the whole range of saturations the update could meet, and a front that stays steep visits only part of it.

Take a longer step and the failure is of another kind. In its first step the injector's cell, at the connate water, receives C/fw′max⁡C / f_w'^{\max} of its pore volume of water, and it can take only 1−Sor−Swc1 - S_{or} - S_{wc}, 0.62. It overfills past

C=fw′max⁡ (1−Sor−Swc)=2.1.C = f_w'^{\max}\,(1 - S_{or} - S_{wc}) = 2.1.

At 2.5 times the limit the cell holds 91 % water, at 3.0 times 106 % and at 4.0 times 135 %: more water than the pore, with the excess carried into the solution for good, and the profile is off by 21 %, 34 % and 49 %. The material balance still closes to rounding in every one of these runs, because the update loses no water; it only puts too much in one place. A closed balance (Section 12.3, Newton Convergence and Material Balance) therefore cannot show that a step was stable; the saturations and the step must be read as well. Between 1.6 and 1.9 times the limit the overshoot comes and goes with how the first steps fill the cell, which is why the figure draws the whole curve in (b) and (c).

The Implicit Step

The fully implicit solver evaluates the same fluxes at the new saturations and finds them by Newton iteration. In the slab it keeps every saturation under 79.7 % at every step the figure takes, and it is off by 1.4 % at the limit, 2.1 % at 3.0 times and 2.4 % at 4.0 times: stable, but smoother than the explicit front at the limit, since backward Euler smears at every step size. Its steps are not cheaper: at 3.0 times the limit it takes 57 steps and 305 Newton iterations to reach 0.50 pore volumes, each a linear solve, which is why Section 12.1 finds IMPES the cheaper scheme on these floods by the work counted.

On the Ogbon Field

On the field the same numbers decide the cost of a run. At the start of the flood IMPES's stable step is 5.9 days, set by a single cell, the main sand's cell where Ogbon-1 produces; the 10 years of the book's flood take 668 explicit steps and 13 pressure solves. A fully implicit step of 1 year is 62 times that step and takes 10 steps, 60 Newton iterations and 765 linear iterations, and it stays stable. It recovers 14.33 % of the flow grid's oil in 10 years where IMPES recovers 14.52 %, so it gives up 0.20 points. The loss grows with the step: 14.43 % with a step of half a year (31 times IMPES's), 14.11 % with 2 years and 13.46 % with 5 years (309 times), which is 1.06 points under IMPES in 2 steps. The implicit recoveries approach IMPES's as the step falls, so IMPES, whose steps are 62 times shorter, is the reference here; neither is the converged answer. The oil is the flow grid's own, 92.8 million stb in its cells, against the field's 91.0 million stb (Section 1.1) and the tank's 93.3 million stb (Section 11.1).

What This Figure Leaves Out

The slab is one dimension, with no capillary pressure or gravity; the field is the book's two-well flood, with gravity, read from the kernel's table. A real simulator chooses its step from the saturation and pressure changes it sees and cuts it when a solve fails (Section 12.3), and it can mix the two schemes in space; the book does not model that. The limit of 1 is the bound of the first-order upwind update the book uses.

References

  • Courant, R., Friedrichs, K. and Lewy, H. (1928). Über die partiellen Differenzengleichungen der mathematischen Physik. Mathematische Annalen, 100, 32-74.
  • Lie, K.-A. (2019). An Introduction to Reservoir Simulation Using MATLAB/GNU Octave: User Guide for the MATLAB Reservoir Simulation Toolbox (MRST). Cambridge University Press.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.