Partial Differential Equations
Partial Differential Equations
1
Partial Differential Equations
2
Partial Differential Equations
• A partial differential equation (PDE) involves
two or more independent variables.
For example:
1. Laplace equation 2
f 2
f
2 0
x 2
y
2. Diffusion equation 2 f f
k 2
x t
3. Wave equation 2 y 1 2 y
2 2
x 2
c t
3
Classification of PDEs
4
Linear Second Order PDEs
Classification
2u ( x , y ) 2u ( x , y )
Laplace Equation 0
x 2
y 2
A 1, B 0, C 1 B 2 4 AC 0
Laplace Equation is Elliptic
One possible solution : u ( x, y ) e x sin y
u x e x sin y , u xx e x sin y
u y e x cos y , u yy e x sin y
u xx u yy 0
6
Linear Second Order PDE
Examples (Classification)
2u ( x , t ) u ( x , t )
Heat Equation 0
x 2
t
A , B 0, C 0 B 2 4 AC 0
Heat Equation is Parabolic
______________________________________
2
u ( x , t ) 2
u( x, t )
Wave Equation c 2
0
x 2
t 2
A c 2 0, B 0, C 1 B 2 4 AC 0
Wave Equation is Hyperbolic
7
Boundary Conditions for PDEs
t
u( x, t ) u( x, t )
2
Heat Equation : 0
x 2
t region of
u(0, t ) 0 interest
u(1, t ) 0
u( x,0) sin( x ) 1 x
8
The Solution Methods for PDEs
9
Partial Differential Equations
1. Finite Difference Method
10
Partial Differential Equations
The Central divided differences
f f i 1, j f i 1, j f f i , j 1 f i , j 1
x 2 x y 2 y
2 f f i 1, j 2 f i , j f i 1, j 2 f f i , j 1 2 f i , j f i , j 1
x 2
x 2 y 2
y 2
y
i,j+1
11
Chapter 29
Elliptic Equations
12
Elliptic Equations
is Elliptic if B 2 4 AC 0
13
Laplace Equation
T ( x, y ) T ( x, y )
2 2
f ( x, y )
x 2
y 2
2 T ( x, y ) 2 T ( x, y )
f ( x, y )
x 2
y 2
A 1, B 0, C 1
B 2 4 AC 4 0 Elliptic
15
Finite Difference: Elliptic Equations
16
Figure 29.1
17
Figure 29.3
18
The Laplacian Difference Equations
2T 2T
2 0
x 2
y Laplace Equation
2T Ti 1, j 2Ti , j Ti 1, j O[(x)2]
x 2 x 2
2T Ti , j 1 2Ti , j Ti , j 1
O[(y)2]
y 2
y 2
x y
Laplacian difference
Ti 1, j Ti 1, j Ti , j 1 Ti , j 1 4Ti , j 0 equation.
Holds for all interior points
19
Example 29.1
100
75 50
21
• In addition, boundary conditions along the edges must be
specified to obtain a unique solution.
• The simplest case is where the temperature at the boundary is
set at a fixed value, Dirichlet boundary condition.
• A balance for node (1,1) is:
T21 T01 T12 T10 4T11 0
T01 75
T10 0
4T11 T12 T21 0
• Similar equations can be developed for other interior points
to result a set of simultaneous equations.
22
Example
Known
To be determined
T1, 4 100 T2, 4 100 T3, 4 100
T1, 3 T2 ,3
T0,3 75 T3,3
T4,3 50
T1, 2 T2, 2
T0, 2 75
T3, 2 T4, 2 50
T1,1 T2 ,1 T3,1
T0,1 75 T4,1 50
T1, 2 T2, 2
T0, 2 75
24
Another Equation
Known
To be determined
T1, 4 100 T2, 4 100 T3, 4 100
T1, 3 T2 ,3 T3,3
25
Solution
The Rest of the Equations
4 1 0 1 T1,1 75
1 4 1 0 1 T2,1 0
0 1 4 0 0 1 T 50
3,1
1 0 0 4 1 0 1 T1,2 75
1 0 1 4 1 0 1 T 0
2, 2
1 0 1 4 0 0 1 T3,2 50
1 0 0 4 1 0 T 175
1,3
1 0 1 4 1 T2,3 100
1 0 1 4 3,3
T 150
26
• The result is a set of nine simultaneous equations with nine
unknowns:
27
Chapter 30
Parabolic Equations
32
Review: Partial Differential Equations
• A partial differential equation (PDE) involves
two or more independent variables.
For example:
1. Laplace equation 2
f 2
f
2 0
x 2
y
2. Diffusion equation 2 f f
k 2
x t
3. Wave equation 2 y 1 2 y
2 2
x 2
c t
33
Parabolic Equations
is parabolic if B 2 4 AC 0
34
Parabolic Problems
T ( x, t ) 2 T ( x, t )
Heat Equation :
t x 2
T (0, t ) T (1, t ) 0
T ( x,0) sin( x ) ice ice
x
* Parabo lic problem ( B 2 4 AC 0)
* Boundary conditions are needed to uniquely specify a solution.
35
Finite Difference Methods
36
Heat conduction equation
37
1. Explicit method
• Spatial discretization:
• Temporal discretization:
38
Example 30.1
39
40
Convergence and stability
41
2. Simple implicit method
• Spatial discretization:
• Temporal discretization:
42
Example 30.2
43
44
3. Crank Nicolson method
• Spatial discretization:
• Temporal discretization:
45
Example 30.3
46
47
Comparison Solution of the Heat Equation
• Analytical solution:
48
Comparison Solution of the Heat Equation
1. Explicit Method:
Simple, Stability Problems.
2. Implicit Method:
Stable, convergent, large time step can lead
to inaccurate approximation
3. Crank-Nicolson Method:
Involves the solution of a Tridiagonal system
of equations, Stable.
49