
UNIVERSITY OF NOTRE DAME
Department of Civil Engineering
and Geological Sciences
CE 30125 November 12, 2009
J.J. Westerink Due: November 24, 2009
Homework Set # 7
Problem 1
Solve the heat conduction equation using an explicit in time, central in space finite difference discretization.
i.c.’s
b.c.’s
Diffusion is defined as a constant in space and time:
Let’s determine the temperature distribution as follows. Develop a FD discretization for the given p.d.e. at a
point in space and time, , assuming constant grids in time and space; , as follows
- Apply a forward in time approximation for the time derivative.
- Apply a central type approximation in space at the known time level for the spatial derivative.
Prepare a Matlab or Fortran code to solve this problem for the following discretizations
(a)
(b)
(c)
Select time steps for all three cases which make sense (hint: consider stability constraints). Discuss how and
why you selected the time steps. Plot and compare your solutions at the following times: t = 0, 1.0, 2.0, 4.0, 8.0,
10.0
Problem 2
We will consider a pollutant advecting and diffusing down a river that is 500 m long. Assume that the pollutant
is distributed as a Gaussian distribution with a variance equal to m and an initial location equal to
x0=100 m. We must solve the advection-diffusion equation to solve this poblem.
i.c.’s
b.c.’s
∂T
∂t
------ ∂
∂x
----- D∂T
∂x
------
⎝⎠
⎛⎞
=
∂C
∂t
-------U∂C
∂x
-------+ D∂2C
∂x2
---------=
Cxt,() xx
0
–()
2
2σ2
×
--------------------–
⎝⎠
⎜⎟
⎛⎞
exp=
C0t,() σ
σ22Dt××+
--------------------------------------0x0
–Ut×–()
2
2σ24Dt×+×
---------------------------------------–
⎝⎠
⎜⎟
⎛⎞
exp×=