Numerical Simulation of the Three-Dimensional Heat Equation and Applications