Professional Documents
Culture Documents
Heat (Or Diffusion) Equation in 1D
Heat (Or Diffusion) Equation in 1D
Physical assumptions
We consider temperature in a long thin
wire of constant cross section and
homogeneous material
The wire is perfectly insulated laterally, so
heat flows only along the wire
insulation
heat flow
: KA
u
x
u
x
x +x
2u
: KA 2 x
x
2
u
K
2 u
2
,
where
c
=c
=
t
x 2
2u
u
KA 2 x = A x
x
t
u (0, t ) = u ( L, t ) = 0
If the initial temperatur e distribution in the rod is given by f ( x),
we have the initial condition : u ( x,0) = f ( x)
Evidently, from the boundary conditions : f (0) = f ( L) = 0
Differentiating, we find :
u
= FG&
t
2u
= F ''G
2
x
2
d
F
dG
&
where G =
and F ' ' = 2
dt
dx
The two (homogeneous) ODEs are:
So that
equivalently
G&
F''
=
=k
2
cG F
F ' ' kF = 0
2
&
G kc G = 0
F ' 'kF = 0
case k = 0 :
F ( x) = ax + b
Applying the boundary conditions : a = b = 0
Ae L + Be L = 0
and so A = B = 0
pL = n that is :
p=n
so that
Fn ( x) = sin n
2n t
c
L
u ( x, t ) = un ( x, t ) = Bn e
n =1
n =1
n =1
2n t
sin n
x = f ( x)
u ( x, t ) = Bnun ( x, t )
n =1
where
u n ( x, t ) = e nt sin n
2
2
Bn = f ( x) sin n xdx
L0
L
L
Sine term
Consider first the sine term :
sin n
Exponential term
nc
t
L
2
2
1
Gabor functions
nc
t
L
2
L
denote t = s and n =
, then the term is
nc
s2
... a Gaussian
u ( x, t ) = un ( x, t ) = Bn e
n =1
n =1
n =1
2n t
sin n
x = f ( x)
Example 1*
u ( x,0) = Bn sin n
80
x = f ( x) = 100 sin
80
B1 = 100, B2 = B3 = ... = 0
n =1
= 8.92 gm/cm 3
= 0.092 cal/(gm o C)
so
K
0.95
= 1.158 cm2 / sec
0.092 8.92
9.870
12 = 1.158
= 0.001758
6400
c2 =
80
80
Example 2
Somewhat more realistically, we assume that the bar is initially entirely at a
constant temperature, then at time t=0, it is insulated and quenched, that is,
the temperatures at its two ends instantly reduce to zero.
Solution
Recall that the solution to the 1D diffusion equation is :
u ( x, t ) = un ( x, t ) = Bn e
n =1
sin n
n =1
n =1
2n t
x = f ( x) = T0
2T0
Bn =
sin n xdx
L 0
L
L
2T0
sin nd
0
Solving for Bn
Evidently,
cos n
=
sin
n
d
0
n
0
if n = 2m is even, then this is 0
2T
2
0e
m =1 ( 2m 1)
2
(2m 1)
( 2 m 1) c
t
L
sin( 2m 1)
L
2T0
if
x
2
Suppose that initially f ( x) = L
L
2T
0 ( L x) if x L
2
L
L
t u( x, t ) 0
Solution
Recall that the solution to the 1D diffusion equation is :
u ( x, t ) = un ( x, t ) = Bn e
n =1
sin n
n =1
n =1
2n t
x = f ( x)
which is
f()
f ( ) =
A
/2
8A
1
(cos
+
cos 3 + .....)
2
9
-A
g()
A
/2
-A
g( ) = f ( + 2 ) =
8A
1
(cos(
2
)
+
cos 3( + 2 ) + .....)
2
1
= 2 (sin + sin 3 + .....) Bn sin n
9
n =1
8A
So,
8T0
Bn = 2
( 2 n 1 )2
T ( x, t ) =
n =1
k (2n 1) 2 2t
8T0
(2n 1)x
sin
exp
2 2
2
(2n 1)
L
L
T ( x, t ) =
n =1
k (2n 1) 2 2t
4T0
(2n 1)x
sin
exp
2
L
L
(2n 1)
I(x)
I(x+x)
Cx
V(x)
Ohms law:
V ( x + x ) V ( x ) = IRx
We find
I
V
=C
x
t
= RI
x
I
x
x
V
V ( x + x ) = V ( x ) +
x
x
I ( x + x ) = I ( x ) +
V
From I = C
, we find :
t
I ( x + x ) I ( x ) = C x
V
t
2V
V The diffusion
= RC
2
x
t equation
Initial conditions :
u ( x,0) = 0, for 0 x L
Boundary conditions :
u (0, t ) = V0 , all t > 0
u ( L, t ) = 0, all t > 0
We again use separation of variables; but we need to start from scratch
because so far we have assumed that the boundary conditions were
u (0, t ) = u ( L, t ) = 0
We now retrace the steps for the original solution to the heat equation,
noting the differences
Differentiating, we find :
u
= FG&
t
2u
= F ''G
2
x
2
d
F
dG
&
where G =
and F ' ' = 2
dt
dx
The two (homogeneous) ODEs are:
No change here!!
So that
equivalently
G&
F''
=
=k
2
cG F
F ' ' kF = 0
2
&
G kc G = 0
F ' 'kF = 0
case k = 0 :
F ( x) = ax + b
Applying the boundary conditions :
F (0) = V0 = b
F ( L) = 0 = aL + b, so a =
so that
V0
L
x
F ( x) = V0 1
L
so that
Fn ( x) = sin n
p=n
We have G& + 2n G = 0
whose general solution is : Gn (t ) = Bn e
2n t
c
L
x
u ( x, t ) = V0 1 + Bn e nt sin n x
L
L n =1
x
Initial condition : u ( x,0) = V0 1 + Bn sin n x = 0
L
L n =1
so that
Bn =
2 L
x
V
1
sin
n
xdx
0
L 0
L
L
2V0
=
1 sin nd
0
2V0 1
which (by parts) =
(or use HLT next to last on earlier list)
.
n
x 2V0 1 2nt
Solution is :
e sin n x
u ( x, t ) = V0 1
L
L n =1 n