![]() | ||
In computational physics, upwind schemes denote a class of numerical discretization methods for solving hyperbolic partial differential equations. Upwind schemes use an adaptive or solution-sensitive finite difference stencil to numerically simulate the direction of propagation of information in a flow field. The upwind schemes attempt to discretize hyperbolic partial differential equations by using differencing biased in the direction determined by the sign of the characteristic speeds. Historically, the origin of upwind methods can be traced back to the work of Courant, Isaacson, and Rees who proposed the CIR method.
Contents
Model equation
To illustrate the method, consider the following one-dimensional linear advection equation
which describes a wave propagating along the
First-order upwind scheme
The simplest upwind scheme possible is the first-order upwind scheme. It is given by
Compact form
Defining
and
the two conditional equations (1) and (2) can be combined and written in a compact form as
Equation (3) is a general way of writing any upwind-type schemes.
Stability
The upwind scheme is stable if the following Courant–Friedrichs–Lewy condition (CFL) is satisfied.
A Taylor series analysis of the upwind scheme discussed above will show that it is first-order accurate in space and time. Modified wavenumber analysis shows that the first-order upwind scheme introduces severe numerical diffusion/dissipation in the solution where large gradients exist(due to neccessity of high wavenumbers to represent sharp gradients).
Second-order upwind scheme
The spatial accuracy of the first-order upwind scheme can be improved by including 3 data points instead of just 2, which offers a more accurate finite difference stencil for the approximation of spatial derivative. For the second-order upwind scheme,
and
This scheme is less diffusive compared to the first-order accurate scheme and is called linear upwind differencing (LUD) scheme.
Third-order upwind scheme
For the third-order upwind scheme,
and
This scheme is less diffusive compared to the second-order accurate scheme. However, it is known to introduce slight dispersive errors in the region where the gradient is high.