In
computational physics
Computational physics is the study and implementation of numerical analysis to solve problems in physics for which a quantitative theory already exists. Historically, computational physics was the first application of modern computers in scienc ...
, the term upwind scheme (sometimes advection scheme) ''typically'' refers to a class of numerical
discretization
In applied mathematics, discretization is the process of transferring continuous functions, models, variables, and equations into discrete counterparts. This process is usually carried out as a first step toward making them suitable for numeri ...
methods for solving
hyperbolic partial differential equation
In mathematics, a hyperbolic partial differential equation of order n is a partial differential equation (PDE) that, roughly speaking, has a well-posed initial value problem for the first n-1 derivatives. More precisely, the Cauchy problem can ...
s, in which so-called upstream variables are used to calculate the derivatives in a flow field. That is, derivatives are estimated using a set of data points biased to be more "upwind" of the query point, with respect to the direction of the flow. Historically, the origin of upwind methods can be traced back to the work of
Courant
Courant may refer to:
* '' Hexham Courant'', a weekly newspaper in Northumberland, England
* ''The New-England Courant'', an American newspaper, founded in Boston in 1721
* ''Hartford Courant'', a newspaper in the United States, founded in 1764
*C ...
, Isaacson, and Rees who proposed the CIR method.
Model equation
To illustrate the method, consider the following one-dimensional linear
advection equation
In the field of physics, engineering, and earth sciences, advection is the transport of a substance or quantity by bulk motion of a fluid. The properties of that substance are carried with it. Generally the majority of the advected substance is al ...
:
which describes a wave propagating along the
-axis with a velocity
. This equation is also a mathematical model for one-dimensional linear
advection
In the field of physics, engineering, and earth sciences, advection is the transport of a substance or quantity by bulk motion of a fluid. The properties of that substance are carried with it. Generally the majority of the advected substance is a ...
. Consider a typical grid point
in the
domain. In a one-dimensional domain, there are only two directions associated with point
– left (towards negative infinity) and
right (towards positive infinity). If
is positive, the traveling wave solution of the equation above propagates towards the right, the left side of
is called ''upwind'' side and the right side is the ''downwind'' side. Similarly, if
is negative the traveling wave solution propagates towards the left, the left side is called ''downwind'' side and right side is the ''upwind'' side. If the finite difference scheme for the spatial derivative,
contains more points in the upwind side, the scheme is called an upwind-biased or simply an upwind scheme.
First-order upwind scheme

The simplest upwind scheme possible is the first-order upwind scheme. It is given by
where
refers to the
dimension and
refers to the
dimension. (By comparison, a central difference scheme in this scenario would look like
:
regardless of the sign of
.)
Compact form
Defining
:
and
:
the two conditional equations () and () 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 In mathematics, the convergence condition by Courant–Friedrichs–Lewy is a necessary condition for convergence while solving certain partial differential equations (usually hyperbolic PDEs) numerically. It arises in the numerical analysis of e ...
(CFL) is satisfied.
[
]
:
and
.
A
Taylor series
In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor se ...
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
Numerical diffusion is a difficulty with computer simulations of continua (such as fluids) wherein the simulated medium exhibits a higher diffusivity than the true medium. This phenomenon can be particularly egregious when the system should not be ...
/dissipation in the solution where large gradients exist due to necessity 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,
becomes the 3-point backward difference in equation () and is defined as
:
and
is the 3-point forward difference, defined as
:
This scheme is less diffusive compared to the first-order accurate scheme and is called linear upwind differencing (LUD) scheme.
See also
*
Finite difference method
In numerical analysis, finite-difference methods (FDM) are a class of numerical techniques for solving differential equations by approximating derivatives with finite differences. Both the spatial domain and time interval (if applicable) are dis ...
*
Upwind differencing scheme for convection
The upwind differencing scheme is a method used in numerical methods in computational fluid dynamics for convection– diffusion problems. This scheme is specific for Peclet number greater than 2 or less than −2
Description
By taking ...
*
Godunov's scheme In numerical analysis and computational fluid dynamics, Godunov's scheme is a conservative numerical scheme, suggested by S. K. Godunov in 1959, for solving partial differential equations. One can think of this method as a conservative finite-vol ...
References
{{DEFAULTSORT:Upwind Scheme
Computational fluid dynamics
Numerical differential equations