next_inactive up previous


Homework 5: Diffusion Equation

Due March 16.

  1. Write a program to solve the diffusion problem:

    \begin{displaymath}
{\partial^2 u \over \partial x^2} = {\partial u \over \partial t}
\end{displaymath}

    for $u(x,t)$ with the boundary conditions

    \begin{displaymath}
u(0, t) = 200, \quad u(1,t) = 200, \quad u(x,0) = 0.
\end{displaymath}

    using the explicit forward differencing method with $\Delta x = 0.2$.

  2. Plot the results for $u(0.4, t)$ for $0 < t < 0.3$ for two different timesteps: $\Delta t = .04$ and .015. How do these two timesteps compare with the stability criterion for the forward difference method?

About this document ...

This document was generated using the LaTeX2HTML translator Version 99.2beta8 (1.43)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html -split 0 hw5.tex

The translation was initiated by Tom Quinn on 2001-03-08


Tom Quinn 2001-03-08