Thermodynamics in Materials Science