Complex Variable Method for Thermal Stress Problem