3.4.1. A_FMM.S_matrix
- class A_FMM.S_matrix(N)
Implementation of the scattring matrix object
This object is a container for NxN matrices, conventionally defined as S11, S12, S21 and S22 Also, it implementens all the methods involving operations on scattring matrix
- __init__(N)
Creator
- Parameters:
N (int) – Dimension of each of the NxN submatrices of the scattring matrix. The total matrix is 2Nx2N
- Returns:
None.
Methods
S_modes()Solves the eigenvalue problem of the Bloch modes of the scattring matrix
S_print([i, j])Function for printing the scattering matrix.
__init__(N)Creator
add(s)Recursion method for joining two scattering matrices
add_left(s)Recursion method for joining two scattering matrices
add_uniform(lay, d)Recursion method for addig to self the progation matrix of a given layer
add_uniform_left(lay, d)Recursion method for addig to self the progation matrix of a given layer
der(Sm, Sp[, h])Calculates the first and second derivative of the scattering matrix with respec to the parameter par.
det()Calculate the determinat of the scattering matrix
det_modes(kz, d)int_complete(S2, u, d)Retirn the modal coefficient between two scattering matrces (self and S2)
int_f(S2, u)Retirn the modal coefficient between two scattering matrces (self and S2)
int_f_tot(S2, u, d)Retirn the modal coefficient between two scattering matrces (self and S2)
left(u1, d1)Return the "right" inout and output vectors given the "left" ones
matrix()Returns the full scattering matrix
output(u1, d2)Returs the output vectors given the input vectors