Differential Equations - PowerPoint PPT Presentation

1 / 57
About This Presentation
Title:

Differential Equations

Description:

Gear's method (historically important) Semi-Implicit Runge-Kutta ... Third order SIRK method of Michelsen. BS-like extrapolation. Prime number step sequence ... – PowerPoint PPT presentation

Number of Views:62
Avg rating:3.0/5.0
Slides: 58
Provided by: diane46
Category:

less

Transcript and Presenter's Notes

Title: Differential Equations


1
  • Differential Equations
  • Polynomial Approximations
  • Ordinary Differential Equations
  • Differential and Algebraic Equation Systems
  • Partial Differential Equations

2
Finite Difference Approximations - I Evenly
spaced points
3
Finite Difference Approximations - II We have
What is
? Taylor series
4
Finite Difference Approximations III Central
difference approximation Other approximations
can be derived with any number of forward and
backward steps and of any desired order (some
combinations are impossible, however).
5
A Single Differential Equation
6
Initial Value Problem (IVP)
7
Boundary Value Problem (BVP)
8
Integration Methods - I
9
Integration Methods II Taylor series
10
  • Integration Methods III
  • is related to the slope of the
    solution curve.
  • Very many different methods
  • Euler
  • Runge-Kutta
  • and much more

11
Simple Euler Method

12
Less-simple Euler Methods
and more
13
Semi-Implicit Euler Method
Implicit Euler


D
Taylor series for
(
)
f
,
x
h
y
Combine, drop terms in and rearrange
14
(No Transcript)
15
(No Transcript)
16
Runge-Kutta Methods - I
æ
ö
æ
ö
-
i
1
ç

ç

Ã¥



k
h
f
,
x
c
h
y
a
k
ç

ç

i
ç

i
ç

,
i
j
j
è
ø
è
ø

j
1
c, a, and w are numerical coefficients chosen to
satisfy certain conditions. is the number of
terms. 4 term methods are very popular.
17
Runge-Kutta Methods - II 1. Make a first
(tentative) step with the Euler method.
18
Runge-Kutta Methods - III 2. Evaluate slope at
intermediate point.
19
Runge-Kutta Methods - IV 3. Use the adjusted
slope and make a second (also tentative)
step from the initial point.
20
Runge-Kutta Methods - V 4. Evaluate function at
additional points and use this information
to further adjust the slope to be used at the
start
21
Runge-Kutta Methods - VI 5. Evaluate function
at as may other points as required and make
further adjustments to the slope to be used at
the start.
22
Runge-Kutta Methods - VII 6. Combine all the
estimates to make the actual step.
23
Differential Equation System

in matrix form
24
Eulers Method for Systems

25
Runge-Kutta Method for Systems
æ
ö
v
ç

Ã¥



(
)
y
x
h
(
)
y
x
w
k
ç

ç

i
i
è
ø

i
1
æ
ö
æ
ö
-
i
1
ç

ç

Ã¥



k
h
f
,
x
c
h
y
a
k
ç

ç

i
ç

i
ç

,
i
j
j
è
ø
è
ø

j
1
26
Is there more? Yes, a great deal, but first
27
  • Stability
  • Stability of the integration method
  • Stability of the ODE being integrated

28
Exercise Lamberts Problem Use an explicit
Runge-Kutta method to integrate these equations
from the initial condition to t 100. Plot
the variables u and v as a function of
t. Investigate the effect of step size, h, on the
solution.

29
  • Stiff Differential Equations
  • t1 gtgtgt t2
  • Difficult to solve with explicit Euler or RK
  • Use implicit or semi-implicit methods
  • Gears method (historically important)

30
Semi-Implicit Runge-Kutta Method I Michelsens
method

A
(
)
(
)
D
f
(
)
y
x
3




,
,
,
,
R
1.037609496
R
1
b
a
.4358665215
1
3
2
4



,
,
b
-.6302020888
b
-.2423378909
R
.8349304835
31
32
2
31
Extrapolation Methods - I
32
Extrapolation Methods - II
33
  • BESIRK
  • Third order SIRK method of Michelsen
  • BS-like extrapolation
  • Prime number step sequence

34
  • Extrapolation Methods III
  • Bulirsch-Stoer
  • Any integration method
  • Step pattern

35
  • Differential Algebraic Systems
  • ODE AE DAE
  • Example
  • Engineering examples
  • Residue curves
  • Process dynamics
  • PDE solved by Method of Lines (MOL)

36
Index The index of a system of DAEs is the
number of times we need to differentiate the
algebraic equations to obtain a system with only
differential equations. Index 0 very easy
(ODE) Index 1 straightforward Index 2 more
difficult Index 3 VERY difficult Not all ODE
integration methods can solve DAE problems!
37
An Index 3 Problem
38
An Index 3 problem
39
Index Determination Exercise 1
40
Index Determination Exercise 2
41
Index Determination Exercise 3
42
Index Determination Exercise 4
where the ks are constants.
43
Index Determination Exercise 5
44
  • Solving Differential Algebraic Systems
  • DAE systems infinitely stiff (even index 1)
  • Cant use Euler or ordinary RK methods
  • Implict or semi-implicit methods

45
  • Partial Differential Equations
  • More than one independent variable.
  • Linear if A, B, and C do not depend on x or y.

46
  • Classification of PDEs
  • Case 1 D lt 0 Elliptic equation
  • e.g. Laplace eqn.
  • Case 2 D 0 Parabolic equation e.g.
    Diffusion eqn.
  • Case 3 D gt 0 Hyperbolic equation e.g. Wave
    eqn. e.g. Convective transport eqn.

47
Boundary Value and Initial Value Problems
48
Finite Difference Methods
49
  • Method of Lines
  • Approximate derivatives in all but one
    direction.
  • Leaves ODE (or DAE) system to be solved.

50
Example Heat Transfer in a Slab - I
51
Example Heat Transfer in a Slab II Apply
finite difference approximations to x-direction
derivatives. This equation holds at all
interior points, but not at the Boundaries where
(assuming 11 points altogether).
52
Example Heat Transfer in a Slab III Collect
all of the equations together (many more
similar expressions omitted) This is a
differential algebraic equation (DAE) system, not
a purely ODE system. We can integrate this
system using a DAE solver.
53
Example Heat Transfer in a Slab IV The
initial condition
54
Example Heat Transfer in a Slab V
55
Example Heat Transfer in a Slab VI
56
  • Method of Lines - Summary
  • Easy to use
  • Can handle nonlinear terms in the PDE
  • Can handle derivative and mixed form boundary
    conditions
  • Right hand side is banded
  • Any discretization method can be used
  • Number of lines can be very large
  • System of equations often is stiff
  • Need good ODE or DAE solver

57
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com