• During the tutorial, please submit your solution to Q1 as a single PDF. For any handwritten work,
please take a picture/screenshot of this work and include it in your single PDF submission.
• By the assignment due date, please submit you solution to Q1-Q4 as a single PDF. For any handwritten
work, please take a picture/screenshot of this work and include it in your single PDF submission.
Problem 1
In a chemical production plant, two chemical components are stored in large containers that are kept at two
different fixed temperatures $T(x_L) = 0^\circ C$ and $T(x_R) = 10^\circ C$. The two containers are connected by a thin
pipe that is currently closed. The cross sectional area of the pipe is $A = \pi r^2$, where $r$ is the pipe radius.
If the rod isn't insulated, it will lose heat to the surrounding air. This heat loss is given as
$$KA(T_\infty - T),$$
where $K$ is the temperature transfer coefficient,
In a previous assignment, we derived a the heat equation for the rod as
$$\frac{\partial T}{\partial t} = D\frac{\partial^2 T}{\partial x^2} + \frac{2K}{r}(T_\infty - T).$$
We are going to solve the time dependant version of this problem. Let's make the simplifying assumption
that $D = 1, K = 0$.
1. If $D = 1, K = 0$, show that the steady state solution to the heat equation is:
$$T = 10x.$$
2. Draw a schematic of the problem. Assume that rod is 1m long.
3. On your diagram, divide the rod into 4 segments. Draw a 5 points where the segments meet. That is,
you should have 1 point at $x = 0$, one point at $x = 1m$, and three evenly spaced points between them.
Label the 5 points $x_1, x_2, x_3, x_4, x_5$. Label $\Delta x$ in this diagram. What is the numerical value of $\Delta x$?
4. Using a Forward Euler method in time, and a centred difference method in space, write down the the
three evolution equations for $T_2^n, T_3^n, T_4^n$.
5. Assuming that $\Delta t = 0.01$, and that the initial condition is $T(x, t= 0) = 0$, Compute the temperature
at each grid point at $t = \{0, 0.01, 0.02, 0.03\}$ by hand. Recall that we will assume $D = 1, K = 0$.
6. Write the system of equations down as a matrix. Show that you get a system of equations
$$\begin{bmatrix} T_2^{n+1} \\ T_3^{n+1} \\ T_4^{n+1} \end{bmatrix} = A \begin{bmatrix} T_2^{n} \\ T_3^{n} \\ T_4^{n} \end{bmatrix} + b$$
Here, $D$ can be any real number, but keep $K = 0$.