Trial Function

A trial function is the starting point for the mode solver. The choice of a trial function determines which mode is found, and the speed of convergence, but it should not affect the accuracy of the computed mode. Just like the refractive index profiles, the trial function can be entered in one of three ways:

Regardless of the size of the polygons, only the the right-half of x=0 will be considered, and the symmetry condition (symmetric or anti-symmetric) will be used to reflect the structure on the left-half of x=0.

Unlike the definitions of refractive index, the default background value is 0.0 (not 1.0). Therefore, the trial function cannot be left blank. A trial function of zero everywhere will crash the program. At the very least, a 'b 1.0' polygon must be specified.