Comsol Piecewise Function Definition