Академический Документы
Профессиональный Документы
Культура Документы
NUMERICAL
DISSIPATION AND
DISPERSION
MODIFIED EQUATION
us consider upstream (First-Order Upwind or windward)
Let
(1)
This is a first-order accurate method with T.E of O[t, x]. The
Von Neumann stability analysis shows that this method is
stable, provided that
0 v 1
(2)
MODIFIED EQUATION
Let us substitute Taylor-series
expansion into (1) for uit+t and ui-1t
as:
(3
)
(4)
MODIFIED EQUATION
Rearranging (5), we obtain
(6)
MODIFIED EQUATION
In order to replace ()ti by spatialderivative term, we can take the
partial derivative of equation (6) with
respect to time, to obtain
(7
)
MODIFIED EQUATION
Now take the partial derivative of eq
(6) w.r.t x and multiply by a:
(8
)
(9)
(10)
MODIFIED EQUATION
Combining eqs (6), (9),and (11) leaves
ut + a ux = (ax/2) ( 1-v)uxx - [a(x)2/6](2v 2
3v +1)uxxx + O[(x)3, (x)2 t, x(t)2 (t)3]
(12)
Equation (12) is called a modified equation. It
is important to emphasize that the equation
obtained after substitution of Taylor-series
expansions i.e. equation(6) must be used to
eliminate the higher-order time derivatives
rather than original PDE equation (1).
MODIFIED EQUATION
The
process of eliminating time derivatives can be
simplified if a table is constructed. The coefficients of
each term in equation (6) are placed in the first row of
the table. Note that all terms have been moved to the
left-hand side of the equation. The utt term is then
eliminated by multiplying eq (6) by operator
(-t/2)/t and adding the result to the first
row i.e. eq (6). This introduces the term -c t/2)u tx which
is eliminated by multiplying Eq(6) by operator ( )
adding the result to the to the first two rows of the
table. The procedure is continued until the desired time
derivatives are eliminated. The table is shown in the
next slid.
MODIFIED EQUATION
Each coefficient in the modified equation is obtained by
adding the coefficients in the corresponding column of
the table.
The right-hand side of the modified equation is T.E, since
it represents the difference between the original PDE
and FDE. Consequently, the lowest order term on the
right-hand side of modified equation gives the order of
the method. If v=1, the right-hand side of the modified
becomes zero and wave equation solved exactly. In this
case, the upstream differencing scheme reduces to
ujt+t=uj-1t . Finite-difference that exhibit this behaviour
are said to satisfy the shift condition .
MODIFIED EQUATION
The lowest order term of the T.E in the present case contains
the partial derivative uxx , which makes this term similar to
the viscous term in 1-D fluid flow equations. For example
the viscous term in the 1-D NS equation may be written as
/x(xx) =4/3 uxx
Thus when v 1, the above scheme introduces an artificial
viscosity into the solution. This is called implicit artificial
viscosity. There is another artificial viscosity which is
purposely added to a difference scheme. Artificial viscosity
tends to reduce all gradients in the solution whether
physically correct or numerically induced. This effect, which
is the direct result of even derivative terms in the T.E. is
called dissipation.
MODIFIED EQUATION
Another quasi-physical effect of
numerical schemes is called
dispersion. This is the direct result of
the odd derivative terms that appear
in the T.E. As a result of dispersion,
phase relations between various
waves are distorted. The combined
effect of dissipation and dispersion is
sometimes referred to as diffusion.
MODIFIED EQUATION
In general, if the lowest
order term in the T.E.
contain an even
derivative, the resulting
solution will predominantly
exhibit dissipative
(amplitude) errors. On the
other hand, if the leading
term is an odd derivative,
the resulting solution will
predominantly exhibit
dispersive (phase) errors.
Initia
l
wav
e
Dissipation
Dispersi
on
1
1
1
1
1
0.5
0.5
0.5
0.5
0.5
1.25
1.25
0
45
90
135
180
0
45
90
135
180
0
180
(1- +cos)2
1
0.5
0
0.5
1
1
0.728
0.25
0.2
0
1
1.5
(-sin)2
G
0
1
0.5
1
1
1
0.5
1
0.5
1
0
1
0.125 0.923
0.25
0.705
0.125
0.380
0
0
0
1
0
1.5
LAX-WENDROFF METHOD
The lax-Wendroff finite difference scheme can be
derived from a Taylor-series expansion as
ujn+1=ujn+ tut+1/2(t)2utt+0[t3] (1)
Using wave equation
ut=cux and
utt=c2uxx (2)
Equation (1) may be written as
ujn+1=ujn -ctux+1/2c 2(t)2uxx+0[t3] (3)
And finally if ux and uxx are replaced by second-order
accurate central-difference expressions the LaxWendroff scheme is obtained :
ujn+1=ujn -ct/2x(uj+1n -uj-1n ) +c 2(t)2/2(x)2(uj+1 n -2ujn +
uj-1n)
LAX-WENDROFF METHOD
This explicit one step scheme is second-order
accurate with T.E. of 0[(x)2 (t)2 ] and stable
whenever v 1. The modified equation is
ut +cux= -c(x) 2/6(1-v2)uxxx-c(x) 3/8 v(1 -v2)uxxxx +.
The amplification factor
G =1-v2(1-cos) ivsin and the relative phase
error /e =[tan-1(-vsin/ 1-v2(1-cos) ]/-v
The Lax-Wendroff scheme has predominantly lagging
phase error except for large wave numbers with
0.5<v<1.
LAX-WENDROFF METHOD
AMPLIFICATION MODULUS
TWO-STEP LAX-WENDROFF
METHOD
Tow-Step Lax-Wendroff Method:
For non-linear equations such as the inviscid
flow equations, a two-step variation of the
original Lax-Wendroff applied to the wave
equation, this explicit two-step three-timelevel method becomes
step1. [uj+n+- (uj+1n +ujn)/2 ]/t/2 + c (uj+1n
+ujn)/x =0
Step2. (ujn+1 -ujn)/t + c (uj+n+- uj-n+) /x
=0
TWO-STEP LAX-WENDROFF
METHOD
This scheme is second-order accurate with T.E.
of 0[(x)2, (t)2] and is stable whenever v
1. step one is the Lax method applied at the
midpoint j+1/2 for half time step, and step2
is the is the leap frog method for remaining
half time step. When applied to linear wave
equation, the two-step Lax-Wendroff scheme
is equivalent to the original Lax-wendroff
scheme. The modified equation and
amplification Factor are same for both the
schemes.
MacCormack Method
MacCormack Method: The MacCormack
method is widely used scheme for solving
fluid flow equations. It is a variation of the
two-step Lax-Wendroff scheme that moves
the necessity of computing unknown at the
grid points j+1/2 and j-1/2. Because of this
feature, the MacCormack method is
particularly useful when solving nonlinear
PDEs. When applied to the linear wave
equation, this explicit, predictor-corrector
becomes:
MacCormack Method
Predictor.
ujn+1 = ujn ct/x[uj+1n - ujn]
Corrector ujn+1 =1/2[ujn + ujn+1 -ct/x(ujn+1 uj-1n+1 )]
The term ujn+1 is a temporary predictor value of u at
the time level n+1. The corrector equation provides
the final value of u at the time level of n+1. Note that
in predictor equation a forward difference is used for
u/x, while in corrector equation a backward
difference is used. For present wave equation, the
MacCormack scheme is equivalent to the original LaxWendroff scheme. Hence the T.E. , stability limit,
modified equation and amplification factor are
identical with those of the Lax-wendrofff scheme .