
NONHOMOGENEOUS 2D EXAMPLE 169
6.5 NONHOMOGENEOUS 2D EXAMPLE
The details for solving the nonhomogeneous 2D IBVP 6.108 are provided in this
section.
ut = 0.1 [u
xx
+ u
yy
] (PDE)
u{x, y, 0) =
#[0.4,0.6] x [o.4,o.6]
(x, y) (IC)
w
y
(x, 0,t) = 0 0 < x < 1 (BC1) (6.108)
u(l,y,t) = 4y(l-y) 0<y<l (BC2)
w
î/
(x,l,i) = l/2-x 0<χ<1 (BC3)
I u(0, y, i) = 0 0 < y < 1 (BC4)
The solution u is assumed to be of
the
form u(x, y, t) — U(x, y, t) + W(x, y), where
W solves
IBVP<
W
xx
(x,y)
+
W
yy
(x,y)
= 0 (PDE)
BVP
Wy(X,0,t) = 0
W(l,y,t)=4y(l-
W
y
(x,l,t)
= l/2-
W(0,y,t)=0
-y)
- X
0 <x < 1
0 < 2/ < 1
0<£< 1
0<t/ < 1
(BC1)
(BC2)
(BC3)
(BC4)
(6.109)
the Laplace BVP 6.109 that includes the nonhomogeneous BCs given in IBVP 6.108,
and U solves the IBVP 6.110 with homogeneous forms of the nonhomogeneous BCs
of 6.108
IBVP<
t/
t
=0.1[l/
a
.
x
+ ü
yi/
]
U(x,y,0) =
#[o.4,o.6] x [0.4,0.6]
(x,y) - W(x,y)
U
y
(x,0,t)
=0
C/(l,j/,t) = 0
U
y
(x,l,t)=0
t/(0,y,i) = 0
(PDE)
(IC)
(6.110)
0 < x < 1 (BC1)
0 < y < 1 (BC2)
0 < x < 1 (BC3)
0 < y < 1 (BC4)
The solution for VF is determined by the methods outlined in Section 6.4.5.
Two subproblems, one each for the nonhomogeneous BCs, must be solved. The
eigenfunctions in this case are X
n
(x) — sin(a
n
x), with a
n
= ηπ (n =
1,2,3,...),
and Y
0
(y) = 1 for β
0
= 0, Y
m
(y) = cos(ß
m
y), for ß
m
= πιπ (m =
1,2,3,...).
The W(x, y) surface found using these methods is shown in Figure 6.20(a), and the
resulting boundary condition fit in Figure 6.20(b). Twenty terms of X
n
and 20 terms
of Y
m
, for a total of 400 terms, were included in the double-Fourier series solution
for W(x, y). This explains the rather wavy result for W
y
(x, 1). The number of terms
used to construct W(x,y) is kept small because double-Fourier formula must be used
in the calculation of Fourier coefficients for the initial condition for in the solution of
IBVP (6.110).
Once the solution U(x,y,t) is found for IBVP (6.110), it is combined with
W(x,y) to give formula for u{x,y,t). The initial temperature surface is shown