pymiediff.Particle.get_nearfields

pymiediff.Particle.get_nearfields#

Particle.get_nearfields(k0: Tensor, r_probe: Tensor, **kwargs) dict#

Compute near fields at Cartesian probe coordinates.

Parameters:
  • k0 (torch.Tensor) – Vacuum wavevector(s), in rad/nm.

  • r_probe (torch.Tensor) – Probe coordinates of shape (N, 3).

  • **kwargs – Forwarded to pymiediff.multishell.nearfields().

Returns:

Incident, scattered, and total electric/magnetic fields.

Return type:

dict