PDA

View Full Version : 1D Heat equation, numerical solution with ONLY one heat source


gifuboy
Aug25-10, 07:17 AM
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.

Mapes
Aug25-10, 11:32 AM
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.).