THERMODYNAMICS FOR THERMAL ENERGY STORAGE THERMAL ENERGY STORAGE