I would like to modelize the temperature profile of a 2D plate, heated on one edge at temp T0=100. The external temp is Tinf=0.The Biot number is Bi=0.1. I've already discretised my plate like that :
I know the expression of the temperature on each point, as a function of the temperature of the previous point (for each family Color):
Parameters:
T0 = 100; Tinf = 0; Bi = 0.1;
Temperature function:
T[i_, j_] =
If[i == 1, T0,
If[j == 1 && i != 1 && i != 21,
0.5 (0.5 (T[i, j + 1] + T[i, j - 1]) + T[2, j]),
If[j == 6 && i != 1 && i != 21,
1/(2 + Bi) (0.5 (T[6, j + 1] + T[6, j - 1]) + T[5, j] + Bi Tinf),
If[i == 21 && j != 1 && j != 6,
1/(2 (1 + Bi)) (T[i, 20] + 0.5 (T[i + 1, 21] + T[i - 1, 21]) +
Bi inf),
If[i == 21 && j == 1, 1/(2 + Bi) (T[1, 20] - T[2, 21] + Bi Tinf),
If[i == 21 && j == 6,
1/(2 (1 + Bi)) (T[6, 20] + T[5, 21] + Bi Tinf),
0.25 (T[i + 1, j] + T[i - 1, j] + T[i, j - 1] +
T[i, j + 1])]]]]]];
Matrix of temperatures :
M = Table[T[i, j], {i, 21}, {j, 6}]
But because my function is iterative, the matrix M won't show up : too long!
I know I should maybe use the Gauss-Seidel method, but I don't know how to... I would like to have something as follows, but obviously not that temperature profile :

Thank you for your help, I'm a beginner at Mathematica and I really don't know how to start.


