Docsity

Numerical Methods for PDEs: Euler-Forward & Adams-Bashford, Slides of Mathematical Methods for Numerical Analysis and Optimization

Partial preview of the text

Download Numerical Methods for PDEs: Euler-Forward & Adams-Bashford and more Slides Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Numerical Methods for Partial

Differential Equations

Recall: Euler-Forward Time Stepping

  • By several different approximations we arrived at the following

approximate ODE time-stepping scheme:

  • Assuming:
  • We established the following stability region
  • i.e. if mu*dt is in the yellow region the approximate solution will

be bounded.

0

1

n n n

u u

u (^) + u dtf u

1 + dt μ ≤ 1

x (^) Re

Im

du f u dt

f ( u ) = μ u for some μ∈ 

Derivation of AB

  • Suppose we wish to use three previous values

of f

  • As previously we look for a fit through this data,

although this time we choose a different path.

(i) Consider dt = 1 (will rescale later)

(ii) Will form the coefficients of the interpolant using a Vandermonde matrix and a monomial basis in t

(iii) Finally integrate the integrand (easy with this choice of basis).

f (^) ( u t ( (^) n (^) )) , f (^) ( u t ( (^) n − 1 )) and f (^) ( u t ( (^) n − 2 ))

Simpler

Approach

( )

( )

2 2 2 1 0 1 2 1 0 1 2 2

2 1

0

1 1 2 2 2 1 0 0 0

2 4

1 2 4

1 1 1

1 0 0

1 2 4

1 1 1 1

1 0 0

1 2 4

1 1 1 1

1 0 0

If a bt ct

f a b c

f a b c

f a

a f

b f

c f

f

If t t f

f

f

If dt t t f dt

f

− − − − − − − − − − −

= + +

= − +

= − +

=

   −^          ⇒ = −                  

 −^        ⇒ = −            

 −^        ⇒ = −            

( )

1

1 2

1 0 1 2

0

1 2 4 1 1 1 1 1 1 1 23 16 5 2 3 12 1 0 0

f

f f f f

f

− −

− − −

 −^      (^)     = (^)   − = − +  ^  ^         

(i) form quadratic

interpolant:

(ii) Compute

coefficients:

(iii) Integrate

interpolant:

Absolute Stability of AB

  • We again assume:
  • AB2 becomes:
  • Tidying up:
  • To start this method we require:

f ( u ) = μ u for some μ∈ 

1 1

u n + u n dt μ un μ un −

1 1

u n + ν un ν un −

1

u u dt

u u

− ≅^ −

ν = dt μ

Absolute Stability of AB2 cont

  • We define the absolute stability region of this

method as the set of nu in the complex plane for

which the sequence {u n } is bounded as

  • We will make continuous reference to the

stability polynomial of this recurrence

relationship (obtained by setting : and

canceling excess powers of z )

1 1

u n + ν un ν un −

π ν z z ν z ν

n u (^) n = z

n → ∞

cont

  • Since all solutions under these conditions can

be written as:

  • We immediately observe that this is bounded

if and only if

  • See Trefethen p43-46 for details of the case

where the stability polynomial has 1 or more

roots with multiplicity greater than 1.

1

m s n n m m m

u r c

=

=

= (^) ∑

rm ≤ 1

Root Condition for Absolute Stability

  • A linear multistep formula is absolutely stable

for a particular value of nu if and only if all the

zeros of the stability polynomial satisfy

and any zero with is a simple root.

π ν ( z ) z ≤ 1

z = 1

See: Trefethen p58-

cont

  • We can rearrange the root equation to find nu in

terms of z:

  • We can now ask matlab to plot this curve in the

complex plane…

2

2 2

i i

i

r r r

r r e e

r e

ν

θ θ

θ

  • Matlab Plot of Margin of Stability for AB

Zooming Into The

All Important Imaginary Axis

  • Recall, we discounted Euler-Forward as useless for time-stepping

the advection equation because it had zero coverage of the

imaginary axis.

  • This picture does not quite tell us if

the imaginary axis is inside the absolute

stability region for AB2, AB3 and AB4.

  • So we had better check the root condition.

Root Condition for AB

  • We need to check that the roots of:
  • Are bounded above by 1, and if any roots are on

the unit circle we must make sure they are

simple.

  • We set nu=i*alpha

z ν z ν

z i α z i α

If at first..

  • Since the plot is not quite clear, we plot:

sign(maximum|root|-1)*log10(|maximum|root|-1|)

In summary: the only stable point on the imaginary axis for AB2 is the origin. AB3 is stable for nu in i*[-.723…,.723…] Docsity.com

Accuracy & Consistency

  • We already established experimentally that

stability is not enough for a good solution –

we also need to examine how accurate a

solution will be.

Section 1.3 p21-29 Trefethen