treams.hfield

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

Magnetic field.

The resulting matrix maps the electric field coefficients of the given basis to the magnetic field in Cartesian coordinates.

The magnetic field is given in units of \(\frac{1}{Z_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.