Unit VI
Unit VI
Numerical Methods
Prashant R. Anerao
[email protected]
Department of Mechanical Engineering
Prepared by: P. R. Anerao
• PDEs: 𝜕𝑢 𝜕𝑢 𝜕2𝑢
𝑜𝑟 𝑜𝑟 = 𝑓(𝑥, 𝑦, 𝑢)
𝜕𝑥 𝜕𝑦 𝜕𝑥𝜕𝑦
Prepared by: P. R. Anerao
𝑢 = 𝜙(𝑥, 𝑦)
Each of these 4 derivative is called “partial derivative” of the function 𝑇(𝑥, 𝑦, 𝑧, 𝑡) because each derivative as
we will express mathematically can only represent “part” (not whole) of the derivative for this function that
involves multi-variables.
Department of Mechanical Engineering, VIIT,Pune-48 3
PDEs and Engineering & Science
• Fluid Dynamics,
• Heat Transfer,
• Boundary Layer Flow,
• Elasticity,
(a) Temperature distribution on a heated plate, (b) seepage of water under a
• Quantum Mechanics, dam, and (c) the electric fi eld near the point of a conductor.
𝐵2 − 4𝐴𝐶 = 42 − 4 × 1 × 4 = 0
https://forms.gle/mMQ8Qs
Solution: NNGjjqiQtT9
Compare the given equation with general form
2u 2u 2u
A 2 +B +C 2 + D = 0
x xy y
𝐴 = 1 + 𝑥 2 , 𝐵 = 5 + 2𝑥 2 & 𝐶 = 4 + 𝑥 2
Prepared by: P. R. Anerao
𝐵2 − 4𝐴𝐶 = 5 + 2𝑥 2 2 − 4 × (1 + 𝑥 2 ) × (4 + 𝑥 2 ) = 9
2u 2u 2u
A 2 +B +C 2 + D = 0
x xy y
Prepared by: P. R. Anerao
𝑢1 𝒖𝟐 𝑢3 𝒖𝟏 𝑢2 𝒖𝟑
𝒖𝟓 𝒖𝟓
𝒖𝟒 𝒖𝟔 𝑢4 𝑢6
𝑢7 𝒖𝟖 𝑢9 𝒖𝟕 𝑢8 𝒖𝟗
Prepared by: P. R. Anerao
1 1
𝑢5 = (𝑢2 + 𝑢4 + 𝑢6 + 𝑢8 ) 𝑢5 = (𝑢1 + 𝑢3 + 𝑢7 + 𝑢9 )
4 4
Diagonal 5-point formula is less accurate than Standard 5-point formula yet it serves as a
reasonably good approximation for obtaining the starting values at the mesh points.
Department of Mechanical Engineering, VIIT,Pune-48 12
Solution of Laplace’s Equation
Example: Given the values of u(x, y) on the boundary of the square in the Figure, evaluate
𝝏𝟐 𝒖 𝝏𝟐 𝒖
the function u(x, y) satisfying the Laplace equation 𝝏𝒙𝟐 + 𝝏𝒚𝟐 = 𝟎 at the pivotal
points of this figure by Gauss-Seidal method.
1
(Diag. formula) 𝑢1 = 1000 + 0 + 1000 + 2000 = 𝟏𝟎𝟎𝟎
4
1
(Std. formula) 𝑢2 = 𝟏𝟎𝟎𝟎 + 500 + 1000 + 0 = 𝟔𝟐𝟓
4
1
(Std. formula) 𝑢3 = 𝟏𝟎𝟎𝟎 + 500 + 2000 + 0 = 𝟖𝟕𝟓
4
Prepared by: P. R. Anerao
1
(Std. formula) 𝑢4 = 𝟖𝟕𝟓 + 0 + 𝟔𝟐𝟓 + 0 = 𝟑𝟕𝟓
4
Iteration 1:
1
𝑢1 = 2000 + 625 + 1000 + 875 = 1125
4
1
𝑢2 = 1125 + 500 + 1000 + 375 = 750
4
1
𝑢3 = 2000 + 375 + 1125 + 500 = 1000
Prepared by: P. R. Anerao
4
1
𝑢4 = 1000 + 0 + 750 + 0 = 437.5
4
Iteration 2:
1
𝑢1 = 2000 + 750 + 1000 + 1000 = 𝟏𝟏𝟖𝟕. 𝟓
4
1
𝑢2 = 1187.5 + 500 + 1000 + 437.5 = 𝟕𝟖𝟏. 𝟐𝟓
4
1
𝑢3 = 2000 + 437.5 + 1187.5 + 500 = 𝟏𝟎𝟑𝟏. 𝟐𝟓
Prepared by: P. R. Anerao
4
1
𝑢4 = 1031.25 + 0 + 781.25 + 0 = 𝟒𝟓𝟑. 𝟏𝟐𝟓
4
Solution:
Prepared by: P. R. Anerao
(Std. formula)
(Diag. formula)
Prepared by: P. R. Anerao
(Std. formula)
t
Prepared by: P. R. Anerao
Solution:
Prepared by: P. R. Anerao
𝑝𝑢𝑡 𝛼 = 1, 𝑤𝑒 𝑔𝑒𝑡
Prepared by: P. R. Anerao
Thank you
Department of Mechanical Engineering, VIIT,Pune-48 28