Unit 10 (Partial Differential Equations)
Unit 10 (Partial Differential Equations)
Unit-10
(Partial Differential Equations)
Dr. Muhammad Majid Gulzar (CIE-KFUPM)
Contents (Unit-10):
1) The Laplace Equation (Sec 29.1)
Derivatives
𝜕𝜕 2 𝑢𝑢 𝜕𝜕 2 𝑢𝑢
+ 2𝑥𝑥𝑥𝑥 2 + 𝑢𝑢 = 1
𝜕𝜕𝑥𝑥 2 𝜕𝜕𝑦𝑦
3
𝜕𝜕 2 𝑢𝑢 𝜕𝜕 3 𝑢𝑢
+6 = 𝑥𝑥
𝜕𝜕𝑥𝑥 2 𝜕𝜕𝑥𝑥𝜕𝜕𝑦𝑦 2
Different curves are used for different Three dimensional plot of the function The axis represent the independent
values of one of the independent 𝑇𝑇(𝑥𝑥, 𝑡𝑡) variables and the value of the function is
variable displayed at grid points
𝑡𝑡1
𝑥𝑥1
Laplace Equation
Poisson Equation
Laplace Equation
𝑇𝑇𝑖𝑖,𝑗𝑗+1
𝑇𝑇𝑖𝑖,𝑗𝑗−1
Region of
𝑢𝑢(0, 𝑡𝑡) = 0 interest
𝑢𝑢(1, 𝑡𝑡) = 0
1 𝑥𝑥
𝑢𝑢(𝑥𝑥, 0) = sin( 𝜋𝜋𝜋𝜋)
100
𝑇𝑇1,4 = 100 𝑇𝑇2,4 = 100 𝑇𝑇1,4 = 100 𝑇𝑇2,4 = 100 𝑇𝑇3,4 = 100
𝑇𝑇0,3 + 𝑇𝑇1,4 + 𝑇𝑇1,2 + 𝑇𝑇2,3 + −4𝑇𝑇1,3 = 0 𝑇𝑇1,3 + 𝑇𝑇2,4 + 𝑇𝑇3,3 + 𝑇𝑇2,2 − 4𝑇𝑇2,3 = 0
75 + 100 + 𝑇𝑇1,2 + 𝑇𝑇2,3 + −4𝑇𝑇1,3 = 0 𝑇𝑇1,3 + 100 + 𝑇𝑇3,3 + 𝑇𝑇2,2 − 4𝑇𝑇2,3 = 0
4 −1 0 −1 𝑇𝑇11 75
−1 4 −1 0 −1 𝑇𝑇21 0
0 −1 4 0 0 −1 𝑇𝑇31 50
−1 0 0 4 −1 0 −1 𝑇𝑇12 75
−1 0 −1 4 −1 0 −1 𝑇𝑇22 = 0
−1 0 −1 4 0 0 −1 𝑇𝑇32 50
−1 0 0 4 −1 0 𝑇𝑇13 175
−1 0 −1 4 −1 𝑇𝑇23 100
−1 0 −1 4 𝑇𝑇33 150
Notice that there are a maximum of 5 unknown terms per line in the previous solution.
For larger-sized grids, this means that a significant number of the terms will be zero.
When applied to such sparse systems, full-matrix elimination methods waste great amounts of
computer memory storing these zeros.
For this reason, approximate methods provide a viable approach for obtaining solutions for elliptical
equations.
𝑗𝑗 = 1 𝑡𝑡𝑡𝑡 𝑛𝑛
𝑖𝑖 = 1 𝑡𝑡𝑡𝑡 𝑚𝑚
Overrelaxation is sometimes employed to accelerate the rate of convergence by applying the given formula after each iteration
Stopping Criterion
Node (1,1)
Node (2,1)
Node (3,1)
2nd Iteration
9th Iteration
For this case, as well as for other problems involving PDEs, secondary variables may also be of
interest. As a matter of fact, in certain engineering contexts, the secondary variable may actually be
more important.
For the heated plate, a secondary variable is the rate of heat flux across the plate’s surface.
Node (1,1)
This equation provides an explicit means to compute values at each node for a future
time based on the present values at the node and its neighbors.
Dr. Muhammad Majid Gulzar (CIE-KFUPM)
Explicit Methods (Example):
Use the explicit method to solve for the temperature distribution of a long, thin rod with a length of
10 𝑐𝑐𝑐𝑐 and the given values: 𝑘𝑘 ′ = 0.49 𝑐𝑐𝑐𝑐𝑐𝑐/(𝑠𝑠. 𝑐𝑐𝑐𝑐. °𝐶𝐶), ∆𝑥𝑥 = 2 𝑐𝑐𝑐𝑐 and ∆𝑡𝑡 = 0.1 𝑠𝑠. At 𝑡𝑡 = 0, the
temperature of the rod is zero and the boundary conditions are fixed for all times at 𝑇𝑇 0 = 100℃
and 𝑇𝑇 10 = 50℃. Note that the rod is aluminum with 𝐶𝐶 = 0.2174 𝑐𝑐𝑐𝑐𝑐𝑐/(𝑔𝑔. ℃) and 𝜌𝜌 = 2.7 𝑔𝑔/𝑐𝑐𝑐𝑐3 .
Therefore, 𝑘𝑘 = 0.49/(2.7 × 0.2174) = 0.835 𝑐𝑐𝑐𝑐2 /𝑠𝑠 and 𝜆𝜆 = 0.835(0.1)/(2)2 = 0.020875.
𝑡𝑡 = 0.1 𝑠𝑠
𝑡𝑡 = 0.2 𝑠𝑠
"0" Node
This introduces an exterior node at 𝑖𝑖 = −1. The derivative boundary condition can be used to eliminate this node
𝑛𝑛𝑡𝑡𝑡 Node
𝑖𝑖 = 0
𝑖𝑖 = 𝑚𝑚
Dr. Muhammad Majid Gulzar (CIE-KFUPM)
A Simple Implicit Method (Example):
Use the simple implicit finite-difference approximation to solve for the temperature distribution of a
long, thin rod with a length of 10 𝑐𝑐𝑐𝑐 and the given values: 𝑘𝑘 ′ = 0.49 𝑐𝑐𝑐𝑐𝑐𝑐/(𝑠𝑠. 𝑐𝑐𝑐𝑐. °𝐶𝐶), ∆𝑥𝑥 = 2 𝑐𝑐𝑐𝑐
and ∆𝑡𝑡 = 0.1 𝑠𝑠. At 𝑡𝑡 = 0, the temperature of the rod is zero and the boundary conditions are fixed
for all times at 𝑇𝑇 0 = 100℃ and 𝑇𝑇 10 = 50℃ . Note that the rod is aluminum with 𝐶𝐶
= 0.2174 𝑐𝑐𝑐𝑐𝑐𝑐/(𝑔𝑔. ℃) and 𝜌𝜌 = 2.7 𝑔𝑔/𝑐𝑐𝑐𝑐3 . Therefore, 𝑘𝑘 = 0.49/(2.7 × 0.2174) = 0.835 𝑐𝑐𝑐𝑐2 /𝑠𝑠
and 𝜆𝜆 = 0.835(0.1)/(2)2 = 0.020875.
𝑡𝑡 = 0.1 𝑡𝑡 = 0.2