In FD.py the documentation for the epsfunc states the following:
"epsfunc : function
This is a function that provides the relative permittivity (square of the refractive index)
as a function of the x and y position. The function must be of the form:
myRelativePermittivity(x,y)
The function can either return a single float, corresponding the an isotropic refractive index,
or, ir may a length-5 tuple. In the tuple case, the relative permittivity is given in the form
(epsxx, epsxy, epsyx, epsyy, epszz)."
but I found this to not be true in fact epsfunc should take a numpy.arrays x and y and output an epsilon matrix of shape ( x.length() , y.length() ).
In FD.py the documentation for the epsfunc states the following:
"epsfunc : function This is a function that provides the relative permittivity (square of the refractive index) as a function of the x and y position. The function must be of the form:
myRelativePermittivity(x,y)
The function can either return a single float, corresponding the an isotropic refractive index, or, ir may a length-5 tuple. In the tuple case, the relative permittivity is given in the form (epsxx, epsxy, epsyx, epsyy, epszz)."but I found this to not be true in fact epsfunc should take a numpy.arrays x and y and output an epsilon matrix of shape ( x.length() , y.length() ).