<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/index.php?action=history&amp;feed=atom&amp;title=Free_expansion</id>
	<title>Free expansion - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/index.php?action=history&amp;feed=atom&amp;title=Free_expansion"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Free_expansion&amp;action=history"/>
	<updated>2026-05-05T06:49:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0-wmf.28</generator>
	<entry>
		<id>https://en.formulasearchengine.com/index.php?title=Free_expansion&amp;diff=20880&amp;oldid=prev</id>
		<title>en&gt;Guy vandegrift at 19:40, 31 December 2013</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Free_expansion&amp;diff=20880&amp;oldid=prev"/>
		<updated>2013-12-31T19:40:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[computational physics]], &amp;#039;&amp;#039;&amp;#039;upwind schemes&amp;#039;&amp;#039;&amp;#039; denote a class of numerical [[discretization]] methods for solving [[hyperbolic partial differential equation]]s. 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 [[Richard Courant|Courant]], Isaacson, and Rees who proposed the CIR method.&amp;lt;ref&amp;gt;[[Richard Courant|Courant, R.]], Isaacson, E., and Rees, M. (1952). &amp;quot;On the Solution of Nonlinear Hyperbolic Differential Equations by Finite Differences&amp;quot;, Comm. Pure Appl. Math., &amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;, 243–255.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Model equation==&lt;br /&gt;
To illustrate the method, consider the following one-dimensional linear [[wave equation]]&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \qquad \frac{\partial u}{\partial t} + a \frac{\partial u}{\partial x} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
which describes a wave propagating in the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction with a velocity &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;. This equation&lt;br /&gt;
is also a mathematical model for one-dimensional linear [[advection]]. Consider a typical grid point &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; in the&lt;br /&gt;
domain. In a one-dimensional domain, there are only two directions associated with point &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; – left and&lt;br /&gt;
right. If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive the left side is called &amp;#039;&amp;#039;upwind&amp;#039;&amp;#039; side and right side is the &amp;#039;&amp;#039;downwind&amp;#039;&amp;#039; side. Similarly, if &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative the left side is called &amp;#039;&amp;#039;downwind&amp;#039;&amp;#039; side and right side is the &amp;#039;&amp;#039;upwind&amp;#039;&amp;#039; side. If the finite difference scheme for the spatial derivative, &amp;lt;math&amp;gt;\partial u / \partial x&amp;lt;/math&amp;gt; contains more&lt;br /&gt;
points in the upwind side, the scheme is called an &amp;#039;&amp;#039;&amp;#039;upwind-biased&amp;#039;&amp;#039;&amp;#039; or simply an &amp;#039;&amp;#039;&amp;#039;upwind scheme&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== First-order upwind scheme ==&lt;br /&gt;
The simplest upwind scheme possible is the first-order upwind scheme. It is given by&amp;lt;ref&amp;gt;{{cite book |last=Patankar |first=S. V. |authorlink=Suhas Patankar |title=Numerical Heat Transfer and Fluid Flow |publisher=[[Taylor &amp;amp; Francis]] |year=1980 |isbn=978-0-89116-522-4}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \quad (1) \qquad \frac{u_i^{n+1} - u_i^n}{\Delta t} + a \frac{u_i^n - u_{i-1}^n}{\Delta x} = 0 \quad \text{for} \quad a &amp;gt; 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \quad (2) \qquad \frac{u_i^{n+1} - u_i^n}{\Delta t} + a \frac{u_{i+1}^n - u_i^n}{\Delta x} = 0 \quad \text{for} \quad a &amp;lt; 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compact form ===&lt;br /&gt;
Defining&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \qquad \qquad a^+ = \text{max}(a,0)\,, \qquad a^- = \text{min}(a,0)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \qquad \qquad 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}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
the two conditional equations (1) and (2) can be combined and written in a compact form as&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \quad (3) \qquad u_i^{n+1} = u_i^n - \Delta t \left[ a^+ u_x^- + a^- u_x^+ \right]&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Equation (3) is a general way of writing any upwind-type schemes.&lt;br /&gt;
&lt;br /&gt;
=== Stability ===&lt;br /&gt;
The upwind scheme is [[numerical stability|stable]] if the following [[Courant–Friedrichs–Lewy condition]] (CFL) condition is satisfied.&amp;lt;ref&amp;gt;{{cite book |last=Hirsch |first=C.|title=Numerical Computation of Internal and External Flows|year=1990|publisher=[[John Wiley &amp;amp; Sons]] |isbn=978-0-471-92452-4}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \qquad \qquad c = \left| \frac{a\Delta t}{\Delta x} \right| \le 1 .&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A [[Taylor series]] analysis of the upwind scheme discussed above will show that it is first-order accurate in space and time. The first-order upwind scheme introduces severe [[numerical diffusion]] in the solution where large gradients exist{{Dubious|date=January 2012}}.&lt;br /&gt;
&lt;br /&gt;
==Second-order upwind scheme==&lt;br /&gt;
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, &amp;lt;math&amp;gt;u_x^-&amp;lt;/math&amp;gt; becomes the 3-point backward difference in equation (3) and is defined as &lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \qquad \qquad u_x^- = \frac{3u_i^n - 4u_{i-1}^n + u_{i-2}^n}{2\Delta x}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;u_x^+&amp;lt;/math&amp;gt; is the 3-point forward difference, defined as &lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \qquad \qquad u_x^+ = \frac{-u_{i+2}^n + 4u_{i+1}^n - 3u_i^n}{2\Delta x}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
This scheme is less diffusive compared to the first-order accurate scheme and is called linear upwind differencing (LUD) scheme.&lt;br /&gt;
&lt;br /&gt;
==Third-order upwind scheme==&lt;br /&gt;
For the third-order upwind scheme, &amp;lt;math&amp;gt;u_x^-&amp;lt;/math&amp;gt; in equation (3) is defined as&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \qquad \qquad u_x^- = \frac{2u_{i+1} + 3u_i - 6u_{i-1} + u_{i-2}}{6\Delta x}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;u_x^+&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
  \qquad \qquad u_x^+ = \frac{-u_{i+2} + 6u_{i+1} - 3u_i - 2u_{i-1}}{6\Delta x}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Finite difference method]]&lt;br /&gt;
* [[Upwind differencing scheme for convection]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
{{Numerical PDE}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Upwind Scheme}}&lt;br /&gt;
[[Category:Computational fluid dynamics]]&lt;br /&gt;
[[Category:Numerical differential equations]]&lt;/div&gt;</summary>
		<author><name>en&gt;Guy vandegrift</name></author>
	</entry>
</feed>