API#
|
Applies parameters to devices and updates source states. |
|
Container for simulation field arrays and states. |
|
Wrapper around tc.autoinit that preserves parameter requirement information |
|
Performs 3D binary median filtering on the design. |
|
Implements Bloch periodic boundary conditions. |
|
Creates boundary objects from a boundary configuration. |
|
Configuration class for boundary conditions. |
|
Applies 2D brush-based constraints to ensure minimum feature sizes. |
|
Run the FDTD simulation and extract S-parameters from mode-overlap detectors. |
|
Run FDTD simulations for multiple input ports and merge S-parameters. |
|
General complex-conjugate pole-residue (CCPR) pole. |
|
Creates a circular binary mask/brush for morphological operations. |
Net time-averaged Poynting flux through a closed box surface (frequency domain). |
|
Net Poynting flux through the closed surface of a rectangular box. |
|
|
Maps continuous latent values to nearest allowed material indices. |
|
Color representation with multiple format support. |
|
Computes the total electromagnetic energy density of the field. |
Spatially-averaged complex permittivity spectrum for a block of cells. |
|
FIR-filter a raw source temporal profile for broadband impedance matching. |
|
|
Computes the integrated power (Poynting flux) across a transverse plane. |
|
Compute optical modes of a waveguide cross-section. |
|
Compute the discrete-time ADE recurrence coefficients of isotropic poles. |
Compute the per-axis discrete-time ADE recurrence coefficients. |
|
|
Calculates the Poynting vector (energy flux) from E and H fields. |
|
Connects floating polymer regions and ensures air holes connect to outside. |
|
Sampled waveform temporal profile for arbitrary time signals. |
|
A cylindrical optical fiber with configurable properties. |
|
Base class for electromagnetic field detectors in FDTD simulations. |
maps detector output names to JAX arrays. |
|
|
Abstract base class for devices with optimizable permittivity distributions. |
|
Enforce diagonal symmetry by effectively halving the parameter space. |
|
Enforce diagonal symmetry in 3D across one of six possible diagonal planes. |
|
Linear susceptibility built from a sum of 2nd-order ADE poles. |
|
Drude pole parameterised by its physical constants. |
|
Compression module that converts data types of field values. |
|
Detector for measuring electromagnetic energy distribution. |
|
Convenience function to export a snapshot of FDTD simulation arrays to a VTI file. |
|
Create a dictionary from the given object for exporting to JSON. |
Create a json string from the given object. |
|
|
Export a 3D boolean matrix to an STL file. |
|
Export a dictionary of arrays to a VTI (VTK ImageData) file. |
|
Export cell data to a VTR (VTK RectilinearGrid) file. |
|
Extend interior-edge material values into each PML region. |
|
A polygon object specified by a list of vertices. |
|
Create an ExtrudedPolygon from a polygon in an already-loaded gdstk Library. |
|
Create an ExtrudedPolygon from a polygon in a GDS file. |
|
A wrapper for pytreeclass fields. |
|
Detector for measuring field components of electromagnetic fields in the time domain. |
Frequency-domain detector for projecting a phasor plane to observation angles. |
|
Frequency-domain detector for projecting phasors to a Cartesian observation plane. |
|
Frequency-domain detector for projecting phasors to a k-space direction grid. |
|
|
Dynamic electromagnetic field state that evolves each time step. |
|
Creates a field that automatically freezes on set and unfreezes on get. |
|
Creates a field that automatically freezes on set and unfreezes on get, sets the default to None and init to False. |
|
Perform full backward FDTD propagation from current state to start time. |
|
|
|
Gaussian pulse temporal profile with carrier wave. |
|
Applies Gaussian smoothing to 2D parameter arrays. |
|
Configuration for gradient computation in simulations. |
|
Constrains an object's position to specific grid coordinates. |
Enforce horizontal (x-axis) mirror symmetry. |
|
|
Enforce horizontal mirror symmetry in 3D along the x or y axis. |
|
|
|
Time step filter that performs linear reconstruction between sampled steps. |
|
Logger for managing experiment outputs and visualization. |
|
Lorentz pole parameterised by its physical constants. |
|
Represents an electromagnetic material with specific electrical and magnetic properties. |
|
Calculate efficiency metrics between input and output detectors. |
|
Detector for measuring the overlap of a waveguide mode with the simulation fields. |
|
|
|
Normalizes electromagnetic fields by their total energy. |
|
Normalize fields so the integrated Poynting flux along |
|
Container for managing simulation objects and their relationships. |
|
|
Type alias for parameter dictionaries. |
|
|
Implements perfect electric conductor (PEC) boundary conditions. |
|
Implements perfect magnetic conductor (PMC) boundary conditions. |
|
Implements a Convolutional Perfectly Matched Layer (CPML) boundary condition. |
alias of |
|
|
Detector for measuring frequency components of electromagnetic fields using an efficient Phasor Implementation. |
Time-averaged Poynting flux through a single plane in the frequency domain. |
|
|
Constraint module for mapping pillar structures to allowed configurations. |
|
Places simulation objects according to specified constraints and initializes containers. |
|
Creates a visualization of electromagnetic field components. |
|
Plots a single component of the electromagnetic field. |
|
Creates a visualization of material distribution showing slices in XY, XZ and YZ planes. |
|
Creates a visualization of material distribution from a single viewing side. |
|
Creates a visualization of the simulation setup showing objects in XY, XZ and YZ planes. |
|
Creates a visualization of the simulation setup from a single viewing side. |
|
Soft point dipole source (electric or magnetic). |
Enforce 180-degree rotational (point) symmetry. |
|
Enforce 180-degree rotational (point) symmetry in 3D. |
|
Abstract base class for a single 2nd-order ADE pole. |
|
|
Specification for a simulation port (input source or output detector). |
|
Defines a positional relationship between two simulation objects. |
|
Detector for measuring Poynting flux in electromagnetic simulations. |
|
Creates a field that sets the default to None and init to False. |
|
Unresolved policy for a rectilinear grid with independent per-axis spacings. |
|
Constrains an object's position to specific real-space coordinates. |
|
Records and compresses simulation data over time using a sequence of processing modules. |
|
Container for simulation recording state data. |
|
Realized rectilinear simulation grid described by physical cell edges. |
|
Finds all material that floats in the air and sets their permittivity to air. |
|
Resolve object constraints into grid slices and shapes. |
|
|
|
Set up an FDTD simulation scene for S-parameter extraction. |
|
Configuration settings for FDTD simulations. |
|
Abstract base class for objects in a 3D simulation environment. |
a tuple of (time_step, ArrayContainer). |
|
|
Background material for the entire simulation volume. |
|
Simple sinusoidal temporal profile at a single frequency. |
|
Defines a size relationship between two simulation objects. |
|
Defines how an object extends toward another object or boundary. |
|
A sphere or ellipsoid object with configurable properties. |
|
Maps standard [0,1] range to custom range [min_value, max_value]. |
Maps standard [0,1] range to inverse permittivity range. |
|
Maps standard [0,1] range to [-1,1] range. |
|
|
This function is adapted from the Meep repository: NanoComp/meep |
|
Tanh projection filter. |
Base class for temporal profiles of sources. |
|
|
Total-Field/Scattered-Field (TFSF) box source. |
|
Extended tree class with improved attribute setting functionality. |
|
Mirror-and-concatenate a spatial array along each symmetric axis. |
|
Reconstruct full-domain detector states from a symmetry-reduced simulation. |
|
Reconstruct a full-domain |
|
Reconstruct the full-domain |
|
Unresolved policy for a uniform rectilinear grid. |
|
|
|
|
Enforce vertical (y-axis) mirror symmetry. |
|
Enforce vertical (z-axis) mirror symmetry in 3D. |
|
|
Class describing a wavelength/period/frequency in free space. |
|
Convert wavelength to time period using speed of light. |
|
A simulation object built from a set of GDS polygons extruded along one axis. |
|
Specification for a single GDS layer to be imported as a simulation object. |
|
Specification for a GDS port marker layer used to auto-generate sources or detectors. |
|
Create |
|
Build simulation objects from a GDS file according to a layer stack specification. |
|
Build a layer stack from a gdsfactory |
|
Create |