tidy3d.EMEFreqSweep#

class EMEFreqSweep[source]#

Bases: EMESweepSpec

Spec for sweeping frequency in EME propagation step. Unlike sim.freqs, the frequency sweep is approximate, using a perturbative mode solver relative to the simulation EME modes. This can be a faster way to solve at a larger number of frequencies.

Parameters:

freq_scale_factors (ArrayLike[dtype=float, ndim=1]) – Scale factors applied to every frequency in ‘EMESimulation.freqs’. After applying the scale factors, the new modes are computed approximately using the exact modes as a basis. If there are multiple ‘EMESimulation.freqs’, the exact modes are computed at each of those frequencies, and then the scale factors are applied to each independently.

Example

>>> sweep_spec = EMEFreqSweep(freq_scale_factors=[0.9, 0.95, 1.0, 1.05, 1.1])

Attributes

num_sweep

Number of sweep indices.

sweep_cells

Whether the sweep changes the propagation within a cell.

sweep_interfaces

Whether the sweep changes the cell interface scattering matrices.

sweep_modes

Whether the sweep changes the modes.

freq_scale_factors

freq_scale_factors#
property num_sweep#

Number of sweep indices.

property sweep_modes#

Whether the sweep changes the modes.

property sweep_interfaces#

Whether the sweep changes the cell interface scattering matrices.

property sweep_cells#

Whether the sweep changes the propagation within a cell.