Incorporate piecewise constant temperature functions and create a ventilation-scheme from user interface input