This model implements a basic domestic hot water source for a district heating network. It includes heating by the district through a heat-exchanger and optional electric resistance to bring the temperature of produced hot water to setpoint, if the district supply water is not hot enough.
It is based on Fig. 5 in Evaluations of different domestic hot water preparing methods with ultra-low-temperature district heating by X. Yang, H. Li, and S. Svendsen at doi.org/10.1016/j.energy.2016.04.109.