legume.GuidedModeExp.ft_field_xy
- GuidedModeExp.ft_field_xy(field, kind, mind, z)
Compute the ‘H’, ‘D’ or ‘E’ field Fourier components in the xy-plane at position z.
- Parameters:
field ({'H', 'D', 'E'}) – The field to be computed.
kind (int) – The field of the mode at GuidedModeExp.kpoints[:, kind] is computed.
mind (int) – The field of the mind mode at that kpoint is computed.
z (float) – Position of the xy-plane.
Note
The function outputs 1D arrays with the same size as GuidedModeExp.gvec[0, :] corresponding to the G-vectors in that array.
- Returns:
fi_x (np.ndarray) – The Fourier transform of the x-component of the specified field.
fi_y (np.ndarray) – The Fourier transform of the y-component of the specified field.
fi_z (np.ndarray) – The Fourier transform of the z-component of the specified field.