Professional Documents
Culture Documents
F - D S 2-D H E: Inite Ifference Olution To The EAT Quation
F - D S 2-D H E: Inite Ifference Olution To The EAT Quation
H EAT E QUATION
MSE 350
Given:
Initial temperature in a 2-D plate
Boundary conditions along the boundaries of the plate.
Find: Temperature in the plate as a function of time and
position.
Energy equation:
T T 2T
2
Cp =k +
t x2 y2
T(x, 0, t) = given
T(x, H, t) = given
T(0, y, t) = given
T(W, y, t) = given
T(x, y, 0) = given
MSE 350 2-D Heat Equation
S OLUTION OVERVIEW
Approach: discretize the temperatures in the plate, and convert the
heat equation to finite-difference form.
y
H
Ti1,j Ti,j Ti+1,j
x
W
Ti,jk
i, j = location (node numbers)
k = time (time step number)
H
Ti1,j Ti,j Ti+1,j
x
W
If x = y = h:
T 2T 2T
= + 2
t x2 y
!
Ti,jk+1 Ti,jk k
Ti,j1 k
+ Ti1,j 4Ti,jk + Ti+1,j
k k
+ Ti,j+1
=
t h2
If x = y = h:
T T 2T
2
= + 2
t x2 y
!
k k
Ti,j1 + Ti1,j 4Ti,jk + Ti+1,j
k k
+ Ti,j+1
Ti,jk+1 = Ti,jk + t
h2
If x = y = h:
!
k k k k
Ti,j1 + Ti1,j + Ti+1,j + Ti,j+1
4t
Ti,jk+1 = 1 Ti,jk + t
h2 h2
Hence,
4t
1 2 0
h
so
h2
t
4
H
Ti1,j Ti,j Ti+1,j
x
W
2T 2T
+ 2 =0
x2 y
" ! !#
k
Ti1,j k + Tk
2Ti,j k k k
Ti,j1 2Ti,j + Ti,j+1
i+1,j
+ =0
x2 y2
1
Ti,j = (Ti,j1 + Ti1,j + Ti+1,j + Ti,j+1 )
4