Defining Functions In Comsol