tidy3d.Simulation.decompose

Simulation.decompose(mode_monitor)

Compute the decomposition of the fields recorded in a ModeMonitor into the eigenmodes in the monitor plane.

Parameters

mode_monitor (ModeMonitor) – ModeMonitor object to compute the decomposition for.

Returns

A tuple of two arrays giving the overlap coefficients of the mode fields with the forward- and backward-propagating eigenmodes, respectively. Each array has shape (Nfreqs, Nmodes), where Nfreqs is the number of frequencies in the monitor.

Return type

np.ndarray