3.2.1. A_FMM.Layer
- class A_FMM.Layer(Nx: int, Ny: int, creator: Creator, Nyx: float = 1.0)
Class for the definition of a single layer
- __init__(Nx: int, Ny: int, creator: Creator, Nyx: float = 1.0)
Creator
- Parameters:
Nx (int) – truncation order in x direction
Ny (int) – truncation order in y direction
Nyx (float) – ratio between the cell’s dimension in y and x (ay/ax)
Methods
T_interface(lay)Builds the Transfer matrix of the interface with another layer
T_prop(d)Build the propagation Transfer matrix of the layer
__init__(Nx, Ny, creator[, Nyx])Creator
add_transform_matrix([ex, FX, ey, FY])Function for adding matrix of a coordinate transform
calculate_epsilon([x, y, z])Return epsilon given the coordinates
calculate_field(u[, d, x, y, z, components])Return field given modal coefficient and coordinates
calculate_field_old(u[, d, x, y, z, components])Return field given modal coefficient and coordinates
clear()Removes data created in mode method
coupling(u, up)EXPERIMENTAL: Calculates coupling between two modes given their modal exapnsion
create_input(dic)Creates the array of modal coefficient using a dictionary as input
eps_plot([pdf, N, s])Function for plotting the dielectric consstat rebuit from plane wave expansion
Calculate field normalization
Creates array of single mode Poynting vector components.
Calculates the normalization matrix for the Poyinting vector calculations
get_Poynting(u[, d])Calculates total Poynting vector in the layer given arrays of modal expansion
get_Poynting_single(i, u[, ordered])Return the Poyinting vector of a single mode given the modal expansion in the layer
get_index([ordered])Returns the effective idexes of the modes
get_input(func[, args, Nxp, Nyp, fileprint])Expands an arbitrary fieldd shape on the basis of the layer eigenmodes
get_modal_field(i[, x, y, components])Returns modal field profile
inspect([st])Function for inspectig the attributes of a layer object
interface(lay)Builds the Scattering matrix of the interface with another layer
mat_plot(name)Plot the absolute values of the fourier trasnsform matrices
mode(k0[, kx, ky])Calculates the eighenmode of the layer
overlap(u[, up])EXPERIMENTAL: Calculates overlap between two fields given the modal expansion
plot_Ham(pdf)Plot the matrix of the eigenvalue problem
transform([ex, ey, complex_transform])Function for adding the real coordinate transfomr to the layer