Heat Transfer and Thermal Stress Simulation in Structural Analysis