Analytical simulation in heat storage systems