Modeling and optimization of a thermal energy storage unit with cascaded PCM capsules in connection to a solar collector