Second law optimization of a PCM based latent heat thermal energy storage system with tree shaped fins