Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Introductory lecture notes on Partial Differential Equations - ⃝ c Anthony Peirce.

1
Not to be copied, used, or revised without explicit written permission from the copyright owner.

Lecture 19: Heat conduction with distributed sources/sinks

(Compiled 2 November 2017)

In this lecture we consider heat conduction problems in which there is a distributed source or sink function s(x, t) that
applies throughout the domain. We first consider the case in which the source is time-independent, i.e., s(x, t) = s(x). In
this case the effect of the source can be dealt with entirely by determining an appropriate steady-state solution. Using
this particular solution, we can reduce the problem to one of the standard homogeneous boundary value problems we
encountered when we introduced separation of variables. Secondly, we consider a fully time-dependent source. In this
case we have to resort to the method of eigenfunction expansions.

Key Concepts: Distributed sources or sinks, Particular Solutions, Steady state Solutions; Separation
of variables, Eigenvalues and Eigenfunctions, Method of Eigenfunction Expansions.

19 Heat Conduction Problems with distributed sources


19.1 Heat Conduction Problems with distributed time-independent sources

Example 19.1 A bar with an external heat source s(x) = x.

ut = α2 uxx + x 0<x<L (19.1)


BC: u(0, t) = 0 u(L, t) = B (19.2)
IC: u(x, 0) = g(x). (19.3)

Figure 1. Bar subject to a time-independent heat source distributed along its length with inhomogeneous Dirichlet BC
2

Steady state problem ut = 0:


0 = α2 u′′∞ + x
(19.4)
u∞ (0) = 0 u∞ (L) = B

x x2 x3
u′′∞ = − 2
u′∞ = − 2 + a u∞ = − 2 + ax + b
α 2α 6α (19.5)
L3 B L2
u∞ (0) = b = 0 u∞ (L) = − 2 + aL = B ⇒ a = + 2
6α L 6α
Therefore
( ) { }
x3 B L2 B 1
u∞ (x) = − + + 2 x=x + 2 (L2 − x2 ) . (19.6)
6α2 L 6α L 6α
Let u(x, t) = u∞ (x) + v(x, t).
ut = α2 uxx + x ⇒ (u∞↗ +v)t = α2 (u↓∞ +v)xx + x
↓ ⇒ vt = α2 vxx
u(0, t) = 0 ⇒ u∞↗ (0) + v(0, t) = 0 ⇒ v(0, t) = 0
(19.7)
u(L, t) = B ⇒ u∞ (L) + v(L, t) = B ⇒ v(L, t) = 0
u(x, 0) = g(x) ⇒ u∞ (x) + v(x, 0) = g(x) ⇒ v(x, 0) = g(x) − u∞ (x).
Separation of variables yields:

∑ 2 ( nπx )
bn e−( ) α2 t

v(x, t) = L sin (19.8)
n=1
L
where
∫L ( nπx )
2
bn = {g(x) − u∞ (x)} sin dx. (19.9)
L L
0

Therefore
{ } ∑ ∞ ( nπx )
B 1 2 nπ 2
u(x, t) = x + 2 (L2 − x2 ) + bn e−α ( L ) t sin
L 6α n=1
L
↑ ↑ (19.10)
steady transient

Note:
{ }
B 1
lim u(x, t) = x + 2 (L − x ) .
2 2
(19.11)
x→∞ L 6α

19.2 Distributed time-dependent heat sources/sinks - eigenfunction expansions

Example 19.2 A Bar with a Time-Varying External Heat Source:


( )
2 −t 2πx
ut = α uxx + e sin 0 < x < L, t>0 (19.12)
L
BC: u(0, t) = 0; u(L, t) = L (19.13)
IC: u(x, 0) = x. (19.14)

Consider the function w(x) = x which satisfies the BC as well as the homogeneous version of the PDE.
Further Heat Conduction Problems 3

Now let u(x, t) = w(x) + v(x, t).


( )
2πx
ut = (w ↗ +v)xx + e−t sin
↗ +v)t = α2 (w (19.15)
L
( )
2πx
⇒ vt = α2 vxx + e−t sin (19.16)
L
↗ +v(0, t) = 0 ⇒ v(0, t) = 0
u(0, t) = w(0) (19.17)
↗ +v(L, t) = ↗⇒
u(L, t) = w(L) L v(L, t) = 0 (19.18)
x = u(x, 0) = w(x) + v(x, 0) = x + v(x, 0) ⇒ v(x, 0) = 0. (19.19)

∑ ( nπx )
Now assume that v(x, t) = v̂n (t) sin .
n=1
L

∑∞ ( nπx ) ∂ 2 v ∑∞ { ( ) ( nπx )}
∂v dv̂n nπ 2
= (t) sin , = v̂ n (t) − sin . (19.20)
∂t n=1
dt L ∂x2 n=1
L L

Therefore
( ) ∞ {
∑ ( nπ )2 } ( nπx )
2πx dv̂n
vt − α2 vxx − e−t sin = + α2 v̂n − e−t δ2n sin = 0. (19.21)
L n=1
dt L L

Therefore
dv̂n ( nπ )2
+ α2 v̂n = e−t δ2n (19.22)
dt L
d [ α2 ( nπ ] [ 2
]
L ) −1 t
α2 ( nπ
2
e L ) t
v̂n = e δ2n . (19.23)
dt
Therefore
[ 2
]
L ) −1 t
α2 ( nπ
) t v̂ = e ( )
2
e−α (
2 nπ
L
n 2 δ2n + cn cn arbitrary (19.24)
α2 nπ
L −1
e−t δ2n 2 nπ 2
v̂n (t) =( nπ )2 + e−α ( L ) t cn (19.25)
α2 L − 1
δ2n
v(x, 0) = 0 ⇒ v̂n (0) = 0 = ( )2 + cn ⇒ (19.26)
α L −1
2 nπ
{
0 n ̸= 2
cn = − 2 2π1 2 n=2
α ( L ) −1
{ } ( )
1 2 2π 2 2πx
v(x, t) = ( )2 e−t − e−α ( L ) t sin (19.27)
α2 2π −1 L
L
( 2 ) ( )
e−t − e−α ( L ) t
2 2π
2πx
u(x, t) = x + v(x, t) = x + ( 2π )2 sin .
α2 −1 L
L
4

Example 19.3 A bar with a general external heat source s(x, t)

ut = α2 uxx + s(x, t) (19.28)


BC: u(0, t) = A u(L, t) = B (19.29)
IC: u(x, 0) = f (x). (19.30)

Figure 2. Bar subject to a time dependent heat source distributed along its length with inhomogeneous Dirichlet BC

We look for a particular solution: w(x, t) by expanding s(x, t) as a Sine Series. Note that the sine functions are the
eigenfunctions that correspond to the homogeneous form of the BC in (19.29). Thus if we add w(x, t) to a solution
of (19.28)-(19.29) without the source (i.e. with s(x, t) = 0) we will not affect the BC.

(1) Eigenfunction Expansion:


Let

∑ ( nπx )
s(x, t) = ŝn (t) sin (19.31)
n=1
L
where
∫L ( nπx )
2
ŝn (t) = s(x, t) sin dx. (19.32)
L L
0

If we assume

∑ ( nπx )
w(x, t) = ŵn (t) sin (19.33)
n=1
L
then

∑ ( nπx )
wt = ŵn′ (t) sin (19.34)
n=1
L

∑ ( nπ )2 ( nπx )
wxx = − ŵn sin . (19.35)
n=1
L L
Further Heat Conduction Problems 5

Therefore substituting these expansions into wt = α2 wxx + s(x, t) we obtain:


∑∞ { ( )2 } ( nπx )
′ 2 nπ
ŵn + α ŵn − ŝn (t) sin = 0. (19.36)
n=1
L L

Therefore
( nπ )2
ŵn′ (t) = −α2 ŵn (t) + ŝn (t). (19.37)
L
( nπ )2
α2 t
This is a linear 1st order ODE with integrating factor e L .
Therefore
∫t
2 2
e−α ( L ) ŝn (τ ) dτ + cn e−α ( L )
2 nπ 2 nπ
(t−τ ) t
wn (t) = (19.38)
0
where the cn are arbitrary constants. Since we are only looking for a particular solution we choose cn ≡ 0.
Therefore
 

∑ ∫t 2 ( nπx )
 e−α ( ŝn (τ ) dτ  sin
2
w(x, t) =

L ) (t−τ )
. (19.39)
n=1
L
0

(2) Now that we have a particular solution we exploit the fact that the Problem (19.28)-(19.29) is linear and use
superposition. Let

u(x, t) = w(x, t) + v(x, t) (19.40)


↗t +vt = α2 (w
ut = w ↗xx +vxx ) +↗
s (x, t) (19.41)
⇒ vt = α vxx . 2
(19.42)

A = u(0, t) = w(0, t) + v(0, t) = v(0, t) since w(0, t) = 0


B = u(0, t) = w(L, t) + v(L, t) = v(L, t) since w(L, t) = 0.

f (x) = u(x, 0) = w(x, 0) + v(x, 0) ⇒ v(x, 0) = f (x) − w(x, 0) (19.43)

thus v(x, t) satisfies:



vt = α2 vxx 
BC: v(0, t) = A v(L, t) = B (19.44)

IC: v(x, 0) = f (x) − w(x, 0)

Now the boundary value problem(19.44) was solved in lecture 19 of the notes.
Therefore
 
( ) ∞
∑  ∫t  ( )
B−A ) t b + eα ( L ) τ ŝ (τ ) dx sin nπx
2 2 nπ 2
e−α (
2 nπ
u(x, t) = x+A+ L (19.45)
L  n n
 L
n=1 0

where
∫L { [ ]} ( nπx )
2 x
bn = f (x) − w(x, 0) − (B − A) + A sin dx. (19.46)
L L L
0
6

Example 19.4 A bar with an external heat source dependent on x and t: S(x, t) = xt

ut = α2 uxx + xt
u(0, t) = A u(L, t) = B
u(x, t) = f (x)

( B−A )
Let q(x) = L x + A and u(x, t) = q(x) + v(x, t) then

vt = α2 vxx + xt
v(0, t) = 0 = v(L, t)
v(x, 0) = f (x) − q(x).

Expanding the source S(x, t) in terms of the eigenfunctions of the problem with homogeneous boundary conditions


S(x, t) = xt = Ŝn (t) sin(λn x)
n=1
∫L ( nπx )
2
Ŝn (t) = xt sin dx
L L
0
 ( ) L 
( ) ∫L
2t  cos nπx L ( nπx ) 
= −x ( nπL) + cos dx
L L
nπ L 

0 0
{ ( 2 )} ( )
2t n+1 L 2L
Ŝn (t) = (−1) = (−1)n+1 t
L nπ nπ
∞ {
∑ }
0 = vt − α2 vxx − xt = v̂˙ n + α2 λ2n v̂n − Ŝn (t) sin xλn x?
n=1
( )
2L
v̂˙ n + α2 λ2n v̂n = (−1)n+1 t

( ) [ ]t
( ) 2L
2
teα λn t
2
eα λ n t
2 2
α2 λ2n t
e v̂n = (−1) n+1
− + cn
nπ α2 λ2n (α2 λ2n )2
( ) [ ] 0
α2 λ2n t α2 λ2n t
2Lte (e − 1)
= (−1)n+1 − + cn
nπ α2 λ2n α4 λ4n
( ) [ ]
−α2 λ2n t
2L 2 2
n t(α λn ) + e −1
+ cn e−α λn t
2 2
v̂n (t) = (−1) 2 2 2
nπ (α λn )

{( ) [ ] }
∑ −α2 λ2n t
n t(α λn ) − 1 + e
2 2
2L −α2 λ2n t
v(x, t) = (−1) + cn e sin(λn x)
n=1
nπ (α4 λ4n )
∑∞ ( )
2L
f (x) − q(x) = v(x, 0) = (−1)n 0 + cn sin(λn x)
n=1

∫L [ {( ) }]
2 B−A
cn = f (x) − x + A sin(λn x) dx
L L
0

You might also like