tidy3d.plugins.smatrix.ports.base_lumped.AbstractLumpedPort#
- class AbstractLumpedPort[source]#
Bases:
AbstractTerminalPortClass representing a single lumped port.
- Parameters:
name (str) – Unique name for the port.
impedance (complex = 50) – [units = ohm]. Reference port impedance for scattering parameter computation.
num_grid_cells (Optional[PositiveInt] = 3) – Number of mesh grid cells associated with the port along each direction, which are added through automatic mesh refinement. A value of
Nonewill turn off automatic mesh refinement.enable_snapping_points (bool = True) – When enabled, snapping points are automatically generated to snap grids to key geometric features of the lumped port for more accurate modelling.
Attributes
Create a load from the lumped port.
nameMethods
snapped_center(grid)Get the exact center of this port after snapping along the injection axis.
to_current_monitor(freqs[, snap_center, grid])Field monitor to compute port current.
to_monitors(freqs[, snap_center, grid])Field monitors to compute port voltage and current.
to_voltage_monitor(freqs[, snap_center, grid])Field monitor to compute port voltage.
- impedance#
- num_grid_cells#
- enable_snapping_points#
- snapped_center(grid)[source]#
Get the exact center of this port after snapping along the injection axis. Ports are snapped to the nearest Yee cell boundary to match the exact position of the load.
- abstract property to_load#
Create a load from the lumped port.
- abstract to_voltage_monitor(freqs, snap_center=None, grid=None)[source]#
Field monitor to compute port voltage.