treams.efield

treams.efield(r, *, basis, k0, material=Material(1, 1, 0), modetype=None, poltype=None)

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 (BasisSet) – Basis set.

  • k0 (float) – Wave number.

  • material (Material or tuple, optional) – Material parameters.

  • modetype (str, optional) – Wave mode.

  • poltype (str, optional) – Polarization, see also Polarizations.