3.3.2.22. A_FMM.Stack.solve_serial

Stack.solve_serial(k0: float, kx: float = 0.0, ky: float = 0.0) None

Calculates the scattering matrix of the multilayer (memory friendly version)

This version solves sequentially the layers and the interface as they are in the stack. It is more momery efficient since onlt the data of 2 layer are kept in memory at any given time. Computational time scales with the total number of layer, regardless if they are equal or not. It prioritize memory efficiency while possibly requiring more calculations.

Parameters:
  • k0 (float) – Vacuum wavevector for the simulation (freqency).

  • kx (float, optional) – Wavevector in the x direction for the pseudo-fourier expansion. Defaults to 0.0.

  • ky (float, optional) – Wavevector in the x direction for the pseudo-fourier expansion. Defaults to 0.0.

Returns:

None.