tidy3d.EMESimulation.compute_smatrix

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 when self.normalize is True (port flux normalization); may be None otherwise.

  • cell_smatrices (list[EMEStageCellSMatrix]) – One per cell.

  • interface_smatrices (list[EMEStageInterfaceSMatrix]) – One per interface, ordered to match cell_index_pairs.

  • sweep_index (int) – Index into the sweep (0 to sweep_spec.num_sweep - 1). Ignored when no sweep_spec is set.

Return type:

EMESMatrixDataset