Simulation of Thermal Systems