Simulation of Thermal Systems by