Analysis of Thermal Shock and Thermal-Mechanical Fatigue