Math 2.0

Numerical analysis Definition

Upwind scheme

Builds on Transport equationFinite difference methodCourant–Friedrichs–Lewy condition

Definition

Let a∈ℝa \in \R, and consider the transport equation ut+aux=0u_t + a u_x = 0. Fix Δx>0\Delta x > 0 and Δt>0\Delta t > 0, put ν=aΔt/Δx\nu = a \Delta t / \Delta x, and let ujnu_j^n approximate u(jΔx,nΔt)u(j \Delta x, n \Delta t). The first-order upwind scheme is the explicit finite difference scheme ujn+1={ujn−ν(ujn−uj−1n)if a≥0,ujn−ν(uj+1n−ujn)if a<0.u_j^{n+1} = \begin{cases} u_j^n - \nu \left( u_j^n - u_{j-1}^n \right) & \text{if } a \ge 0, \\ u_j^n - \nu \left( u_{j+1}^n - u_j^n \right) & \text{if } a < 0. \end{cases} Equivalently, with a+=max⁡(a,0)a^+ = \max(a, 0) and a−=min⁡(a,0)a^- = \min(a, 0), ujn+1=ujn−ΔtΔx(a+(ujn−uj−1n)+a−(uj+1n−ujn)).u_j^{n+1} = u_j^n - \frac{\Delta t}{\Delta x} \left( a^+ (u_j^n - u_{j-1}^n) + a^- (u_{j+1}^n - u_j^n) \right).

Remarks

Example: let a>0a > 0 and 0≤ν≤10 \le \nu \le 1. Then ujn+1=(1−ν)ujn+νuj−1nu_j^{n+1} = (1 - \nu) u_j^n + \nu u_{j-1}^n is a convex combination, so min⁡jujn≤ujn+1≤max⁡jujn\min_j u_j^n \le u_j^{n+1} \le \max_j u_j^n, and the scheme is stable in the maximum norm. The condition ν≤1\nu \le 1 is the Courant–Friedrichs–Lewy condition: the numerical domain of dependence must contain the characteristic through the point. Non-example: for a>0a > 0, the downwind scheme ujn+1=ujn−ν(uj+1n−ujn)u_j^{n+1} = u_j^n - \nu (u_{j+1}^n - u_j^n) uses the wrong side. It multiplies the Fourier mode eijξe^{i j \xi} by g=1+ν−νeiξg = 1 + \nu - \nu e^{i\xi}, with ∣g∣2=1+2ν(1+ν)(1−cos⁡ξ)>1\abs{g}^2 = 1 + 2\nu(1 + \nu)(1 - \cos \xi) > 1 for ξ≠0\xi \ne 0, so it is unstable for every ν>0\nu > 0. For a scalar conservation law ut+f(u)x=0u_t + f(u)_x = 0, upwinding takes the difference on the side given by the sign of the characteristic speed f′(u)f'(u). The scheme is first-order accurate in Δx\Delta x for fixed ν\nu.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Finite difference method concept
  2. Transport equation concept
  3. Courant–Friedrichs–Lewy condition statement
  4. Upwind scheme definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Upwind_scheme
About this page
TagG5RB8T2WKD
URIm2://G5RB8T2WKD
Kinddefinition
WritingW0 stub
MSC65M06, 65M08
DefinesUpwind scheme
UsesTransport equation, Finite difference method, Courant–Friedrichs–Lewy condition

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.