askvity

What is consistency of finite difference method?

Published in Numerical Analysis 4 mins read

Consistency in the finite difference method refers to whether the numerical approximation of a partial differential equation (PDE) approaches the true solution of the PDE as the mesh and time step sizes decrease. In simpler terms, it's about the accuracy of the approximation.

Understanding Consistency

A finite difference method's consistency is crucial for ensuring that the numerical solution is a good representation of the true solution. Here's how to break it down:

  • The Core Idea: A consistent method means that as you make the grid finer (smaller mesh size) and use smaller time steps, the error introduced by the approximation (known as truncation error) gets smaller and smaller, eventually approaching zero.

  • Truncation Error: This error arises from replacing the derivatives in the PDE with finite difference approximations (e.g., using differences instead of derivatives).

  • Convergence: Consistency is a necessary condition for convergence, meaning that a consistent scheme might converge to the true solution but it doesn't guarantee it will. It is a fundamental requirement. However, stability must be present for the method to converge.

  • Analogy: Imagine zooming in on a digital image. As you zoom in more, you see less of the blocky pixels and more of the original picture. Consistency is like that; with finer mesh and smaller steps, we get a clearer picture of the PDE's true solution.

Defining Consistency

According to the provided reference:

A finite difference approximation is considered consistent if by reducing the mesh and time step size, the truncation error terms could be made to approach zero. In that case, the solution to the difference equation would approach the true solution to the PDE.

Key Aspects of Consistency

Here are some crucial points about consistency:

  • Mesh and Time Step Sizes: Consistency is directly related to how small the mesh spacing (e.g., Δx for spatial dimensions) and the time steps (Δt) are. The smaller, the better (in theory).

  • Taylor Expansion: To determine if a method is consistent, you often need to perform a Taylor series expansion of the finite difference approximations and check that the resulting error terms approach zero when mesh spacing and time step sizes approach zero.

  • Practical Insights:

    • First-Order Accuracy: If the truncation error terms are proportional to Δt or Δx, the scheme is said to be first-order accurate.
    • Second-Order Accuracy: If the truncation error terms are proportional to Δt2 or Δx2, the scheme is second-order accurate.
    • Higher-order schemes generally have smaller errors and thus, converge more quickly.

Examples

Consider an example of approximating the first-order time derivative of a function, u(t), using forward difference:

  • Finite Difference Approximation: [u(t + Δt) - u(t)] / Δt

  • Taylor Series: u(t + Δt) = u(t) + Δt u'(t) + (Δt2 / 2!) u''(t) +...

  • Truncation Error: By substituting the Taylor series into the finite difference approximation and comparing it to the true derivative (u'(t)), you'll find the truncation error is proportional to Δt (first order). Hence, when Δt tends to zero, the error disappears.

Significance

Consistency ensures:

  • Reliable Results: The numerical solution gets closer to the exact solution as the computation refines the mesh and time steps.

  • Accuracy Improvement: It's fundamental for achieving higher accuracy in numerical solutions.

  • Validation of Numerical Methods: Assessing consistency is a crucial step in verifying a numerical method's validity.

Summary

In essence, consistency is a crucial property of finite difference methods. It means that the numerical approximation becomes more accurate with decreasing mesh and time step sizes, by reducing the truncation error. A consistent finite difference scheme is a crucial first step towards obtaining meaningful numerical solutions.

Related Articles