Dynamic model of a thermal solar collector.