tidy3d.EMESimulation.smatrix_in_basis

tidy3d.EMESimulation.smatrix_in_basis#

EMESimulation.smatrix_in_basis(smatrix, port_modes, modes1=None, modes2=None)[source]#

Express a locally propagated S-matrix in another modal basis.

Pass the mode data for the left and right EME ports, typically (mode_data[0], mode_data[-1]) from the sequence used by propagate(). If modes1 or modes2 is None, that port is left unchanged.

Parameters:
Returns:

S-matrix in the new basis.

Return type:

EMESMatrixDataset