PNG 506 · Elements of Reservoir Simulation
Our notes
2 min readThe idea
Replace derivatives by differences between values at grid points (in space) and time levels. Write pᵢⁿ for pressure at block i and time step n, with spacing Δx and Δt.
From Taylor series
p(x + Δx) = p(x) + Δx p′ + (Δx²/2)p″ + (Δx³/6)p‴ + ...
p(x − Δx) = p(x) − Δx p′ + (Δx²/2)p″ − (Δx³/6)p‴ + ...
| Approximation of p′ | Formula | Truncation error |
|---|---|---|
| Forward | (pᵢ₊₁ − pᵢ)/Δx | O(Δx), first order |
| Backward | (pᵢ − pᵢ₋₁)/Δx | O(Δx) |
| Central | (pᵢ₊₁ − pᵢ₋₁)/(2Δx) | O(Δx²), second order |
Adding the two series gives the second derivative:
p″ ≈ (pᵢ₊₁ − 2pᵢ + pᵢ₋₁)/Δx², error O(Δx²).
"Order" tells how fast the error shrinks: halving Δx halves a first-order error but quarters a second-order one.
Worked example. f(x) = eˣ at x = 1 (true f′ = 2.71828), Δx = 0.1. e^1.1 = 3.00417, e^0.9 = 2.45960.
- Forward: (3.00417 − 2.71828)/0.1 = 2.8589, error 0.141.
- Central: (3.00417 − 2.45960)/0.2 = 2.7228, error 0.0045: about 30 times smaller.
Variable permeability: the flux form
For ∂/∂x(k ∂p/∂x), difference the fluxes at block faces i ± ½:
[k_(i+½)(pᵢ₊₁ − pᵢ) − k_(i−½)(pᵢ − pᵢ₋₁)]/Δx².
The face permeability between two blocks is the harmonic average (flow through rocks in series): k_(i+½) = 2kᵢkᵢ₊₁/(kᵢ + kᵢ₊₁) for equal block sizes.
Worked example. Blocks of 200 md and 20 md: arithmetic mean 110 md, harmonic 36.4 md. The tight block controls the flow, so harmonic is right.
Transmissibility
Collecting constants: T_(i+½) = β_c k_(i+½)A/(μBΔx), so the flow between blocks is T(pᵢ₊₁ − pᵢ). Simulators compute transmissibilities from the grid and then work with them.
Time discretisation
For ∂p/∂t = η ∂²p/∂x², with r = ηΔt/Δx²:
- Explicit (forward Euler): space terms at the old time n:
pᵢⁿ⁺¹ = pᵢⁿ + r(pᵢ₊₁ⁿ − 2pᵢⁿ + pᵢ₋₁ⁿ). Each block updated on its own: cheap, but conditionally stable.
- Implicit (backward Euler): space terms at the new time n + 1:
−r pᵢ₋₁ⁿ⁺¹ + (1 + 2r)pᵢⁿ⁺¹ − r pᵢ₊₁ⁿ⁺¹ = pᵢⁿ. A system of equations to solve each step, but unconditionally stable. First order in time.
- Crank-Nicolson: average of the two: second order in time, stable, but can oscillate with large steps.
Most reservoir simulators use implicit (backward Euler) time stepping because reservoir problems need large time steps over decades.
Exams usually ask: derive forward, backward and central differences and their truncation errors from Taylor series; derive the second-difference formula; harmonic averaging of permeability; transmissibility; write explicit and implicit schemes for the diffusivity equation.
Common mistake: using the arithmetic mean of permeability between two blocks. Flow between block centres goes through both rocks in series, so the harmonic mean is correct.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Finite difference method
(opens en.wikipedia.org in a new tab)
Wikipedia, Finite difference method, CC BY-SA 4.0 · licence
Watch
-
Best pick Finite Difference Approximations
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
Introduction to finite-differencing
15 min · ≈ 68 MB · about ₦38
(opens youtube.com in a new tab)
-
Spatial Approximation with Finite DIfferences
17 min · ≈ 77 MB · about ₦43
(opens youtube.com in a new tab)
-
Central Difference Approximation | Lecture 61 | Numerical Methods for Engineers
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
-
Explicit Methods for Solving the Diffusion Equation | Lecture 69 | Numerical Methods for Engineers
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
Finite Volume Discretization in 1D
26 min · ≈ 117 MB · about ₦66
(opens youtube.com in a new tab)
-
Forward, backward, central finite differences and errors
24 min · ≈ 108 MB · about ₦61
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.