- Source: Upwind scheme
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.
Model equation
To illustrate the method, consider the following one-dimensional linear advection equation
∂
u
∂
t
+
a
∂
u
∂
x
=
0
{\displaystyle {\frac {\partial u}{\partial t}}+a{\frac {\partial u}{\partial x}}=0}
which describes a wave propagating along the
x
{\displaystyle x}
-axis with a velocity
a
{\displaystyle a}
. This equation is also a mathematical model for one-dimensional linear advection. Consider a typical grid point
i
{\displaystyle i}
in the
domain. In a one-dimensional domain, there are only two directions associated with point
i
{\displaystyle i}
– left (towards negative infinity) and
right (towards positive infinity). If
a
{\displaystyle a}
is positive, the traveling wave solution of the equation above propagates towards the right, the left side is called the upwind side and the right side is the downwind side. Similarly, if
a
{\displaystyle a}
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,
∂
u
/
∂
x
{\displaystyle \partial u/\partial x}
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
n
{\displaystyle n}
refers to the
t
{\displaystyle t}
dimension and
i
{\displaystyle i}
refers to the
x
{\displaystyle x}
dimension. (By comparison, a central difference scheme in this scenario would look like
u
i
n
+
1
−
u
i
n
Δ
t
+
a
u
i
+
1
n
−
u
i
−
1
n
2
Δ
x
=
0
,
{\displaystyle {\frac {u_{i}^{n+1}-u_{i}^{n}}{\Delta t}}+a{\frac {u_{i+1}^{n}-u_{i-1}^{n}}{2\Delta x}}=0,}
regardless of the sign of
a
{\displaystyle a}
.)
= Compact form
=Defining
a
+
=
max
(
a
,
0
)
,
a
−
=
min
(
a
,
0
)
{\displaystyle a^{+}={\text{max}}(a,0)\,,\qquad a^{-}={\text{min}}(a,0)}
and
u
x
−
=
u
i
n
−
u
i
−
1
n
Δ
x
,
u
x
+
=
u
i
+
1
n
−
u
i
n
Δ
x
{\displaystyle u_{x}^{-}={\frac {u_{i}^{n}-u_{i-1}^{n}}{\Delta x}}\,,\qquad u_{x}^{+}={\frac {u_{i+1}^{n}-u_{i}^{n}}{\Delta x}}}
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.
c
=
|
a
Δ
t
Δ
x
|
≤
1
{\displaystyle c=\left|{\frac {a\Delta t}{\Delta x}}\right|\leq 1}
and
0
≤
a
{\displaystyle 0\leq a}
.
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.
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,
u
x
−
{\displaystyle u_{x}^{-}}
becomes the 3-point backward difference in equation (3) and is defined as
u
x
−
=
3
u
i
n
−
4
u
i
−
1
n
+
u
i
−
2
n
2
Δ
x
{\displaystyle u_{x}^{-}={\frac {3u_{i}^{n}-4u_{i-1}^{n}+u_{i-2}^{n}}{2\Delta x}}}
and
u
x
+
{\displaystyle u_{x}^{+}}
is the 3-point forward difference, defined as
u
x
+
=
−
u
i
+
2
n
+
4
u
i
+
1
n
−
3
u
i
n
2
Δ
x
{\displaystyle u_{x}^{+}={\frac {-u_{i+2}^{n}+4u_{i+1}^{n}-3u_{i}^{n}}{2\Delta x}}}
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
Upwind differencing scheme for convection
Godunov's scheme
References
Kata Kunci Pencarian:
- Upwind scheme
- Upwind differencing scheme for convection
- QUICK scheme
- False diffusion
- Hybrid difference scheme
- Godunov's scheme
- Central differencing scheme
- Total variation diminishing
- MacCormack method
- Numerical solution of the convection–diffusion equation