Code for: Energy modeling of solar water heating systems with on-off control and thermally stratified storage using a fast computation algorithm - Araújo, António (Mendeley, 2020)