treams._operators.efield#
- treams._operators.efield(r, *, basis, k0, material=Material(1, 1, 0), modetype=None, poltype=None)[source]#
Electric field.
The resulting matrix maps the electric field coefficients of the given basis to the electric field in Cartesian coordinates.
- Parameters:
r (array-like) – Evaluation points
basis (
treams.BasisSet) – Basis set.k0 (float) – Wave number.
material (
treams.Materialor tuple, optional) – Material parameters.modetype (str, optional) – Wave mode.
poltype (str, optional) – Polarization, see also Polarizations.