Applying Thermal Physics: From Thermodynamics in Engineering to Energy Analysis in Materials Research