In computational physics, the term advection scheme refers to a class of numerical discretization methods for solving hyperbolic partial differential equations. In the so-called upwind schemes typically, the 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, Isaacson, and Rees who proposed the CIR method.[1]
To illustrate the method, consider the following one-dimensional linear advection equation
\partialu | |
\partialt |
+a
\partialu | |
\partialx |
=0
x
a
i
i
a
a
\partialu/\partialx
The simplest upwind scheme possible is the first-order upwind scheme. It is given by[2]
where
n
t
i
x
| ||||||||||||||||
\Deltat |
+a
| ||||||||||||||||
2\Deltax |
=0,
a
Defining
a+=max(a,0), a-=min(a,0)
- | |
u | |
x |
=
| ||||||||||||||||
\Deltax |
,
+ | |
u | |
x |
=
| ||||||||||||||||
\Deltax |
The upwind scheme is stable if the following Courant–Friedrichs–Lewy condition (CFL) is satisfied.[3]
c=\left|
a\Deltat | |
\Deltax |
\right|\le1
0\lea
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 necessity of high wavenumbers to represent sharp gradients.
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,
- | |
u | |
x |
- | |
u | |
x |
=
| ||||||||||||||||||||||
2\Deltax |
+ | |
u | |
x |
+ | |
u | |
x |
=
| ||||||||||||||||||||||
2\Deltax |
. Suhas Patankar . Numerical Heat Transfer and Fluid Flow . . 1980 . 978-0-89116-522-4.