1D Heat equation, numerical solution with ONLY one heat source

1. Aug 25, 2010

gifuboy

Hi,

I have the following problem.
I am tried to numerically solve the 1D heat equation for a metal bar of length L.

Using the forward time, centered space equation

a(t+1) = a(t)+(alpha*deltaA/(deltaX)^2)*(a(x+1,t)-2*a(x,t)+a(x-1,t))

The problem is that I only have ONE heat source at one end of the bar(0), there is nothing at the end of the bar. How do I calculate a(t+1) at L-deltaX? (end of the bar). The above equation is dependent on a(x+1,t), how do I calculate a(t+1,L-deltaX)?

Thanks.

2. Aug 25, 2010

Mapes

Hi gifuboy, welcome to PF. You need another boundary condition at the end of the bar (e.g., a certain temperature, a certain convection coefficient, a certain heat flux, etc.).