tidy3d.SurfaceFieldStructureMonitor#
- class SurfaceFieldStructureMonitor[source]#
Bases:
SurfaceFieldMonitorMonitorthat records the magnetic field (and by default the electric field), the interface normal, and per-vertex structure-ownership data on a triangulated PEC/lossy-metal surface.- 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. Only the value of 1 (no downsampling) is currently supported for surface monitors.
colocate (Literal[True] = True) – For surface monitors fields are always colocated on surface.
use_colocated_integration (Literal[True] = True) – Whether to use colocated fields for flux, dot products, and overlap integrals. Hard-coded to
Truefor most monitor types. Can be toggled on field, overlap, and flux monitors.freqs (ArrayLike[dtype=float, ndim=1]) – [units = Hz]. Array or list of frequencies stored by the field monitor.
apodization (
ApodizationSpec= ApodizationSpec()) – Sets parameters of (optional) apodization. Apodization applies a windowing function to the Fourier transform of the time-domain fields into frequency-domain ones, and can be used to truncate the beginning and/or end of the time signal, for example to eliminate the source pulse when studying the eigenmodes of a system. Note: apodization affects the normalization of the frequency-domain fields.fields (tuple[Literal['E', 'H'], ...] = ['E', 'H']) – Collection of field components to store in the monitor. ‘E’ must be recorded for intensity and Poynting vector calculations, and ‘H’ for surface current density and Poynting vector calculations.
Notes
A frequency-domain monitor that records, over the same triangulated surface mesh as
SurfaceFieldMonitor, one additional primitive: the per-vertex structure-ownership index (-1for the background medium,-2for an automatic PEC frame,iforsimulation.structures[i]), recorded unconditionally regardless of which offieldsis requested.fieldsmust include"H", from which the surface loss is computed;"E"is optional.This primitive serves the derived surface loss density and per-structure total loss (see
SurfaceFieldStructureDataandSimulationData.per_structure_loss()) from a single monitor, the same wayFieldStructureMonitor’s structure-ownership maps serve the volumetric absorbed power density.Example
>>> import tidy3d as td >>> old_logging_level = td.config.logging.level >>> td.config.logging.level = "ERROR" >>> monitor = SurfaceFieldStructureMonitor( ... center=(1,2,3), ... size=(2,2,2), ... freqs=[250e12, 300e12], ... name='surface_field_structure') >>> td.config.logging.level = old_logging_level
Attributes
fieldsinterval_spacecolocatefreqsapodizationuse_colocated_integrationnamesizecenterMethods
storage_size(num_cells, tmesh)Size of monitor storage given the number of points after discretization: the
SurfaceFieldMonitorestimate plus one structure-ownership index per surface point.- storage_size(num_cells, tmesh)[source]#
Size of monitor storage given the number of points after discretization: the
SurfaceFieldMonitorestimate plus one structure-ownership index per surface point.