Working principle of solar thermal energy storage device