Thermal modeling of a packed bed thermal energy storage system during charging