UNIHIVE

Study Hub UNIPORT PNG 506

PNG 506 · Elements of Reservoir Simulation

Finite-difference approximations

Approximating derivatives from Taylor series (forward, backward, central), truncation error and its order, the second derivative, and explicit, implicit and Crank-Nicolson time stepping.

Our notes

2 min read

The 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′FormulaTruncation error
Forward(pᵢ₊₁ − pᵢ)/ΔxO(Δx), first order
Backward(pᵢ − pᵢ₋₁)/ΔxO(Δ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

Watch

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.

All PNG 506 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.