Irreversible Thermodynamics in Materials Problems