3.3.2.19. A_FMM.Stack.solve
- Stack.solve(k0: float, kx: float = 0.0, ky: float = 0.0) None
Calculates the scattering matrix of the multilayer (cpu friendly version)
This version of solve solve the system in the “smart” way, solving fisrt the eigenvalue problem in each unique layer and the interface matrices of all the interface involved. The computaitonal time scales with the number of different layers, not with the total one. It prioritize minimize the calculation done while using more memory.
- 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.