tidy3d.components.monitor.AbstractFluxMonitor#
- class AbstractFluxMonitor[source]#
Bases:
SurfaceIntegrationMonitor,ABCMonitorthat records flux during the solver run.- Parameters:
center (tuple[Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box]] = (0.0, 0.0, 0.0)) – [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.
name (str) – Unique name for monitor.
interval_space (tuple[Literal[1], Literal[1], Literal[1]] = (1, 1, 1)) – 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. Not all monitors support values different from 1.
colocate (bool = True) – Governed by
use_colocated_integrationand not set independently for surface-integration monitors: it mirrors that value, so the solver records colocated fields exactly when the integration is colocated.use_colocated_integration (bool = True) – Selects the surface-integration scheme. If
True(default), the integral is computed from fields colocated to the grid cell boundaries (primal nodes). IfFalse, it is computed directly on the native Yee-staggered grid: the tangential field components stay at their tangential positions.normal_dir (Optional[Literal['+', '-']] = None) – Direction of the surface monitor’s normal vector w.r.t. the positive x, y or z unit vectors. Must be one of
'+'or'-'. Applies to surface monitors only, and defaults to'+'if not provided.exclude_surfaces (Optional[tuple[Literal['x-', 'x+', 'y-', 'y+', 'z-', 'z+'], ...]] = None) – Surfaces to exclude in the integration, if a volume monitor.
Attributes
use_colocated_integrationcolocatenormal_direxclude_surfacesinterval_spacenamesizecenter