yeh_tm.Layer.calculate_p_q

Layer.calculate_p_q(w, a, b)

Calculate the electric and magnetic polarization vectors p and q for the four solutions of self.g.

Changed in version 02-05-2016: Removed a bug in sorting the polarization vectors.

Parameters:
  • w (float) – Frequency value.
  • a (complex) – In-plane propagation constant along x-axis.
  • b (complex) – In-plane propagation constant along y-axis.
Returns:

Electric and magnetic polarization vectors p and q sorted according to (x+, x-, y+, y-).

Note

This function also sorts the in-plane propagation constants according to their polarizations (x+, x-, y+, y-).

Important

Requires prior execution of calculate_g().