yeh_tm.System.get_electric_field

System.get_electric_field(w, dz, pol=(1, 0), x=0.0, y=0.0)

Calculate the (complex) electric field profile for a given frequency w.

The z-axis range is calculated according to the total thickness of the layer stack plus the thicknesses of substrate and superstrate.

Important

This function ignores the thick parameter, i.e. propagation is always coherent.

Changed in version 02-05-2016: Changed type of x and y parameters to array-like to more easily support creating 2d- and 3d-field maps.

Parameters:
  • w (float) – Frequency value.
  • dz (float) – Step size along the z-axis.
  • pol (tuple) – (Complex) Ratio of x- and y-amplitudes of incident radiation, internally normalized to unit length (default = x-pol).
  • x (array) – Array of x-coordinates to be used for field calculations. Set to 0 or None if not used.
  • y (array) – Array of y-coordinates to be used for field calculations. Set to 0 or None if not used.
Returns:

z-axis, complex electric field vector of shape ([x])([y])[z][Ex, Ey, Ez] depending on whether x and y are used, and list of z-coordinates of interfaces (zn).