legume.GuidedModeExp.get_eps_xy
- GuidedModeExp.get_eps_xy(z, xgrid=None, ygrid=None, Nx=100, Ny=100)
Get the xy-plane permittivity of the PhC at a given z as computed from an inverse Fourier transform with the GME reciprocal lattice vectors.
- Parameters:
z (float) – Position of the xy-plane.
xgrid (None, optional) – None or a 1D np.array defining a grid in x.
ygrid (None, optional) – None or a 1D np.array defining a grid in y.
Nx (int, optional) – If xgrid==None, a grid of Nx points in the elementary cell is created.
Ny (int, optional) – If ygrid==None, a grid of Ny points in the elementary cell is created.
- Returns:
eps_r (np.ndarray) – The in-plane real-space permittivity.
xgrid (np.ndarray) – The input or constructed grid in x.
ygrid (np.ndarray) – The input or constructed grid in y.