Design and Analysis of Thermal Systems