tidy3d.plugins.smatrix.ports.base_lumped.AbstractLumpedPort#
- class AbstractLumpedPort[source]#
Bases:
AbstractTerminalPortAbstract base class for lumped ports.
- Parameters:
name (str) – Unique name for the port.
impedance (Union[complex,
ImpedanceSpec] = 50) – Reference port impedance in ohms. Accepts a plain real number (e.g.50) for a purely resistive load, or anImpedanceSpecfor a complex-valued impedance (which also requires a measurement frequency). Passing a complex scalar with a non-zero imaginary part raises a validation error; useImpedanceSpecinstead.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.
a (Lumped ports model a physical port as a combination of an excitation source and)
via (load element (resistor or RLC network). The reference impedance is set)
:param
impedance: :param which accepts either a plain real number (e.g.50) or a full: :paramImpedanceSpecfor complex-valued impedances paired with a measurement frequency.: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.