Numerical simulation of a solar domestic hot water system