tidy3d.EMESimulation.compute_smatrix#
- EMESimulation.compute_smatrix(cell_overlaps, cell_smatrices, interface_smatrices, sweep_index=0)[source]#
Stack cell and interface S-matrices into the final device S-matrix.
See
propagate()for the one-shot alternative.- Parameters:
cell_overlaps (list[
EMEStageCellOverlap] or None) – One per cell. Required whenself.normalizeis True (port flux normalization); may beNoneotherwise.cell_smatrices (list[
EMEStageCellSMatrix]) – One per cell.interface_smatrices (list[
EMEStageInterfaceSMatrix]) – One per interface, ordered to matchcell_index_pairs.sweep_index (int) – Index into the sweep (
0tosweep_spec.num_sweep - 1). Ignored when nosweep_specis set.
- Return type: