Simulation of heat transfer in soils