Computational methods for thermal analysis of heterogeneous materials