tidy3d.EMEGrid#
- class EMEGrid[source]#
Bases:
BoxEME grid. An EME grid is a 1D grid aligned with the propagation axis, dividing the simulation into cells. Modes and mode coefficients are defined at the central plane of each cell. Typically, cell boundaries are aligned with interfaces between structures in the simulation.
- Parameters:
center (Optional[tuple[Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box]]] = None) – [units = um]. Center of object in x, y, and z.
size (tuple[Union[NonNegativeFloat, autograd.tracer.Box], Union[NonNegativeFloat, autograd.tracer.Box], Union[NonNegativeFloat, autograd.tracer.Box]]) – [units = um]. Size in x, y, and z directions.
axis (Literal[0, 1, 2]) – Propagation axis for the EME simulation.
mode_specs (list[
EMEModeSpec]) – Mode specifications for the EME cells.boundaries (ArrayLike[dtype=float, ndim=1]) – Boundary coordinates of the EME cells.
Attributes
Planes aligned with cell boundaries.
EME cells in the grid.
Centers of the EME cells along the propagation axis.
Lengths of the EME cells along the propagation axis.
Planes for mode solving, aligned with cell centers.
The number of cells in the EME grid.
sizecenterMethods
cell_indices_in_box(box)Indices of cells that overlap with 'box'.
- axis#
- mode_specs#
- boundaries#
- property centers#
Centers of the EME cells along the propagation axis.
- property lengths#
Lengths of the EME cells along the propagation axis.
- property num_cells#
The number of cells in the EME grid.
- property mode_planes#
Planes for mode solving, aligned with cell centers.
- property boundary_planes#
Planes aligned with cell boundaries.