A numerical analysis and optimization of the dynamic performance of a multipurpose solar thermal system for residential applications. (26th November 2018)