Added basic piecewise function to model CSTR inputs