Phase change material thermal energy storage design of packed bed units