Comsol Piecewise Functions