Lecture-06 - 1D Transient Heat Conduction
Lecture-06 - 1D Transient Heat Conduction
1
Lecture 6
1D Transient Heat Conduction
Dr Gilbert Accary
OUTLINES
Governing equation
Time Discretization
Explicit Scheme
Implicit Scheme
Crank-Nicolson Scheme
Numerical Errors
Implementation in MATLAB
2
Need for iteration
GOVERNING EQUATIONS
W P E
A=1 w e 3
SPACE DISCRETIZATION
x
𝜕 𝜌𝐶𝑇 𝜕 𝜕𝑇 W P E
𝑘 𝑆 A e
w
𝜕𝑡 𝜕𝑥 𝜕𝑥
2∆𝑡 …
𝜕 𝜌𝐶𝑇 𝜕 𝜕𝑇 W P E
𝑘 𝑆 A
w e
𝜕𝑡 𝜕𝑥 𝜕𝑥
After arrangement: 𝑎 𝑇 𝑎 𝑇 𝑎 𝑇 𝑏
𝑘 𝑘
𝑎 𝐴 𝑎 𝐴
∆𝑥 ∆𝑥 x
𝑎 𝑎 𝑎 𝑆 𝑎
W P E
𝑏 𝑆 𝑎 𝑇 A e
w
𝜌𝐶𝐴∆𝑥
𝑎
∆𝑡
Unconditionally stable, t is chosen physically 10
Requires solving a linear system at each time step
CRANK-NICOLSON
Euler scheme: 𝜕𝑇 𝑇 𝑇
𝜕𝑡 ∆𝑡
∆ ∆ ∆
𝑇 𝑇 …
∆ ∆ ∆
𝑇 𝑇 …
𝜕𝑇 𝑇 𝑇 1 𝜕 𝑇 𝑂 ∆𝑡
∆𝑡 11
𝜕𝑡 ∆𝑡 24 𝜕𝑡
CRANK-NICOLSON (CONT.)
𝜕 𝜌𝐶𝑇 1 𝜕 𝜕𝑇 1 𝜕 𝜕𝑇
𝑘 𝑆 𝑘 𝑆
𝜕𝑡 2 𝜕𝑥 𝜕𝑥 2 𝜕𝑥 𝜕𝑥
Discretized equation:
𝑎 𝑇 𝑇 𝑎 𝑎 𝑎 𝑏
After arrangement: 𝑎 𝑇 𝑎 𝑇 𝑎 𝑇 𝑏
𝑎 𝑎
𝑎 𝑎
2 2
𝑎 𝜌𝐶𝐴∆𝑥
𝑎 𝑎 𝑎 𝑎 𝑎 𝑆 𝑎
2 ∆𝑡
𝑎 𝑎 𝑎
𝑏 𝑆 𝑇 𝑇 𝑎 𝑇
2 2 2
Same properties as the fully implicit scheme but 12
the truncation error is 𝑂 ∆𝑡 instead of 𝑂 ∆𝑡
NUMERICAL ERRORS
Discretization error (also called truncation error), caused
by the approximations used in the formulation
Round-off error, caused by the computer’s use of a limited
number of significant digits and continuous rounding
13
IMPLEMENTATION
Transient cooling of a circular rod by convection
L = 20 cm • = 8000 kg/m3
R = 1.5 cm • k = 80 W/m.C
TB
• C = 500 J/kg.C
(100C) T∞ = 20C
• = 210-5 m2/s
h = 10 W/m2.C
𝜕 𝜌𝐴𝐶𝑇 𝜕 𝜕𝑇
𝑘𝐴 ℎ𝑃 𝑇 𝑇 T = T∞ at t = 0
𝜕𝑡 𝜕𝑥 𝜕𝑥
Characteristic time: τ = L2/ = 2000 s
Simulate 2τ = 4000 s
Analytical solution at steady state:
𝑇 𝑇 𝑐𝑜𝑠ℎ 𝜂 𝐿 𝑥 ℎ𝑃 2ℎ
14
with 𝜂
𝑇 𝑇 𝑐𝑜𝑠ℎ 𝜂𝐿 𝑘𝐴 𝑘𝑅
NEED FOR ITERATION
If the physical properties depend on T or if the source
term dependence on T is not linear (as in radiation):
Explicit: 𝑎 𝑇 𝑇 𝑎 𝑇 𝑇 𝑏 𝑇
Implicit: 𝑎 𝑇 𝑇 𝑎 𝑇 𝑇 𝑏 𝑇
L = 20 cm
• = 8000 kg/m3 R = 1.5 cm
• k = 50 + 0.25T W/m.C TB
(100C) T∞ = 20C
• C = 500 J/kg.C
h = 10 W/m2.C
• ɛ 0.8