Title: Differential Equations
1- Differential Equations
- Polynomial Approximations
- Ordinary Differential Equations
- Differential and Algebraic Equation Systems
- Partial Differential Equations
2Finite Difference Approximations - I Evenly
spaced points
3Finite Difference Approximations - II We have
What is
? Taylor series
4Finite 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).
5A Single Differential Equation
6Initial Value Problem (IVP)
7Boundary Value Problem (BVP)
8Integration Methods - I
9Integration 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
11Simple Euler Method
12Less-simple Euler Methods
and more
13Semi-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)
16Runge-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.
17Runge-Kutta Methods - II 1. Make a first
(tentative) step with the Euler method.
18Runge-Kutta Methods - III 2. Evaluate slope at
intermediate point.
19Runge-Kutta Methods - IV 3. Use the adjusted
slope and make a second (also tentative)
step from the initial point.
20Runge-Kutta Methods - V 4. Evaluate function at
additional points and use this information
to further adjust the slope to be used at the
start
21Runge-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.
22Runge-Kutta Methods - VII 6. Combine all the
estimates to make the actual step.
23Differential Equation System
in matrix form
24Eulers Method for Systems
25Runge-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
26Is there more? Yes, a great deal, but first
27- Stability
- Stability of the integration method
- Stability of the ODE being integrated
28Exercise 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)
30Semi-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
31Extrapolation Methods - I
32Extrapolation 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)
36Index 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!
37An Index 3 Problem
38An Index 3 problem
39Index Determination Exercise 1
40Index Determination Exercise 2
41Index Determination Exercise 3
42Index Determination Exercise 4
where the ks are constants.
43Index 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.
47Boundary Value and Initial Value Problems
48Finite Difference Methods
49- Method of Lines
- Approximate derivatives in all but one
direction. - Leaves ODE (or DAE) system to be solved.
50Example Heat Transfer in a Slab - I
51Example 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).
52Example 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.
53Example Heat Transfer in a Slab IV The
initial condition
54Example Heat Transfer in a Slab V
55Example 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)