tidy3d.EMEFieldMonitor#

class EMEFieldMonitor[source]#

Bases: EMEMonitor, AbstractFieldMonitor

EME monitor for propagated field.

Parameters:
  • attrs (dict = {}) – Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, attrs are mutable. For example, the following is allowed for setting an attr obj.attrs['foo'] = bar. Also note that Tidy3D` will raise a TypeError if attrs contain objects that can not be serialized. One can check if attrs are serializable by calling obj.json().

  • center (Tuple[float, float, float] = (0.0, 0.0, 0.0)) – [units = um]. Center of object in x, y, and z.

  • size (Tuple[NonNegativeFloat, NonNegativeFloat, NonNegativeFloat]) – [units = um]. Size in x, y, and z directions.

  • name (ConstrainedStrValue) – Unique name for monitor.

  • interval_space (Tuple[Literal[1], Literal[1], Literal[1]] = (1, 1, 1)) – Note: not yet supported. Number of grid step intervals between monitor recordings. If equal to 1, there will be no downsampling. If greater than 1, the step will be applied, but the first and last point of the monitor grid are always included.

  • colocate (bool = True) – Toggle whether fields should be colocated to grid cell boundaries (i.e. primal grid nodes). Default (False) is used internally in EME propagation.

  • fields (Tuple[Literal['Ex', 'Ey', 'Ez', 'Hx', 'Hy', 'Hz'], ...] = ['Ex', 'Ey', 'Ez', 'Hx', 'Hy', 'Hz']) – Collection of field components to store in the monitor.

  • freqs (Optional[List[PositiveFloat]] = None) – Frequencies at which the monitor will record. Must be a subset of the simulation ‘freqs’.

  • num_modes (Optional[NonNegativeInt] = None) – Maximum number of modes for the monitor to record. For ‘EMEFieldMonitor’, refers to the number of modes at each port.Cannot exceed the max of the number of modes in the two ports.

  • eme_cell_interval_space (Literal[1] = 1) – Number of eme cells between monitor recordings. If equal to 1, there will be no downsampling. If greater than 1, the step will be applied, but the first and last cells are always included. Not used in all monitors. Not all monitors support values different from 1. Note: this field is not used for EME field monitor.

Example

>>> monitor = EMEFieldMonitor(
...     center=(1,2,3),
...     size=(2,2,0),
...     freqs=[300e12],
...     num_modes=2,
...     name="eme_field"
... )

Attributes

attrs

Methods

storage_size(num_cells, num_eme_cells, ...)

Size of monitor storage given the number of points after discretization.

Inherited Common Usage

interval_space#
eme_cell_interval_space#
colocate#
num_modes#
storage_size(num_cells, num_eme_cells, num_freqs, num_modes)[source]#

Size of monitor storage given the number of points after discretization.

__hash__()#

Hash method.