Académique Documents
Professionnel Documents
Culture Documents
and Applications
Camile Fraga Delfino Kunz
29th November 2018
The heat equation
Consider the heat flow in a bar subjected to some external source of heat. If
we suppose that the temperature distribution is constant at each cross section of
the bar, it varies only on x direction and can be modeled a one dimensional equa-
tion. Let u(x, t) denote the temperature at point x at time t, where 0 < x < 1.
The solution is governed by the heat equation:
∂u ∂2u
= κ 2 + φ(x, t)
∂t ∂x
where κ is the coefficient of heat conduction for the material and φ(x, t) is the
heat source (or sink if φ < 0). This equation is also known as diffusion equation.
On the steady-state the temperature doesn’t change on time, that is, ∂u/∂t =
0, and then the temperature is a function only of space, u = u(x), and we can
write:
Exercises - Matlab
a) Solve the BVP
00 x
u (x) = e ,
0<x<1
u0 (0) = 1
u(1) = e1
1
Ui−1 − 2Ui + Ui+1
u00 (xi ) ≈ , i = 1, 2, . . . , m − 1
h
where m is the number of subintervals and h = xi − xi−1 .
Ei = Ui − u(xi )
for each h.
Plot h versus
m−1
X 1/2
kEh k2 = h |Ej |2
j=1
.
References
1 Leveque, R. J. Finite Difference Methods for Ordinary and Partial Differ-
ential Equations. SIAM, 2007.