I'm currently developing a program to solve 2D transient state heat conduction on a square plate using the V-cycle multigrid. Althought my program is able to reach the steady state solution, it's computational time is longer then just running the problem using Gauss-seidel method.
Problem case: 0.1 m by 0.1 m square plate with fixed temperatures. Top: 20°C and the other three sides to be 40°C. Assuming constant material properties, no internal heat generation, and equal grid length $\Delta x=\Delta y$.
Parameters: thermal diffusion ($\alpha=23.1\times 10^{-6}$) (using steel for now as a guide), $\Delta t=0.01$
Methodology : implicit finite difference method.
$$T_2(i,j)=\frac{T_1 + F_O (T_2 (i-1, j) + T_2(i+1, j) + T_2(i, j+1) + T_2(i,j-1)}{1 + 4 F_O}$$
where $F_O$ is the fourier number $\alpha \Delta t/ \Delta x^2$.
Step 1: Pre-smoothing- using the implicit finitie difference method shown above. The problem is smoothen by 2 cycles of red-balck gauss seidel.
Step 2: compute residual- the residual is computed using
$$\operatorname{res}=\frac{T_1 + F_O [T_2(i-1,j) + T_2(i+1,j) + T_2(i,j+1) + T_2(i, j-1)]}{1 + 4 F_O} - T_2(i,j)$$
Step 3: The residual is restricted using full weightage
Step 4: The residual equation is solved with the intial guess of the error to be zero. I solve it by using $$\operatorname{error}(i,j)= \frac{\operatorname{res}(i,j) + F_O [\operatorname{error} (i-1,j) + \operatorname{error}(i+1,j) + \operatorname{error}(i,j-1)+ \operatorname{error}(i,j+1)]}{1 + 4 F_O}$$
I'm not sure if I used the correct equation to solve the residual equation and as the gird size decrease $\Delta x$ will increase therefore the Fourier number ($F_O$) will change . So I believe this maybe the problem to my program but i'm not sure as there are not alot of information regarding this. (I have been looking for a few weeks). I will really appreciate the help from you guys. If anyone needs any other information, please comment.