treams.dfield¶
- treams.dfield(r, *, basis, k0, material=Material(1, 1, 0), modetype=None, poltype=None)¶
Displacement field.
The resulting matrix maps the electric field coefficients of the given basis to the displacement field in Cartesian coordinates.
The displacement field is given in units of \(\epsilon_0 [\boldsymbol E]\).
- 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.