There is a built-in spline function in Lumerical that allows you to create smooth contours. This function is different from those written in other programs, such as Python and Matlab. Below, the graph shows that the splines do not match.
For comparison, splines were created mat files in Matlab and Lumerical:
- The script in the Matlab that creates the spline: https://www.dropbox.com/s/0c57fl4u2lfcfd1/draw_spline.m?dl=0
and mat-file which contains slipine points:
- The script in the Lumerical that create the spline:
and mat-file which contains spline points:
Python script that builds graphs from mat files and adds a spline created using scipy.interpolate.interp1d:
I also used various interpolation methods,(https://docs.scipy.org/doc/scipy/reference/interpolate.html) but I could not get the same results that the spline gives in Lumerical.
Can you provide code for the spline that is used in lumerical? We model the geometry in Lumerical using a spline, and to create a structure in KLayout we use a spline from Python.
Thank you in advance.