I got an answer from COMSOL support. There is no direct way to implement derivative with respect to r or arc length s. You need to transform the derivative w.r.t x,y,z coordinates. E.g. dn/ds=tx*dn/dx+ty*dn/dy.
hope this help you
hope this help you